@vtj/materials 0.10.1-alpha.6 → 0.10.1
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/dist/assets/antdv/index.umd.js +2 -2
- package/dist/assets/charts/index.umd.js +2 -2
- package/dist/assets/element/index.umd.js +2 -2
- package/dist/assets/ui/index.umd.js +2 -2
- package/dist/assets/uni-h5/index.umd.js +2 -2
- package/dist/assets/uni-ui/index.umd.js +3 -3
- package/dist/assets/vant/index.umd.js +5 -5
- package/dist/deps/@vtj/charts/index.umd.js +2 -2
- package/dist/deps/@vtj/icons/index.umd.js +2 -2
- package/dist/deps/@vtj/ui/index.umd.js +2 -2
- package/dist/deps/@vtj/utils/index.umd.js +2 -2
- package/dist/deps/uni-ui/index.umd.js +1 -1
- package/dist/deps/uni-ui/style.css +1 -1
- package/package.json +6 -6
- package/src/uni-ui/components/badge.ts +5 -1
- package/src/uni-ui/components/breadcrumb.ts +76 -0
- package/src/uni-ui/components/calendar.ts +63 -0
- package/src/uni-ui/components/card.ts +113 -0
- package/src/uni-ui/components/collapse.ts +118 -0
- package/src/uni-ui/components/combox.ts +51 -0
- package/src/uni-ui/components/countdown.ts +92 -0
- package/src/uni-ui/components/dataCheckbox.ts +104 -0
- package/src/uni-ui/components/dataPicker.ts +146 -0
- package/src/uni-ui/components/dataSelect.ts +68 -0
- package/src/uni-ui/components/dateformat.ts +42 -0
- package/src/uni-ui/components/datetimePicker.ts +103 -0
- package/src/uni-ui/components/drawer.ts +38 -0
- package/src/uni-ui/components/easyinput.ts +159 -0
- package/src/uni-ui/components/fab.ts +89 -0
- package/src/uni-ui/components/fav.ts +65 -0
- package/src/uni-ui/components/filePicker.ts +127 -0
- package/src/uni-ui/components/forms.ts +209 -0
- package/src/uni-ui/components/goodsNav.ts +31 -0
- package/src/uni-ui/components/grid.ts +104 -0
- package/src/uni-ui/components/group.ts +50 -0
- package/src/uni-ui/components/icons.ts +47 -0
- package/src/uni-ui/components/index.ts +89 -1
- package/src/uni-ui/components/indexedList.ts +51 -0
- package/src/uni-ui/components/link.ts +60 -0
- package/src/uni-ui/components/list.ts +259 -0
- package/src/uni-ui/components/loadMore.ts +61 -0
- package/src/uni-ui/components/navbar.ts +121 -0
- package/src/uni-ui/components/noticeBar.ts +83 -0
- package/src/uni-ui/components/numberbox.ts +49 -0
- package/src/uni-ui/components/pagination.ts +59 -0
- package/src/uni-ui/components/popup.ts +206 -0
- package/src/uni-ui/components/rate.ts +89 -0
- package/src/uni-ui/components/row.ts +126 -0
- package/src/uni-ui/components/searchBar.ts +84 -0
- package/src/uni-ui/components/section.ts +68 -0
- package/src/uni-ui/components/segmentedControl.ts +48 -0
- package/src/uni-ui/components/steps.ts +55 -0
- package/src/uni-ui/components/swipeAction.ts +133 -0
- package/src/uni-ui/components/swiperDot.ts +114 -0
- package/src/uni-ui/components/table.ts +132 -0
- package/src/uni-ui/components/tag.ts +56 -0
- package/src/uni-ui/components/title.ts +49 -0
- package/src/uni-ui/components/tooltip.ts +32 -0
- package/src/uni-ui/components/transition.ts +49 -0
- package/src/uni-ui/index.ts +30 -13
- package/src/uni-ui/lib/uni-col/uni-col.vue +324 -0
- package/src/uni-ui/lib/uni-data-select/uni-data-select.vue +590 -0
- package/src/uni-ui/lib/uni-datetime-picker/calendar-item.vue +177 -177
- package/src/uni-ui/lib/uni-datetime-picker/calendar.vue +947 -947
- package/src/uni-ui/lib/uni-datetime-picker/i18n/en.json +22 -22
- package/src/uni-ui/lib/uni-datetime-picker/i18n/index.js +7 -7
- package/src/uni-ui/lib/uni-datetime-picker/time-picker.vue +939 -939
- package/src/uni-ui/lib/uni-datetime-picker/util.js +419 -419
- package/src/uni-ui/lib/uni-easyinput/common.js +54 -0
- package/src/uni-ui/lib/uni-easyinput/uni-easyinput.vue +790 -0
- package/src/uni-ui/lib/uni-forms/uni-forms.vue +416 -416
- package/src/uni-ui/lib/uni-forms/utils.js +281 -281
- package/src/uni-ui/lib/uni-forms/validate.js +485 -485
- package/src/uni-ui/lib/uni-forms-item/uni-forms-item.vue +630 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/en.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/index.js +8 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hans.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/i18n/zh-Hant.json +6 -0
- package/src/uni-ui/lib/uni-goods-nav/uni-goods-nav.vue +231 -0
- package/src/uni-ui/lib/uni-icons/uni-icons.uvue +91 -0
- package/src/uni-ui/lib/uni-icons/uni-icons.vue +114 -0
- package/src/uni-ui/lib/uni-icons/uniicons.css +664 -0
- package/src/uni-ui/lib/uni-icons/uniicons.ttf +0 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file.ts +664 -0
- package/src/uni-ui/lib/uni-icons/uniicons_file_vue.js +649 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list-item.vue +144 -0
- package/src/uni-ui/lib/uni-indexed-list/uni-indexed-list.vue +404 -0
- package/src/uni-ui/lib/uni-list/uni-list.vue +123 -0
- package/src/uni-ui/lib/uni-list/uni-refresh.vue +65 -0
- package/src/uni-ui/lib/uni-list/uni-refresh.wxs +87 -0
- package/src/uni-ui/lib/uni-popup-dialog/keypress.js +45 -0
- package/src/uni-ui/lib/uni-popup-dialog/uni-popup-dialog.vue +324 -0
- package/src/uni-ui/lib/uni-rate/uni-rate.vue +361 -0
- package/src/uni-ui/lib/uni-table/uni-table.vue +496 -0
- package/src/uni-ui/lib/uni-td/uni-td.vue +99 -0
- package/src/uni-ui/lib/uni-th/uni-th.vue +310 -283
- package/src/uni-ui/lib/uni-tr/uni-tr.vue +194 -170
- package/src/version.ts +2 -2
@@ -0,0 +1,55 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription = {
|
4
|
+
name: 'UniSteps',
|
5
|
+
label: '步骤条',
|
6
|
+
categoryId: 'ext',
|
7
|
+
props: [
|
8
|
+
{
|
9
|
+
name: 'active',
|
10
|
+
title: '当前步骤',
|
11
|
+
defaultValue: 0,
|
12
|
+
setters: 'NumberSetter'
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'direction',
|
16
|
+
title: '排列方向',
|
17
|
+
defaultValue: 'row',
|
18
|
+
setters: 'SelectSetter',
|
19
|
+
options: ['row', 'column']
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'active-color',
|
23
|
+
title: '选中状态的颜色',
|
24
|
+
defaultValue: '#1aad19',
|
25
|
+
setters: 'ColorSetter'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
name: 'options',
|
29
|
+
title: '数据源',
|
30
|
+
setters: 'ArraySetter'
|
31
|
+
}
|
32
|
+
],
|
33
|
+
events: [],
|
34
|
+
snippet: {
|
35
|
+
props: {
|
36
|
+
active: 1,
|
37
|
+
options: [
|
38
|
+
{
|
39
|
+
title: '事件一'
|
40
|
+
},
|
41
|
+
{
|
42
|
+
title: '事件二'
|
43
|
+
},
|
44
|
+
{
|
45
|
+
title: '事件三'
|
46
|
+
},
|
47
|
+
{
|
48
|
+
title: '事件四'
|
49
|
+
}
|
50
|
+
]
|
51
|
+
}
|
52
|
+
}
|
53
|
+
};
|
54
|
+
|
55
|
+
export default desc;
|
@@ -0,0 +1,133 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription[] = [
|
4
|
+
{
|
5
|
+
name: 'UniSwipeAction',
|
6
|
+
label: '滑动操作',
|
7
|
+
categoryId: 'ext',
|
8
|
+
snippet: {
|
9
|
+
children: [
|
10
|
+
{
|
11
|
+
name: 'UniSwipeActionItem',
|
12
|
+
props: {
|
13
|
+
leftOptions: [
|
14
|
+
{
|
15
|
+
text: '取消',
|
16
|
+
style: {
|
17
|
+
backgroundColor: '#007aff'
|
18
|
+
}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
text: '确认',
|
22
|
+
style: {
|
23
|
+
backgroundColor: '#F56C6C'
|
24
|
+
}
|
25
|
+
}
|
26
|
+
],
|
27
|
+
threshold: '0',
|
28
|
+
rightOptions: [
|
29
|
+
{
|
30
|
+
text: '取消置顶'
|
31
|
+
}
|
32
|
+
]
|
33
|
+
},
|
34
|
+
children: [
|
35
|
+
{
|
36
|
+
name: 'View',
|
37
|
+
children: [{ name: 'Text', children: '使用数据填充' }]
|
38
|
+
}
|
39
|
+
]
|
40
|
+
}
|
41
|
+
]
|
42
|
+
}
|
43
|
+
},
|
44
|
+
{
|
45
|
+
name: 'UniSwipeActionItem',
|
46
|
+
label: '滑动操作项',
|
47
|
+
categoryId: 'ext',
|
48
|
+
props: [
|
49
|
+
{
|
50
|
+
name: 'show',
|
51
|
+
title: '开启关闭组件',
|
52
|
+
defaultValue: 'none',
|
53
|
+
setters: 'SelectSetter',
|
54
|
+
options: ['left', 'right', 'none']
|
55
|
+
},
|
56
|
+
{
|
57
|
+
name: 'threshold',
|
58
|
+
title: '滑动阈值',
|
59
|
+
defaultValue: 20,
|
60
|
+
setters: 'NumberSetter'
|
61
|
+
},
|
62
|
+
{
|
63
|
+
name: 'disabled',
|
64
|
+
title: '是否禁止滑动',
|
65
|
+
defaultValue: false,
|
66
|
+
setters: 'BooleanSetter'
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: 'autoClose',
|
70
|
+
title: '其他组件开启的时候,当前组件是否自动关闭',
|
71
|
+
defaultValue: true,
|
72
|
+
setters: 'BooleanSetter'
|
73
|
+
},
|
74
|
+
{
|
75
|
+
name: 'left-options',
|
76
|
+
title: '左侧选项内容及样式',
|
77
|
+
defaultValue: {
|
78
|
+
text: '按钮的文字',
|
79
|
+
style: {
|
80
|
+
backgroundColor: '#C7C6CD',
|
81
|
+
color: '#FFFFFF',
|
82
|
+
fontSize: '14px'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
setters: ['ArraySetter', 'ObjectSetter']
|
86
|
+
},
|
87
|
+
{
|
88
|
+
name: 'right-options',
|
89
|
+
title: '右侧选项内容及样式',
|
90
|
+
defaultValue: {
|
91
|
+
text: '按钮的文字',
|
92
|
+
style: {
|
93
|
+
backgroundColor: '#C7C6CD',
|
94
|
+
color: '#FFFFFF',
|
95
|
+
fontSize: '14px'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
setters: ['ArraySetter', 'ObjectSetter']
|
99
|
+
}
|
100
|
+
],
|
101
|
+
events: ['click', 'change'],
|
102
|
+
slots: ['default', 'left', 'right'],
|
103
|
+
snippet: {
|
104
|
+
props: {
|
105
|
+
leftOptions: [
|
106
|
+
{
|
107
|
+
text: '取消',
|
108
|
+
style: {
|
109
|
+
backgroundColor: '#007aff'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
{
|
113
|
+
text: '确认',
|
114
|
+
style: {
|
115
|
+
backgroundColor: '#F56C6C'
|
116
|
+
}
|
117
|
+
}
|
118
|
+
],
|
119
|
+
threshold: '0',
|
120
|
+
rightOptions: [
|
121
|
+
{
|
122
|
+
text: '取消置顶'
|
123
|
+
}
|
124
|
+
]
|
125
|
+
},
|
126
|
+
children: [
|
127
|
+
{ name: 'View', children: [{ name: 'Text', children: '使用数据填充' }] }
|
128
|
+
]
|
129
|
+
}
|
130
|
+
}
|
131
|
+
];
|
132
|
+
|
133
|
+
export default desc;
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription = {
|
4
|
+
name: 'UniSwipeDot',
|
5
|
+
label: '轮播图指示点',
|
6
|
+
categoryId: 'ext',
|
7
|
+
props: [
|
8
|
+
{
|
9
|
+
name: 'current',
|
10
|
+
title: '当前指示点索引',
|
11
|
+
defaultValue: 0,
|
12
|
+
setters: 'NumberSetter'
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'mode',
|
16
|
+
title: '指示点的类型',
|
17
|
+
defaultValue: 'default',
|
18
|
+
setters: 'SelectSetter',
|
19
|
+
options: ['default', 'round', 'nav', 'indexes']
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'field',
|
23
|
+
title: 'mode 为 nav 时,显示的内容字段(mode = nav 时必填)',
|
24
|
+
defaultValue: '',
|
25
|
+
setters: 'StringSetter'
|
26
|
+
},
|
27
|
+
{
|
28
|
+
name: 'info',
|
29
|
+
title: '轮播图的数据,通过数组长度决定指示点个数',
|
30
|
+
defaultValue: '',
|
31
|
+
setters: 'ArraySetter'
|
32
|
+
},
|
33
|
+
{
|
34
|
+
name: 'dotsStyles',
|
35
|
+
title: '指示点样式',
|
36
|
+
defaultValue: '',
|
37
|
+
setters: 'ObjectSetter'
|
38
|
+
}
|
39
|
+
],
|
40
|
+
snippet: {
|
41
|
+
props: {
|
42
|
+
info: [
|
43
|
+
{
|
44
|
+
colorClass: 'uni-bg-red',
|
45
|
+
url: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
|
46
|
+
content: '内容 A'
|
47
|
+
},
|
48
|
+
{
|
49
|
+
colorClass: 'uni-bg-green',
|
50
|
+
url: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
|
51
|
+
content: '内容 B'
|
52
|
+
},
|
53
|
+
{
|
54
|
+
colorClass: 'uni-bg-blue',
|
55
|
+
url: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg',
|
56
|
+
content: '内容 C'
|
57
|
+
}
|
58
|
+
],
|
59
|
+
dotsStyles: {
|
60
|
+
backgroundColor: 'rgba(255, 90, 95,0.3)',
|
61
|
+
border: '1px rgba(255, 90, 95,0.3) solid',
|
62
|
+
color: '#fff',
|
63
|
+
selectedBackgroundColor: 'rgba(255, 90, 95,0.9)',
|
64
|
+
selectedBorder: '1px rgba(255, 90, 95,0.9) solid'
|
65
|
+
},
|
66
|
+
current: 0,
|
67
|
+
mode: 'default'
|
68
|
+
},
|
69
|
+
children: [
|
70
|
+
{
|
71
|
+
name: 'Swiper',
|
72
|
+
props: {
|
73
|
+
current: 0
|
74
|
+
},
|
75
|
+
children: [
|
76
|
+
{
|
77
|
+
name: 'SwiperItem',
|
78
|
+
children: [
|
79
|
+
{
|
80
|
+
name: 'View',
|
81
|
+
children: [
|
82
|
+
{
|
83
|
+
name: 'Text',
|
84
|
+
props: {
|
85
|
+
style: {
|
86
|
+
color: '#fff',
|
87
|
+
fontSize: '32px'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
children: {
|
91
|
+
type: 'JSExpression',
|
92
|
+
value: 'this.context.item.name'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
]
|
96
|
+
}
|
97
|
+
],
|
98
|
+
directives: [
|
99
|
+
{
|
100
|
+
name: 'vFor',
|
101
|
+
value: {
|
102
|
+
type: 'JSExpression',
|
103
|
+
value: '4'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
]
|
107
|
+
}
|
108
|
+
]
|
109
|
+
}
|
110
|
+
]
|
111
|
+
}
|
112
|
+
};
|
113
|
+
|
114
|
+
export default desc;
|
@@ -0,0 +1,132 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription[] = [
|
4
|
+
{
|
5
|
+
name: 'UniTable',
|
6
|
+
label: '表格',
|
7
|
+
childIncludes: ['UniTr'],
|
8
|
+
categoryId: 'ext',
|
9
|
+
props: [
|
10
|
+
{
|
11
|
+
name: 'border',
|
12
|
+
title: '是否带有纵向边框',
|
13
|
+
defaultValue: false,
|
14
|
+
setters: 'BooleanSetter'
|
15
|
+
},
|
16
|
+
{
|
17
|
+
name: 'stripe',
|
18
|
+
title: '是否显示斑马线样式',
|
19
|
+
defaultValue: true,
|
20
|
+
setters: 'BooleanSetter'
|
21
|
+
},
|
22
|
+
{
|
23
|
+
name: 'type',
|
24
|
+
title: '值为type="selection" 时开启多选',
|
25
|
+
defaultValue: '',
|
26
|
+
setters: 'StringSetter'
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: 'emptyText',
|
30
|
+
title: '空数据时显示的文本内容',
|
31
|
+
defaultValue: '没有更多数据',
|
32
|
+
setters: 'StringSetter'
|
33
|
+
},
|
34
|
+
{
|
35
|
+
name: 'loading',
|
36
|
+
title: '显示加载中',
|
37
|
+
defaultValue: false,
|
38
|
+
setters: 'BooleanSetter'
|
39
|
+
}
|
40
|
+
],
|
41
|
+
events: ['selection-change'],
|
42
|
+
snippet: {
|
43
|
+
props: {
|
44
|
+
border: true,
|
45
|
+
stripe: true,
|
46
|
+
emptyText: '暂无更多数据'
|
47
|
+
},
|
48
|
+
children: [
|
49
|
+
{
|
50
|
+
name: 'UniTr',
|
51
|
+
children: [
|
52
|
+
{ name: 'UniTh', props: { align: 'center' }, children: '日期' },
|
53
|
+
{ name: 'UniTh', props: { align: 'center' }, children: '姓名' },
|
54
|
+
{ name: 'UniTh', props: { align: 'center' }, children: '地址' }
|
55
|
+
]
|
56
|
+
},
|
57
|
+
{
|
58
|
+
name: 'UniTr',
|
59
|
+
children: [
|
60
|
+
{ name: 'UniTd', children: '2020-10-20' },
|
61
|
+
{ name: 'UniTd', children: 'Jason' },
|
62
|
+
{ name: 'UniTd', children: '北京市海淀区' }
|
63
|
+
]
|
64
|
+
}
|
65
|
+
]
|
66
|
+
}
|
67
|
+
},
|
68
|
+
{
|
69
|
+
name: 'UniTr',
|
70
|
+
label: '表格行',
|
71
|
+
childIncludes: ['UniTh', 'UniTd'],
|
72
|
+
categoryId: 'ext',
|
73
|
+
props: [],
|
74
|
+
snippet: {}
|
75
|
+
},
|
76
|
+
{
|
77
|
+
name: 'UniTh',
|
78
|
+
label: '表格头',
|
79
|
+
categoryId: 'ext',
|
80
|
+
props: [
|
81
|
+
{
|
82
|
+
name: 'width',
|
83
|
+
title: '单元格宽度',
|
84
|
+
defaultValue: '',
|
85
|
+
setters: 'StringSetter'
|
86
|
+
},
|
87
|
+
{
|
88
|
+
name: 'align',
|
89
|
+
title: '表头对齐方式',
|
90
|
+
defaultValue: 'left',
|
91
|
+
setters: 'SelectSetter',
|
92
|
+
options: ['left', 'center', 'right']
|
93
|
+
},
|
94
|
+
{
|
95
|
+
name: 'filter-type',
|
96
|
+
title: '筛选类型',
|
97
|
+
setters: 'SelectSetter',
|
98
|
+
options: ['search', 'select', 'range', 'date']
|
99
|
+
},
|
100
|
+
{
|
101
|
+
name: 'filter-data',
|
102
|
+
title: '筛选数据',
|
103
|
+
setters: 'ArraySetter'
|
104
|
+
},
|
105
|
+
{
|
106
|
+
name: 'sortable',
|
107
|
+
title: '是否启用排序',
|
108
|
+
defaultValue: false,
|
109
|
+
setters: 'BooleanSetter'
|
110
|
+
}
|
111
|
+
],
|
112
|
+
events: ['sort-change', 'filter-change'],
|
113
|
+
snippet: {}
|
114
|
+
},
|
115
|
+
{
|
116
|
+
name: 'UniTd',
|
117
|
+
label: '单元格',
|
118
|
+
categoryId: 'ext',
|
119
|
+
props: [
|
120
|
+
{
|
121
|
+
name: 'align',
|
122
|
+
title: '表头对齐方式',
|
123
|
+
defaultValue: 'left',
|
124
|
+
setters: 'SelectSetter',
|
125
|
+
options: ['left', 'center', 'right']
|
126
|
+
}
|
127
|
+
],
|
128
|
+
snippet: {}
|
129
|
+
}
|
130
|
+
];
|
131
|
+
|
132
|
+
export default desc;
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription = {
|
4
|
+
name: 'UniTag',
|
5
|
+
label: '标签',
|
6
|
+
categoryId: 'ext',
|
7
|
+
props: [
|
8
|
+
{
|
9
|
+
name: 'text',
|
10
|
+
title: '标签内容',
|
11
|
+
defaultValue: '',
|
12
|
+
setters: 'StringSetter'
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'size',
|
16
|
+
title: '大小尺寸',
|
17
|
+
defaultValue: 'normal',
|
18
|
+
setters: 'SelectSetter',
|
19
|
+
options: ['normal', 'small']
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'type',
|
23
|
+
title: '颜色类型',
|
24
|
+
defaultValue: 'default',
|
25
|
+
setters: 'SelectSetter',
|
26
|
+
options: ['default', 'primary', 'success', 'warning', 'error', 'royal']
|
27
|
+
},
|
28
|
+
{
|
29
|
+
name: 'disabled',
|
30
|
+
title: '是否为禁用状态',
|
31
|
+
defaultValue: false,
|
32
|
+
setters: 'BooleanSetter'
|
33
|
+
},
|
34
|
+
{
|
35
|
+
name: 'inverted',
|
36
|
+
title: '是否无需背景颜色(空心标签)',
|
37
|
+
defaultValue: false,
|
38
|
+
setters: 'BooleanSetter'
|
39
|
+
},
|
40
|
+
{
|
41
|
+
name: 'circle',
|
42
|
+
title: '是否为圆角',
|
43
|
+
defaultValue: false,
|
44
|
+
setters: 'BooleanSetter'
|
45
|
+
}
|
46
|
+
],
|
47
|
+
events: ['click'],
|
48
|
+
snippet: {
|
49
|
+
props: {
|
50
|
+
text: '标签',
|
51
|
+
type: 'royal'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
};
|
55
|
+
|
56
|
+
export default desc;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription = {
|
4
|
+
name: 'UniTitle',
|
5
|
+
label: '章节标题',
|
6
|
+
categoryId: 'ext',
|
7
|
+
props: [
|
8
|
+
{
|
9
|
+
name: 'type',
|
10
|
+
title: '标题类型',
|
11
|
+
defaultValue: '',
|
12
|
+
setters: 'SelectSetter',
|
13
|
+
options: ['h1', 'h2', 'h3', 'h4', 'h5']
|
14
|
+
},
|
15
|
+
{
|
16
|
+
name: 'title',
|
17
|
+
title: '章节标题内容',
|
18
|
+
defaultValue: '',
|
19
|
+
setters: 'StringSetter'
|
20
|
+
},
|
21
|
+
{
|
22
|
+
name: 'align',
|
23
|
+
title: '对齐方式',
|
24
|
+
setters: 'SelectSetter',
|
25
|
+
options: ['left', 'center', 'right']
|
26
|
+
},
|
27
|
+
{
|
28
|
+
name: 'color',
|
29
|
+
title: '字体颜色',
|
30
|
+
defaultValue: '',
|
31
|
+
setters: 'ColorSetter'
|
32
|
+
},
|
33
|
+
{
|
34
|
+
name: 'stat',
|
35
|
+
title: '是否开启统计功能呢',
|
36
|
+
defaultValue: false,
|
37
|
+
setters: 'BooleanSetter'
|
38
|
+
}
|
39
|
+
],
|
40
|
+
snippet: {
|
41
|
+
props: {
|
42
|
+
type: 'h1',
|
43
|
+
title: 'h1 一级标题',
|
44
|
+
color: '#027fff'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
48
|
+
|
49
|
+
export default desc;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription = {
|
4
|
+
name: 'UniTooltip',
|
5
|
+
label: '文字提示',
|
6
|
+
categoryId: 'ext',
|
7
|
+
props: [
|
8
|
+
{
|
9
|
+
name: 'content',
|
10
|
+
title: '弹出层显示的内容',
|
11
|
+
defaultValue: '',
|
12
|
+
setters: 'StringSetter'
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'placement',
|
16
|
+
title: 'Tooltip 的出现位置',
|
17
|
+
defaultValue: 'left',
|
18
|
+
setters: 'SelectSetter',
|
19
|
+
options: ['left', 'right', 'top', 'bottom']
|
20
|
+
}
|
21
|
+
],
|
22
|
+
slots: ['default', 'content'],
|
23
|
+
snippet: {
|
24
|
+
props: {
|
25
|
+
content: '示例文字',
|
26
|
+
placement: 'top'
|
27
|
+
},
|
28
|
+
children: [{ name: 'View', children: '上' }]
|
29
|
+
}
|
30
|
+
};
|
31
|
+
|
32
|
+
export default desc;
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
2
|
+
|
3
|
+
const desc: MaterialDescription = {
|
4
|
+
name: 'UniTransition',
|
5
|
+
label: '过渡动画',
|
6
|
+
categoryId: 'ext',
|
7
|
+
props: [
|
8
|
+
{
|
9
|
+
name: 'show',
|
10
|
+
title: '控制组件显示或隐藏',
|
11
|
+
defaultValue: false,
|
12
|
+
setters: 'BooleanSetter'
|
13
|
+
},
|
14
|
+
{
|
15
|
+
name: 'mode-class',
|
16
|
+
title: '内置过渡动画类型',
|
17
|
+
defaultValue: '',
|
18
|
+
setters: ['ArraySetter', 'StringSetter']
|
19
|
+
},
|
20
|
+
{
|
21
|
+
name: 'custom-class',
|
22
|
+
title: '自定义类名',
|
23
|
+
defaultValue: '',
|
24
|
+
setters: 'StringSetter'
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'duration',
|
28
|
+
title: '过渡动画持续时间',
|
29
|
+
defaultValue: 30,
|
30
|
+
setters: 'NumberSetter'
|
31
|
+
},
|
32
|
+
{
|
33
|
+
name: 'styles',
|
34
|
+
title: '组件样式',
|
35
|
+
defaultValue: '',
|
36
|
+
setters: 'ObjectSetter'
|
37
|
+
}
|
38
|
+
],
|
39
|
+
events: ['click', 'change'],
|
40
|
+
snippet: {
|
41
|
+
props: {
|
42
|
+
'mode-class': 'fade',
|
43
|
+
styles: { width: '100px', height: '100px', backgroundColor: 'red' },
|
44
|
+
show: 'show'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
};
|
48
|
+
|
49
|
+
export default desc;
|