当前位置:网站首页>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 -S
To 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 -D
2. 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"
边栏推荐
- 由于不正常断电导致的unexpected inconsistency;RUN fsck MANUALLY问题已解决
- Name six schemes to realize delayed messages at one go
- 底层机制Mvcc
- FE - Weex 使用简单封装数据加载插件为全局加载方法
- Asynchronous data copy in CUDA
- MySQL的10大经典错误
- qq邮箱接收不到jenkins构建后使用email extension 发送的邮件(timestamp 或 auth.......)
- Codeforces Round #797 (Div. 3) A—E
- CUDA中的函数执行空间说明符
- automation - Jenkins pipline 执行 nodejs 命令时,提示 node: command not found
猜你喜欢
Amazon AWS data Lake Work Pit 1
Thread hierarchy in CUDA
Sentinel rules persist to Nacos
Alibaba cloud MFA binding Chrome browser
ShardingSphere-JDBC篇
队列(线性结构)
递归(迷宫问题、8皇后问题)
20201002 VS 2019 QT5.14 开发的程序打包
Summary of advertisement business bug replay
The intern left a big hole when he ran away and made two online problems, which made me miserable
随机推荐
When requesting resttemplate, set the request header, request parameters, and request body.
栈(线性结构)
【程序员的自我修养]—找工作反思篇二
深入学习JVM底层(二):HotSpot虚拟机对象
Selenium memo: selenium\webdriver\remote\remote_ connection. Py:374: resourcewarning: unclosed < XXXX > solution
20201025 Visual Studio2019 QT5.14 信号和槽功能的使用
ctf三计
Alibaba cloud MFA binding Chrome browser
Does the assignment of Boolean types such as tag attribute disabled selected checked not take effect?
selenium备忘录:selenium\webdriver\remote\remote_connection.py:374: ResourceWarning: unclosed<xxxx>解决办法
浅谈三点建议为所有已经毕业和终将毕业的同学
CUDA中的异步数据拷贝
Golang--map扩容机制(含源码)
(第一百篇BLOG)写于博士二年级结束-20200818
Mech 3002 explanation
稀疏数组(非线性结构)
selenium+msedgedriver+edge浏览器安装驱动的坑
链表(线性结构)
Pytest (1) case collection rules
Cglib agent - Code enhancement test