领峰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.
|
|
// 引入全局mixin
import mixin from './libs/mixin/mixin.js'
function wranning(str) { // 开发环境进行信息输出,主要是一些报错信息
// 这个环境的来由是在程序编写时候,点击hx编辑器运行调试代码的时候,详见:
// 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
if (process.env.NODE_ENV === 'development') { console.warn(str) }}
const $lf = { }
// $lf挂载到uni对象上
uni.$lf = $lf
const install = Vue => { Vue.mixin(mixin) Vue.prototype.$lf = $lf}
export default { install}
|