tabula-vue 1.0.0 → 1.0.2
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/es/component.mjs +4 -0
- package/es/components/dialog/index.d.ts +30 -30
- package/es/components/dialog/src/index.vue.d.ts +2 -2
- package/es/components/dialog-form/index.d.ts +2 -2
- package/es/components/dialog-form/src/index.vue.d.ts +2 -2
- package/es/components/display-item/index.d.ts +25 -25
- package/es/components/display-item/src/index.vue.d.ts +7 -7
- package/es/components/drawer-form/index.d.ts +50 -50
- package/es/components/drawer-form/src/index.vue.d.ts +10 -10
- package/es/components/form/index.d.ts +99 -99
- package/es/components/form/src/form-content.vue.d.ts +12 -12
- package/es/components/form/src/index.vue.d.ts +11 -11
- package/es/components/form-item/index.d.ts +80 -80
- package/es/components/form-item/src/index.vue.d.ts +9 -9
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +6 -0
- package/es/components/input-tag/index.d.ts +6 -6
- package/es/components/input-tag/src/index.vue.d.ts +6 -6
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +9087 -4864
- package/es/components/page/src/index.vue.d.ts +1903 -513
- package/es/components/page/src/index.vue2.mjs +43 -12
- package/es/components/popover/index.d.ts +49 -49
- package/es/components/popover/src/index.vue.d.ts +3 -3
- package/es/components/render/index.d.ts +14 -14
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +298 -298
- package/es/components/search/src/index.vue.d.ts +84 -84
- package/es/components/sidebar/index.d.ts +31 -31
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/table/index.d.ts +165 -180
- package/es/components/table/index.mjs +3 -0
- package/es/components/table/src/index.vue.d.ts +12 -21
- package/es/components/table/src/index.vue2.mjs +11 -34
- package/es/components/table/src/table-action-bar-content.vue.d.ts +78 -0
- package/es/components/table/src/table-action-bar-content.vue.mjs +6 -0
- package/es/components/table/src/table-action-bar-content.vue2.mjs +395 -0
- package/es/components/table/src/table-action-bar.vue.d.ts +4 -4
- package/es/components/table/src/table-action-bar.vue2.mjs +30 -353
- package/es/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
- package/es/components/table/src/table-column-index.vue.d.ts +1 -1
- package/es/components/table/src/table-column.vue.d.ts +22 -29
- package/es/components/table/src/table-column.vue2.mjs +4 -57
- package/es/components/table/src/table-title-bar.vue.d.ts +2 -2
- package/es/components/table/src/type.d.ts +0 -11
- package/es/components/table/src/use-columns.d.ts +26 -0
- package/es/components/table/src/use-columns.mjs +40 -0
- package/es/components/table-lite/index.d.ts +1783 -0
- package/es/components/table-lite/index.mjs +6 -0
- package/es/components/table-lite/src/index.vue.d.ts +672 -0
- package/es/components/table-lite/src/index.vue.mjs +6 -0
- package/es/components/table-lite/src/index.vue2.mjs +681 -0
- package/es/components/table-lite/src/type.d.ts +91 -0
- package/es/components/table-lite/src/type.mjs +1 -0
- package/es/components/table-lite/style/css.d.ts +16 -0
- package/es/components/table-lite/style/css.mjs +16 -0
- package/es/components/table-lite/style/index.d.ts +16 -0
- package/es/components/table-lite/style/index.mjs +16 -0
- package/es/components/table-v2/index.d.ts +174 -0
- package/es/components/table-v2/index.mjs +7 -0
- package/es/components/table-v2/src/column-converter.d.ts +27 -0
- package/es/components/table-v2/src/column-converter.mjs +42 -0
- package/es/components/table-v2/src/index.vue.d.ts +157 -0
- package/es/components/table-v2/src/index.vue.mjs +6 -0
- package/es/components/table-v2/src/index.vue2.mjs +491 -0
- package/es/components/table-v2/src/special-columns.d.ts +61 -0
- package/es/components/table-v2/src/special-columns.mjs +76 -0
- package/es/components/table-v2/src/table-v2-cell.d.ts +104 -0
- package/es/components/table-v2/src/table-v2-cell.mjs +139 -0
- package/es/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
- package/es/components/table-v2/src/table-v2-header-cell.vue.mjs +6 -0
- package/es/components/table-v2/src/table-v2-header-cell.vue2.mjs +92 -0
- package/es/components/table-v2/src/type.d.ts +95 -0
- package/es/components/table-v2/src/type.mjs +1 -0
- package/es/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
- package/es/components/table-v2/src/use-table-v2-columns.mjs +47 -0
- package/es/components/table-v2/style/css.d.ts +17 -0
- package/es/components/table-v2/style/css.mjs +17 -0
- package/es/components/table-v2/style/index.d.ts +17 -0
- package/es/components/table-v2/style/index.mjs +17 -0
- package/es/index.mjs +6 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/index.css +1 -1
- package/index.js +1850 -279
- package/index.min.js +9 -6
- package/index.min.mjs +9 -6
- package/index.mjs +1813 -248
- package/lib/component.js +42 -38
- package/lib/components/dialog/index.d.ts +30 -30
- package/lib/components/dialog/src/index.vue.d.ts +2 -2
- package/lib/components/dialog-form/index.d.ts +2 -2
- package/lib/components/dialog-form/src/index.vue.d.ts +2 -2
- package/lib/components/display-item/index.d.ts +25 -25
- package/lib/components/display-item/src/index.vue.d.ts +7 -7
- package/lib/components/drawer-form/index.d.ts +50 -50
- package/lib/components/drawer-form/src/index.vue.d.ts +10 -10
- package/lib/components/form/index.d.ts +99 -99
- package/lib/components/form/src/form-content.vue.d.ts +12 -12
- package/lib/components/form/src/index.vue.d.ts +11 -11
- package/lib/components/form-item/index.d.ts +80 -80
- package/lib/components/form-item/src/index.vue.d.ts +9 -9
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +51 -39
- package/lib/components/input-tag/index.d.ts +6 -6
- package/lib/components/input-tag/src/index.vue.d.ts +6 -6
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +9087 -4864
- package/lib/components/page/src/index.vue.d.ts +1903 -513
- package/lib/components/page/src/index.vue2.js +46 -15
- package/lib/components/popover/index.d.ts +49 -49
- package/lib/components/popover/src/index.vue.d.ts +3 -3
- package/lib/components/render/index.d.ts +14 -14
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +298 -298
- package/lib/components/search/src/index.vue.d.ts +84 -84
- package/lib/components/sidebar/index.d.ts +31 -31
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/table/index.d.ts +165 -180
- package/lib/components/table/index.js +6 -0
- package/lib/components/table/src/index.vue.d.ts +12 -21
- package/lib/components/table/src/index.vue2.js +10 -33
- package/lib/components/table/src/table-action-bar-content.vue.d.ts +78 -0
- package/lib/components/table/src/table-action-bar-content.vue.js +10 -0
- package/lib/components/table/src/table-action-bar-content.vue2.js +399 -0
- package/lib/components/table/src/table-action-bar.vue.d.ts +4 -4
- package/lib/components/table/src/table-action-bar.vue2.js +28 -351
- package/lib/components/table/src/table-column-drag-sort.vue.d.ts +1 -1
- package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
- package/lib/components/table/src/table-column.vue.d.ts +22 -29
- package/lib/components/table/src/table-column.vue2.js +2 -55
- package/lib/components/table/src/table-title-bar.vue.d.ts +2 -2
- package/lib/components/table/src/type.d.ts +0 -11
- package/lib/components/table/src/use-columns.d.ts +26 -0
- package/lib/components/table/src/use-columns.js +42 -0
- package/lib/components/table-lite/index.d.ts +1783 -0
- package/lib/components/table-lite/index.js +8 -0
- package/lib/components/table-lite/src/index.vue.d.ts +672 -0
- package/lib/components/table-lite/src/index.vue.js +10 -0
- package/lib/components/table-lite/src/index.vue2.js +685 -0
- package/lib/components/table-lite/src/type.d.ts +91 -0
- package/lib/components/table-lite/src/type.js +2 -0
- package/lib/components/table-lite/style/css.d.ts +16 -0
- package/lib/components/table-lite/style/css.js +19 -0
- package/lib/components/table-lite/style/index.d.ts +16 -0
- package/lib/components/table-lite/style/index.js +19 -0
- package/lib/components/table-v2/index.d.ts +174 -0
- package/lib/components/table-v2/index.js +10 -0
- package/lib/components/table-v2/src/column-converter.d.ts +27 -0
- package/lib/components/table-v2/src/column-converter.js +44 -0
- package/lib/components/table-v2/src/index.vue.d.ts +157 -0
- package/lib/components/table-v2/src/index.vue.js +10 -0
- package/lib/components/table-v2/src/index.vue2.js +495 -0
- package/lib/components/table-v2/src/special-columns.d.ts +61 -0
- package/lib/components/table-v2/src/special-columns.js +80 -0
- package/lib/components/table-v2/src/table-v2-cell.d.ts +104 -0
- package/lib/components/table-v2/src/table-v2-cell.js +143 -0
- package/lib/components/table-v2/src/table-v2-header-cell.vue.d.ts +61 -0
- package/lib/components/table-v2/src/table-v2-header-cell.vue.js +10 -0
- package/lib/components/table-v2/src/table-v2-header-cell.vue2.js +96 -0
- package/lib/components/table-v2/src/type.d.ts +95 -0
- package/lib/components/table-v2/src/type.js +2 -0
- package/lib/components/table-v2/src/use-table-v2-columns.d.ts +43 -0
- package/lib/components/table-v2/src/use-table-v2-columns.js +51 -0
- package/lib/components/table-v2/style/css.d.ts +17 -0
- package/lib/components/table-v2/style/css.js +20 -0
- package/lib/components/table-v2/style/index.d.ts +17 -0
- package/lib/components/table-v2/style/index.js +20 -0
- package/lib/index.js +51 -39
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-hk.js +1 -1
- package/locale/zh-hk.min.js +1 -1
- package/locale/zh-hk.min.mjs +1 -1
- package/locale/zh-hk.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/plus-table-lite.css +1 -0
- package/theme-chalk/plus-table-v2.css +1 -0
- package/theme-chalk/src/index.scss +2 -0
- package/theme-chalk/src/table-lite.scss +53 -0
- package/theme-chalk/src/table-v2.scss +71 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { defineComponent, useSlots, computed, ref, watch, h, openBlock, createElementBlock, createBlock, resolveDynamicComponent, withCtx, createVNode, unref, mergeProps, createSlots, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode } from 'vue';
|
|
2
2
|
import { PlusSearch } from '../../search/index.mjs';
|
|
3
3
|
import { PlusTable } from '../../table/index.mjs';
|
|
4
|
+
import { PlusTableLite } from '../../table-lite/index.mjs';
|
|
5
|
+
import { PlusTableV2 } from '../../table-v2/index.mjs';
|
|
4
6
|
import { ElCard, ElDivider } from 'element-plus';
|
|
5
7
|
import '../../../hooks/index.mjs';
|
|
6
8
|
import { getFieldSlotName, getLabelSlotName, getExtraSlotName, getPreviousSlotName } from '../../utils/index.mjs';
|
|
@@ -21,6 +23,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
23
|
request: {},
|
|
22
24
|
search: { type: [Boolean, Object], default: () => ({}) },
|
|
23
25
|
table: { default: () => ({}) },
|
|
26
|
+
tableType: { default: "table" },
|
|
27
|
+
tableV2: { default: void 0 },
|
|
28
|
+
tableLite: { default: void 0 },
|
|
24
29
|
params: { default: () => ({}) },
|
|
25
30
|
postData: { type: Function, default: void 0 },
|
|
26
31
|
beforeSearchSubmit: { type: Function, default: void 0 },
|
|
@@ -39,7 +44,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
44
|
searchSlot: { type: Boolean, default: false },
|
|
40
45
|
resetSearch: { type: Boolean, default: true }
|
|
41
46
|
},
|
|
42
|
-
emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "requestError", "requestComplete"],
|
|
47
|
+
emits: ["update:searchValues", "search", "reset", "searchChange", "paginationChange", "selectionChange", "requestError", "requestComplete"],
|
|
43
48
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
44
49
|
var _a, _b;
|
|
45
50
|
const props = __props;
|
|
@@ -74,6 +79,30 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
74
79
|
const values = ref(
|
|
75
80
|
(_b = props.searchValues) != null ? _b : { ...(_a = props.search) == null ? void 0 : _a.defaultValues }
|
|
76
81
|
);
|
|
82
|
+
const tableComponentMap = /* @__PURE__ */ new Map([
|
|
83
|
+
["table", PlusTable],
|
|
84
|
+
["table-v2", PlusTableV2],
|
|
85
|
+
["table-lite", PlusTableLite]
|
|
86
|
+
]);
|
|
87
|
+
const tableComponent = computed(() => tableComponentMap.get(props.tableType) || PlusTable);
|
|
88
|
+
const tableProps = computed(() => {
|
|
89
|
+
if (props.tableType === "table-v2") {
|
|
90
|
+
return { ...props.table, ...props.tableV2 };
|
|
91
|
+
}
|
|
92
|
+
if (props.tableType === "table-lite") {
|
|
93
|
+
return { ...props.table, ...props.tableLite };
|
|
94
|
+
}
|
|
95
|
+
return props.table;
|
|
96
|
+
});
|
|
97
|
+
const tablePagination = computed(() => {
|
|
98
|
+
if (props.pagination === false) return void 0;
|
|
99
|
+
return {
|
|
100
|
+
...props.pagination,
|
|
101
|
+
total: total.value,
|
|
102
|
+
modelValue: pageInfo.value,
|
|
103
|
+
pageSizeList: computedDefaultPageSizeList.value
|
|
104
|
+
};
|
|
105
|
+
});
|
|
77
106
|
watch(
|
|
78
107
|
() => props.searchValues,
|
|
79
108
|
(val) => {
|
|
@@ -123,6 +152,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
152
|
getList();
|
|
124
153
|
emit("paginationChange", _pageInfo);
|
|
125
154
|
};
|
|
155
|
+
const handleTablePaginationChange = (data) => {
|
|
156
|
+
handlePaginationChange(data);
|
|
157
|
+
};
|
|
158
|
+
const handleTableSelectionChange = (data) => {
|
|
159
|
+
emit("selectionChange", data || []);
|
|
160
|
+
};
|
|
126
161
|
const handleSearchChange = (val, column) => {
|
|
127
162
|
emit("update:searchValues", val);
|
|
128
163
|
emit("searchChange", val, column);
|
|
@@ -237,22 +272,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
237
272
|
class: "plus-page__table_wrapper"
|
|
238
273
|
}, {
|
|
239
274
|
default: withCtx(() => [
|
|
240
|
-
|
|
275
|
+
(openBlock(), createBlock(resolveDynamicComponent(tableComponent.value), mergeProps({
|
|
241
276
|
ref_key: "plusTableInstance",
|
|
242
277
|
ref: plusTableInstance,
|
|
243
278
|
"title-bar": { refresh: true }
|
|
244
|
-
},
|
|
279
|
+
}, tableProps.value, {
|
|
245
280
|
"table-data": unref(tableData),
|
|
246
281
|
"loading-status": unref(loadingStatus),
|
|
247
282
|
columns: _ctx.columns,
|
|
248
|
-
pagination:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
pageSizeList: computedDefaultPageSizeList.value
|
|
253
|
-
},
|
|
254
|
-
onPaginationChange: handlePaginationChange,
|
|
255
|
-
onRefresh: handleRefresh
|
|
283
|
+
pagination: tablePagination.value,
|
|
284
|
+
onPaginationChange: handleTablePaginationChange,
|
|
285
|
+
onRefresh: handleRefresh,
|
|
286
|
+
onSelectionChange: handleTableSelectionChange
|
|
256
287
|
}), createSlots({
|
|
257
288
|
_: 2
|
|
258
289
|
/* DYNAMIC */
|
|
@@ -300,7 +331,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
300
331
|
])
|
|
301
332
|
};
|
|
302
333
|
})
|
|
303
|
-
]), 1040, ["table-data", "loading-status", "columns", "pagination"])
|
|
334
|
+
]), 1040, ["table-data", "loading-status", "columns", "pagination"]))
|
|
304
335
|
]),
|
|
305
336
|
_: 3
|
|
306
337
|
/* FORWARDED */
|
|
@@ -2,22 +2,22 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
2
2
|
export type { PlusPopoverProps } from './src/index.vue';
|
|
3
3
|
export declare const PlusPopover: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
5
|
-
|
|
6
|
-
type: PropType<string>;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
cancelText: {
|
|
10
|
-
type: PropType<string>;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
confirmLoading: {
|
|
5
|
+
hasShowBottomButton: {
|
|
14
6
|
type: PropType<boolean>;
|
|
15
7
|
default: boolean;
|
|
16
8
|
};
|
|
17
|
-
|
|
9
|
+
confirmLoading: {
|
|
18
10
|
type: PropType<boolean>;
|
|
19
11
|
default: boolean;
|
|
20
12
|
};
|
|
13
|
+
cancelText: {
|
|
14
|
+
type: PropType<string>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
confirmText: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
21
|
}>> & {
|
|
22
22
|
onCancel?: (() => any) | undefined;
|
|
23
23
|
onConfirm?: (() => any) | undefined;
|
|
@@ -25,30 +25,30 @@ export declare const PlusPopover: {
|
|
|
25
25
|
cancel: () => void;
|
|
26
26
|
confirm: () => void;
|
|
27
27
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
28
|
-
|
|
29
|
-
type: PropType<string>;
|
|
30
|
-
default: string;
|
|
31
|
-
};
|
|
32
|
-
cancelText: {
|
|
33
|
-
type: PropType<string>;
|
|
34
|
-
default: string;
|
|
35
|
-
};
|
|
36
|
-
confirmLoading: {
|
|
28
|
+
hasShowBottomButton: {
|
|
37
29
|
type: PropType<boolean>;
|
|
38
30
|
default: boolean;
|
|
39
31
|
};
|
|
40
|
-
|
|
32
|
+
confirmLoading: {
|
|
41
33
|
type: PropType<boolean>;
|
|
42
34
|
default: boolean;
|
|
43
35
|
};
|
|
36
|
+
cancelText: {
|
|
37
|
+
type: PropType<string>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
confirmText: {
|
|
41
|
+
type: PropType<string>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
44
|
}>> & {
|
|
45
45
|
onCancel?: (() => any) | undefined;
|
|
46
46
|
onConfirm?: (() => any) | undefined;
|
|
47
47
|
}, {
|
|
48
|
-
confirmText: string;
|
|
49
|
-
cancelText: string;
|
|
50
|
-
confirmLoading: boolean;
|
|
51
48
|
hasShowBottomButton: boolean;
|
|
49
|
+
confirmLoading: boolean;
|
|
50
|
+
cancelText: string;
|
|
51
|
+
confirmText: string;
|
|
52
52
|
}, true, {}, {}, {
|
|
53
53
|
P: {};
|
|
54
54
|
B: {};
|
|
@@ -57,51 +57,51 @@ export declare const PlusPopover: {
|
|
|
57
57
|
M: {};
|
|
58
58
|
Defaults: {};
|
|
59
59
|
}, Readonly< ExtractPropTypes<{
|
|
60
|
-
|
|
61
|
-
type: PropType<string>;
|
|
62
|
-
default: string;
|
|
63
|
-
};
|
|
64
|
-
cancelText: {
|
|
65
|
-
type: PropType<string>;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
|
-
confirmLoading: {
|
|
60
|
+
hasShowBottomButton: {
|
|
69
61
|
type: PropType<boolean>;
|
|
70
62
|
default: boolean;
|
|
71
63
|
};
|
|
72
|
-
|
|
64
|
+
confirmLoading: {
|
|
73
65
|
type: PropType<boolean>;
|
|
74
66
|
default: boolean;
|
|
75
67
|
};
|
|
68
|
+
cancelText: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
confirmText: {
|
|
73
|
+
type: PropType<string>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
76
|
}>> & {
|
|
77
77
|
onCancel?: (() => any) | undefined;
|
|
78
78
|
onConfirm?: (() => any) | undefined;
|
|
79
79
|
}, {}, {}, {}, {}, {
|
|
80
|
-
confirmText: string;
|
|
81
|
-
cancelText: string;
|
|
82
|
-
confirmLoading: boolean;
|
|
83
80
|
hasShowBottomButton: boolean;
|
|
81
|
+
confirmLoading: boolean;
|
|
82
|
+
cancelText: string;
|
|
83
|
+
confirmText: string;
|
|
84
84
|
}>;
|
|
85
85
|
__isFragment?: undefined;
|
|
86
86
|
__isTeleport?: undefined;
|
|
87
87
|
__isSuspense?: undefined;
|
|
88
88
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
89
|
-
|
|
90
|
-
type: PropType<string>;
|
|
91
|
-
default: string;
|
|
92
|
-
};
|
|
93
|
-
cancelText: {
|
|
94
|
-
type: PropType<string>;
|
|
95
|
-
default: string;
|
|
96
|
-
};
|
|
97
|
-
confirmLoading: {
|
|
89
|
+
hasShowBottomButton: {
|
|
98
90
|
type: PropType<boolean>;
|
|
99
91
|
default: boolean;
|
|
100
92
|
};
|
|
101
|
-
|
|
93
|
+
confirmLoading: {
|
|
102
94
|
type: PropType<boolean>;
|
|
103
95
|
default: boolean;
|
|
104
96
|
};
|
|
97
|
+
cancelText: {
|
|
98
|
+
type: PropType<string>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
confirmText: {
|
|
102
|
+
type: PropType<string>;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
105
|
}>> & {
|
|
106
106
|
onCancel?: (() => any) | undefined;
|
|
107
107
|
onConfirm?: (() => any) | undefined;
|
|
@@ -109,10 +109,10 @@ export declare const PlusPopover: {
|
|
|
109
109
|
cancel: () => void;
|
|
110
110
|
confirm: () => void;
|
|
111
111
|
}, string, {
|
|
112
|
-
confirmText: string;
|
|
113
|
-
cancelText: string;
|
|
114
|
-
confirmLoading: boolean;
|
|
115
112
|
hasShowBottomButton: boolean;
|
|
113
|
+
confirmLoading: boolean;
|
|
114
|
+
cancelText: string;
|
|
115
|
+
confirmText: string;
|
|
116
116
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
117
117
|
$slots: {
|
|
118
118
|
default?(_: {}): any;
|
|
@@ -28,10 +28,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
28
28
|
onCancel?: (() => any) | undefined;
|
|
29
29
|
onConfirm?: (() => any) | undefined;
|
|
30
30
|
}, {
|
|
31
|
-
confirmText: string;
|
|
32
|
-
cancelText: string;
|
|
33
|
-
confirmLoading: boolean;
|
|
34
31
|
hasShowBottomButton: boolean;
|
|
32
|
+
confirmLoading: boolean;
|
|
33
|
+
cancelText: string;
|
|
34
|
+
confirmText: string;
|
|
35
35
|
}, {}>, {
|
|
36
36
|
default?(_: {}): any;
|
|
37
37
|
reference?(_: {}): any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PlusRadioProps, PlusDatePickerProps, PlusInputTagProps } from 'tabula-vue';
|
|
2
2
|
import { TimeSelectProps } from 'element-plus/es/components/time-select/src/time-select';
|
|
3
|
+
import { ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps, FormItemProps } from 'element-plus';
|
|
3
4
|
import { EpPropMergeType } from 'element-plus/es/utils';
|
|
4
|
-
import { FormItemProps, ProgressFn, CascaderNode, InputAutoSize, AutocompleteProps, CheckboxGroupProps, ColorPickerProps, DatePickerProps, InputProps, InputNumberProps, RadioGroupProps, RateProps, ISelectProps, SliderProps, SwitchProps, TimePickerDefaultProps, TextProps, ImageProps, LinkProps, TagProps, ProgressProps } from 'element-plus';
|
|
5
5
|
import { FieldValueType, PlusColumn, RenderTypes, RecordType, PropsItemType, Mutable, OmitTypes, CascaderProps } from 'tabula-vue';
|
|
6
6
|
import { DefineComponent, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
7
7
|
export type { PlusRenderProps } from './src/index.vue';
|
|
@@ -21,10 +21,7 @@ export declare const PlusRender: DefineComponent<{
|
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
customFieldProps: {
|
|
24
|
-
type: PropType< PropsItemType<
|
|
25
|
-
[key: string]: any;
|
|
26
|
-
style?: CSSProperties | undefined;
|
|
27
|
-
}> | PropsItemType<Partial<{
|
|
24
|
+
type: PropType< PropsItemType<Partial<{
|
|
28
25
|
[index: string]: any;
|
|
29
26
|
[index: number]: any;
|
|
30
27
|
[index: symbol]: any;
|
|
@@ -38,7 +35,7 @@ export declare const PlusRender: DefineComponent<{
|
|
|
38
35
|
};
|
|
39
36
|
rows: number;
|
|
40
37
|
autocomplete: string;
|
|
41
|
-
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "
|
|
38
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
42
39
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
43
40
|
step: string | number;
|
|
44
41
|
format: string | ProgressFn | undefined;
|
|
@@ -47,7 +44,10 @@ export declare const PlusRender: DefineComponent<{
|
|
|
47
44
|
effect: string;
|
|
48
45
|
height: string | number;
|
|
49
46
|
autosize: InputAutoSize;
|
|
50
|
-
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes
|
|
47
|
+
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>> | PropsItemType< Mutable<FormItemProps> & {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
style?: CSSProperties | undefined;
|
|
50
|
+
}>>;
|
|
51
51
|
default: () => {};
|
|
52
52
|
};
|
|
53
53
|
params: {
|
|
@@ -70,10 +70,7 @@ export declare const PlusRender: DefineComponent<{
|
|
|
70
70
|
default: string;
|
|
71
71
|
};
|
|
72
72
|
customFieldProps: {
|
|
73
|
-
type: PropType< PropsItemType<
|
|
74
|
-
[key: string]: any;
|
|
75
|
-
style?: CSSProperties | undefined;
|
|
76
|
-
}> | PropsItemType<Partial<{
|
|
73
|
+
type: PropType< PropsItemType<Partial<{
|
|
77
74
|
[index: string]: any;
|
|
78
75
|
[index: number]: any;
|
|
79
76
|
[index: symbol]: any;
|
|
@@ -87,7 +84,7 @@ export declare const PlusRender: DefineComponent<{
|
|
|
87
84
|
};
|
|
88
85
|
rows: number;
|
|
89
86
|
autocomplete: string;
|
|
90
|
-
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "
|
|
87
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
91
88
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
92
89
|
step: string | number;
|
|
93
90
|
format: string | ProgressFn | undefined;
|
|
@@ -96,7 +93,10 @@ export declare const PlusRender: DefineComponent<{
|
|
|
96
93
|
effect: string;
|
|
97
94
|
height: string | number;
|
|
98
95
|
autosize: InputAutoSize;
|
|
99
|
-
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes
|
|
96
|
+
} & Mutable<Omit< AutocompleteProps, OmitTypes> & Omit< CascaderProps, OmitTypes> & Omit< CheckboxGroupProps, OmitTypes> & Omit< ColorPickerProps, OmitTypes> & Omit< DatePickerProps, OmitTypes> & Omit< InputProps, OmitTypes> & Omit< InputNumberProps, OmitTypes> & Omit< RadioGroupProps, OmitTypes> & Omit< RateProps, OmitTypes> & Omit< ISelectProps, OmitTypes> & Omit< SliderProps, OmitTypes> & Omit< SwitchProps, OmitTypes> & Omit< TimePickerDefaultProps, OmitTypes> & Omit< TimeSelectProps, OmitTypes> & Omit< PlusRadioProps, OmitTypes> & Omit< PlusDatePickerProps, OmitTypes> & Omit< PlusInputTagProps, OmitTypes> & Omit< TextProps, OmitTypes> & Omit< ImageProps, OmitTypes> & Omit< LinkProps, OmitTypes> & Omit< TagProps, OmitTypes> & Omit< ProgressProps, OmitTypes>>>> | PropsItemType< Mutable<FormItemProps> & {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
style?: CSSProperties | undefined;
|
|
99
|
+
}>>;
|
|
100
100
|
default: () => {};
|
|
101
101
|
};
|
|
102
102
|
params: {
|
|
@@ -123,7 +123,7 @@ export declare const PlusRender: DefineComponent<{
|
|
|
123
123
|
};
|
|
124
124
|
rows: number;
|
|
125
125
|
autocomplete: string;
|
|
126
|
-
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "
|
|
126
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
127
127
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
128
128
|
step: string | number;
|
|
129
129
|
format: string | ProgressFn | undefined;
|
|
@@ -49,7 +49,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
49
49
|
};
|
|
50
50
|
rows: number;
|
|
51
51
|
autocomplete: string;
|
|
52
|
-
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "
|
|
52
|
+
type: "" | "number" | "default" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "search" | "time" | "image" | "line" | "hidden" | "range" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "dashboard" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
|
|
53
53
|
loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
|
|
54
54
|
step: string | number;
|
|
55
55
|
format: string | ProgressFn | undefined;
|