@vunk/form 2.0.2 → 2.2.0
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/components/card-input-collection/index.cjs +256 -0
- package/components/card-input-collection/index.css +21 -0
- package/components/card-input-collection/index.d.ts +4 -0
- package/components/card-input-collection/index.mjs +250 -0
- package/components/card-input-collection/src/ctx.d.ts +82 -0
- package/components/card-input-collection/src/index.vue.d.ts +542 -0
- package/components/card-input-collection/src/types.d.ts +1 -0
- package/components/cascader/src/ctx.d.ts +1 -1
- package/components/cascader/src/index.vue.d.ts +1 -1
- package/components/checkbox/src/ctx.d.ts +1 -1
- package/components/checkbox/src/index.vue.d.ts +2 -2
- package/components/cloneDeep.cjs +2029 -0
- package/components/cloneDeep.mjs +2027 -0
- package/components/date-picker/src/ctx.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +2 -2
- package/components/esri-input-geojson/index.cjs +484 -2
- package/components/esri-input-geojson/index.mjs +483 -1
- package/components/esri-input-geojson/src/ctx.d.ts +1 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +2 -2
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +1 -1
- package/components/index2.cjs +0 -19
- package/components/index2.mjs +1 -19
- package/components/input/src/ctx.d.ts +1 -1
- package/components/input/src/index.vue.d.ts +2 -2
- package/components/input-collection/index.cjs +4 -2029
- package/components/input-collection/index.mjs +4 -2029
- package/components/input-collection/src/index.vue.d.ts +1 -1
- package/components/input-link/src/index.vue.d.ts +1 -1
- package/components/input-number/src/ctx.d.ts +1 -1
- package/components/input-number/src/index.vue.d.ts +3 -3
- package/components/radio/src/index.vue.d.ts +1 -1
- package/components/select/index.cjs +12 -0
- package/components/select/index.d.ts +1 -0
- package/components/select/index.mjs +12 -1
- package/components/select/src/ctx.d.ts +2 -0
- package/components/select/src/index.vue.d.ts +2 -2
- package/components/slider/src/index.vue.d.ts +1 -1
- package/components/switch/src/index.vue.d.ts +1 -1
- package/components/tables-select/index.cjs +225 -0
- package/components/tables-select/index.css +3 -0
- package/components/tables-select/index.d.ts +4 -0
- package/components/tables-select/index.mjs +219 -0
- package/components/tables-select/src/ctx.d.ts +338 -0
- package/components/tables-select/src/index.vue.d.ts +4953 -0
- package/components/tables-select/src/types.d.ts +1 -0
- package/components/upload/index.mjs +1 -1
- package/components/upload-plus/index.mjs +1 -1
- package/components/vditor/src/index.vue.d.ts +1 -1
- package/index.css +26 -41
- package/package.json +17 -9
- package/shared/element-plus/ctx.d.ts +1 -1
- package/components/geoinput-update/index.cjs +0 -406
- package/components/geoinput-update/index.css +0 -40
- package/components/geoinput-update/index.d.ts +0 -5
- package/components/geoinput-update/index.mjs +0 -399
- package/components/geoinput-update/src/append.vue.d.ts +0 -815
- package/components/geoinput-update/src/ctx.d.ts +0 -219
- package/components/geoinput-update/src/index.vue.d.ts +0 -1143
- package/components/geoinput-update/src/types.d.ts +0 -6
- package/components/index3.cjs +0 -486
- package/components/index3.mjs +0 -484
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { _VkTablesV1CheckboxCtx, VkTablesV1Checkbox } from '@vunk/plus/components/tables-v1-checkbox';
|
|
2
|
+
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
3
|
+
import { defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, mergeProps, withCtx, toHandlers } from 'vue';
|
|
4
|
+
import { VkfSelect } from '@vunk/form/components/select';
|
|
5
|
+
import { ElDialog } from 'element-plus';
|
|
6
|
+
import { compareArray } from '@vunk/shared/array';
|
|
7
|
+
import { isNotEmptyObject } from '@vunk/shared/object';
|
|
8
|
+
import { useComputedReadonly } from '@vunk/form/composables';
|
|
9
|
+
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
10
|
+
|
|
11
|
+
const props = {
|
|
12
|
+
..._VkfFormItemCtx.props,
|
|
13
|
+
..._VkTablesV1CheckboxCtx.props,
|
|
14
|
+
/**
|
|
15
|
+
* @description v-model 绑定值
|
|
16
|
+
*/
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: [Array, String],
|
|
19
|
+
default: () => []
|
|
20
|
+
},
|
|
21
|
+
labelField: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "label"
|
|
24
|
+
},
|
|
25
|
+
clearable: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
multiple: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: true
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* @description 获取完整数据
|
|
35
|
+
*/
|
|
36
|
+
getRows: {
|
|
37
|
+
type: Function,
|
|
38
|
+
default: () => []
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* @description 是否在补全 Rows 后更新 modelValue
|
|
42
|
+
*/
|
|
43
|
+
updateWhenCompleted: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
/**
|
|
48
|
+
* @description 是否将选中的数据 join 为字符串
|
|
49
|
+
*/
|
|
50
|
+
stringify: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* @description 是否只读
|
|
56
|
+
*/
|
|
57
|
+
readonly: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: void 0
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const emits = {
|
|
63
|
+
..._VkTablesV1CheckboxCtx.emits
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
var _sfc_main = defineComponent({
|
|
67
|
+
name: "VkfTablesSelect",
|
|
68
|
+
components: {
|
|
69
|
+
VkfSelect,
|
|
70
|
+
VkTablesV1Checkbox,
|
|
71
|
+
ElDialog
|
|
72
|
+
},
|
|
73
|
+
props,
|
|
74
|
+
emits,
|
|
75
|
+
setup(props2, { emit }) {
|
|
76
|
+
const formItemProps = _VkfFormItemCtx.createBindProps(props2);
|
|
77
|
+
const tablesProps = _VkTablesV1CheckboxCtx.createBindProps(props2, ["modelValue"]);
|
|
78
|
+
const tablesEmits = _VkTablesV1CheckboxCtx.createOnEmits(emit, ["update:modelValue"]);
|
|
79
|
+
const readonly = useComputedReadonly(props2);
|
|
80
|
+
const dialogVisible = ref(false);
|
|
81
|
+
const backupRowMap = ref(/* @__PURE__ */ new Map());
|
|
82
|
+
const theModelValue = computed({
|
|
83
|
+
get: () => {
|
|
84
|
+
if (props2.stringify && typeof props2.modelValue === "string") {
|
|
85
|
+
return props2.modelValue ? props2.modelValue.split(",").map((v) => ({ [props2.oidField]: v })) : [];
|
|
86
|
+
}
|
|
87
|
+
return props2.modelValue;
|
|
88
|
+
},
|
|
89
|
+
set: (modelValue) => {
|
|
90
|
+
if (!Array.isArray(modelValue)) {
|
|
91
|
+
modelValue = modelValue ? [modelValue] : [];
|
|
92
|
+
}
|
|
93
|
+
if (props2.stringify) {
|
|
94
|
+
const value = modelValue.reduce((a, v) => {
|
|
95
|
+
if (isNotEmptyObject(v) && v[props2.oidField] !== void 0) {
|
|
96
|
+
a.push(v[props2.oidField]);
|
|
97
|
+
}
|
|
98
|
+
return a;
|
|
99
|
+
}, []).join(",");
|
|
100
|
+
emit("update:modelValue", value);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
emit("update:modelValue", modelValue);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const selectOptions = computed(() => {
|
|
107
|
+
return theModelValue.value.map((item) => {
|
|
108
|
+
const backupRow = backupRowMap.value.get(item[props2.oidField]);
|
|
109
|
+
return {
|
|
110
|
+
label: item[props2.labelField] || backupRow?.[props2.labelField],
|
|
111
|
+
value: item
|
|
112
|
+
};
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
const selectValue = computed(() => {
|
|
116
|
+
return props2.multiple ? theModelValue.value : theModelValue.value[0];
|
|
117
|
+
});
|
|
118
|
+
watch(
|
|
119
|
+
() => selectOptions.value.filter((v) => !v.label),
|
|
120
|
+
(rows) => {
|
|
121
|
+
if (!rows.length) {
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
readItems(rows.map((v) => v.value[props2.oidField])).then(() => {
|
|
125
|
+
if (props2.stringify) return;
|
|
126
|
+
if (!props2.updateWhenCompleted) return;
|
|
127
|
+
const newModelValue = theModelValue.value.reduce((a, v) => {
|
|
128
|
+
const backupRow = backupRowMap.value.get(v[props2.oidField]);
|
|
129
|
+
backupRow ? a.push(backupRow) : a.push(v);
|
|
130
|
+
return a;
|
|
131
|
+
}, []);
|
|
132
|
+
theModelValue.value = newModelValue;
|
|
133
|
+
});
|
|
134
|
+
},
|
|
135
|
+
{ immediate: true }
|
|
136
|
+
);
|
|
137
|
+
async function readItems(ids) {
|
|
138
|
+
const idRows = ids.filter((v) => !backupRowMap.value.has(v)).map((id) => ({ [props2.oidField]: id }));
|
|
139
|
+
if (!idRows.length) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const { updateRows, addMap } = compareArray(props2.data, idRows, props2.oidField);
|
|
143
|
+
updateRows.forEach((row) => {
|
|
144
|
+
backupRowMap.value.set(row[props2.oidField], row);
|
|
145
|
+
});
|
|
146
|
+
if (!addMap.size) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const oids = Array.from(addMap.keys());
|
|
150
|
+
const rows = await props2.getRows(oids);
|
|
151
|
+
rows.forEach((row) => {
|
|
152
|
+
backupRowMap.value.set(row[props2.oidField], row);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return {
|
|
156
|
+
formItemProps,
|
|
157
|
+
selectOptions,
|
|
158
|
+
tablesProps,
|
|
159
|
+
tablesEmits,
|
|
160
|
+
dialogVisible,
|
|
161
|
+
selectValue,
|
|
162
|
+
theModelValue,
|
|
163
|
+
readonly
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
169
|
+
const _component_VkfSelect = resolveComponent("VkfSelect");
|
|
170
|
+
const _component_VkTablesV1Checkbox = resolveComponent("VkTablesV1Checkbox");
|
|
171
|
+
const _component_ElDialog = resolveComponent("ElDialog");
|
|
172
|
+
return openBlock(), createElementBlock(
|
|
173
|
+
Fragment,
|
|
174
|
+
null,
|
|
175
|
+
[
|
|
176
|
+
createVNode(_component_VkfSelect, mergeProps(_ctx.formItemProps, {
|
|
177
|
+
multiple: _ctx.multiple,
|
|
178
|
+
options: _ctx.selectOptions,
|
|
179
|
+
"model-value": _ctx.selectValue,
|
|
180
|
+
clearable: _ctx.clearable,
|
|
181
|
+
"popper-class": "vkf-tables-select__popper",
|
|
182
|
+
"value-key": _ctx.oidField,
|
|
183
|
+
readonly: _ctx.readonly,
|
|
184
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.theModelValue = $event),
|
|
185
|
+
onVisibleChange: _cache[1] || (_cache[1] = ($event) => !_ctx.readonly && (_ctx.dialogVisible = true))
|
|
186
|
+
}), null, 16, ["multiple", "options", "model-value", "clearable", "value-key", "readonly"]),
|
|
187
|
+
createVNode(_component_ElDialog, {
|
|
188
|
+
modelValue: _ctx.dialogVisible,
|
|
189
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.dialogVisible = $event),
|
|
190
|
+
title: _ctx.label ?? "\u8BF7\u9009\u62E9",
|
|
191
|
+
"append-to-body": "",
|
|
192
|
+
"model-class": "vkf-tables-select__model",
|
|
193
|
+
class: "vkf-tables-select__dialog"
|
|
194
|
+
}, {
|
|
195
|
+
default: withCtx(() => [
|
|
196
|
+
createVNode(_component_VkTablesV1Checkbox, mergeProps(_ctx.tablesProps, {
|
|
197
|
+
modelValue: _ctx.theModelValue,
|
|
198
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.theModelValue = $event)
|
|
199
|
+
}, toHandlers(_ctx.tablesEmits)), null, 16, ["modelValue"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
/* STABLE */
|
|
203
|
+
}, 8, ["modelValue", "title"])
|
|
204
|
+
],
|
|
205
|
+
64
|
|
206
|
+
/* STABLE_FRAGMENT */
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
var VkfTablesSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/tables-select/src/index.vue"]]);
|
|
210
|
+
|
|
211
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
212
|
+
__proto__: null
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
VkfTablesSelect.install = (app) => {
|
|
216
|
+
app.component(VkfTablesSelect.name || "VkfTablesSelect", VkfTablesSelect);
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export { VkfTablesSelect, types as __VkfTablesSelect, VkfTablesSelect as default };
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { NormalObject } from '@vunk/shared';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
/**
|
|
5
|
+
* @description v-model 绑定值
|
|
6
|
+
*/
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: PropType<NormalObject[] | string>;
|
|
9
|
+
default: () => any[];
|
|
10
|
+
};
|
|
11
|
+
labelField: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
clearable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
multiple: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @description 获取完整数据
|
|
25
|
+
*/
|
|
26
|
+
getRows: {
|
|
27
|
+
type: PropType<(ids: any[]) => Promise<NormalObject[]>>;
|
|
28
|
+
default: () => any[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @description 是否在补全 Rows 后更新 modelValue
|
|
32
|
+
*/
|
|
33
|
+
updateWhenCompleted: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @description 是否将选中的数据 join 为字符串
|
|
39
|
+
*/
|
|
40
|
+
stringify: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @description 是否只读
|
|
46
|
+
*/
|
|
47
|
+
readonly: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: any;
|
|
50
|
+
};
|
|
51
|
+
oidField: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
disabled: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
selectionHidden: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
checkTrigger: {
|
|
64
|
+
type: PropType<"check" | "rowClick">;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
paginationDisabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
border: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
tableClass: {
|
|
76
|
+
type: StringConstructor;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
tableStyle: {
|
|
80
|
+
type: PropType<import("vue").CSSProperties>;
|
|
81
|
+
default: any;
|
|
82
|
+
};
|
|
83
|
+
layout: {
|
|
84
|
+
type: StringConstructor;
|
|
85
|
+
default: any;
|
|
86
|
+
};
|
|
87
|
+
pageSize: {
|
|
88
|
+
type: NumberConstructor;
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
currentPage: {
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
default: number;
|
|
94
|
+
};
|
|
95
|
+
start: {
|
|
96
|
+
type: NumberConstructor;
|
|
97
|
+
default: any;
|
|
98
|
+
};
|
|
99
|
+
columns: {
|
|
100
|
+
type: PropType<import("@vunk/plus/components/tables-v1/src/types").Column[]>;
|
|
101
|
+
default: () => any[];
|
|
102
|
+
};
|
|
103
|
+
modules: {
|
|
104
|
+
type: PropType<"pagination"[]>;
|
|
105
|
+
default: () => string[];
|
|
106
|
+
};
|
|
107
|
+
align: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
headerAlign: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
elRef: {
|
|
116
|
+
type: PropType<import("@vunk/core").AnyFunc>;
|
|
117
|
+
default: any;
|
|
118
|
+
};
|
|
119
|
+
load: PropType<(row: any, treeNode: import("element-plus").TreeNode, resolve: (data: any[]) => void) => void>;
|
|
120
|
+
data: {
|
|
121
|
+
type: PropType<any[]>;
|
|
122
|
+
default: () => any[];
|
|
123
|
+
};
|
|
124
|
+
size: {
|
|
125
|
+
readonly type: PropType<import("element-plus").ButtonType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
126
|
+
readonly required: false;
|
|
127
|
+
readonly validator: (val: unknown) => boolean;
|
|
128
|
+
__epPropKey: true;
|
|
129
|
+
};
|
|
130
|
+
width: (StringConstructor | NumberConstructor)[];
|
|
131
|
+
showOverflowTooltip: PropType<boolean | Partial<Pick<import("element-plus").ElTooltipProps, "popperClass" | "showArrow" | "appendTo" | "transition" | "effect" | "enterable" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
132
|
+
rowKey: PropType<string | ((row: any) => string)>;
|
|
133
|
+
summaryMethod: PropType<import("element-plus").SummaryMethod<any>>;
|
|
134
|
+
rowClassName: PropType<import("element-plus").ColumnCls<any>>;
|
|
135
|
+
rowStyle: PropType<import("element-plus").ColumnStyle<any>>;
|
|
136
|
+
cellClassName: PropType<import("element-plus").CellCls<any>>;
|
|
137
|
+
cellStyle: PropType<import("element-plus").CellStyle<any>>;
|
|
138
|
+
headerRowClassName: PropType<import("element-plus").ColumnCls<any>>;
|
|
139
|
+
headerRowStyle: PropType<import("element-plus").ColumnStyle<any>>;
|
|
140
|
+
headerCellClassName: PropType<import("element-plus").CellCls<any>>;
|
|
141
|
+
headerCellStyle: PropType<import("element-plus").CellStyle<any>>;
|
|
142
|
+
expandRowKeys: PropType<any[]>;
|
|
143
|
+
defaultSort: PropType<import("element-plus").Sort>;
|
|
144
|
+
tooltipOptions: PropType<Partial<Pick<import("element-plus").ElTooltipProps, "popperClass" | "showArrow" | "appendTo" | "transition" | "effect" | "enterable" | "offset" | "placement" | "popperOptions" | "showAfter" | "hideAfter">>>;
|
|
145
|
+
spanMethod: PropType<(data: {
|
|
146
|
+
row: any;
|
|
147
|
+
rowIndex: number;
|
|
148
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
149
|
+
columnIndex: number;
|
|
150
|
+
}) => number[] | {
|
|
151
|
+
rowspan: number;
|
|
152
|
+
colspan: number;
|
|
153
|
+
}>;
|
|
154
|
+
treeProps: {
|
|
155
|
+
type: PropType<{
|
|
156
|
+
hasChildren?: string;
|
|
157
|
+
children?: string;
|
|
158
|
+
}>;
|
|
159
|
+
default: () => {
|
|
160
|
+
hasChildren: string;
|
|
161
|
+
children: string;
|
|
162
|
+
checkStrictly: boolean;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
height: (StringConstructor | NumberConstructor)[];
|
|
166
|
+
maxHeight: (StringConstructor | NumberConstructor)[];
|
|
167
|
+
fit: {
|
|
168
|
+
type: BooleanConstructor;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
stripe: BooleanConstructor;
|
|
172
|
+
showHeader: {
|
|
173
|
+
type: BooleanConstructor;
|
|
174
|
+
default: boolean;
|
|
175
|
+
};
|
|
176
|
+
showSummary: BooleanConstructor;
|
|
177
|
+
sumText: StringConstructor;
|
|
178
|
+
highlightCurrentRow: BooleanConstructor;
|
|
179
|
+
currentRowKey: (StringConstructor | NumberConstructor)[];
|
|
180
|
+
emptyText: StringConstructor;
|
|
181
|
+
defaultExpandAll: BooleanConstructor;
|
|
182
|
+
tooltipEffect: StringConstructor;
|
|
183
|
+
selectOnIndeterminate: {
|
|
184
|
+
type: BooleanConstructor;
|
|
185
|
+
default: boolean;
|
|
186
|
+
};
|
|
187
|
+
indent: {
|
|
188
|
+
type: NumberConstructor;
|
|
189
|
+
default: number;
|
|
190
|
+
};
|
|
191
|
+
lazy: BooleanConstructor;
|
|
192
|
+
tableLayout: {
|
|
193
|
+
type: PropType<"fixed" | "auto">;
|
|
194
|
+
default: string;
|
|
195
|
+
};
|
|
196
|
+
scrollbarAlwaysOn: BooleanConstructor;
|
|
197
|
+
flexible: BooleanConstructor;
|
|
198
|
+
appendFilterPanelTo: StringConstructor;
|
|
199
|
+
scrollbarTabindex: {
|
|
200
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
201
|
+
default: any;
|
|
202
|
+
};
|
|
203
|
+
defaultPageSize: NumberConstructor;
|
|
204
|
+
total: NumberConstructor;
|
|
205
|
+
pageCount: NumberConstructor;
|
|
206
|
+
pagerCount: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 7, boolean>;
|
|
207
|
+
defaultCurrentPage: NumberConstructor;
|
|
208
|
+
pageSizes: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => number[]) | (() => number[]) | ((new (...args: any[]) => number[]) | (() => number[]))[], unknown, unknown, () => [10, 20, 30, 40, 50, 100], boolean>;
|
|
209
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
210
|
+
prevText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
211
|
+
prevIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
212
|
+
nextText: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
213
|
+
nextIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>))[], unknown, unknown, () => any, boolean>;
|
|
214
|
+
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
215
|
+
small: BooleanConstructor;
|
|
216
|
+
background: BooleanConstructor;
|
|
217
|
+
hideOnSinglePage: BooleanConstructor;
|
|
218
|
+
type: {
|
|
219
|
+
type: StringConstructor;
|
|
220
|
+
default: string;
|
|
221
|
+
};
|
|
222
|
+
label: StringConstructor;
|
|
223
|
+
className: StringConstructor;
|
|
224
|
+
labelClassName: StringConstructor;
|
|
225
|
+
property: StringConstructor;
|
|
226
|
+
prop: StringConstructor;
|
|
227
|
+
minWidth: {
|
|
228
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
229
|
+
default: string;
|
|
230
|
+
};
|
|
231
|
+
renderHeader: PropType<(data: {
|
|
232
|
+
column: import("element-plus").TableColumnCtx<any>;
|
|
233
|
+
$index: number;
|
|
234
|
+
}) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
235
|
+
[key: string]: any;
|
|
236
|
+
}>>;
|
|
237
|
+
sortable: {
|
|
238
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
239
|
+
default: boolean;
|
|
240
|
+
};
|
|
241
|
+
sortMethod: PropType<(a: any, b: any) => number>;
|
|
242
|
+
sortBy: PropType<string | string[] | ((row: any, index: number) => string)>;
|
|
243
|
+
resizable: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
columnKey: StringConstructor;
|
|
248
|
+
showTooltipWhenOverflow: BooleanConstructor;
|
|
249
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
|
250
|
+
formatter: PropType<(row: any, column: import("element-plus").TableColumnCtx<any>, cellValue: any, index: number) => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
251
|
+
[key: string]: any;
|
|
252
|
+
}>>;
|
|
253
|
+
selectable: PropType<(row: any, index: number) => boolean>;
|
|
254
|
+
reserveSelection: BooleanConstructor;
|
|
255
|
+
filterMethod: PropType<import("element-plus/es/components/table/src/table-column/defaults").FilterMethods<any>>;
|
|
256
|
+
filteredValue: PropType<string[]>;
|
|
257
|
+
filters: PropType<import("element-plus/es/components/table/src/table-column/defaults").Filters>;
|
|
258
|
+
filterPlacement: StringConstructor;
|
|
259
|
+
filterMultiple: {
|
|
260
|
+
type: BooleanConstructor;
|
|
261
|
+
default: boolean;
|
|
262
|
+
};
|
|
263
|
+
index: PropType<number | ((index: number) => number)>;
|
|
264
|
+
sortOrders: {
|
|
265
|
+
type: PropType<("ascending" | "descending")[]>;
|
|
266
|
+
default: () => string[];
|
|
267
|
+
validator: (val: ("ascending" | "descending")[]) => boolean;
|
|
268
|
+
};
|
|
269
|
+
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
270
|
+
formItemSize: {
|
|
271
|
+
type: PropType<"default" | "small" | "large">;
|
|
272
|
+
default: "default" | "small" | "large";
|
|
273
|
+
};
|
|
274
|
+
formItemSlots: {
|
|
275
|
+
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
276
|
+
default: any;
|
|
277
|
+
};
|
|
278
|
+
inline: {
|
|
279
|
+
type: BooleanConstructor;
|
|
280
|
+
default: boolean;
|
|
281
|
+
};
|
|
282
|
+
formItemTip: {
|
|
283
|
+
type: StringConstructor;
|
|
284
|
+
default: any;
|
|
285
|
+
};
|
|
286
|
+
formItemTipClass: any;
|
|
287
|
+
labelTip: {
|
|
288
|
+
type: StringConstructor;
|
|
289
|
+
default: any;
|
|
290
|
+
};
|
|
291
|
+
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
292
|
+
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
293
|
+
rules: {
|
|
294
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
295
|
+
readonly required: false;
|
|
296
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
297
|
+
__epPropKey: true;
|
|
298
|
+
};
|
|
299
|
+
error: StringConstructor;
|
|
300
|
+
validateStatus: {
|
|
301
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
302
|
+
readonly required: false;
|
|
303
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
304
|
+
__epPropKey: true;
|
|
305
|
+
};
|
|
306
|
+
for: StringConstructor;
|
|
307
|
+
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
308
|
+
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
309
|
+
};
|
|
310
|
+
export declare const emits: {
|
|
311
|
+
'update:modelValue': (val: any[]) => boolean;
|
|
312
|
+
'update:start': (val: number) => boolean;
|
|
313
|
+
select: any;
|
|
314
|
+
'select-all': any;
|
|
315
|
+
'selection-change': any;
|
|
316
|
+
'cell-mouse-enter': any;
|
|
317
|
+
'cell-mouse-leave': any;
|
|
318
|
+
'cell-contextmenu': any;
|
|
319
|
+
'cell-click': any;
|
|
320
|
+
'cell-dblclick': any;
|
|
321
|
+
'row-click': any;
|
|
322
|
+
'row-contextmenu': any;
|
|
323
|
+
'row-dblclick': any;
|
|
324
|
+
'header-click': any;
|
|
325
|
+
'header-contextmenu': any;
|
|
326
|
+
'sort-change': any;
|
|
327
|
+
'filter-change': any;
|
|
328
|
+
'current-change': any;
|
|
329
|
+
'header-dragend': any;
|
|
330
|
+
'expand-change': any;
|
|
331
|
+
scroll: any;
|
|
332
|
+
'update:current-page': (val: number) => boolean;
|
|
333
|
+
'update:page-size': (val: number) => boolean;
|
|
334
|
+
'size-change': (val: number) => boolean;
|
|
335
|
+
change: (currentPage: number, pageSize: number) => boolean;
|
|
336
|
+
'prev-click': (val: number) => boolean;
|
|
337
|
+
'next-click': (val: number) => boolean;
|
|
338
|
+
};
|