0.0.5 • Published 7 years ago

wepy-plugin-config-import v0.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

wepy-plugin-config-import

介绍

wepy-plugin-config-import 是一款为了让wepy支持导入小程序原生组件而开发的插件。

欢迎提交ISSUE或者PR。

Demo

如果要导入 iview-weapp,只需要在 config 的 usingComponents中添加对应组件即可

<script>
    import wepy from 'wepy';

    export default class Index extends wepy.page {
        config = {
            navigationBarTitleText: 'test',
            usingComponents: {
                'i-button': '~iview-weapp/dist/button'
            }
        }
    }
</script>

安装使用

npm install wepy-plugin-config-import -D

wepy.config.js

plugins: {
    'config-import': {}
},
0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago