在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):apache/incubator-weex-ui开源软件地址(OpenSource Url):https://github.com/apache/incubator-weex-ui开源编程语言(OpenSource Language):Vue 82.4%开源软件介绍(OpenSource Introduction):Weex Ui
DocsDemoTry it with Fliggy, Taobao, Tmall, Weex Playground or any browsers now! Installationnpm i weex-ui -S Usage<template>
<div>
<wxc-button text="Open Popup"
@wxcButtonClicked="buttonClicked">
</wxc-button>
<wxc-popup width="500"
pos="left"
:show="isShow"
@wxcPopupOverlayClicked="overlayClicked">
</wxc-popup>
</div>
</template>
<script>
import { WxcButton, WxcPopup } from 'weex-ui';
// or
// import WxcButton from 'weex-ui/packages/wxc-button';
// import WxcPopup from 'weex-ui/packages/wxc-popup';
module.exports = {
components: { WxcButton, WxcPopup },
data: () => ({
isShow: false
}),
methods: {
buttonClicked () {
this.isShow = true;
},
overlayClicked () {
this.isShow = false;
}
}
};
</script> Before useIn order to not pack all the components, you need to use npm i babel-preset-stage-0 babel-plugin-component -D {
"presets": ["es2015", "stage-0"],
"plugins": [
[
"component",
{
"libraryName": "weex-ui",
"libDir": "packages",
"style": false
}
]
]
} More
Developmentnpm i
npm run start Once it has been compiled, a browser window will be opened automatically. You can switch to developer mode to see the demo. And there will be a QR code that you can use to try the demo on your phone in the console. Support
ContributionWant to file a bug, contribute some code, or improve documentation? Excellent! Read up on our Contributing Guide before making a pull request. Thank you to all the people who already contributed to Weex Ui! License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论