@cloudbase/weda-ui 2.0.12 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +36 -33
- package/src/configs/components/form/textarea.json +8 -0
- package/src/configs/components/graphicCard.json +1 -1
- package/src/configs/components/navLayout.json +2 -1
- package/src/configs/components/wedaVideo.json +12 -9
- package/src/mp/components/calendar/index.js +4 -1
- package/src/mp/components/calendar/index.json +2 -1
- package/src/mp/components/calendar/index.wxml +1 -1
- package/src/mp/components/calendar/index.wxss +17 -16
- package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/form/checkbox/index.js +5 -1
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/radio/index.js +5 -1
- package/src/mp/components/form/select/index.js +2 -2
- package/src/mp/components/form/textarea/index.js +6 -0
- package/src/mp/components/form/textarea/index.wxml +1 -1
- package/src/mp/components/graphicCard/index.wxss +6 -6
- package/src/mp/components/listView/index.wxss +2 -2
- package/src/mp/components/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.wxss +10 -10
- package/src/mp/components/richText/index.wxml +1 -1
- package/src/mp/components/richText/index.wxss +7 -5
- package/src/mp/components/tabs/index.wxss +1 -2
- package/src/mp/style/weda-ui.wxss +4 -2
- package/src/web/components/calendar/index.css +27 -40
- package/src/web/components/chart/statisticsCard/index.css +9 -8
- package/src/web/components/form/formcell/index.css +1 -14
- package/src/web/components/form/input/index.css +4 -0
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- package/src/web/components/form/location/components/LocationH5/index.css +19 -19
- package/src/web/components/form/select/h5.tsx +1 -1
- package/src/web/components/form/select/index.tsx +1 -1
- package/src/web/components/form/textarea/index.tsx +12 -0
- package/src/web/components/form/uploader/index.css +10 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
- package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
- package/src/web/components/form/uploaderFile/index.css +24 -23
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +9 -4
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +7 -4
- package/src/web/components/graphicCard/index.css +6 -6
- package/src/web/components/listView/index.css +8 -8
- package/src/web/components/lottery/index.tsx +1 -1
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navigationBar/index.css +26 -26
- package/src/web/components/richTextView/index.css +7 -3
- package/src/web/components/tabs/index.css +1 -2
- package/src/web/components/wedaVideo/index.tsx +14 -4
- package/src/web/utils/platform.js +13 -0
- package/src/web/weda-ui.css +7 -9
- package/src/docs/common/format.tsx +0 -115
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -283
- package/src/docs/compsdocs/chart/Bar.mdx +0 -159
- package/src/docs/compsdocs/chart/Line.mdx +0 -100
- package/src/docs/compsdocs/chart/Pie.mdx +0 -83
- package/src/docs/compsdocs/chart/_category_.json +0 -1
- package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
- package/src/docs/compsdocs/database/DataView.mdx +0 -33
- package/src/docs/compsdocs/database/ListView.mdx +0 -33
- package/src/docs/compsdocs/database/_category_.json +0 -1
- package/src/docs/compsdocs/form/Form.mdx +0 -35
- package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
- package/src/docs/compsdocs/form/FormDate.mdx +0 -30
- package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
- package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
- package/src/docs/compsdocs/form/FormInput.mdx +0 -30
- package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
- package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
- package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
- package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -35
- package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
- package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
- package/src/docs/compsdocs/form/FormTime.mdx +0 -30
- package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
- package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
- package/src/docs/compsdocs/form/_category_.json +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -31
- package/src/docs/compsdocs/grid/Container.mdx +0 -41
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -31
- package/src/docs/compsdocs/grid/Header.mdx +0 -31
- package/src/docs/compsdocs/grid/Layout.mdx +0 -25
- package/src/docs/compsdocs/grid/List.mdx +0 -31
- package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
- package/src/docs/compsdocs/grid/Swiper.mdx +0 -57
- package/src/docs/compsdocs/grid/_category_.json +0 -1
- package/src/docs/compsdocs/media/Icon.mdx +0 -31
- package/src/docs/compsdocs/media/Image.mdx +0 -55
- package/src/docs/compsdocs/media/_category_.json +0 -1
- package/src/docs/compsdocs/model/ModelCreate.mdx +0 -44
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -44
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -156
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -44
- package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
- package/src/docs/compsdocs/model/_category_.json +0 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +0 -37
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -52
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -29
- package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
- package/src/docs/compsdocs/navmenu/_category_.json +0 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +0 -45
- package/src/docs/compsdocs/senior/Modal.mdx +0 -57
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -49
- package/src/docs/compsdocs/senior/_category_.json +0 -1
- package/src/docs/compsdocs/show/Calendar.mdx +0 -29
- package/src/docs/compsdocs/show/Divider.mdx +0 -31
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -29
- package/src/docs/compsdocs/show/Item.mdx +0 -31
- package/src/docs/compsdocs/show/ItemList.mdx +0 -48
- package/src/docs/compsdocs/show/Media.mdx +0 -25
- package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
- package/src/docs/compsdocs/show/Swiper.mdx +0 -33
- package/src/docs/compsdocs/show/Tabs.mdx +0 -37
- package/src/docs/compsdocs/show/_category_.json +0 -1
- package/src/docs/compsdocs/show/button.mdx +0 -25
- package/src/docs/compsdocs/text/Link.mdx +0 -43
- package/src/docs/compsdocs/text/RichTextView.mdx +0 -35
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -31
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -45
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# 弹窗
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Modal"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
使用弹窗组件可以快速的实现页面的底部弹窗效果
|
|
12
|
-
|
|
13
|
-
### 使用变量控制弹窗的展示/关闭
|
|
14
|
-
|
|
15
|
-
在实际应用搭建过程中,我们经常会遇到点击按钮后弹出弹窗的场景,实现方式如下:
|
|
16
|
-
|
|
17
|
-
1. 创建一个 boolean 类型的普通变量,并将默认值设置为 false
|
|
18
|
-
|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
2. 将弹窗组件的”显示窗口“属性与上一步中创建的普通变量进行绑定,可以看到绑定完成后弹窗组件变为了隐藏状态
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
3. 创建一个按钮组件,并为按钮组件配置点击时触发变量赋值方法,配置方式如下图所示:
|
|
26
|
-
|
|
27
|
-

