commit 8ef96f5cf196106c4507645c3a96fc9f19cb7d19 Author: LAPTOP-D7TKRI82\邓 <52643018@qq.com> Date: Tue Jun 29 17:47:23 2021 +0800 项目初步规划阶段 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2182513 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.hbuilderx/ +unpackage/ +node_modules/ \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/iconfont.css b/iconfont.css new file mode 100644 index 0000000..e69de29 diff --git a/index.js b/index.js new file mode 100644 index 0000000..f303341 --- /dev/null +++ b/index.js @@ -0,0 +1,27 @@ +// 引入全局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 +} \ No newline at end of file diff --git a/index.scss b/index.scss new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json new file mode 100644 index 0000000..e8be04c --- /dev/null +++ b/package.json @@ -0,0 +1,31 @@ +{ + "name": "leadfyy-ui", + "version": "1.0.0", + "description": "领峰UI库,封装一些经常使用到的组件,自定义样式,模块化js函数,调用简单快速上手", + "main": "index.js", + "keywords": [ + "leadfyy", + "leadfyy ui", + "leadfyy-ui", + "uni ui", + "uni UI", + "uniapp ui", + "ui", + "UI框架", + "uniapp ui框架", + "uniapp UI" + ], + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "" + }, + "devDependencies": { + "node-sass": "^4.14.0", + "sass-loader": "^8.0.2" + }, + "author": "leadfyyUI", + "license": "MIT" +}