@a2simcode/ui 0.0.72 → 0.0.73
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/components/button/index.d.ts +10 -190
- package/dist/components/button/src/button.vue.d.ts +39 -226
- package/dist/components/buttons/index.d.ts +7 -6
- package/dist/components/buttons/src/interface.d.ts +13 -10
- package/dist/components/index.d.ts +2 -1
- package/dist/simcode-ui.es.js +18 -107
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/docs/components/meta/buttons.ts +15 -10
- package/docs/components/meta/date.ts +25 -44
- package/docs/examples/table/actions.vue +1 -1
- package/docs/examples/table-panel/basic.vue +9 -9
- package/docs/examples/table-panel/batch-operations.vue +4 -4
- package/docs/examples/table-panel/multiple-selection.vue +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,21 @@ export default {
|
|
|
22
22
|
"slots": [],
|
|
23
23
|
"methods": [],
|
|
24
24
|
"types": [
|
|
25
|
+
{
|
|
26
|
+
"name": "ButtonCompActionType",
|
|
27
|
+
"properties": [
|
|
28
|
+
{
|
|
29
|
+
"name": "config",
|
|
30
|
+
"type": "Record<string, any>",
|
|
31
|
+
"description": "按钮配置"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "click",
|
|
35
|
+
"type": "(scope: {\n data?: Record<string, any>\n openLayer: (options: LayerParamType) => void\n }) => void",
|
|
36
|
+
"description": "按钮点击方法"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
25
40
|
{
|
|
26
41
|
"name": "ButtonCompType",
|
|
27
42
|
"properties": [
|
|
@@ -35,16 +50,6 @@ export default {
|
|
|
35
50
|
"type": "string",
|
|
36
51
|
"description": "按钮名称"
|
|
37
52
|
},
|
|
38
|
-
{
|
|
39
|
-
"name": "config",
|
|
40
|
-
"type": "Record<string, any>",
|
|
41
|
-
"description": "按钮配置"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "click",
|
|
45
|
-
"type": "(scope: {\n data?: Record<string, any>\n openLayer: (options: LayerParamType) => void\n }) => void",
|
|
46
|
-
"description": "按钮点击方法"
|
|
47
|
-
},
|
|
48
53
|
{
|
|
49
54
|
"name": "children",
|
|
50
55
|
"type": "ButtonCompType[]",
|
|
@@ -3,12 +3,12 @@ export default {
|
|
|
3
3
|
{
|
|
4
4
|
"name": "modelValue",
|
|
5
5
|
"description": "绑定值",
|
|
6
|
-
"type": "string | number | Date | Array
|
|
6
|
+
"type": "string | number | Date | Array"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"name": "selectType",
|
|
10
10
|
"description": "显示类型",
|
|
11
|
-
"type": "
|
|
11
|
+
"type": "\"year\" | \"month\" | \"date\" | \"dates\" | \"week\" | \"datetime\" | \"datetimerange\" | \"daterange\" | \"monthrange\"",
|
|
12
12
|
"default": "'date'"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -38,7 +38,7 @@ export default {
|
|
|
38
38
|
{
|
|
39
39
|
"name": "size",
|
|
40
40
|
"description": "输入框尺寸",
|
|
41
|
-
"type": "
|
|
41
|
+
"type": "\"large\" | \"default\" | \"small\"",
|
|
42
42
|
"default": "'default'"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -64,11 +64,6 @@ export default {
|
|
|
64
64
|
"description": "显示在输入框中的格式",
|
|
65
65
|
"type": "string"
|
|
66
66
|
},
|
|
67
|
-
{
|
|
68
|
-
"name": "valueFormat",
|
|
69
|
-
"description": "绑定值的格式。 不指定则绑定值为 Date 对象",
|
|
70
|
-
"type": "string"
|
|
71
|
-
},
|
|
72
67
|
{
|
|
73
68
|
"name": "rangeSeparator",
|
|
74
69
|
"description": "选择范围时的分隔符",
|
|
@@ -77,22 +72,22 @@ export default {
|
|
|
77
72
|
{
|
|
78
73
|
"name": "defaultValue",
|
|
79
74
|
"description": "可选,选择器打开时默认显示的时间",
|
|
80
|
-
"type": "Date | Array
|
|
75
|
+
"type": "Date | Array"
|
|
81
76
|
},
|
|
82
77
|
{
|
|
83
78
|
"name": "defaultTime",
|
|
84
79
|
"description": "范围选择时选中日期所使用的当日内具体时刻",
|
|
85
|
-
"type": "Date | Array
|
|
80
|
+
"type": "Date | Array"
|
|
86
81
|
},
|
|
87
82
|
{
|
|
88
83
|
"name": "shortcuts",
|
|
89
84
|
"description": "设置快捷选项,需要传入数组对象",
|
|
90
|
-
"type": "Array
|
|
85
|
+
"type": "Array"
|
|
91
86
|
},
|
|
92
87
|
{
|
|
93
88
|
"name": "disabledDate",
|
|
94
89
|
"description": "一个用来判断该日期是否被禁用的函数,接受一个 Date 对象作为参数。 应该返回一个 Boolean 值",
|
|
95
|
-
"type": "
|
|
90
|
+
"type": "TSFunctionType"
|
|
96
91
|
},
|
|
97
92
|
{
|
|
98
93
|
"name": "teleported",
|
|
@@ -114,55 +109,46 @@ export default {
|
|
|
114
109
|
"events": [
|
|
115
110
|
{
|
|
116
111
|
"name": "update:modelValue",
|
|
117
|
-
"description": "
|
|
118
|
-
"type": "
|
|
112
|
+
"description": "",
|
|
113
|
+
"type": "union"
|
|
119
114
|
},
|
|
120
115
|
{
|
|
121
116
|
"name": "change",
|
|
122
|
-
"description": "
|
|
123
|
-
"type": "
|
|
117
|
+
"description": "",
|
|
118
|
+
"type": "union"
|
|
124
119
|
},
|
|
125
120
|
{
|
|
126
121
|
"name": "blur",
|
|
127
|
-
"description": "
|
|
128
|
-
"type": "
|
|
122
|
+
"description": "",
|
|
123
|
+
"type": "FocusEvent"
|
|
129
124
|
},
|
|
130
125
|
{
|
|
131
126
|
"name": "focus",
|
|
132
|
-
"description": "
|
|
133
|
-
"type": "
|
|
127
|
+
"description": "",
|
|
128
|
+
"type": "FocusEvent"
|
|
134
129
|
},
|
|
135
130
|
{
|
|
136
131
|
"name": "calendar-change",
|
|
137
|
-
"description": "
|
|
138
|
-
"type": "
|
|
132
|
+
"description": "",
|
|
133
|
+
"type": "tuple"
|
|
139
134
|
},
|
|
140
135
|
{
|
|
141
136
|
"name": "panel-change",
|
|
142
|
-
"description": "
|
|
143
|
-
"type": "
|
|
137
|
+
"description": "",
|
|
138
|
+
"type": "Date"
|
|
144
139
|
},
|
|
145
140
|
{
|
|
146
141
|
"name": "visible-change",
|
|
147
|
-
"description": "
|
|
148
|
-
"type": "
|
|
149
|
-
}
|
|
150
|
-
],
|
|
151
|
-
"slots": [
|
|
152
|
-
{
|
|
153
|
-
"name": "default",
|
|
154
|
-
"description": "自定义内容"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"name": "range-separator",
|
|
158
|
-
"description": "自定义范围分隔符内容"
|
|
142
|
+
"description": "",
|
|
143
|
+
"type": "boolean"
|
|
159
144
|
}
|
|
160
145
|
],
|
|
146
|
+
"slots": [],
|
|
161
147
|
"methods": [
|
|
162
148
|
{
|
|
163
149
|
"name": "ref",
|
|
164
|
-
"description": "
|
|
165
|
-
"type": "
|
|
150
|
+
"description": "",
|
|
151
|
+
"type": "func"
|
|
166
152
|
}
|
|
167
153
|
],
|
|
168
154
|
"types": [
|
|
@@ -176,7 +162,7 @@ export default {
|
|
|
176
162
|
},
|
|
177
163
|
{
|
|
178
164
|
"name": "selectType",
|
|
179
|
-
"type": "'year'
|
|
165
|
+
"type": "| 'year'\n | 'month'\n | 'date'\n | 'dates'\n | 'week'\n | 'datetime'\n | 'datetimerange'\n | 'daterange'\n | 'monthrange'",
|
|
180
166
|
"description": "显示类型"
|
|
181
167
|
},
|
|
182
168
|
{
|
|
@@ -224,11 +210,6 @@ export default {
|
|
|
224
210
|
"type": "string",
|
|
225
211
|
"description": "显示在输入框中的格式"
|
|
226
212
|
},
|
|
227
|
-
{
|
|
228
|
-
"name": "valueFormat",
|
|
229
|
-
"type": "string",
|
|
230
|
-
"description": "绑定值的格式。 不指定则绑定值为 Date 对象"
|
|
231
|
-
},
|
|
232
213
|
{
|
|
233
214
|
"name": "rangeSeparator",
|
|
234
215
|
"type": "string",
|
|
@@ -135,7 +135,7 @@ const actions = ref([
|
|
|
135
135
|
{
|
|
136
136
|
id: 'delete',
|
|
137
137
|
label: '删除',
|
|
138
|
-
|
|
138
|
+
config: { danger: true },
|
|
139
139
|
click: (row: Record<string, any>) => {
|
|
140
140
|
ElMessage.warning(`删除: ${row.orderId}`)
|
|
141
141
|
},
|
|
@@ -152,7 +152,7 @@ const mockData = [
|
|
|
152
152
|
orderDate: '2016-11-08',
|
|
153
153
|
quantity: 2,
|
|
154
154
|
sales: 2399.99,
|
|
155
|
-
enabledMark: true
|
|
155
|
+
enabledMark: true,
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
orderId: 'CA-2017-152157',
|
|
@@ -163,7 +163,7 @@ const mockData = [
|
|
|
163
163
|
orderDate: '2017-03-15',
|
|
164
164
|
quantity: 3,
|
|
165
165
|
sales: 89.97,
|
|
166
|
-
enabledMark: true
|
|
166
|
+
enabledMark: true,
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
orderId: 'US-2017-108966',
|
|
@@ -174,7 +174,7 @@ const mockData = [
|
|
|
174
174
|
orderDate: '2017-06-21',
|
|
175
175
|
quantity: 4,
|
|
176
176
|
sales: 799.96,
|
|
177
|
-
enabledMark: false
|
|
177
|
+
enabledMark: false,
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
orderId: 'US-2016-108967',
|
|
@@ -185,7 +185,7 @@ const mockData = [
|
|
|
185
185
|
orderDate: '2016-02-03',
|
|
186
186
|
quantity: 10,
|
|
187
187
|
sales: 15.9,
|
|
188
|
-
enabledMark: true
|
|
188
|
+
enabledMark: true,
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
orderId: 'CA-2015-108968',
|
|
@@ -196,17 +196,17 @@ const mockData = [
|
|
|
196
196
|
orderDate: '2015-09-12',
|
|
197
197
|
quantity: 1,
|
|
198
198
|
sales: 699.0,
|
|
199
|
-
enabledMark: false
|
|
199
|
+
enabledMark: false,
|
|
200
200
|
},
|
|
201
201
|
]
|
|
202
202
|
|
|
203
203
|
const loadData = async (loadDataParams: any) => {
|
|
204
204
|
console.log(loadDataParams, 'loadDataParams')
|
|
205
|
-
|
|
205
|
+
|
|
206
206
|
// 检测是否有查询过滤参数
|
|
207
207
|
const hasKeyword = loadDataParams.keyword?.value
|
|
208
208
|
const hasFilter = loadDataParams.filter?.cond?.length > 0
|
|
209
|
-
|
|
209
|
+
|
|
210
210
|
if (hasKeyword || hasFilter) {
|
|
211
211
|
ElMessageBox.alert(
|
|
212
212
|
'查询过滤功能需要后端支持。在实际使用中,请将查询参数(keyword 和 filter)传递给后端接口进行数据过滤。',
|
|
@@ -217,7 +217,7 @@ const loadData = async (loadDataParams: any) => {
|
|
|
217
217
|
}
|
|
218
218
|
)
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
|
|
221
221
|
// 模拟异步加载数据
|
|
222
222
|
return new Promise((resolve) => {
|
|
223
223
|
setTimeout(() => {
|
|
@@ -170,7 +170,7 @@ const actions = ref([
|
|
|
170
170
|
{
|
|
171
171
|
id: 'delete',
|
|
172
172
|
label: '删除',
|
|
173
|
-
|
|
173
|
+
config: { danger: true },
|
|
174
174
|
click: (row: Record<string, any>) => {
|
|
175
175
|
ElMessage.warning(`删除: ${row.orderId}`)
|
|
176
176
|
},
|
|
@@ -259,11 +259,11 @@ const mockData = [
|
|
|
259
259
|
|
|
260
260
|
const loadData = async (loadDataParams: any) => {
|
|
261
261
|
console.log(loadDataParams, 'loadDataParams')
|
|
262
|
-
|
|
262
|
+
|
|
263
263
|
// 检测是否有查询过滤参数
|
|
264
264
|
const hasKeyword = loadDataParams.keyword?.value
|
|
265
265
|
const hasFilter = loadDataParams.filter?.cond?.length > 0
|
|
266
|
-
|
|
266
|
+
|
|
267
267
|
if (hasKeyword || hasFilter) {
|
|
268
268
|
ElMessageBox.alert(
|
|
269
269
|
'查询过滤功能需要后端支持。在实际使用中,请将查询参数(keyword 和 filter)传递给后端接口进行数据过滤。',
|
|
@@ -274,7 +274,7 @@ const loadData = async (loadDataParams: any) => {
|
|
|
274
274
|
}
|
|
275
275
|
)
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
|
|
278
278
|
// 模拟异步加载数据
|
|
279
279
|
return new Promise((resolve) => {
|
|
280
280
|
setTimeout(() => {
|