当前位置:网站首页>Fe - use of weex development weex UI components and configuration use
Fe - use of weex development weex UI components and configuration use
2022-07-02 06:35:00 【Xiao Ming Yuan】
weex-ui
weex - ui Made by Ali Feizhu
https://github.com/alibaba/weex-ui
Use
Get into weex Project root
npm i weex-ui -STo configure
(1) Use
import { WxcComponent1, WxcComponent2 } from "weex-ui" The disadvantage is that it imports all weex-ui Components , Will also pack ;
1. Installing a plug-in
npm i babel-preset-stage-0 babel-plugin-component -D2. Configuration plug-ins
stay .babelrc Add plug-in configuration to the file
{
"presets": [ "es2015", "stage-0" ],
"plugins": [ [ "component", { "libraryName": "weex-ui", "libDir": "packages" } ] ] }3. Use
Take the title as an example
<template class="HomeView">
<div>
<wxc-minibar title=" Rui livestock insurance " background-color="#009ff0" text-color="#FFFFFF" right-text=" more "></wxc-minibar>
<text>Index page </text>
</div>
</template>
<script> import {WxcMinibar} from 'weex-ui' export default{ name: "HomeView", components: { WxcMinibar }, created(){ } } </script>
<style> </style>(2) In another way
Only import the components you want to use
import WxcComponent1 from "weex-ui/packages/wxc-component1"
import WxcComponent2 from "weex-ui/packages/wxc-component2"边栏推荐
- Sublime Text 配置php编译环境
- CUDA user object
- selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
- eslint配置代码自动格式化
- 程序员的自我修养—找工作反思篇
- Dynamic global memory allocation and operation in CUDA
- Error "list" object is not callable in Web automatic switching window
- 实现strStr() II
- pytest(1) 用例收集规则
- Name six schemes to realize delayed messages at one go
猜你喜欢

查询GPU时无进程运行,但是显存却被占用了

Sparse array (nonlinear structure)

代码技巧——Controller参数注解@RequestParam

In depth understanding of JUC concurrency (I) what is JUC
![Data science [9]: SVD (2)](/img/2c/f1a8c3ff34ff3f3cc6e26157a32bfd.png)
Data science [9]: SVD (2)

自学table au

最新CUDA环境配置(Win10 + CUDA 11.6 + VS2019)

unittest.TextTestRunner不生成txt测试报告

Redis - cluster data distribution algorithm & hash slot

链表(线性结构)
随机推荐
一起学习SQL中各种join以及它们的区别
重载全局和成员new/delete
Latest CUDA environment configuration (win10 + CUDA 11.6 + vs2019)
Storage space modifier in CUDA
Sentinel Alibaba open source traffic protection component
Warp matrix functions in CUDA
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
20201025 Visual Studio2019 QT5.14 信号和槽功能的使用
Idea announced a new default UI, which is too refreshing (including the application link)
标签属性disabled selected checked等布尔类型赋值不生效?
Cglib代理-代码增强测试
Thread hierarchy in CUDA
华为MindSpore开源实习机试题
qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)
栈(线性结构)
Sparse array (nonlinear structure)
Redis——大Key问题
ctf-web之练习赛
浅谈三点建议为所有已经毕业和终将毕业的同学
Warp shuffle in CUDA