@sdata/web-vue 1.10.0 → 1.11.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 +148 -952
- package/dist/sd.min.css +1 -1
- package/es/_components/input-label/style/input-label.scss +11 -51
- package/es/_components/select-view/select-view.d.ts +1 -1
- package/es/_components/select-view/style/index.css +0 -84
- package/es/_components/virtual-list/interface.d.ts +10 -1
- package/es/{table/hooks/use-table-virtual-size.d.ts → _components/virtual-list/use-virtual-size.d.ts} +4 -2
- package/es/{table/hooks/use-table-virtual-size.js → _components/virtual-list/use-virtual-size.js} +17 -20
- package/es/_components/virtual-list/virtual-list.js +64 -2
- package/es/_components/virtual-list/virtual-list.vue.d.ts +208 -0
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +277 -5
- package/es/_utils/clipboard.js +2 -1
- package/es/auto-complete/auto-complete.d.ts +1 -1
- package/es/auto-complete/index.d.ts +24 -15
- package/es/auto-complete/style/index.css +0 -16
- package/es/auto-complete/style/index.scss +11 -26
- package/es/badge/style/index.scss +11 -41
- package/es/button/style/index.css +35 -445
- package/es/button/style/index.scss +57 -332
- package/es/card/style/index.scss +18 -52
- package/es/carousel/index.d.ts +1 -0
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader.vue.d.ts +3 -3
- package/es/cascader/index.d.ts +10 -10
- package/es/cascader/interface.d.ts +5 -0
- package/es/color-picker/style/index.scss +17 -99
- package/es/config-provider/config-provider.vue.d.ts +1 -1
- package/es/config-provider/index.d.ts +4 -3
- package/es/date-picker/index.d.ts +21 -14
- package/es/date-picker/panels/date/index.vue.d.ts +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +7 -7
- package/es/date-picker/picker.vue.d.ts +1 -1
- package/es/date-picker/range-picker.vue.d.ts +1 -1
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/index.d.ts +4 -4
- package/es/descriptions/style/index.scss +18 -63
- package/es/form/style/index.css +12 -176
- package/es/form/style/status.scss +36 -73
- package/es/index.css +148 -952
- package/es/index.d.ts +21 -20
- package/es/input/style/input.scss +14 -66
- package/es/input-number/index.d.ts +5 -0
- package/es/input-tag/style/index.css +0 -84
- package/es/input-tag/style/input-tag.scss +16 -170
- package/es/list/style/index.scss +12 -42
- package/es/menu/index.d.ts +8 -0
- package/es/menu/style/index.css +0 -178
- package/es/menu/style/index.scss +36 -139
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/interface.d.ts +2 -1
- package/es/pagination/page-options.js +1 -1
- package/es/pagination/page-options.vue.d.ts +72 -71
- package/es/pagination/page-options.vue_vue_type_script_lang.js +6 -0
- package/es/pagination/pagination.d.ts +3 -3
- package/es/pagination/style/index.css +0 -12
- package/es/pagination/style/index.scss +19 -76
- package/es/radio/index.d.ts +3 -0
- package/es/result/style/index.css +0 -16
- package/es/result/style/index.scss +12 -34
- package/es/select/index.d.ts +9 -9
- package/es/select/interface.d.ts +2 -1
- package/es/select/select.d.ts +3 -3
- package/es/slider/index.d.ts +6 -3
- package/es/slider/slider.vue.d.ts +1 -1
- package/es/steps/index.d.ts +2 -0
- package/es/switch/index.d.ts +3 -0
- package/es/table/context.d.ts +1 -1
- package/es/table/hooks/use-column-resize.d.ts +2 -3
- package/es/table/hooks/use-column-resize.js +48 -21
- package/es/table/hooks/use-drag.d.ts +4 -2
- package/es/table/hooks/use-drag.js +16 -2
- package/es/table/index.d.ts +22 -34
- package/es/table/interface.d.ts +21 -2
- package/es/table/style/index.css +97 -21
- package/es/table/style/index.scss +137 -125
- package/es/table/table-operation-td.d.ts +2 -2
- package/es/table/table-operation-td.js +4 -5
- package/es/table/table-operation-th.js +4 -4
- package/es/table/table-tbody.js +1 -1
- package/es/table/table-td.js +5 -6
- package/es/table/table-th.js +25 -24
- package/es/table/table-thead.js +1 -1
- package/es/table/table-tr.js +1 -1
- package/es/table/table.d.ts +12 -16
- package/es/table/table.js +399 -190
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/style/index.scss +53 -135
- package/es/tag/index.d.ts +3 -3
- package/es/tag/style/index.css +0 -84
- package/es/tag/style/index.scss +19 -146
- package/es/tag/tag.vue.d.ts +1 -1
- package/es/theme-provider/index.d.ts +9 -9
- package/es/time-picker/index.d.ts +1 -0
- package/es/timeline/index.d.ts +1 -0
- package/es/transfer/index.d.ts +1 -0
- package/es/transfer/interface.d.ts +1 -1
- package/es/tree/hooks/use-tree-data.d.ts +17 -29
- package/es/tree/index.d.ts +6 -1
- package/es/tree/interface.d.ts +2 -0
- package/es/tree/tree.js +1 -1
- package/es/tree/tree.vue.d.ts +3561 -13
- package/es/tree/tree.vue_vue_type_script_lang.js +21 -9
- package/es/tree-select/hooks/use-selected-state.js +3 -1
- package/es/tree-select/index.d.ts +3 -0
- package/es/tree-select/tree-select.vue.d.ts +1367 -3
- package/json/vetur-attributes.json +1 -6
- package/json/vetur-tags.json +0 -1
- package/json/web-types.json +7 -11
- package/package.json +1 -1
- package/es/style/theme/legacy-less-var.scss +0 -15
- package/es/table/table-col-group.js +0 -21
- package/es/table/table-col-group.vue_vue_type_script_lang.js +0 -32
- package/es/table/table-legacy-virtual-list.js +0 -47
- package/es/table/table-legacy-virtual-list.vue.d.ts +0 -156
- package/es/table/table-legacy-virtual-list.vue_vue_type_script_lang.js +0 -148
- package/es/table/table-virtual-list-item.d.ts +0 -22
- package/es/table/table-virtual-list-item.js +0 -37
|
@@ -524,7 +524,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
524
524
|
type: PropType<import("..").Size>;
|
|
525
525
|
};
|
|
526
526
|
options: {
|
|
527
|
-
type: PropType<Array<string | number | import("
|
|
527
|
+
type: PropType<Array<string | number | import("..").RadioOption>>;
|
|
528
528
|
};
|
|
529
529
|
direction: {
|
|
530
530
|
type: PropType<import("..").Direction>;
|
|
@@ -554,7 +554,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
554
554
|
type: PropType<import("..").Size>;
|
|
555
555
|
};
|
|
556
556
|
options: {
|
|
557
|
-
type: PropType<Array<string | number | import("
|
|
557
|
+
type: PropType<Array<string | number | import("..").RadioOption>>;
|
|
558
558
|
};
|
|
559
559
|
direction: {
|
|
560
560
|
type: PropType<import("..").Direction>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
|
|
1
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
3
|
import Checkbox from "../checkbox/index.js";
|
|
3
4
|
import Radio from "../radio/index.js";
|
|
@@ -52,7 +53,7 @@ var table_operation_td_default = /* @__PURE__ */ defineComponent({
|
|
|
52
53
|
setup(props, { slots }) {
|
|
53
54
|
const prefixCls = getPrefixCls("table");
|
|
54
55
|
const tableCtx = inject(tableInjectionKey, {});
|
|
55
|
-
const style = computed(() => getOperationStyle(props.operationColumn, props.operations));
|
|
56
|
+
const style = computed(() => _objectSpread2(_objectSpread2(_objectSpread2({}, getOperationStyle(props.operationColumn, props.operations)), props.colSpan > 1 ? { gridColumn: `span ${props.colSpan}` } : void 0), props.rowSpan > 1 ? { gridRow: `span ${props.rowSpan}` } : void 0));
|
|
56
57
|
const cls = computed(() => [
|
|
57
58
|
`${prefixCls}-td`,
|
|
58
59
|
`${prefixCls}-operation`,
|
|
@@ -121,11 +122,9 @@ var table_operation_td_default = /* @__PURE__ */ defineComponent({
|
|
|
121
122
|
}
|
|
122
123
|
return null;
|
|
123
124
|
};
|
|
124
|
-
return () => createVNode("
|
|
125
|
+
return () => createVNode("div", {
|
|
125
126
|
"class": cls.value,
|
|
126
|
-
"style": style.value
|
|
127
|
-
"rowspan": props.rowSpan > 1 ? props.rowSpan : void 0,
|
|
128
|
-
"colspan": props.colSpan > 1 ? props.colSpan : void 0
|
|
127
|
+
"style": style.value
|
|
129
128
|
}, [createVNode("span", { "class": `${prefixCls}-cell` }, [renderContent()])]);
|
|
130
129
|
}
|
|
131
130
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.124.0/helpers/objectSpread2.js";
|
|
1
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
3
|
import { isFunction } from "../_utils/is.js";
|
|
3
4
|
import Checkbox from "../checkbox/index.js";
|
|
@@ -57,17 +58,16 @@ var table_operation_th_default = /* @__PURE__ */ defineComponent({
|
|
|
57
58
|
if (props.operationColumn.title) return isFunction(props.operationColumn.title) ? props.operationColumn.title() : props.operationColumn.title;
|
|
58
59
|
return null;
|
|
59
60
|
};
|
|
60
|
-
const style = computed(() => getOperationStyle(props.operationColumn, props.operations));
|
|
61
|
+
const style = computed(() => _objectSpread2(_objectSpread2({}, getOperationStyle(props.operationColumn, props.operations)), props.rowSpan > 1 ? { gridRow: `span ${props.rowSpan}` } : void 0));
|
|
61
62
|
const cls = computed(() => [
|
|
62
63
|
`${prefixCls}-th`,
|
|
63
64
|
`${prefixCls}-operation`,
|
|
64
65
|
{ [`${prefixCls}-checkbox`]: props.selectAll },
|
|
65
66
|
...getOperationFixedCls(prefixCls, props.operationColumn)
|
|
66
67
|
]);
|
|
67
|
-
return () => createVNode("
|
|
68
|
+
return () => createVNode("div", {
|
|
68
69
|
"class": cls.value,
|
|
69
|
-
"style": style.value
|
|
70
|
-
"rowspan": props.rowSpan > 1 ? props.rowSpan : void 0
|
|
70
|
+
"style": style.value
|
|
71
71
|
}, [createVNode("span", { "class": `${prefixCls}-cell` }, [renderContent()])]);
|
|
72
72
|
}
|
|
73
73
|
});
|
package/es/table/table-tbody.js
CHANGED
|
@@ -5,7 +5,7 @@ var table_tbody_default = /* @__PURE__ */ defineComponent({
|
|
|
5
5
|
setup(_, { slots }) {
|
|
6
6
|
return () => {
|
|
7
7
|
var _slots$tbody$, _slots$tbody;
|
|
8
|
-
return createVNode((_slots$tbody$ = (_slots$tbody = slots.tbody) === null || _slots$tbody === void 0 ? void 0 : _slots$tbody.call(slots)[0]) !== null && _slots$tbody$ !== void 0 ? _slots$tbody$ : "
|
|
8
|
+
return createVNode((_slots$tbody$ = (_slots$tbody = slots.tbody) === null || _slots$tbody === void 0 ? void 0 : _slots$tbody.call(slots)[0]) !== null && _slots$tbody$ !== void 0 ? _slots$tbody$ : "div", { class: "sd-table-tbody" }, { default: slots.default });
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
});
|
package/es/table/table-td.js
CHANGED
|
@@ -112,7 +112,7 @@ var table_td_default = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
operations: props.operations
|
|
113
113
|
});
|
|
114
114
|
const customStyle = getCustomStyle();
|
|
115
|
-
return _objectSpread2(_objectSpread2(_objectSpread2({}, style), (_props$column13 = props.column) === null || _props$column13 === void 0 ? void 0 : _props$column13.cellStyle), customStyle);
|
|
115
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, style), props.colSpan > 1 ? { gridColumn: `span ${props.colSpan}` } : void 0), props.rowSpan > 1 ? { gridRow: `span ${props.rowSpan}` } : void 0), (_props$column13 = props.column) === null || _props$column13 === void 0 ? void 0 : _props$column13.cellStyle), customStyle);
|
|
116
116
|
});
|
|
117
117
|
const cellStyle = computed(() => {
|
|
118
118
|
if (props.isFixedExpand && props.containerWidth) return { width: `${props.containerWidth}px` };
|
|
@@ -166,7 +166,8 @@ var table_td_default = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
"style": cellStyle.value
|
|
167
167
|
}, [
|
|
168
168
|
props.indentSize > 0 && createVNode("span", { "style": { paddingLeft: `${props.indentSize}px` } }, null),
|
|
169
|
-
props.showExpandBtn && createVNode("
|
|
169
|
+
props.showExpandBtn && createVNode("button", {
|
|
170
|
+
"type": "button",
|
|
170
171
|
"class": `${prefixCls}-cell-inline-icon`,
|
|
171
172
|
"onClick": handleClick
|
|
172
173
|
}, [isLoading.value ? createVNode(IconLoading, null, null) : (_props$renderExpandBt = props.renderExpandBtn) === null || _props$renderExpandBt === void 0 ? void 0 : _props$renderExpandBt.call(props, props.record, false)]),
|
|
@@ -182,11 +183,9 @@ var table_td_default = /* @__PURE__ */ defineComponent({
|
|
|
182
183
|
record: (_props$record9 = props.record) === null || _props$record9 === void 0 ? void 0 : _props$record9.raw,
|
|
183
184
|
column: props.column,
|
|
184
185
|
rowIndex: (_props$rowIndex2 = props.rowIndex) !== null && _props$rowIndex2 !== void 0 ? _props$rowIndex2 : -1
|
|
185
|
-
})[0]) !== null && _slots$td$ !== void 0 ? _slots$td$ : "
|
|
186
|
+
})[0]) !== null && _slots$td$ !== void 0 ? _slots$td$ : "div", {
|
|
186
187
|
class: cls.value,
|
|
187
|
-
style: style.value
|
|
188
|
-
rowspan: props.rowSpan > 1 ? props.rowSpan : void 0,
|
|
189
|
-
colspan: props.colSpan > 1 ? props.colSpan : void 0
|
|
188
|
+
style: style.value
|
|
190
189
|
}, { default: () => [renderCell()] });
|
|
191
190
|
};
|
|
192
191
|
}
|
package/es/table/table-th.js
CHANGED
|
@@ -15,7 +15,7 @@ import IconCaretUp from "../icon/icon-caret-up/index.js";
|
|
|
15
15
|
import IconFilter from "../icon/icon-filter/index.js";
|
|
16
16
|
import { useColumnFilter } from "./hooks/use-column-filter.js";
|
|
17
17
|
import { useColumnSorter } from "./hooks/use-column-sorter.js";
|
|
18
|
-
import { computed, createVNode, defineComponent, inject, isVNode, mergeProps, toRefs } from "vue";
|
|
18
|
+
import { Fragment, computed, createVNode, defineComponent, inject, isVNode, mergeProps, toRefs } from "vue";
|
|
19
19
|
//#region components/table/table-th.tsx
|
|
20
20
|
function _isSlot(s) {
|
|
21
21
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -95,7 +95,7 @@ var table_th_default = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
var _columnFilterValue$va;
|
|
96
96
|
return createVNode("li", {
|
|
97
97
|
"class": `${prefixCls}-filters-item`,
|
|
98
|
-
"key": index
|
|
98
|
+
"key": `${item.value}-${index}`
|
|
99
99
|
}, [isMultipleFilter.value ? createVNode(Checkbox, {
|
|
100
100
|
"value": item.value,
|
|
101
101
|
"modelValue": columnFilterValue.value,
|
|
@@ -162,13 +162,10 @@ var table_th_default = /* @__PURE__ */ defineComponent({
|
|
|
162
162
|
if (isFunction(props.column.title)) return props.column.title();
|
|
163
163
|
return props.column.title;
|
|
164
164
|
};
|
|
165
|
-
const
|
|
165
|
+
const renderCellContent = () => {
|
|
166
166
|
var _props$column7, _props$column8, _props$column9;
|
|
167
167
|
let _slot3;
|
|
168
|
-
return createVNode(
|
|
169
|
-
"class": cellCls.value,
|
|
170
|
-
"onClick": hasSorter.value ? handleClickSorter : void 0
|
|
171
|
-
}, [
|
|
168
|
+
return createVNode(Fragment, null, [
|
|
172
169
|
((_props$column7 = props.column) === null || _props$column7 === void 0 ? void 0 : _props$column7.ellipsis) && ((_props$column8 = props.column) === null || _props$column8 === void 0 ? void 0 : _props$column8.tooltip) ? createVNode(auto_tooltip_default, {
|
|
173
170
|
"class": `${prefixCls}-th-title`,
|
|
174
171
|
"tooltipProps": tooltipProps.value
|
|
@@ -177,12 +174,22 @@ var table_th_default = /* @__PURE__ */ defineComponent({
|
|
|
177
174
|
filterIconAlignLeft.value && renderFilter()
|
|
178
175
|
]);
|
|
179
176
|
};
|
|
177
|
+
const renderCell = () => {
|
|
178
|
+
if (hasSorter.value) return createVNode("button", {
|
|
179
|
+
"type": "button",
|
|
180
|
+
"class": cellCls.value,
|
|
181
|
+
"onClick": handleClickSorter
|
|
182
|
+
}, [renderCellContent()]);
|
|
183
|
+
return createVNode("span", { "class": cellCls.value }, [renderCellContent()]);
|
|
184
|
+
};
|
|
180
185
|
const style = computed(() => {
|
|
181
|
-
var _props$column10, _props$column11;
|
|
182
|
-
|
|
186
|
+
var _props$column$colSpan, _props$column$rowSpan, _props$column10, _props$column11;
|
|
187
|
+
const colSpan = (_props$column$colSpan = props.column.colSpan) !== null && _props$column$colSpan !== void 0 ? _props$column$colSpan : 1;
|
|
188
|
+
const rowSpan = (_props$column$rowSpan = props.column.rowSpan) !== null && _props$column$rowSpan !== void 0 ? _props$column$rowSpan : 1;
|
|
189
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getStyle(props.column, {
|
|
183
190
|
dataColumns: props.dataColumns,
|
|
184
191
|
operations: props.operations
|
|
185
|
-
})), (_props$column10 = props.column) === null || _props$column10 === void 0 ? void 0 : _props$column10.cellStyle), (_props$column11 = props.column) === null || _props$column11 === void 0 ? void 0 : _props$column11.headerCellStyle);
|
|
192
|
+
})), colSpan > 1 ? { gridColumn: `span ${colSpan}` } : void 0), rowSpan > 1 ? { gridRow: `span ${rowSpan}` } : void 0), (_props$column10 = props.column) === null || _props$column10 === void 0 ? void 0 : _props$column10.cellStyle), (_props$column11 = props.column) === null || _props$column11 === void 0 ? void 0 : _props$column11.headerCellStyle);
|
|
186
193
|
});
|
|
187
194
|
const cls = computed(() => {
|
|
188
195
|
var _props$column12, _props$column13;
|
|
@@ -197,28 +204,22 @@ var table_th_default = /* @__PURE__ */ defineComponent({
|
|
|
197
204
|
(_props$column13 = props.column) === null || _props$column13 === void 0 ? void 0 : _props$column13.headerCellClass
|
|
198
205
|
];
|
|
199
206
|
});
|
|
200
|
-
const
|
|
201
|
-
var _props$column14;
|
|
202
|
-
if ((_props$column14 = props.column) === null || _props$column14 === void 0 ? void 0 : _props$column14.dataIndex)
|
|
203
|
-
|
|
204
|
-
(_tableCtx$onThMouseDo = tableCtx.onThMouseDown) === null || _tableCtx$onThMouseDo === void 0 || _tableCtx$onThMouseDo.call(tableCtx, (_props$column15 = props.column) === null || _props$column15 === void 0 ? void 0 : _props$column15.dataIndex, ev);
|
|
205
|
-
}
|
|
207
|
+
const handleResizeMouseDown = (ev) => {
|
|
208
|
+
var _props$column14, _tableCtx$onThMouseDo;
|
|
209
|
+
if (!((_props$column14 = props.column) === null || _props$column14 === void 0 ? void 0 : _props$column14.dataIndex)) return;
|
|
210
|
+
(_tableCtx$onThMouseDo = tableCtx.onThMouseDown) === null || _tableCtx$onThMouseDo === void 0 || _tableCtx$onThMouseDo.call(tableCtx, props.column.dataIndex, ev);
|
|
206
211
|
};
|
|
207
212
|
return () => {
|
|
208
|
-
var
|
|
209
|
-
|
|
210
|
-
const rowSpan = (_props$column$rowSpan = props.column.rowSpan) !== null && _props$column$rowSpan !== void 0 ? _props$column$rowSpan : 1;
|
|
211
|
-
return createVNode((_slots$th$ = (_slots$th = slots.th) === null || _slots$th === void 0 ? void 0 : _slots$th.call(slots, { column: props.column })[0]) !== null && _slots$th$ !== void 0 ? _slots$th$ : "th", {
|
|
213
|
+
var _slots$th$, _slots$th;
|
|
214
|
+
return createVNode((_slots$th$ = (_slots$th = slots.th) === null || _slots$th === void 0 ? void 0 : _slots$th.call(slots, { column: props.column })[0]) !== null && _slots$th$ !== void 0 ? _slots$th$ : "div", {
|
|
212
215
|
class: cls.value,
|
|
213
|
-
style: style.value
|
|
214
|
-
colspan: colSpan > 1 ? colSpan : void 0,
|
|
215
|
-
rowspan: rowSpan > 1 ? rowSpan : void 0
|
|
216
|
+
style: style.value
|
|
216
217
|
}, { default: () => [
|
|
217
218
|
renderCell(),
|
|
218
219
|
!filterIconAlignLeft.value && renderFilter(),
|
|
219
220
|
props.resizable && createVNode("span", {
|
|
220
221
|
"class": `${prefixCls}-column-handle`,
|
|
221
|
-
"
|
|
222
|
+
"onPointerdown": handleResizeMouseDown
|
|
222
223
|
}, null)
|
|
223
224
|
] });
|
|
224
225
|
};
|
package/es/table/table-thead.js
CHANGED
|
@@ -5,7 +5,7 @@ var table_thead_default = /* @__PURE__ */ defineComponent({
|
|
|
5
5
|
setup(_, { slots }) {
|
|
6
6
|
return () => {
|
|
7
7
|
var _slots$thead$, _slots$thead;
|
|
8
|
-
return createVNode((_slots$thead$ = (_slots$thead = slots.thead) === null || _slots$thead === void 0 ? void 0 : _slots$thead.call(slots)[0]) !== null && _slots$thead$ !== void 0 ? _slots$thead$ : "
|
|
8
|
+
return createVNode((_slots$thead$ = (_slots$thead = slots.thead) === null || _slots$thead === void 0 ? void 0 : _slots$thead.call(slots)[0]) !== null && _slots$thead$ !== void 0 ? _slots$thead$ : "div", { class: "sd-table-thead" }, { default: slots.default });
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
});
|
package/es/table/table-tr.js
CHANGED
|
@@ -25,7 +25,7 @@ var table_tr_default = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
return createVNode((_slots$tr$ = (_slots$tr = slots.tr) === null || _slots$tr === void 0 ? void 0 : _slots$tr.call(slots, {
|
|
26
26
|
rowIndex: props.rowIndex,
|
|
27
27
|
record: (_props$record = props.record) === null || _props$record === void 0 ? void 0 : _props$record.raw
|
|
28
|
-
})[0]) !== null && _slots$tr$ !== void 0 ? _slots$tr$ : "
|
|
28
|
+
})[0]) !== null && _slots$tr$ !== void 0 ? _slots$tr$ : "div", { class: cls.value }, { default: slots.default });
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
});
|
package/es/table/table.d.ts
CHANGED
|
@@ -10,10 +10,6 @@ type TableVirtualListProps = VirtualListProps & {
|
|
|
10
10
|
fixedSize?: boolean;
|
|
11
11
|
estimatedSize?: number;
|
|
12
12
|
itemKey?: string | ((item: unknown, index: number) => string | number);
|
|
13
|
-
component?: keyof HTMLElementTagNameMap | Record<string, unknown>;
|
|
14
|
-
listAttrs?: Record<string, unknown>;
|
|
15
|
-
contentAttrs?: Record<string, unknown>;
|
|
16
|
-
paddingPosition?: 'content' | 'list';
|
|
17
13
|
};
|
|
18
14
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
19
15
|
columns: {
|
|
@@ -40,10 +36,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
40
36
|
type: PropType<Size>;
|
|
41
37
|
default: () => "mini" | "small" | "medium" | "large";
|
|
42
38
|
};
|
|
43
|
-
tableLayoutFixed: {
|
|
44
|
-
type: BooleanConstructor;
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
47
39
|
loading: {
|
|
48
40
|
type: (BooleanConstructor | ObjectConstructor)[];
|
|
49
41
|
default: boolean;
|
|
@@ -75,7 +67,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
75
67
|
default: number;
|
|
76
68
|
};
|
|
77
69
|
rowKey: {
|
|
78
|
-
type:
|
|
70
|
+
type: PropType<string | ((record: TableData) => BaseType)>;
|
|
79
71
|
default: string;
|
|
80
72
|
};
|
|
81
73
|
showHeader: {
|
|
@@ -171,6 +163,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
171
163
|
type: PropType<boolean | ScrollbarProps>;
|
|
172
164
|
default: boolean;
|
|
173
165
|
};
|
|
166
|
+
debug: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
174
170
|
showEmptyTree: {
|
|
175
171
|
type: BooleanConstructor;
|
|
176
172
|
default: boolean;
|
|
@@ -242,10 +238,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
242
238
|
type: PropType<Size>;
|
|
243
239
|
default: () => "mini" | "small" | "medium" | "large";
|
|
244
240
|
};
|
|
245
|
-
tableLayoutFixed: {
|
|
246
|
-
type: BooleanConstructor;
|
|
247
|
-
default: boolean;
|
|
248
|
-
};
|
|
249
241
|
loading: {
|
|
250
242
|
type: (BooleanConstructor | ObjectConstructor)[];
|
|
251
243
|
default: boolean;
|
|
@@ -277,7 +269,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
277
269
|
default: number;
|
|
278
270
|
};
|
|
279
271
|
rowKey: {
|
|
280
|
-
type:
|
|
272
|
+
type: PropType<string | ((record: TableData) => BaseType)>;
|
|
281
273
|
default: string;
|
|
282
274
|
};
|
|
283
275
|
showHeader: {
|
|
@@ -373,6 +365,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
373
365
|
type: PropType<boolean | ScrollbarProps>;
|
|
374
366
|
default: boolean;
|
|
375
367
|
};
|
|
368
|
+
debug: {
|
|
369
|
+
type: BooleanConstructor;
|
|
370
|
+
default: boolean;
|
|
371
|
+
};
|
|
376
372
|
showEmptyTree: {
|
|
377
373
|
type: BooleanConstructor;
|
|
378
374
|
default: boolean;
|
|
@@ -412,16 +408,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
412
408
|
indentSize: number;
|
|
413
409
|
filterIconAlignLeft: boolean;
|
|
414
410
|
stripe: boolean;
|
|
415
|
-
tableLayoutFixed: boolean;
|
|
416
411
|
pagination: boolean | PaginationProps;
|
|
417
412
|
pagePosition: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
418
|
-
rowKey: string;
|
|
413
|
+
rowKey: string | ((record: TableData) => BaseType);
|
|
419
414
|
showHeader: boolean;
|
|
420
415
|
spanAll: boolean;
|
|
421
416
|
hideExpandButtonOnEmpty: boolean;
|
|
422
417
|
columnResizable: boolean;
|
|
423
418
|
summaryText: string;
|
|
424
419
|
stickyHeader: number | boolean;
|
|
420
|
+
debug: boolean;
|
|
425
421
|
showEmptyTree: boolean;
|
|
426
422
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
427
423
|
export default _default;
|