@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,127 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
|
|
3
|
+
const desc: MaterialDescription = {
|
|
4
|
+
name: 'UniFilePicker',
|
|
5
|
+
label: '文件选择上传',
|
|
6
|
+
categoryId: 'ext',
|
|
7
|
+
props: [
|
|
8
|
+
{
|
|
9
|
+
name: 'modelValue',
|
|
10
|
+
title: '组件数据,通常用来回显',
|
|
11
|
+
setters: ['ArraySetter', 'ObjectSetter']
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'disabled',
|
|
15
|
+
title: '组件禁用',
|
|
16
|
+
defaultValue: false,
|
|
17
|
+
setters: 'BooleanSetter'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'readonly',
|
|
21
|
+
title: '组件只读,不可选择,不显示进度,不显示删除按钮',
|
|
22
|
+
defaultValue: false,
|
|
23
|
+
setters: 'BooleanSetter'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'return-type',
|
|
27
|
+
title: '限制 value 格式,当为 object 时 ,组件只能单选,且会覆盖',
|
|
28
|
+
defaultValue: 'array',
|
|
29
|
+
setters: 'SelectSetter',
|
|
30
|
+
options: ['array', 'object']
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'disable-preview',
|
|
34
|
+
title: '用图片预览,仅 mode:grid生效',
|
|
35
|
+
defaultValue: false,
|
|
36
|
+
setters: 'BooleanSetter'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'del-icon',
|
|
40
|
+
title: '是否显示删除按钮',
|
|
41
|
+
defaultValue: true,
|
|
42
|
+
setters: 'BooleanSetter'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'auto-upload',
|
|
46
|
+
title: '是否自动上传,值为false则只触发@select,可自行上传',
|
|
47
|
+
defaultValue: true,
|
|
48
|
+
setters: 'BooleanSetter'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'limit',
|
|
52
|
+
title: '最大选择个数 ,h5 会自动忽略多选的部分',
|
|
53
|
+
defaultValue: 9,
|
|
54
|
+
setters: ['NumberSetter', 'StringSetter']
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'title ',
|
|
58
|
+
title: '组件标题,右侧显示上传计数',
|
|
59
|
+
defaultValue: '',
|
|
60
|
+
setters: 'StringSetter'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'mode',
|
|
64
|
+
title: '选择文件后的文件列表样式',
|
|
65
|
+
defaultValue: 'list',
|
|
66
|
+
setters: 'SelectSetter',
|
|
67
|
+
options: ['list', 'grid']
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'file-mediatype',
|
|
71
|
+
title: '选择文件类型,all 只支持 H5 和微信小程序平台',
|
|
72
|
+
defaultValue: 'image',
|
|
73
|
+
setters: 'SelectSetter',
|
|
74
|
+
options: ['image', 'video', 'all']
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'file-extname',
|
|
78
|
+
title: '选择文件后缀,字符串的情况下需要用逗号分隔',
|
|
79
|
+
defaultValue: '',
|
|
80
|
+
setters: ['ArraySetter', 'StringSetter']
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'list-styles',
|
|
84
|
+
title: 'mode:list 时的样式',
|
|
85
|
+
defaultValue: '',
|
|
86
|
+
setters: 'ObjectSetter'
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'image-styles',
|
|
90
|
+
title: 'mode:grid 时的样式',
|
|
91
|
+
defaultValue: '',
|
|
92
|
+
setters: 'ObjectSetter'
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'sizeType',
|
|
96
|
+
title: 'original 原图,compressed 压缩图,默认二者都有',
|
|
97
|
+
defaultValue: ['original', 'compressed'],
|
|
98
|
+
setters: 'SelectSetter',
|
|
99
|
+
options: [
|
|
100
|
+
{ label: 'default', value: ['original', 'compressed'] },
|
|
101
|
+
{ label: 'original', value: 'original' },
|
|
102
|
+
{ label: 'compressed', value: 'compressed' }
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'sourceType',
|
|
107
|
+
title: 'album 从相册选图,camera 使用相机,默认二者都有',
|
|
108
|
+
defaultValue: ['album', 'camera'],
|
|
109
|
+
setters: 'SelectSetter',
|
|
110
|
+
options: [
|
|
111
|
+
{ label: 'default', value: ['album', 'camera'] },
|
|
112
|
+
{ label: 'album', value: 'album' },
|
|
113
|
+
{ label: 'camera', value: 'camera' }
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
events: ['select', 'progress', 'success', 'fail', 'delete'],
|
|
118
|
+
slots: ['default'],
|
|
119
|
+
snippet: {
|
|
120
|
+
props: {
|
|
121
|
+
limit: '9',
|
|
122
|
+
title: '最多选择9张图片'
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export default desc;
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
|
|
3
|
+
const desc: MaterialDescription[] = [
|
|
4
|
+
{
|
|
5
|
+
name: 'UniForms',
|
|
6
|
+
label: '表单',
|
|
7
|
+
categoryId: 'ext',
|
|
8
|
+
props: [
|
|
9
|
+
{
|
|
10
|
+
name: 'mode',
|
|
11
|
+
title: '表单数据',
|
|
12
|
+
defaultValue: '',
|
|
13
|
+
setters: 'ObjectSetter'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'rules',
|
|
17
|
+
title: '表单校验规则',
|
|
18
|
+
defaultValue: '',
|
|
19
|
+
setters: 'ObjectSetter'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'validateTrigger',
|
|
23
|
+
title: '表单校验时机,blur仅在 uni-easyinput 中生效 ',
|
|
24
|
+
defaultValue: 'submit',
|
|
25
|
+
setters: 'SelectSetter',
|
|
26
|
+
options: ['bind', 'submit', 'blur']
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'label-position',
|
|
30
|
+
title: 'label 位置',
|
|
31
|
+
defaultValue: 'left',
|
|
32
|
+
setters: 'SelectSetter',
|
|
33
|
+
options: ['left', 'top']
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'label-width',
|
|
37
|
+
title: 'label 宽度,单位 px',
|
|
38
|
+
defaultValue: 75,
|
|
39
|
+
setters: ['NumberSetter', 'StringSetter']
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'label-align',
|
|
43
|
+
title: 'label 居中方式',
|
|
44
|
+
defaultValue: 'left',
|
|
45
|
+
setters: 'SelectSetter',
|
|
46
|
+
options: ['left', 'center', 'right']
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'err-show-type',
|
|
50
|
+
title: '表单错误信息提示方式',
|
|
51
|
+
defaultValue: 'undertext',
|
|
52
|
+
setters: 'SelectSetter',
|
|
53
|
+
options: ['undertext', 'toast', 'modal']
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'border',
|
|
57
|
+
title: '是否显示分格线',
|
|
58
|
+
defaultValue: false,
|
|
59
|
+
setters: 'BooleanSetter'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'value',
|
|
63
|
+
title: '表单数据,兼容vue2',
|
|
64
|
+
defaultValue: '',
|
|
65
|
+
setters: 'ObjectSetter'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'modelValue',
|
|
69
|
+
title: '表单数据,兼容vue3',
|
|
70
|
+
defaultValue: '',
|
|
71
|
+
setters: 'ObjectSetter'
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
events: ['validate', 'update:modelValue'],
|
|
75
|
+
snippet: {
|
|
76
|
+
props: {
|
|
77
|
+
modelValue: {
|
|
78
|
+
name: '',
|
|
79
|
+
age: ''
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
children: [
|
|
83
|
+
{
|
|
84
|
+
name: 'UniFormsItem',
|
|
85
|
+
props: {
|
|
86
|
+
label: '姓名',
|
|
87
|
+
required: true
|
|
88
|
+
},
|
|
89
|
+
children: [
|
|
90
|
+
{
|
|
91
|
+
name: 'UniEasyinput',
|
|
92
|
+
props: {
|
|
93
|
+
placeholder: '请输入姓名'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'UniFormsItem',
|
|
100
|
+
props: {
|
|
101
|
+
label: '年龄',
|
|
102
|
+
required: true
|
|
103
|
+
},
|
|
104
|
+
children: [
|
|
105
|
+
{
|
|
106
|
+
name: 'UniEasyinput',
|
|
107
|
+
props: {
|
|
108
|
+
placeholder: '请输入年龄'
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'UniFormsItem',
|
|
118
|
+
label: '表单项',
|
|
119
|
+
categoryId: 'ext',
|
|
120
|
+
props: [
|
|
121
|
+
{
|
|
122
|
+
name: 'name',
|
|
123
|
+
title: '表单域的属性名,在使用校验规则时必填',
|
|
124
|
+
defaultValue: '',
|
|
125
|
+
setters: ['StringSetter', 'ArraySetter']
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'rules',
|
|
129
|
+
title: '表单校验规则',
|
|
130
|
+
defaultValue: '',
|
|
131
|
+
setters: 'ObjectSetter'
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'required',
|
|
135
|
+
title: 'label 右边显示红色"*"号,样式显示不会对校验规则产生效果',
|
|
136
|
+
defaultValue: false,
|
|
137
|
+
setters: 'BooleanSetter'
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'label',
|
|
141
|
+
title: '输入框左边的文字提示',
|
|
142
|
+
defaultValue: '',
|
|
143
|
+
setters: 'StringSetter'
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'label-width',
|
|
147
|
+
title: 'label的宽度,单位px',
|
|
148
|
+
defaultValue: 70,
|
|
149
|
+
setters: 'NumberSetter'
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
name: 'error-message',
|
|
153
|
+
title: '显示的错误提示内容,如果为空字符串或者false,则不显示错误信息',
|
|
154
|
+
defaultValue: '',
|
|
155
|
+
setters: 'StringSetter'
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'label-align',
|
|
159
|
+
title: 'label的文字对齐方式',
|
|
160
|
+
defaultValue: 'left',
|
|
161
|
+
setters: 'SelectSetter',
|
|
162
|
+
options: ['left', 'center', 'right']
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: 'label-position',
|
|
166
|
+
title: 'label的文字的位置',
|
|
167
|
+
defaultValue: 'left',
|
|
168
|
+
setters: 'SelectSetter',
|
|
169
|
+
options: ['top', 'left']
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'validateTrigger',
|
|
173
|
+
title: '表单校验时机',
|
|
174
|
+
defaultValue: 'submit',
|
|
175
|
+
setters: 'SelectSetter',
|
|
176
|
+
options: ['bind', 'submit']
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'left-icon',
|
|
180
|
+
title: 'label左边的图标,限uni-ui的图标名称',
|
|
181
|
+
defaultValue: '',
|
|
182
|
+
setters: 'StringSetter'
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'icon-color',
|
|
186
|
+
title: '左边通过icon配置的图标的颜色',
|
|
187
|
+
defaultValue: '#606266',
|
|
188
|
+
setters: 'ColorSetter'
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
slots: ['default', 'label'],
|
|
192
|
+
snippet: {
|
|
193
|
+
props: {
|
|
194
|
+
label: '姓名',
|
|
195
|
+
required: true
|
|
196
|
+
},
|
|
197
|
+
children: [
|
|
198
|
+
{
|
|
199
|
+
name: 'UniEasyinput',
|
|
200
|
+
props: {
|
|
201
|
+
placeholder: '请输入姓名'
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
];
|
|
208
|
+
|
|
209
|
+
export default desc;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
|
|
3
|
+
const desc: MaterialDescription = {
|
|
4
|
+
name: 'UniGoodsNav',
|
|
5
|
+
label: '商品导航',
|
|
6
|
+
categoryId: 'ext',
|
|
7
|
+
props: [
|
|
8
|
+
{
|
|
9
|
+
name: 'options',
|
|
10
|
+
title: '组件参数',
|
|
11
|
+
defaultValue: '',
|
|
12
|
+
setters: 'ArraySetter'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'buttonGroup',
|
|
16
|
+
title: '组件按钮组参数',
|
|
17
|
+
defaultValue: '',
|
|
18
|
+
setters: 'ArraySetter'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'fill',
|
|
22
|
+
title: '按钮是否平铺',
|
|
23
|
+
defaultValue: false,
|
|
24
|
+
setters: 'BooleanSetter'
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
events: ['click', 'buttonClick'],
|
|
28
|
+
snippet: {}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default desc;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
|
|
3
|
+
const desc: MaterialDescription[] = [
|
|
4
|
+
{
|
|
5
|
+
name: 'UniGrid',
|
|
6
|
+
label: '宫格',
|
|
7
|
+
categoryId: 'ext',
|
|
8
|
+
props: [
|
|
9
|
+
{
|
|
10
|
+
name: 'column',
|
|
11
|
+
title: '每列显示个数',
|
|
12
|
+
defaultValue: 3,
|
|
13
|
+
setters: 'NumberSetter'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'borderColor',
|
|
17
|
+
title: '边框颜色',
|
|
18
|
+
defaultValue: '#d0dee5',
|
|
19
|
+
setters: 'ColorSetter'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'showBorder',
|
|
23
|
+
title: '是否显示边框',
|
|
24
|
+
defaultValue: true,
|
|
25
|
+
setters: 'BooleanSetter'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'square',
|
|
29
|
+
title: '是否方形显示',
|
|
30
|
+
defaultValue: true,
|
|
31
|
+
setters: 'BooleanSetter'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: 'highlight',
|
|
35
|
+
title: '点击背景是否高亮',
|
|
36
|
+
defaultValue: true,
|
|
37
|
+
setters: 'BooleanSetter'
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
events: ['change'],
|
|
41
|
+
snippet: {
|
|
42
|
+
props: {
|
|
43
|
+
column: '4',
|
|
44
|
+
highlight: true
|
|
45
|
+
},
|
|
46
|
+
children: [
|
|
47
|
+
{
|
|
48
|
+
name: 'UniGridItem',
|
|
49
|
+
children: [
|
|
50
|
+
{
|
|
51
|
+
name: 'View',
|
|
52
|
+
children: [
|
|
53
|
+
{
|
|
54
|
+
name: 'UniIcons',
|
|
55
|
+
props: { type: 'image', size: 30, color: '#777' }
|
|
56
|
+
},
|
|
57
|
+
{ name: 'Text', children: '文本信息' }
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
directives: [
|
|
62
|
+
{
|
|
63
|
+
name: 'vFor',
|
|
64
|
+
value: {
|
|
65
|
+
type: 'JSExpression',
|
|
66
|
+
value: '4'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: 'UniGridItem',
|
|
76
|
+
label: '宫格项',
|
|
77
|
+
parentIncludes: ['UniGrid'],
|
|
78
|
+
categoryId: 'ext',
|
|
79
|
+
props: [
|
|
80
|
+
{
|
|
81
|
+
name: 'index',
|
|
82
|
+
title: '子组件的唯一标识 ,点击grid会返回当前的标识',
|
|
83
|
+
defaultValue: '',
|
|
84
|
+
setters: 'NumberSetter'
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
snippet: {
|
|
88
|
+
children: [
|
|
89
|
+
{
|
|
90
|
+
name: 'View',
|
|
91
|
+
children: [
|
|
92
|
+
{
|
|
93
|
+
name: 'UniIcons',
|
|
94
|
+
props: { type: 'image', size: 30, color: '#777' }
|
|
95
|
+
},
|
|
96
|
+
{ name: 'Text', children: '文本信息' }
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
];
|
|
103
|
+
|
|
104
|
+
export default desc;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
|
|
3
|
+
const desc: MaterialDescription = {
|
|
4
|
+
name: 'UniGroup',
|
|
5
|
+
label: '分组',
|
|
6
|
+
categoryId: 'ext',
|
|
7
|
+
props: [
|
|
8
|
+
{
|
|
9
|
+
name: 'title',
|
|
10
|
+
title: '主标题',
|
|
11
|
+
defaultValue: '',
|
|
12
|
+
setters: 'StringSetter'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'top',
|
|
16
|
+
title: '分组间隔',
|
|
17
|
+
defaultValue: '',
|
|
18
|
+
setters: 'NumberSetter'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'mode',
|
|
22
|
+
title: '模式 ,card 为卡片模式',
|
|
23
|
+
defaultValue: '',
|
|
24
|
+
setters: 'SelectSetter',
|
|
25
|
+
options: ['card']
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
snippet: {
|
|
29
|
+
props: {
|
|
30
|
+
title: '基本模式'
|
|
31
|
+
},
|
|
32
|
+
children: [
|
|
33
|
+
{
|
|
34
|
+
name: 'View',
|
|
35
|
+
children: ' 分组内容 ',
|
|
36
|
+
directives: [
|
|
37
|
+
{
|
|
38
|
+
name: 'vFor',
|
|
39
|
+
value: {
|
|
40
|
+
type: 'JSExpression',
|
|
41
|
+
value: '4'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default desc;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { MaterialDescription } from '@vtj/core';
|
|
2
|
+
|
|
3
|
+
const desc: MaterialDescription = {
|
|
4
|
+
name: 'UniIcons',
|
|
5
|
+
label: '图标',
|
|
6
|
+
categoryId: 'ext',
|
|
7
|
+
props: [
|
|
8
|
+
{
|
|
9
|
+
name: 'size',
|
|
10
|
+
title: '图标大小',
|
|
11
|
+
defaultValue: 24,
|
|
12
|
+
setters: 'NumberSetter'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'type',
|
|
16
|
+
title: '图标图案,参考示例',
|
|
17
|
+
defaultValue: '',
|
|
18
|
+
setters: 'StringSetter'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'color',
|
|
22
|
+
title: '图标颜色',
|
|
23
|
+
defaultValue: '',
|
|
24
|
+
setters: 'ColorSetter'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'customPrefix',
|
|
28
|
+
title: '自定义图标',
|
|
29
|
+
defaultValue: '',
|
|
30
|
+
setters: 'StringSetter'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'fontFamily',
|
|
34
|
+
title: '自定义图标',
|
|
35
|
+
defaultValue: '',
|
|
36
|
+
setters: 'StringSetter'
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
events: ['click'],
|
|
40
|
+
snippet: {
|
|
41
|
+
props: {
|
|
42
|
+
type: 'home'
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export default desc;
|
|
@@ -6,9 +6,97 @@ import type {
|
|
|
6
6
|
import { version } from '../../version';
|
|
7
7
|
import { setPackageName } from '../../shared';
|
|
8
8
|
import badge from './badge';
|
|
9
|
+
import breadcrumb from './breadcrumb';
|
|
10
|
+
import calendar from './calendar';
|
|
11
|
+
import card from './card';
|
|
12
|
+
import collapse from './collapse';
|
|
13
|
+
import combox from './combox';
|
|
14
|
+
import countdown from './countdown';
|
|
15
|
+
import dataCheckbox from './dataCheckbox';
|
|
16
|
+
import dataPicker from './dataPicker';
|
|
17
|
+
import dataSelect from './dataSelect';
|
|
18
|
+
import dateformat from './dateformat';
|
|
19
|
+
import datetimePicker from './datetimePicker';
|
|
20
|
+
import drawer from './drawer';
|
|
21
|
+
import easyinput from './easyinput';
|
|
22
|
+
import fab from './fab';
|
|
23
|
+
import fav from './fav';
|
|
24
|
+
import filePicker from './filePicker';
|
|
25
|
+
import forms from './forms';
|
|
26
|
+
import goodsNav from './goodsNav';
|
|
27
|
+
import grid from './grid';
|
|
28
|
+
import group from './group';
|
|
29
|
+
import icons from './icons';
|
|
30
|
+
import indexedList from './indexedList';
|
|
31
|
+
import link from './link';
|
|
32
|
+
import list from './list';
|
|
33
|
+
import loadMore from './loadMore';
|
|
34
|
+
import navbar from './navbar';
|
|
35
|
+
import noticeBar from './noticeBar';
|
|
36
|
+
import numberbox from './numberbox';
|
|
37
|
+
import pagination from './pagination';
|
|
38
|
+
import popup from './popup';
|
|
39
|
+
import rate from './rate';
|
|
40
|
+
import row from './row';
|
|
41
|
+
import searchBar from './searchBar';
|
|
42
|
+
import section from './section';
|
|
43
|
+
import segmentedControl from './segmentedControl';
|
|
44
|
+
import steps from './steps';
|
|
45
|
+
import swipeAction from './swipeAction';
|
|
46
|
+
import swiperDot from './swiperDot';
|
|
47
|
+
import table from './table';
|
|
48
|
+
import tag from './tag';
|
|
49
|
+
import title from './title';
|
|
50
|
+
import tooltip from './tooltip';
|
|
51
|
+
import transition from './transition';
|
|
9
52
|
|
|
10
53
|
const name = '@dcloudio/uni-ui';
|
|
11
|
-
const components: MaterialDescription[] = [
|
|
54
|
+
const components: MaterialDescription[] = [
|
|
55
|
+
badge,
|
|
56
|
+
breadcrumb,
|
|
57
|
+
calendar,
|
|
58
|
+
card,
|
|
59
|
+
collapse,
|
|
60
|
+
combox,
|
|
61
|
+
countdown,
|
|
62
|
+
dataCheckbox,
|
|
63
|
+
dataPicker,
|
|
64
|
+
dataSelect,
|
|
65
|
+
dateformat,
|
|
66
|
+
datetimePicker,
|
|
67
|
+
drawer,
|
|
68
|
+
easyinput,
|
|
69
|
+
fab,
|
|
70
|
+
fav,
|
|
71
|
+
filePicker,
|
|
72
|
+
forms,
|
|
73
|
+
goodsNav,
|
|
74
|
+
grid,
|
|
75
|
+
group,
|
|
76
|
+
icons,
|
|
77
|
+
indexedList,
|
|
78
|
+
link,
|
|
79
|
+
list,
|
|
80
|
+
loadMore,
|
|
81
|
+
navbar,
|
|
82
|
+
noticeBar,
|
|
83
|
+
numberbox,
|
|
84
|
+
pagination,
|
|
85
|
+
popup,
|
|
86
|
+
rate,
|
|
87
|
+
row,
|
|
88
|
+
searchBar,
|
|
89
|
+
section,
|
|
90
|
+
segmentedControl,
|
|
91
|
+
steps,
|
|
92
|
+
swipeAction,
|
|
93
|
+
swiperDot,
|
|
94
|
+
table,
|
|
95
|
+
tag,
|
|
96
|
+
title,
|
|
97
|
+
tooltip,
|
|
98
|
+
transition
|
|
99
|
+
].flat();
|
|
12
100
|
|
|
13
101
|
const categories: MaterialCategory[] = [
|
|
14
102
|
{
|