当前位置:网站首页>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"边栏推荐
- virtualenv和pipenv安装
- TensorRT的功能
- selenium的web自动化中常用的js-修改元素属性翻页
- Linked list (linear structure)
- CUDA user object
- Android - Kotlin 下使用 Room 遇到 There are multiple good constructors and Room will ... 问题
- 记录一次RDS故障排除--RDS容量徒增
- Latest CUDA environment configuration (win10 + CUDA 11.6 + vs2019)
- 【每日一题】—华为机试01
- Find the highest value of the current element Z-index of the page
猜你喜欢
随机推荐
实习生跑路留了一个大坑,搞出2个线上问题,我被坑惨了
Render minecraft scenes into real scenes using NVIDIA GPU
Sentinel规则持久化到Nacos
FE - Eggjs 结合 Typeorm 出现连接不了数据库
阿里云MFA绑定Chrome浏览器
TensorRT的命令行程序
【张三学C语言之】—深入理解数据存储
CUDA用户对象
Find the highest value of the current element Z-index of the page
[self cultivation of programmers] - Reflection on job hunting Part II
Flask-Migrate 检测不到db.string() 等长度变化
When requesting resttemplate, set the request header, request parameters, and request body.
Data science [viii]: SVD (I)
Win电脑截图黑屏解决办法
Name six schemes to realize delayed messages at one go
IDEA公布全新默认UI,太清爽了(内含申请链接)
重载全局和成员new/delete
Decryption skills of encrypted compressed files
Pytest (1) case collection rules
TensorRT的数据格式定义详解