|
|
28
|
-
|
|
29
|
-

|
|
30
|
-
|
|
31
|
-

|
|
32
|
-
|
|
33
|
-
4. 配置完成后,在预览区点击按钮组件,可以看到弹窗成功被调起
|
|
34
|
-
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
弹窗组件同样需要通过变量实现关闭,实现方式与上文相似,通过弹窗的 close 事件进行变量赋值,实现弹窗的关闭
|
|
38
|
-
|
|
39
|
-

|
|
40
|
-
|
|
41
|
-
## 属性介绍
|
|
42
|
-
|
|
43
|
-
import TableLayoutView from '../../common/tableView';
|
|
44
|
-
|
|
45
|
-
<TableLayoutView
|
|
46
|
-
componentKey="Modal"
|
|
47
|
-
type="attribute"
|
|
48
|
-
origin="lowCode"
|
|
49
|
-
></TableLayoutView>
|
|
50
|
-
|
|
51
|
-
## 事件介绍
|
|
52
|
-
|
|
53
|
-
<TableLayoutView
|
|
54
|
-
componentKey="Modal"
|
|
55
|
-
type="event"
|
|
56
|
-
origin="lowCode"
|
|
57
|
-
></TableLayoutView>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
# 抽奖机
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="SlotMachine"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
### 点击按钮实现抽奖机滚动
|
|
12
|
-
|
|
13
|
-
1. 创建一个 boolean 类型的普通变量,并将初始值设为 false
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
|
-
2. 在编辑区中添加一个抽奖机组件与一个按钮组件
|
|
18
|
-
|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
3. 在抽奖机的组件配置区中将"立即开始滚动"绑定刚刚刚刚创建的模型变量并且将"刷新后重置"配置项开启
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
4. 为按钮组件配置点击时变量赋值的事件,将控制滚动的变量赋值为 true,如下图所示
|
|
26
|
-
|
|
27
|
-

|
|
28
|
-
|
|
29
|
-
5.保存完成后点击按钮,抽奖机便可以开始正常进行滚动
|
|
30
|
-
|
|
31
|
-

