@busboss/miniprogram
v1.0.5
Published
``` npm i @busboss/miniprogram ```
Downloads
34
Readme
安装:
npm i @busboss/miniprogram
用法:
/App.vue
<script>
// 按需引入 例如:
import { getTypeDate } from '@busboss/miniprogram';
...
</script>
<style lang="scss">
...
/* 必须设置 lang="scss */
@import "@busboss/miniprogram/style/main.scss";
</style>
/main.js
...
// 工具类函数全局挂载 例如:
import utils from '@busboss/miniprogram/js/utils.js'
Vue.prototype.$utils = utils;
// 全局注册filter
import filters from '@busboss/miniprogram/js/filters.js';
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
});
/uni.scss
...
/* 主题颜色 */
$theme: (自定义主题色);
内容:
1、公共样式。
2、公共自定义 API。
适用语言:
JavaScript
适用框架:
Vue、uni-app
适用项目类型:
小程序