@sdata/web-vue 5.1.1 → 5.2.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/sd.css +40 -0
- package/dist/sd.min.css +2 -2
- package/es/config-provider/config-provider.vue.d.ts +7 -1
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +7 -1
- package/es/config-provider/context.d.ts +21 -0
- package/es/config-provider/index.d.ts +10 -1
- package/es/index.css +40 -0
- package/es/index.d.ts +1 -1
- package/es/model-selector/context.d.ts +3 -0
- package/es/model-selector/index.d.ts +6 -0
- package/es/model-selector/model-selector-dialog.vue.d.ts +1 -0
- package/es/model-selector/model-selector-dialog.vue_vue_type_script_setup_true_lang.js +6 -0
- package/es/model-selector/model-selector-group.vue.d.ts +2 -2
- package/es/model-selector/model-selector-group.vue_vue_type_script_setup_true_lang.js +37 -4
- package/es/model-selector/model-selector.vue.d.ts +1 -0
- package/es/model-selector/model-selector.vue_vue_type_script_setup_true_lang.js +29 -5
- package/es/model-selector/style/index.css +37 -0
- package/es/model-selector/style/index.scss +49 -3
- package/es/table/index.d.ts +54 -45
- package/es/table/style/index.css +3 -0
- package/es/table/style/index.scss +4 -0
- package/es/table/table-th.vue.d.ts +3 -1
- package/es/table/table-th.vue_vue_type_script_setup_true_lang.js +9 -3
- package/es/table/table.vue.d.ts +30 -28
- package/es/table/table.vue_vue_type_script_setup_true_lang.js +66 -18
- package/json/vetur-attributes.json +7 -0
- package/json/vetur-tags.json +2 -0
- package/json/web-types.json +17 -1
- package/package.json +1 -1
|
@@ -81,7 +81,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
81
81
|
*/
|
|
82
82
|
bordered: {
|
|
83
83
|
type: [Boolean, Object],
|
|
84
|
-
default:
|
|
84
|
+
default: () => {
|
|
85
|
+
var _inject$table$bordere, _inject;
|
|
86
|
+
return (_inject$table$bordere = (_inject = inject(configProviderInjectionKey, void 0)) === null || _inject === void 0 || (_inject = _inject.table) === null || _inject === void 0 ? void 0 : _inject.bordered) !== null && _inject$table$bordere !== void 0 ? _inject$table$bordere : true;
|
|
87
|
+
}
|
|
85
88
|
},
|
|
86
89
|
/**
|
|
87
90
|
* @zh 是否显示选中效果
|
|
@@ -89,7 +92,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
89
92
|
*/
|
|
90
93
|
hoverable: {
|
|
91
94
|
type: Boolean,
|
|
92
|
-
default:
|
|
95
|
+
default: () => {
|
|
96
|
+
var _inject$table$hoverab, _inject2;
|
|
97
|
+
return (_inject$table$hoverab = (_inject2 = inject(configProviderInjectionKey, void 0)) === null || _inject2 === void 0 || (_inject2 = _inject2.table) === null || _inject2 === void 0 ? void 0 : _inject2.hoverable) !== null && _inject$table$hoverab !== void 0 ? _inject$table$hoverab : true;
|
|
98
|
+
}
|
|
93
99
|
},
|
|
94
100
|
/**
|
|
95
101
|
* @zh 是否开启斑马纹效果
|
|
@@ -97,7 +103,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
97
103
|
*/
|
|
98
104
|
stripe: {
|
|
99
105
|
type: Boolean,
|
|
100
|
-
default:
|
|
106
|
+
default: () => {
|
|
107
|
+
var _inject$table$stripe, _inject3;
|
|
108
|
+
return (_inject$table$stripe = (_inject3 = inject(configProviderInjectionKey, void 0)) === null || _inject3 === void 0 || (_inject3 = _inject3.table) === null || _inject3 === void 0 ? void 0 : _inject3.stripe) !== null && _inject$table$stripe !== void 0 ? _inject$table$stripe : false;
|
|
109
|
+
}
|
|
101
110
|
},
|
|
102
111
|
/**
|
|
103
112
|
* @zh 表格的大小
|
|
@@ -108,8 +117,8 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
108
117
|
size: {
|
|
109
118
|
type: String,
|
|
110
119
|
default: () => {
|
|
111
|
-
var _inject$size,
|
|
112
|
-
return (_inject$size = (
|
|
120
|
+
var _inject$size, _inject4;
|
|
121
|
+
return (_inject$size = (_inject4 = inject(configProviderInjectionKey, void 0)) === null || _inject4 === void 0 ? void 0 : _inject4.size) !== null && _inject$size !== void 0 ? _inject$size : "large";
|
|
113
122
|
}
|
|
114
123
|
},
|
|
115
124
|
/**
|
|
@@ -118,7 +127,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
118
127
|
*/
|
|
119
128
|
tableLayoutFixed: {
|
|
120
129
|
type: Boolean,
|
|
121
|
-
default:
|
|
130
|
+
default: () => {
|
|
131
|
+
var _inject$table$tableLa, _inject5;
|
|
132
|
+
return (_inject$table$tableLa = (_inject5 = inject(configProviderInjectionKey, void 0)) === null || _inject5 === void 0 || (_inject5 = _inject5.table) === null || _inject5 === void 0 ? void 0 : _inject5.tableLayoutFixed) !== null && _inject$table$tableLa !== void 0 ? _inject$table$tableLa : false;
|
|
133
|
+
}
|
|
122
134
|
},
|
|
123
135
|
/**
|
|
124
136
|
* @zh 是否为加载中状态
|
|
@@ -154,7 +166,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
154
166
|
*/
|
|
155
167
|
pagination: {
|
|
156
168
|
type: [Boolean, Object],
|
|
157
|
-
default:
|
|
169
|
+
default: () => {
|
|
170
|
+
var _inject$table$paginat, _inject6;
|
|
171
|
+
return (_inject$table$paginat = (_inject6 = inject(configProviderInjectionKey, void 0)) === null || _inject6 === void 0 || (_inject6 = _inject6.table) === null || _inject6 === void 0 ? void 0 : _inject6.pagination) !== null && _inject$table$paginat !== void 0 ? _inject$table$paginat : true;
|
|
172
|
+
}
|
|
158
173
|
},
|
|
159
174
|
/**
|
|
160
175
|
* @zh 分页选择器的位置
|
|
@@ -163,7 +178,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
163
178
|
*/
|
|
164
179
|
pagePosition: {
|
|
165
180
|
type: String,
|
|
166
|
-
default:
|
|
181
|
+
default: () => {
|
|
182
|
+
var _inject$table$pagePos, _inject7;
|
|
183
|
+
return (_inject$table$pagePos = (_inject7 = inject(configProviderInjectionKey, void 0)) === null || _inject7 === void 0 || (_inject7 = _inject7.table) === null || _inject7 === void 0 ? void 0 : _inject7.pagePosition) !== null && _inject$table$pagePos !== void 0 ? _inject$table$pagePos : "br";
|
|
184
|
+
}
|
|
167
185
|
},
|
|
168
186
|
/**
|
|
169
187
|
* @zh 树形表格的缩进距离
|
|
@@ -171,7 +189,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
171
189
|
*/
|
|
172
190
|
indentSize: {
|
|
173
191
|
type: Number,
|
|
174
|
-
default:
|
|
192
|
+
default: () => {
|
|
193
|
+
var _inject$table$indentS, _inject8;
|
|
194
|
+
return (_inject$table$indentS = (_inject8 = inject(configProviderInjectionKey, void 0)) === null || _inject8 === void 0 || (_inject8 = _inject8.table) === null || _inject8 === void 0 ? void 0 : _inject8.indentSize) !== null && _inject$table$indentS !== void 0 ? _inject$table$indentS : 16;
|
|
195
|
+
}
|
|
175
196
|
},
|
|
176
197
|
/**
|
|
177
198
|
* @zh 表格行 `key` 的取值字段
|
|
@@ -187,7 +208,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
187
208
|
*/
|
|
188
209
|
showHeader: {
|
|
189
210
|
type: Boolean,
|
|
190
|
-
default:
|
|
211
|
+
default: () => {
|
|
212
|
+
var _inject$table$showHea, _inject9;
|
|
213
|
+
return (_inject$table$showHea = (_inject9 = inject(configProviderInjectionKey, void 0)) === null || _inject9 === void 0 || (_inject9 = _inject9.table) === null || _inject9 === void 0 ? void 0 : _inject9.showHeader) !== null && _inject$table$showHea !== void 0 ? _inject$table$showHea : true;
|
|
214
|
+
}
|
|
191
215
|
},
|
|
192
216
|
/**
|
|
193
217
|
* @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动 [VirtualListProps](#VirtualListProps)
|
|
@@ -224,7 +248,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
224
248
|
*/
|
|
225
249
|
filterIconAlignLeft: {
|
|
226
250
|
type: Boolean,
|
|
227
|
-
default:
|
|
251
|
+
default: () => {
|
|
252
|
+
var _inject$table$filterI, _inject10;
|
|
253
|
+
return (_inject$table$filterI = (_inject10 = inject(configProviderInjectionKey, void 0)) === null || _inject10 === void 0 || (_inject10 = _inject10.table) === null || _inject10 === void 0 ? void 0 : _inject10.filterIconAlignLeft) !== null && _inject$table$filterI !== void 0 ? _inject$table$filterI : false;
|
|
254
|
+
}
|
|
228
255
|
},
|
|
229
256
|
/**
|
|
230
257
|
* @zh 是否在子树为空时隐藏展开按钮
|
|
@@ -233,7 +260,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
233
260
|
*/
|
|
234
261
|
hideExpandButtonOnEmpty: {
|
|
235
262
|
type: Boolean,
|
|
236
|
-
default:
|
|
263
|
+
default: () => {
|
|
264
|
+
var _inject$table$hideExp, _inject11;
|
|
265
|
+
return (_inject$table$hideExp = (_inject11 = inject(configProviderInjectionKey, void 0)) === null || _inject11 === void 0 || (_inject11 = _inject11.table) === null || _inject11 === void 0 ? void 0 : _inject11.hideExpandButtonOnEmpty) !== null && _inject$table$hideExp !== void 0 ? _inject$table$hideExp : false;
|
|
266
|
+
}
|
|
237
267
|
},
|
|
238
268
|
/**
|
|
239
269
|
* @zh 表格行元素的类名。`2.34.0` 版本增加函数值支持
|
|
@@ -258,7 +288,13 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
258
288
|
* @en Whether to allow the column width to be adjusted
|
|
259
289
|
* @version 2.16.0
|
|
260
290
|
*/
|
|
261
|
-
columnResizable: {
|
|
291
|
+
columnResizable: {
|
|
292
|
+
type: Boolean,
|
|
293
|
+
default: () => {
|
|
294
|
+
var _inject$table$columnR, _inject12;
|
|
295
|
+
return (_inject$table$columnR = (_inject12 = inject(configProviderInjectionKey, void 0)) === null || _inject12 === void 0 || (_inject12 = _inject12.table) === null || _inject12 === void 0 ? void 0 : _inject12.columnResizable) !== null && _inject$table$columnR !== void 0 ? _inject$table$columnR : false;
|
|
296
|
+
}
|
|
297
|
+
},
|
|
262
298
|
/**
|
|
263
299
|
* @zh 显示表尾总结行
|
|
264
300
|
* @en Show footer summary row
|
|
@@ -272,7 +308,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
272
308
|
*/
|
|
273
309
|
summaryText: {
|
|
274
310
|
type: String,
|
|
275
|
-
default:
|
|
311
|
+
default: () => {
|
|
312
|
+
var _inject$table$summary, _inject13;
|
|
313
|
+
return (_inject$table$summary = (_inject13 = inject(configProviderInjectionKey, void 0)) === null || _inject13 === void 0 || (_inject13 = _inject13.table) === null || _inject13 === void 0 ? void 0 : _inject13.summaryText) !== null && _inject$table$summary !== void 0 ? _inject$table$summary : "Summary";
|
|
314
|
+
}
|
|
276
315
|
},
|
|
277
316
|
/**
|
|
278
317
|
* @zh 总结行的单元格合并方法
|
|
@@ -320,7 +359,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
320
359
|
*/
|
|
321
360
|
stickyHeader: {
|
|
322
361
|
type: [Boolean, Number],
|
|
323
|
-
default:
|
|
362
|
+
default: () => {
|
|
363
|
+
var _inject$table$stickyH, _inject14;
|
|
364
|
+
return (_inject$table$stickyH = (_inject14 = inject(configProviderInjectionKey, void 0)) === null || _inject14 === void 0 || (_inject14 = _inject14.table) === null || _inject14 === void 0 ? void 0 : _inject14.stickyHeader) !== null && _inject$table$stickyH !== void 0 ? _inject$table$stickyH : false;
|
|
365
|
+
}
|
|
324
366
|
},
|
|
325
367
|
/**
|
|
326
368
|
* @zh 是否开启虚拟滚动条
|
|
@@ -329,7 +371,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
329
371
|
*/
|
|
330
372
|
scrollbar: {
|
|
331
373
|
type: [Object, Boolean],
|
|
332
|
-
default:
|
|
374
|
+
default: () => {
|
|
375
|
+
var _inject$table$scrollb, _inject15;
|
|
376
|
+
return (_inject$table$scrollb = (_inject15 = inject(configProviderInjectionKey, void 0)) === null || _inject15 === void 0 || (_inject15 = _inject15.table) === null || _inject15 === void 0 ? void 0 : _inject15.scrollbar) !== null && _inject$table$scrollb !== void 0 ? _inject$table$scrollb : true;
|
|
377
|
+
}
|
|
333
378
|
},
|
|
334
379
|
/**
|
|
335
380
|
* @zh 是否展示空子树
|
|
@@ -338,7 +383,10 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
338
383
|
*/
|
|
339
384
|
showEmptyTree: {
|
|
340
385
|
type: Boolean,
|
|
341
|
-
default:
|
|
386
|
+
default: () => {
|
|
387
|
+
var _inject$table$showEmp, _inject16;
|
|
388
|
+
return (_inject$table$showEmp = (_inject16 = inject(configProviderInjectionKey, void 0)) === null || _inject16 === void 0 || (_inject16 = _inject16.table) === null || _inject16 === void 0 ? void 0 : _inject16.showEmptyTree) !== null && _inject$table$showEmp !== void 0 ? _inject$table$showEmp : false;
|
|
389
|
+
}
|
|
342
390
|
}
|
|
343
391
|
},
|
|
344
392
|
emits: {
|
|
@@ -1388,7 +1436,7 @@ var table_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
|
|
|
1388
1436
|
});
|
|
1389
1437
|
};
|
|
1390
1438
|
const setThRef = (key, instance) => {
|
|
1391
|
-
const element = instance && "$el" in instance ? instance.$el : instance;
|
|
1439
|
+
const element = instance && "getThElement" in instance && typeof instance.getThElement === "function" ? instance.getThElement() : instance && "$el" in instance ? instance.$el : instance;
|
|
1392
1440
|
if (key && element instanceof HTMLElement) thRefs.value[key] = element;
|
|
1393
1441
|
};
|
|
1394
1442
|
const renderHeader = () => createVNode(table_thead_default, null, {
|
|
@@ -475,6 +475,9 @@
|
|
|
475
475
|
"sd-config-provider/color-picker": {
|
|
476
476
|
"description": "Default config for ColorPicker"
|
|
477
477
|
},
|
|
478
|
+
"sd-config-provider/table": {
|
|
479
|
+
"description": "Default config for Table"
|
|
480
|
+
},
|
|
478
481
|
"sd-config-provider/spin-props": {
|
|
479
482
|
"description": "Default props for Spin"
|
|
480
483
|
},
|
|
@@ -1883,6 +1886,10 @@
|
|
|
1883
1886
|
"description": "Whether the model selector is visible by default",
|
|
1884
1887
|
"type": "boolean"
|
|
1885
1888
|
},
|
|
1889
|
+
"sd-model-selector/default-expanded": {
|
|
1890
|
+
"description": "Whether all groups are expanded by default",
|
|
1891
|
+
"type": "boolean"
|
|
1892
|
+
},
|
|
1886
1893
|
"sd-model-selector/close-on-select": {
|
|
1887
1894
|
"description": "Whether to close after selecting a model",
|
|
1888
1895
|
"type": "boolean"
|
package/json/vetur-tags.json
CHANGED
|
@@ -247,6 +247,7 @@
|
|
|
247
247
|
"drawer",
|
|
248
248
|
"pagination",
|
|
249
249
|
"color-picker",
|
|
250
|
+
"table",
|
|
250
251
|
"spin-props",
|
|
251
252
|
"basic-crud-table-spin-props",
|
|
252
253
|
"card-spin-props",
|
|
@@ -886,6 +887,7 @@
|
|
|
886
887
|
"visible-change",
|
|
887
888
|
"select",
|
|
888
889
|
"default-visible",
|
|
890
|
+
"default-expanded",
|
|
889
891
|
"close-on-select",
|
|
890
892
|
"reset-query-on-close"
|
|
891
893
|
]
|
package/json/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@sdata/web-vue",
|
|
5
|
-
"version": "5.
|
|
5
|
+
"version": "5.2.0",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"types-syntax": "typescript",
|
|
@@ -1262,6 +1262,14 @@
|
|
|
1262
1262
|
"kind": "expression"
|
|
1263
1263
|
}
|
|
1264
1264
|
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "table",
|
|
1267
|
+
"description": "Default config for Table",
|
|
1268
|
+
"value": {
|
|
1269
|
+
"type": "ConfigProviderTable",
|
|
1270
|
+
"kind": "expression"
|
|
1271
|
+
}
|
|
1272
|
+
},
|
|
1265
1273
|
{
|
|
1266
1274
|
"name": "spin-props",
|
|
1267
1275
|
"description": "Default props for Spin",
|
|
@@ -4669,6 +4677,14 @@
|
|
|
4669
4677
|
"kind": "expression"
|
|
4670
4678
|
}
|
|
4671
4679
|
},
|
|
4680
|
+
{
|
|
4681
|
+
"name": "default-expanded",
|
|
4682
|
+
"description": "Whether all groups are expanded by default",
|
|
4683
|
+
"value": {
|
|
4684
|
+
"type": "boolean",
|
|
4685
|
+
"kind": "expression"
|
|
4686
|
+
}
|
|
4687
|
+
},
|
|
4672
4688
|
{
|
|
4673
4689
|
"name": "close-on-select",
|
|
4674
4690
|
"description": "Whether to close after selecting a model",
|