领峰UI库,封装一些经常使用到的组件,自定义样式,模块化js函数,调用简单快速上手。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
610 B

  1. // 引入全局mixin
  2. import mixin from './libs/mixin/mixin.js'
  3. function wranning(str) {
  4. // 开发环境进行信息输出,主要是一些报错信息
  5. // 这个环境的来由是在程序编写时候,点击hx编辑器运行调试代码的时候,详见:
  6. // https://uniapp.dcloud.io/frame?id=%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83%e5%92%8c%e7%94%9f%e4%ba%a7%e7%8e%af%e5%a2%83
  7. if (process.env.NODE_ENV === 'development') {
  8. console.warn(str)
  9. }
  10. }
  11. const $lf = {
  12. }
  13. // $lf挂载到uni对象上
  14. uni.$lf = $lf
  15. const install = Vue => {
  16. Vue.mixin(mixin)
  17. Vue.prototype.$lf = $lf
  18. }
  19. export default {
  20. install
  21. }