|
|
32
|
-
|
|
33
|
-
## 属性介绍
|
|
34
|
-
|
|
35
|
-
import TableLayoutView from '../../common/tableView';
|
|
36
|
-
|
|
37
|
-
<TableLayoutView
|
|
38
|
-
componentKey="SlotMachine"
|
|
39
|
-
type="attribute"
|
|
40
|
-
origin="lowCode"
|
|
41
|
-
></TableLayoutView>
|
|
42
|
-
|
|
43
|
-
## 事件介绍
|
|
44
|
-
|
|
45
|
-
<TableLayoutView
|
|
46
|
-
componentKey="SlotMachine"
|
|
47
|
-
type="event"
|
|
48
|
-
origin="lowCode"
|
|
49
|
-
></TableLayoutView>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "label": "高级", "position": 70 }
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# 日历
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Calendar"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
展示配置属性中,可添加多个日期,将对应的日期进行置灰或打点标记
|
|
12
|
-
|
|
13
|
-
## 属性介绍
|
|
14
|
-
|
|
15
|
-
import TableLayoutView from '../../common/tableView';
|
|
16
|
-
|
|
17
|
-
<TableLayoutView
|
|
18
|
-
componentKey="Calendar"
|
|
19
|
-
type="attribute"
|
|
20
|
-
origin="sourceCode"
|
|
21
|
-
></TableLayoutView>
|
|
22
|
-
|
|
23
|
-
## 事件介绍
|
|
24
|
-
|
|
25
|
-
<TableLayoutView
|
|
26
|
-
componentKey="Calendar"
|
|
27
|
-
type="event"
|
|
28
|
-
origin="sourceCode"
|
|
29
|
-
></TableLayoutView>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# 分割线
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Divider"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
我们可以使用分割线组件实现页面功能模块之间的分割,如下图所示:
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## 属性介绍
|
|
16
|
-
|
|
17
|
-
import TableLayoutView from '../../common/tableView';
|
|
18
|
-
|
|
19
|
-
<TableLayoutView
|
|
20
|
-
componentKey="Divider"
|
|
21
|
-
type="attribute"
|
|
22
|
-
origin="lowCode"
|
|
23
|
-
></TableLayoutView>
|
|
24
|
-
|
|
25
|
-
## 事件介绍
|
|
26
|
-
|
|
27
|
-
<TableLayoutView
|
|
28
|
-
componentKey="Divider"
|
|
29
|
-
type="event"
|
|
30
|
-
origin="lowCode"
|
|
31
|
-
></TableLayoutView>
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
# 图文卡片
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="GraphicCard"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
支持灵活定义各个卡片的图片内容、跳转交互、PC/移动多端列数和各项细致完备的样式属性
|
|
12
|
-
|
|
13
|
-
## 属性介绍
|
|
14
|
-
|
|
15
|
-
import TableLayoutView from '../../common/tableView';
|
|
16
|
-
|
|
17
|
-
<TableLayoutView
|
|
18
|
-
componentKey="GraphicCard"
|
|
19
|
-
type="attribute"
|
|
20
|
-
origin="sourceCode"
|
|
21
|
-
></TableLayoutView>
|
|
22
|
-
|
|
23
|
-
## 事件介绍
|
|
24
|
-
|
|
25
|
-
<TableLayoutView
|
|
26
|
-
componentKey="GraphicCard"
|
|
27
|
-
type="event"
|
|
28
|
-
origin="sourceCode"
|
|
29
|
-
></TableLayoutView>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# 列表项
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Item"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
在配置区中对组件的各项属性进行自定义配置,即可快速实现常见的列表项展示效果。
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## 属性介绍
|
|
16
|
-
|
|
17
|
-
import TableLayoutView from '../../common/tableView';
|
|
18
|
-
|
|
19
|
-
<TableLayoutView
|
|
20
|
-
componentKey="Item"
|
|
21
|
-
type="attribute"
|
|
22
|
-
origin="lowCode"
|
|
23
|
-
></TableLayoutView>
|
|
24
|
-
|
|
25
|
-
## 事件介绍
|
|
26
|
-
|
|
27
|
-
<TableLayoutView
|
|
28
|
-
componentKey="Item"
|
|
29
|
-
type="event"
|
|
30
|
-
origin="lowCode"
|
|
31
|
-
></TableLayoutView>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# 图文列表
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="ItemList"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
### 手动实现多个列表配置
|
|
12
|
-
|
|
13
|
-
图文列表组件支持通过在配置区中进行多条列表数据的快速生成。
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
|
-
### 通过数据实现列表的自动生成
|
|
18
|
-
|
|
19
|
-
通过配置区的**绑定数据源**按钮可实现列表的自动生成,方法如下:
|
|
20
|
-
|
|
21
|
-
1. 点击配置区的**绑定数据源**按钮,进入数据源绑定模式
|
|
22
|
-
|
|
23
|
-
2. 推荐绑定以下格式的变量以实现从数据模型中获取列表数据
|
|
24
|
-
|
|
25
|
-
1. 变量类型:模型变量
|
|
26
|
-
2. 变量初始化方法:查询列表-内置
|
|
27
|
-
3. 绑定节点
|
|
28
|
-
|
|
29
|
-
3. 绑定时选取「记录列表」节点
|
|
30
|
-
4. 变量绑定完成后,即可对各项属性进行模型变量字段的绑定,配置完成后即可根据模型变量中数据的条数实现列表的自动生成
|
|
31
|
-
|
|
32
|
-
## 属性介绍
|
|
33
|
-
|
|
34
|
-
import TableLayoutView from '../../common/tableView';
|
|
35
|
-
|
|
36
|
-
<TableLayoutView
|
|
37
|
-
componentKey="ItemList"
|
|
38
|
-
type="attribute"
|
|
39
|
-
origin="lowCode"
|
|
40
|
-
></TableLayoutView>
|
|
41
|
-
|
|
42
|
-
## 事件介绍
|
|
43
|
-
|
|
44
|
-
<TableLayoutView
|
|
45
|
-
componentKey="ItemList"
|
|
46
|
-
type="event"
|
|
47
|
-
origin="lowCode"
|
|
48
|
-
></TableLayoutView>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# 图文展示项
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Media"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 属性介绍
|
|
10
|
-
|
|
11
|
-
import TableLayoutView from '../../common/tableView';
|
|
12
|
-
|
|
13
|
-
<TableLayoutView
|
|
14
|
-
componentKey="Media"
|
|
15
|
-
type="attribute"
|
|
16
|
-
origin="lowCode"
|
|
17
|
-
></TableLayoutView>
|
|
18
|
-
|
|
19
|
-
## 事件介绍
|
|
20
|
-
|
|
21
|
-
<TableLayoutView
|
|
22
|
-
componentKey="Media"
|
|
23
|
-
type="event"
|
|
24
|
-
origin="lowCode"
|
|
25
|
-
></TableLayoutView>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# 状态提示
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="StatusTip"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 属性介绍
|
|
10
|
-
|
|
11
|
-
import TableLayoutView from '../../common/tableView';
|
|
12
|
-
|
|
13
|
-
<TableLayoutView
|
|
14
|
-
componentKey="StatusTip"
|
|
15
|
-
type="attribute"
|
|
16
|
-
origin="lowCode"
|
|
17
|
-
></TableLayoutView>
|
|
18
|
-
|
|
19
|
-
## 事件介绍
|
|
20
|
-
|
|
21
|
-
<TableLayoutView
|
|
22
|
-
componentKey="StatusTip"
|
|
23
|
-
type="event"
|
|
24
|
-
origin="lowCode"
|
|
25
|
-
></TableLayoutView>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# 轮播图
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Swiper"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
### 通过简单配置实现轮播图的展示效果
|
|
12
|
-
|
|
13
|
-
仅需在组件配置区中进行简单配置即可实现轮播图的展示效果,也可以在配置区中为每一张图片设置其对应的跳转页面,同时在高级设置中我们支持对轮播图组件的播放动画、锚点等高级属性进行深度的自定义配置。
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
|
-
## 属性介绍
|
|
18
|
-
|
|
19
|
-
import TableLayoutView from '../../common/tableView';
|
|
20
|
-
|
|
21
|
-
<TableLayoutView
|
|
22
|
-
componentKey="Swiper"
|
|
23
|
-
type="attribute"
|
|
24
|
-
origin="sourceCode"
|
|
25
|
-
></TableLayoutView>
|
|
26
|
-
|
|
27
|
-
## 事件介绍
|
|
28
|
-
|
|
29
|
-
<TableLayoutView
|
|
30
|
-
componentKey="Swiper"
|
|
31
|
-
type="event"
|
|
32
|
-
origin="sourceCode"
|
|
33
|
-
></TableLayoutView>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# 选项卡
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Tabs"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
使用选项卡组件可以实现页面的 Tab 切换效果,当在组件配置区点击新增选项卡标签时,在大纲树中会生成对应的**内容插槽**,我们可以通过在内容插槽中放置对应组件实现不同 Tab 的的内容构建,以下文为例:
|
|
12
|
-
|
|
13
|
-
1. 在选项卡的两个内容插槽中分别添加两个文本组件,并为两个文本组件设置不同的内容
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
|
-
2. 可以看到,当进行 Tab 切换时,不同的 Tab 便呈现出了不同的文本组件内容
|
|
18
|
-
|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
## 属性介绍
|
|
22
|
-
|
|
23
|
-
import TableLayoutView from '../../common/tableView';
|
|
24
|
-
|
|
25
|
-
<TableLayoutView
|
|
26
|
-
componentKey="Tabs"
|
|
27
|
-
type="attribute"
|
|
28
|
-
origin="sourceCode"
|
|
29
|
-
></TableLayoutView>
|
|
30
|
-
|
|
31
|
-
## 事件介绍
|
|
32
|
-
|
|
33
|
-
<TableLayoutView
|
|
34
|
-
componentKey="Tabs"
|
|
35
|
-
type="event"
|
|
36
|
-
origin="sourceCode"
|
|
37
|
-
></TableLayoutView>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "label": "展示", "position": 30 }
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# 按钮
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Button"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 属性
|
|
10
|
-
|
|
11
|
-
import TableLayoutView from '../../common/tableView';
|
|
12
|
-
|
|
13
|
-
<TableLayoutView
|
|
14
|
-
componentKey="Button"
|
|
15
|
-
type="attribute"
|
|
16
|
-
origin="lowCode"
|
|
17
|
-
></TableLayoutView>
|
|
18
|
-
|
|
19
|
-
## 事件
|
|
20
|
-
|
|
21
|
-
<TableLayoutView
|
|
22
|
-
componentKey="Button"
|
|
23
|
-
type="event"
|
|
24
|
-
origin="lowCode"
|
|
25
|
-
></TableLayoutView>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# 链接
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Link"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
### 实现基础的超链接功能
|
|
12
|
-
|
|
13
|
-
通过在配置区对应用页面/外部链接以及文本内容进行配置后,点击链接组件时即可跳转至对应的页面。
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
|
-
### 实现模块化的点击跳转功能
|
|
18
|
-
|
|
19
|
-
链接组件同样可实现模块化的跳转功能,在大纲树-链接组件的内容插槽中拖入单个/多个组件,即可将内容插槽中的组件作为一个模块并实现点击跳转功能。
|
|
20
|
-
|
|
21
|
-

|
|
22
|
-
|
|
23
|
-
## 属性介绍
|
|
24
|
-
|
|
25
|
-
import TableLayoutView from '../../common/tableView';
|
|
26
|
-
|
|
27
|
-
<TableLayoutView
|
|
28
|
-
componentKey="Link"
|
|
29
|
-
type="attribute"
|
|
30
|
-
origin="sourceCode"
|
|
31
|
-
></TableLayoutView>
|
|
32
|
-
|
|
33
|
-
## 事件介绍
|
|
34
|
-
|
|
35
|
-
<TableLayoutView
|
|
36
|
-
componentKey="Link"
|
|
37
|
-
type="event"
|
|
38
|
-
origin="sourceCode"
|
|
39
|
-
></TableLayoutView>
|
|
40
|
-
|
|
41
|
-
## 限制说明
|
|
42
|
-
|
|
43
|
-
由于小程序仅支持通过 webview 组件的方式进行外部链接的跳转,因此链接组件不支持在小程序中进行构建使用。
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# 富文本展示
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="RichTextView"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
富文本展示组件支持对 html 语言进行渲染,在组件配置区中输入 html 语言即可实现自定义的页面展示效果。
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## 属性介绍
|
|
16
|
-
|
|
17
|
-
import TableLayoutView from '../../common/tableView';
|
|
18
|
-
|
|
19
|
-
<TableLayoutView
|
|
20
|
-
componentKey="RichTextView"
|
|
21
|
-
type="attribute"
|
|
22
|
-
origin="sourceCode"
|
|
23
|
-
></TableLayoutView>
|
|
24
|
-
|
|
25
|
-
## 事件介绍
|
|
26
|
-
|
|
27
|
-
<TableLayoutView
|
|
28
|
-
componentKey="RichTextView"
|
|
29
|
-
type="event"
|
|
30
|
-
origin="sourceCode"
|
|
31
|
-
></TableLayoutView>
|
|
32
|
-
|
|
33
|
-
## 限制说明
|
|
34
|
-
|
|
35
|
-
通过该功能构建的展示内容可能无法在小程序中生效,请以小程序实际运行效果为准。
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# 文本
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Text"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
文本组件可以用于在页面中对文本内容进行基础的展示,通过在配置区可以对文本的样式属性进行自定义的调整。
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## 属性介绍
|
|
16
|
-
|
|
17
|
-
import TableLayoutView from '../../common/tableView';
|
|
18
|
-
|
|
19
|
-
<TableLayoutView
|
|
20
|
-
componentKey="Text"
|
|
21
|
-
type="attribute"
|
|
22
|
-
origin="sourceCode"
|
|
23
|
-
></TableLayoutView>
|
|
24
|
-
|
|
25
|
-
## 事件介绍
|
|
26
|
-
|
|
27
|
-
<TableLayoutView
|
|
28
|
-
componentKey="Text"
|
|
29
|
-
type="event"
|
|
30
|
-
origin="sourceCode"
|
|
31
|
-
></TableLayoutView>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# 标题
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Title"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="lowCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
标题组件自带不同的标题级别属性,对编辑区进行简单的配置后即可在页面实现不同的标题层级展示。
|
|
12
|
-
|
|
13
|
-

|
|
14
|
-
|
|
15
|
-
## 属性介绍
|
|
16
|
-
|
|
17
|
-
import TableLayoutView from '../../common/tableView';
|
|
18
|
-
|
|
19
|
-
<TableLayoutView
|
|
20
|
-
componentKey="Title"
|
|
21
|
-
type="attribute"
|
|
22
|
-
origin="lowCode"
|
|
23
|
-
></TableLayoutView>
|
|
24
|
-
|
|
25
|
-
## 事件介绍
|
|
26
|
-
|
|
27
|
-
<TableLayoutView
|
|
28
|
-
componentKey="Title"
|
|
29
|
-
type="event"
|
|
30
|
-
origin="lowCode"
|
|
31
|
-
></TableLayoutView>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{ "label": "文本", "position": 10 }
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# 获取手机号
|
|
2
|
-
|
|
3
|
-
<TableLayoutView
|
|
4
|
-
componentKey="Phone"
|
|
5
|
-
type="description"
|
|
6
|
-
origin="sourceCode"
|
|
7
|
-
></TableLayoutView>
|
|
8
|
-
|
|
9
|
-
## 使用说明
|
|
10
|
-
|
|
11
|
-
使用获取手机号组件能够在小程序运行态对用户的手机号进行获取,使用方式如下:
|
|
12
|
-
|
|
13
|
-
1.创建应用,应用构建类型需要为小程序构建或三端构建。
|
|
14
|
-
|
|
15
|
-

|
|
16
|
-
|
|
17
|
-
2.在编辑器中添加**获取手机号**组件。
|
|
18
|
-
|
|
19
|
-

|
|
20
|
-
|
|
21
|
-
3.为应用创建一个字符串类型的普通变量,用于接收获取到的手机号信息。
|
|
22
|
-
|
|
23
|
-

|
|
24
|
-
|
|
25
|
-
4.为获取手机号组件配置变量赋值事件,实现当用户授权成功后将返回的手机号信息赋值给步骤 3 中的普通变量。
|
|
26
|
-
|
|
27
|
-

|
|
28
|
-
|
|
29
|
-
5.该组件仅在小程序真实运行状态下生效,因此我们在编辑器中添加一个文本组件并与普通变量进行绑定,当用户在小程序中点击获取手机号按钮并授权成功时,文本组件便会展示对应的手机号信息。
|
|
30
|
-
|
|
31
|
-

|
|
32
|
-
|
|
33
|
-
6.将应用发布到小程序,可以看到当点击获取手机号按钮并授权时,文本组件便会对获取到的手机号码信息进行展示。
|
|
34
|
-
|
|
35
|
-

|
|
36
|
-
|
|
37
|
-
## 组件使用限制
|
|
38
|
-
|
|
39
|
-
1.该组件仅支持在小程序端使用,并且小程序必须为**企业主体**。
|
|
40
|
-
|
|
41
|
-
2.该组件必须在小程序真实环境使用才能够看到实际效果。
|
|
42
|
-
|
|
43
|
-
## 属性
|
|
44
|
-
|
|
45
|
-
import TableLayoutView from '../../common/tableView';
|
|
46
|
-
|
|
47
|
-
<TableLayoutView
|
|
48
|
-
componentKey="Phone"
|
|
49
|
-
type="attribute"
|
|
50
|
-
origin="sourceCode"
|
|
51
|
-
></TableLayoutView>
|
|
52
|
-
|
|
53
|
-
## 事件
|
|
54
|
-
|
|
55
|
-
<TableLayoutView
|
|
56
|
-
componentKey="Phone"
|
|
57
|
-
type="event"
|
|
58
|
-
origin="sourceCode"
|
|
59
|
-
></TableLayoutView>
|