@silver-formily/element-plus 3.0.3 → 4.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/README.en-US.md +3 -1
- package/README.md +3 -1
- package/esm/autocomplete/index.d.ts +41 -1
- package/esm/cascader/index.d.ts +31 -1
- package/esm/checkbox/index.d.ts +819 -1
- package/esm/color-picker/index.d.ts +210 -1
- package/esm/color-picker-panel/index.d.ts +130 -1
- package/esm/date-picker/index.d.ts +447 -1
- package/esm/date-picker-panel/index.d.ts +147 -1
- package/esm/editable/index.d.ts +60 -1
- package/esm/form-collapse/index.d.ts +3 -3
- package/esm/form-dialog/dialog-content.mjs +10 -12
- package/esm/form-dialog/dialog-content.mjs.map +1 -1
- package/esm/form-dialog/index.mjs +22 -26
- package/esm/form-dialog/index.mjs.map +1 -1
- package/esm/form-dialog/types.d.ts +0 -1
- package/esm/form-drawer/drawer-content.mjs +10 -12
- package/esm/form-drawer/drawer-content.mjs.map +1 -1
- package/esm/form-drawer/index.mjs +22 -26
- package/esm/form-drawer/index.mjs.map +1 -1
- package/esm/form-drawer/types.d.ts +0 -1
- package/esm/form-item/index.d.ts +83 -1
- package/esm/form-layout/form-layout.vue.d.ts +1 -1
- package/esm/index.d.ts +3 -1
- package/esm/index.mjs +2 -1
- package/esm/input/index.d.ts +43 -1
- package/esm/input-number/index.d.ts +328 -1
- package/esm/input-tag/index.d.ts +26 -1
- package/esm/mention/index.d.ts +36 -1
- package/esm/password/index.d.ts +42 -1
- package/esm/picker-select/index.d.ts +47 -0
- package/esm/picker-select/index.mjs +14 -0
- package/esm/picker-select/index.mjs.map +1 -0
- package/esm/picker-select/picker-select.mjs +186 -0
- package/esm/picker-select/picker-select.mjs.map +1 -0
- package/esm/picker-select/types.d.ts +23 -0
- package/esm/query-form-item/index.d.ts +152 -1
- package/esm/radio/index.d.ts +100 -46
- package/esm/rate/index.d.ts +186 -1
- package/esm/segmented/index.d.ts +28 -1
- package/esm/select/index.d.ts +112 -1
- package/esm/select-table/index.d.ts +61 -1
- package/esm/select-table/select-table.mjs +63 -29
- package/esm/select-table/select-table.mjs.map +1 -1
- package/esm/select-table/types.d.ts +22 -0
- package/esm/slider/index.d.ts +178 -1
- package/esm/switch/index.d.ts +298 -1
- package/esm/time-picker/index.d.ts +446 -1
- package/esm/time-select/index.d.ts +188 -1
- package/esm/transfer/index.d.ts +268 -1
- package/esm/tree/index.d.ts +45 -1
- package/esm/tree/types.d.ts +18 -0
- package/esm/tree-select/index.d.ts +19 -1
- package/esm/upload/index.d.ts +129 -1
- package/package.json +3 -3
- package/esm/shared/url-change-listener.mjs +0 -50
- package/esm/shared/url-change-listener.mjs.map +0 -1
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { useCleanAttrs } from "../__builtins__/shared/utils.mjs";
|
|
2
|
+
import { ElOption, ElSelect } from "element-plus";
|
|
3
|
+
import { Fragment, computed, createBlock, createElementBlock, createSlots, defineComponent, mergeProps, openBlock, ref, renderList, renderSlot, unref, useSlots, withCtx } from "vue";
|
|
4
|
+
import { useField } from "@silver-formily/vue";
|
|
5
|
+
import { isArr, isEqual, isValid } from "@formily/shared";
|
|
6
|
+
//#region src/picker-select/picker-select.vue
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
name: "FPickerSelect",
|
|
9
|
+
inheritAttrs: false,
|
|
10
|
+
__name: "picker-select",
|
|
11
|
+
props: {
|
|
12
|
+
options: { default: () => [] },
|
|
13
|
+
openPicker: {},
|
|
14
|
+
cacheSelectedOptions: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: true
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["update:modelValue"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
21
|
+
const props = __props;
|
|
22
|
+
const emit = __emit;
|
|
23
|
+
const slots = useSlots();
|
|
24
|
+
const ignoredOpenTriggerSelectors = [".el-select__clear", ".el-tag__close"];
|
|
25
|
+
const { props: selectProps } = useCleanAttrs();
|
|
26
|
+
const fieldRef = useField();
|
|
27
|
+
const selectRef = ref();
|
|
28
|
+
const openingPicker = ref(false);
|
|
29
|
+
const selectedOptionCache = ref([]);
|
|
30
|
+
const ignoreVisibleChangeUntil = ref(0);
|
|
31
|
+
const multiple = computed(() => Boolean(selectProps.value.multiple));
|
|
32
|
+
const currentValue = computed(() => selectProps.value.modelValue);
|
|
33
|
+
const baseOptions = computed(() => props.options ?? []);
|
|
34
|
+
function isSameValue(left, right) {
|
|
35
|
+
return isEqual(left, right);
|
|
36
|
+
}
|
|
37
|
+
function hasOption(optionList, option) {
|
|
38
|
+
return optionList.some((item) => isSameValue(item.value, option.value));
|
|
39
|
+
}
|
|
40
|
+
function createFallbackOption(value) {
|
|
41
|
+
return {
|
|
42
|
+
label: value,
|
|
43
|
+
value
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
const normalizedValues = computed(() => {
|
|
47
|
+
const value = currentValue.value;
|
|
48
|
+
if (multiple.value) return isArr(value) ? value : [];
|
|
49
|
+
return isValid(value) ? [value] : [];
|
|
50
|
+
});
|
|
51
|
+
const displayOptions = computed(() => {
|
|
52
|
+
const merged = [...baseOptions.value];
|
|
53
|
+
for (const item of selectedOptionCache.value) if (!hasOption(merged, item)) merged.push(item);
|
|
54
|
+
for (const value of normalizedValues.value) if (!merged.some((item) => isSameValue(item.value, value))) merged.push(createFallbackOption(value));
|
|
55
|
+
return merged;
|
|
56
|
+
});
|
|
57
|
+
function setValue(value) {
|
|
58
|
+
fieldRef.value?.setValue?.(value);
|
|
59
|
+
if (!fieldRef.value) emit("update:modelValue", value);
|
|
60
|
+
}
|
|
61
|
+
function cacheOptions(optionList) {
|
|
62
|
+
if (props.cacheSelectedOptions === false) return;
|
|
63
|
+
const merged = [...selectedOptionCache.value];
|
|
64
|
+
for (const item of optionList) {
|
|
65
|
+
const index = merged.findIndex((cacheItem) => isSameValue(cacheItem.value, item.value));
|
|
66
|
+
if (index >= 0) merged[index] = item;
|
|
67
|
+
else merged.push(item);
|
|
68
|
+
}
|
|
69
|
+
selectedOptionCache.value = merged;
|
|
70
|
+
}
|
|
71
|
+
function clearValue() {
|
|
72
|
+
setValue(multiple.value ? [] : void 0);
|
|
73
|
+
}
|
|
74
|
+
function shouldIgnoreOpenTrigger(target) {
|
|
75
|
+
if (!(target instanceof HTMLElement)) return false;
|
|
76
|
+
return ignoredOpenTriggerSelectors.some((selector) => target.closest(selector));
|
|
77
|
+
}
|
|
78
|
+
function ignoreCurrentVisibleChange() {
|
|
79
|
+
ignoreVisibleChangeUntil.value = Date.now() + 200;
|
|
80
|
+
}
|
|
81
|
+
async function handleOpenPicker() {
|
|
82
|
+
if (openingPicker.value || typeof props.openPicker !== "function") return;
|
|
83
|
+
openingPicker.value = true;
|
|
84
|
+
try {
|
|
85
|
+
const result = await Promise.resolve(props.openPicker({
|
|
86
|
+
field: fieldRef.value,
|
|
87
|
+
dataSource: baseOptions.value,
|
|
88
|
+
multiple: multiple.value
|
|
89
|
+
})).catch(() => void 0);
|
|
90
|
+
if (multiple.value) {
|
|
91
|
+
if (!isValid(result)) return;
|
|
92
|
+
const normalizedResult = isArr(result) ? result : [result];
|
|
93
|
+
cacheOptions(normalizedResult);
|
|
94
|
+
setValue(normalizedResult.map((item) => item.value));
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (!isValid(result)) return;
|
|
98
|
+
const normalizedResult = isArr(result) ? result[0] : result;
|
|
99
|
+
if (!normalizedResult) return;
|
|
100
|
+
cacheOptions([normalizedResult]);
|
|
101
|
+
setValue(normalizedResult.value);
|
|
102
|
+
} finally {
|
|
103
|
+
openingPicker.value = false;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
function handleVisibleChange(visible) {
|
|
107
|
+
if (!visible) return;
|
|
108
|
+
selectRef.value?.blur?.();
|
|
109
|
+
if (Date.now() < ignoreVisibleChangeUntil.value) {
|
|
110
|
+
ignoreVisibleChangeUntil.value = 0;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
handleOpenPicker();
|
|
114
|
+
}
|
|
115
|
+
function handleTriggerClick(event) {
|
|
116
|
+
if (typeof props.openPicker !== "function" || selectProps.value.disabled) return;
|
|
117
|
+
if (shouldIgnoreOpenTrigger(event.target)) {
|
|
118
|
+
ignoreCurrentVisibleChange();
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
ignoreVisibleChangeUntil.value = 0;
|
|
122
|
+
}
|
|
123
|
+
function handleRemoveTag(value) {
|
|
124
|
+
if (!multiple.value) return;
|
|
125
|
+
setValue(normalizedValues.value.filter((item) => !isSameValue(item, value)));
|
|
126
|
+
}
|
|
127
|
+
return (_ctx, _cache) => {
|
|
128
|
+
return openBlock(), createBlock(unref(ElSelect), mergeProps({
|
|
129
|
+
ref_key: "selectRef",
|
|
130
|
+
ref: selectRef
|
|
131
|
+
}, unref(selectProps), {
|
|
132
|
+
onClick: handleTriggerClick,
|
|
133
|
+
onClear: clearValue,
|
|
134
|
+
onRemoveTag: handleRemoveTag,
|
|
135
|
+
onVisibleChange: handleVisibleChange
|
|
136
|
+
}), createSlots({
|
|
137
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(displayOptions.value, (option) => {
|
|
138
|
+
return openBlock(), createBlock(unref(ElOption), {
|
|
139
|
+
key: typeof option.value === "object" ? JSON.stringify(option.value) : String(option.value),
|
|
140
|
+
label: option.label,
|
|
141
|
+
value: option.value,
|
|
142
|
+
disabled: option.disabled
|
|
143
|
+
}, null, 8, [
|
|
144
|
+
"label",
|
|
145
|
+
"value",
|
|
146
|
+
"disabled"
|
|
147
|
+
]);
|
|
148
|
+
}), 128))]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, [
|
|
151
|
+
slots.prefix ? {
|
|
152
|
+
name: "prefix",
|
|
153
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "prefix")]),
|
|
154
|
+
key: "0"
|
|
155
|
+
} : void 0,
|
|
156
|
+
slots.empty ? {
|
|
157
|
+
name: "empty",
|
|
158
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "empty")]),
|
|
159
|
+
key: "1"
|
|
160
|
+
} : void 0,
|
|
161
|
+
slots.tag ? {
|
|
162
|
+
name: "tag",
|
|
163
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "tag")]),
|
|
164
|
+
key: "2"
|
|
165
|
+
} : void 0,
|
|
166
|
+
slots.loading ? {
|
|
167
|
+
name: "loading",
|
|
168
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "loading")]),
|
|
169
|
+
key: "3"
|
|
170
|
+
} : void 0,
|
|
171
|
+
slots.label ? {
|
|
172
|
+
name: "label",
|
|
173
|
+
fn: withCtx(({ label, value }) => [renderSlot(_ctx.$slots, "label", {
|
|
174
|
+
label,
|
|
175
|
+
value
|
|
176
|
+
})]),
|
|
177
|
+
key: "4"
|
|
178
|
+
} : void 0
|
|
179
|
+
]), 1040);
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
//#endregion
|
|
184
|
+
export { _sfc_main as default };
|
|
185
|
+
|
|
186
|
+
//# sourceMappingURL=picker-select.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"picker-select.mjs","names":[],"sources":["../../src/picker-select/picker-select.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport type { Field } from '@formily/core'\nimport type { PickerSelectOpenPicker, PickerSelectOption, PickerSelectProps } from './types'\nimport { isArr, isEqual, isValid } from '@formily/shared'\nimport { useField } from '@silver-formily/vue'\nimport { ElOption, ElSelect } from 'element-plus'\nimport { computed, ref } from 'vue'\nimport { useCleanAttrs } from '../__builtins__'\n\ndefineOptions({\n name: 'FPickerSelect',\n inheritAttrs: false,\n})\n\nconst props = withDefaults(defineProps<PickerSelectProps>(), {\n options: () => [],\n cacheSelectedOptions: true,\n})\n\nconst emit = defineEmits<{\n (e: 'update:modelValue', value: any): void\n}>()\n\nconst slots = defineSlots<{\n empty?: () => any\n prefix?: () => any\n tag?: () => any\n loading?: () => any\n label?: () => any\n}>()\n\nconst ignoredOpenTriggerSelectors = ['.el-select__clear', '.el-tag__close']\n\nconst { props: selectProps } = useCleanAttrs()\nconst fieldRef = useField<Field>()\nconst selectRef = ref<InstanceType<typeof ElSelect>>()\nconst openingPicker = ref(false)\nconst selectedOptionCache = ref<PickerSelectOption[]>([])\nconst ignoreVisibleChangeUntil = ref(0)\n\nconst multiple = computed(() => Boolean(selectProps.value.multiple))\nconst currentValue = computed(() => selectProps.value.modelValue)\nconst baseOptions = computed<PickerSelectOption[]>(() => props.options ?? [])\n\nfunction isSameValue(left: any, right: any) {\n return isEqual(left, right)\n}\n\nfunction hasOption(optionList: PickerSelectOption[], option: PickerSelectOption) {\n return optionList.some(item => isSameValue(item.value, option.value))\n}\n\nfunction createFallbackOption(value: any): PickerSelectOption {\n return {\n label: value,\n value,\n }\n}\n\nconst normalizedValues = computed(() => {\n const value = currentValue.value\n if (multiple.value) {\n return isArr(value) ? value : []\n }\n return isValid(value) ? [value] : []\n})\n\nconst displayOptions = computed<PickerSelectOption[]>(() => {\n const merged = [...baseOptions.value]\n for (const item of selectedOptionCache.value) {\n if (!hasOption(merged, item)) {\n merged.push(item)\n }\n }\n for (const value of normalizedValues.value) {\n if (!merged.some(item => isSameValue(item.value, value))) {\n merged.push(createFallbackOption(value))\n }\n }\n return merged\n})\n\nfunction setValue(value: any) {\n fieldRef.value?.setValue?.(value)\n if (!fieldRef.value) {\n emit('update:modelValue', value)\n }\n}\n\nfunction cacheOptions(optionList: PickerSelectOption[]) {\n if (props.cacheSelectedOptions === false) {\n return\n }\n const merged = [...selectedOptionCache.value]\n for (const item of optionList) {\n const index = merged.findIndex(cacheItem => isSameValue(cacheItem.value, item.value))\n if (index >= 0) {\n merged[index] = item\n }\n else {\n merged.push(item)\n }\n }\n selectedOptionCache.value = merged\n}\n\nfunction clearValue() {\n setValue(multiple.value ? [] : undefined)\n}\n\nfunction shouldIgnoreOpenTrigger(target: EventTarget | null) {\n if (!(target instanceof HTMLElement)) {\n return false\n }\n return ignoredOpenTriggerSelectors.some(selector => target.closest(selector))\n}\n\nfunction ignoreCurrentVisibleChange() {\n ignoreVisibleChangeUntil.value = Date.now() + 200\n}\n\nasync function handleOpenPicker() {\n if (openingPicker.value || typeof props.openPicker !== 'function') {\n return\n }\n\n openingPicker.value = true\n\n try {\n const result = await Promise.resolve(\n (props.openPicker as PickerSelectOpenPicker)({\n field: fieldRef.value,\n dataSource: baseOptions.value,\n multiple: multiple.value,\n }),\n ).catch(() => undefined)\n\n if (multiple.value) {\n if (!isValid(result)) {\n return\n }\n const normalizedResult = isArr(result) ? result : [result]\n cacheOptions(normalizedResult)\n setValue(normalizedResult.map(item => item.value))\n return\n }\n\n if (!isValid(result)) {\n return\n }\n const normalizedResult = isArr(result) ? result[0] : result\n if (!normalizedResult) {\n return\n }\n cacheOptions([normalizedResult])\n setValue(normalizedResult.value)\n }\n finally {\n openingPicker.value = false\n }\n}\n\nfunction handleVisibleChange(visible: boolean) {\n if (!visible) {\n return\n }\n selectRef.value?.blur?.()\n if (Date.now() < ignoreVisibleChangeUntil.value) {\n ignoreVisibleChangeUntil.value = 0\n return\n }\n void handleOpenPicker()\n}\n\nfunction handleTriggerClick(event: MouseEvent) {\n if (typeof props.openPicker !== 'function' || selectProps.value.disabled) {\n return\n }\n if (shouldIgnoreOpenTrigger(event.target)) {\n ignoreCurrentVisibleChange()\n return\n }\n ignoreVisibleChangeUntil.value = 0\n}\n\nfunction handleRemoveTag(value: any) {\n if (!multiple.value) {\n return\n }\n setValue(normalizedValues.value.filter(item => !isSameValue(item, value)))\n}\n</script>\n\n<template>\n <ElSelect\n ref=\"selectRef\"\n v-bind=\"selectProps\"\n @click=\"handleTriggerClick\"\n @clear=\"clearValue\"\n @remove-tag=\"handleRemoveTag\"\n @visible-change=\"handleVisibleChange\"\n >\n <ElOption\n v-for=\"option of displayOptions\"\n :key=\"typeof option.value === 'object' ? JSON.stringify(option.value) : String(option.value)\"\n :label=\"option.label\"\n :value=\"option.value\"\n :disabled=\"option.disabled\"\n />\n <template v-if=\"slots.prefix\" #prefix>\n <slot name=\"prefix\" />\n </template>\n <template v-if=\"slots.empty\" #empty>\n <slot name=\"empty\" />\n </template>\n <template v-if=\"slots.tag\" #tag>\n <slot name=\"tag\" />\n </template>\n <template v-if=\"slots.loading\" #loading>\n <slot name=\"loading\" />\n </template>\n <template v-if=\"slots.label\" #label=\"{ label, value }\">\n <slot name=\"label\" :label=\"label\" :value=\"value\" />\n </template>\n </ElSelect>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;EAcA,MAAM,QAAQ;EAKd,MAAM,OAAO;EAIb,MAAM,QAAQ,UAAA;EAQd,MAAM,8BAA8B,CAAC,qBAAqB,iBAAgB;EAE1E,MAAM,EAAE,OAAO,gBAAgB,eAAc;EAC7C,MAAM,WAAW,UAAgB;EACjC,MAAM,YAAY,KAAmC;EACrD,MAAM,gBAAgB,IAAI,MAAK;EAC/B,MAAM,sBAAsB,IAA0B,EAAE,CAAA;EACxD,MAAM,2BAA2B,IAAI,EAAC;EAEtC,MAAM,WAAW,eAAe,QAAQ,YAAY,MAAM,SAAS,CAAA;EACnE,MAAM,eAAe,eAAe,YAAY,MAAM,WAAU;EAChE,MAAM,cAAc,eAAqC,MAAM,WAAW,EAAE,CAAA;EAE5E,SAAS,YAAY,MAAW,OAAY;AAC1C,UAAO,QAAQ,MAAM,MAAK;;EAG5B,SAAS,UAAU,YAAkC,QAA4B;AAC/E,UAAO,WAAW,MAAK,SAAQ,YAAY,KAAK,OAAO,OAAO,MAAM,CAAA;;EAGtE,SAAS,qBAAqB,OAAgC;AAC5D,UAAO;IACL,OAAO;IACP;IACF;;EAGF,MAAM,mBAAmB,eAAe;GACtC,MAAM,QAAQ,aAAa;AAC3B,OAAI,SAAS,MACX,QAAO,MAAM,MAAM,GAAG,QAAQ,EAAC;AAEjC,UAAO,QAAQ,MAAM,GAAG,CAAC,MAAM,GAAG,EAAC;IACpC;EAED,MAAM,iBAAiB,eAAqC;GAC1D,MAAM,SAAS,CAAC,GAAG,YAAY,MAAK;AACpC,QAAK,MAAM,QAAQ,oBAAoB,MACrC,KAAI,CAAC,UAAU,QAAQ,KAAK,CAC1B,QAAO,KAAK,KAAI;AAGpB,QAAK,MAAM,SAAS,iBAAiB,MACnC,KAAI,CAAC,OAAO,MAAK,SAAQ,YAAY,KAAK,OAAO,MAAM,CAAC,CACtD,QAAO,KAAK,qBAAqB,MAAM,CAAA;AAG3C,UAAO;IACR;EAED,SAAS,SAAS,OAAY;AAC5B,YAAS,OAAO,WAAW,MAAK;AAChC,OAAI,CAAC,SAAS,MACZ,MAAK,qBAAqB,MAAK;;EAInC,SAAS,aAAa,YAAkC;AACtD,OAAI,MAAM,yBAAyB,MACjC;GAEF,MAAM,SAAS,CAAC,GAAG,oBAAoB,MAAK;AAC5C,QAAK,MAAM,QAAQ,YAAY;IAC7B,MAAM,QAAQ,OAAO,WAAU,cAAa,YAAY,UAAU,OAAO,KAAK,MAAM,CAAA;AACpF,QAAI,SAAS,EACX,QAAO,SAAS;QAGhB,QAAO,KAAK,KAAI;;AAGpB,uBAAoB,QAAQ;;EAG9B,SAAS,aAAa;AACpB,YAAS,SAAS,QAAQ,EAAE,GAAG,KAAA,EAAS;;EAG1C,SAAS,wBAAwB,QAA4B;AAC3D,OAAI,EAAE,kBAAkB,aACtB,QAAO;AAET,UAAO,4BAA4B,MAAK,aAAY,OAAO,QAAQ,SAAS,CAAA;;EAG9E,SAAS,6BAA6B;AACpC,4BAAyB,QAAQ,KAAK,KAAK,GAAG;;EAGhD,eAAe,mBAAmB;AAChC,OAAI,cAAc,SAAS,OAAO,MAAM,eAAe,WACrD;AAGF,iBAAc,QAAQ;AAEtB,OAAI;IACF,MAAM,SAAS,MAAM,QAAQ,QAC1B,MAAM,WAAsC;KAC3C,OAAO,SAAS;KAChB,YAAY,YAAY;KACxB,UAAU,SAAS;KACpB,CAAC,CACH,CAAC,YAAY,KAAA,EAAS;AAEvB,QAAI,SAAS,OAAO;AAClB,SAAI,CAAC,QAAQ,OAAO,CAClB;KAEF,MAAM,mBAAmB,MAAM,OAAO,GAAG,SAAS,CAAC,OAAM;AACzD,kBAAa,iBAAgB;AAC7B,cAAS,iBAAiB,KAAI,SAAQ,KAAK,MAAM,CAAA;AACjD;;AAGF,QAAI,CAAC,QAAQ,OAAO,CAClB;IAEF,MAAM,mBAAmB,MAAM,OAAO,GAAG,OAAO,KAAK;AACrD,QAAI,CAAC,iBACH;AAEF,iBAAa,CAAC,iBAAiB,CAAA;AAC/B,aAAS,iBAAiB,MAAK;aAEzB;AACN,kBAAc,QAAQ;;;EAI1B,SAAS,oBAAoB,SAAkB;AAC7C,OAAI,CAAC,QACH;AAEF,aAAU,OAAO,QAAO;AACxB,OAAI,KAAK,KAAK,GAAG,yBAAyB,OAAO;AAC/C,6BAAyB,QAAQ;AACjC;;AAEG,qBAAiB;;EAGxB,SAAS,mBAAmB,OAAmB;AAC7C,OAAI,OAAO,MAAM,eAAe,cAAc,YAAY,MAAM,SAC9D;AAEF,OAAI,wBAAwB,MAAM,OAAO,EAAE;AACzC,gCAA2B;AAC3B;;AAEF,4BAAyB,QAAQ;;EAGnC,SAAS,gBAAgB,OAAY;AACnC,OAAI,CAAC,SAAS,MACZ;AAEF,YAAS,iBAAiB,MAAM,QAAO,SAAQ,CAAC,YAAY,MAAM,MAAM,CAAC,CAAA;;;uBAKzE,YA8BW,MAAA,SAAA,EA9BX,WA8BW;aA7BL;IAAJ,KAAI;MACI,MAAA,YAAW,EAAA;IAClB,SAAO;IACP,SAAO;IACP,aAAY;IACZ,iBAAgB;;2BAGiB,EAAA,UAAA,KAAA,EADlC,mBAME,UAAA,MAAA,WALiB,eAAA,QAAV,WAAM;yBADf,YAME,MAAA,SAAA,EAAA;MAJC,KAAG,OAAS,OAAO,UAAK,WAAgB,KAAK,UAAU,OAAO,MAAK,GAAI,OAAO,OAAO,MAAK;MAC1F,OAAO,OAAO;MACd,OAAO,OAAO;MACd,UAAU,OAAO;;;;;;;;;IAEJ,MAAM,SAAA;WAAS;uBACP,CAAtB,WAAsB,KAAA,QAAA,SAAA,CAAA,CAAA;;;IAER,MAAM,QAAA;WAAQ;uBACP,CAArB,WAAqB,KAAA,QAAA,QAAA,CAAA,CAAA;;;IAEP,MAAM,MAAA;WAAM;uBACP,CAAnB,WAAmB,KAAA,QAAA,MAAA,CAAA,CAAA;;;IAEL,MAAM,UAAA;WAAU;uBACP,CAAvB,WAAuB,KAAA,QAAA,UAAA,CAAA,CAAA;;;IAET,MAAM,QAAA;WAAQ;kBACuB,EADd,OAAO,YAAK,CACjD,WAAmD,KAAA,QAAA,SAAA;MAAxB;MAAe"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Field } from "@formily/core";
|
|
2
|
+
|
|
3
|
+
//#region src/picker-select/types.d.ts
|
|
4
|
+
interface PickerSelectOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: any;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
raw?: any;
|
|
9
|
+
}
|
|
10
|
+
interface PickerSelectOpenContext {
|
|
11
|
+
field?: Field;
|
|
12
|
+
dataSource: PickerSelectOption[];
|
|
13
|
+
multiple: boolean;
|
|
14
|
+
}
|
|
15
|
+
type PickerSelectOpenPicker = (ctx: PickerSelectOpenContext) => Promise<PickerSelectOption | PickerSelectOption[] | null | undefined> | PickerSelectOption | PickerSelectOption[] | null | undefined;
|
|
16
|
+
interface PickerSelectProps {
|
|
17
|
+
options?: PickerSelectOption[];
|
|
18
|
+
openPicker?: PickerSelectOpenPicker;
|
|
19
|
+
cacheSelectedOptions?: boolean;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { PickerSelectOpenContext, PickerSelectOpenPicker, PickerSelectOption, PickerSelectProps };
|
|
23
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,158 @@
|
|
|
1
1
|
import { IQueryFormItemProps, QueryFormItemMode, QueryFormItemPagination, QueryFormItemPaginationMap, QueryFormItemPaginationProps, QueryFormItemQueryProps, QueryFormItemRequest, QueryFormItemRequestResultObject, QueryFormItemRequestSuccessPayload } from "./types.js";
|
|
2
|
+
import * as _$element_plus0 from "element-plus";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
import * as _$_formily_json_schema0 from "@formily/json-schema";
|
|
2
5
|
|
|
3
6
|
//#region src/query-form-item/index.d.ts
|
|
4
|
-
declare const QueryFormItem:
|
|
7
|
+
declare const QueryFormItem: {
|
|
8
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<_$vue.ExtractPropTypes<{
|
|
9
|
+
mode: {
|
|
10
|
+
type: _$vue.PropType<QueryFormItemMode>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
request: _$vue.PropType<QueryFormItemRequest>;
|
|
14
|
+
clearOnDataChange: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
querySchema: _$vue.PropType<_$_formily_json_schema0.ISchema>;
|
|
19
|
+
queryFormProps: {
|
|
20
|
+
type: _$vue.PropType<QueryFormItemQueryProps>;
|
|
21
|
+
default: () => {};
|
|
22
|
+
};
|
|
23
|
+
pagination: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
paginationProps: {
|
|
28
|
+
type: _$vue.PropType<QueryFormItemPaginationProps>;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
paginationMap: {
|
|
32
|
+
type: _$vue.PropType<QueryFormItemPaginationMap>;
|
|
33
|
+
default: () => {};
|
|
34
|
+
};
|
|
35
|
+
immediate: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onRequestSuccess?: (payload: QueryFormItemRequestSuccessPayload) => any;
|
|
41
|
+
onRequestFailed?: (error: any) => any;
|
|
42
|
+
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
43
|
+
requestSuccess: (payload: QueryFormItemRequestSuccessPayload) => any;
|
|
44
|
+
requestFailed: (error: any) => any;
|
|
45
|
+
}, _$vue.PublicProps, {
|
|
46
|
+
pagination: boolean;
|
|
47
|
+
paginationProps: Partial<_$element_plus0.PaginationProps>;
|
|
48
|
+
mode: QueryFormItemMode;
|
|
49
|
+
clearOnDataChange: boolean;
|
|
50
|
+
queryFormProps: QueryFormItemQueryProps;
|
|
51
|
+
paginationMap: QueryFormItemPaginationMap;
|
|
52
|
+
immediate: boolean;
|
|
53
|
+
}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
54
|
+
P: {};
|
|
55
|
+
B: {};
|
|
56
|
+
D: {};
|
|
57
|
+
C: {};
|
|
58
|
+
M: {};
|
|
59
|
+
Defaults: {};
|
|
60
|
+
}, Readonly<_$vue.ExtractPropTypes<{
|
|
61
|
+
mode: {
|
|
62
|
+
type: _$vue.PropType<QueryFormItemMode>;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
request: _$vue.PropType<QueryFormItemRequest>;
|
|
66
|
+
clearOnDataChange: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
querySchema: _$vue.PropType<_$_formily_json_schema0.ISchema>;
|
|
71
|
+
queryFormProps: {
|
|
72
|
+
type: _$vue.PropType<QueryFormItemQueryProps>;
|
|
73
|
+
default: () => {};
|
|
74
|
+
};
|
|
75
|
+
pagination: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
paginationProps: {
|
|
80
|
+
type: _$vue.PropType<QueryFormItemPaginationProps>;
|
|
81
|
+
default: () => {};
|
|
82
|
+
};
|
|
83
|
+
paginationMap: {
|
|
84
|
+
type: _$vue.PropType<QueryFormItemPaginationMap>;
|
|
85
|
+
default: () => {};
|
|
86
|
+
};
|
|
87
|
+
immediate: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
}>> & Readonly<{
|
|
92
|
+
onRequestSuccess?: (payload: QueryFormItemRequestSuccessPayload) => any;
|
|
93
|
+
onRequestFailed?: (error: any) => any;
|
|
94
|
+
}>, {}, {}, {}, {}, {
|
|
95
|
+
pagination: boolean;
|
|
96
|
+
paginationProps: Partial<_$element_plus0.PaginationProps>;
|
|
97
|
+
mode: QueryFormItemMode;
|
|
98
|
+
clearOnDataChange: boolean;
|
|
99
|
+
queryFormProps: QueryFormItemQueryProps;
|
|
100
|
+
paginationMap: QueryFormItemPaginationMap;
|
|
101
|
+
immediate: boolean;
|
|
102
|
+
}>;
|
|
103
|
+
__isFragment?: never;
|
|
104
|
+
__isTeleport?: never;
|
|
105
|
+
__isSuspense?: never;
|
|
106
|
+
} & _$vue.ComponentOptionsBase<Readonly<_$vue.ExtractPropTypes<{
|
|
107
|
+
mode: {
|
|
108
|
+
type: _$vue.PropType<QueryFormItemMode>;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
request: _$vue.PropType<QueryFormItemRequest>;
|
|
112
|
+
clearOnDataChange: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
querySchema: _$vue.PropType<_$_formily_json_schema0.ISchema>;
|
|
117
|
+
queryFormProps: {
|
|
118
|
+
type: _$vue.PropType<QueryFormItemQueryProps>;
|
|
119
|
+
default: () => {};
|
|
120
|
+
};
|
|
121
|
+
pagination: {
|
|
122
|
+
type: BooleanConstructor;
|
|
123
|
+
default: boolean;
|
|
124
|
+
};
|
|
125
|
+
paginationProps: {
|
|
126
|
+
type: _$vue.PropType<QueryFormItemPaginationProps>;
|
|
127
|
+
default: () => {};
|
|
128
|
+
};
|
|
129
|
+
paginationMap: {
|
|
130
|
+
type: _$vue.PropType<QueryFormItemPaginationMap>;
|
|
131
|
+
default: () => {};
|
|
132
|
+
};
|
|
133
|
+
immediate: {
|
|
134
|
+
type: BooleanConstructor;
|
|
135
|
+
default: boolean;
|
|
136
|
+
};
|
|
137
|
+
}>> & Readonly<{
|
|
138
|
+
onRequestSuccess?: (payload: QueryFormItemRequestSuccessPayload) => any;
|
|
139
|
+
onRequestFailed?: (error: any) => any;
|
|
140
|
+
}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {} & {
|
|
141
|
+
requestSuccess: (payload: QueryFormItemRequestSuccessPayload) => any;
|
|
142
|
+
requestFailed: (error: any) => any;
|
|
143
|
+
}, string, {
|
|
144
|
+
pagination: boolean;
|
|
145
|
+
paginationProps: Partial<_$element_plus0.PaginationProps>;
|
|
146
|
+
mode: QueryFormItemMode;
|
|
147
|
+
clearOnDataChange: boolean;
|
|
148
|
+
queryFormProps: QueryFormItemQueryProps;
|
|
149
|
+
paginationMap: QueryFormItemPaginationMap;
|
|
150
|
+
immediate: boolean;
|
|
151
|
+
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
152
|
+
$slots: {
|
|
153
|
+
default?: (props: {}) => any;
|
|
154
|
+
};
|
|
155
|
+
});
|
|
5
156
|
//#endregion
|
|
6
157
|
export { QueryFormItem };
|
|
7
158
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/radio/index.d.ts
CHANGED
|
@@ -23,14 +23,14 @@ declare const Radio: {
|
|
|
23
23
|
size: {
|
|
24
24
|
type: _$vue.PropType<"" | "default" | "small" | "large">;
|
|
25
25
|
};
|
|
26
|
-
border: {
|
|
27
|
-
type: _$vue.PropType<boolean>;
|
|
28
|
-
default: false;
|
|
29
|
-
};
|
|
30
26
|
label: {
|
|
31
27
|
type: _$vue.PropType<string | number | boolean>;
|
|
32
28
|
default: undefined;
|
|
33
29
|
};
|
|
30
|
+
border: {
|
|
31
|
+
type: _$vue.PropType<boolean>;
|
|
32
|
+
default: false;
|
|
33
|
+
};
|
|
34
34
|
}>> & {
|
|
35
35
|
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
36
36
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
@@ -71,14 +71,14 @@ declare const Radio: {
|
|
|
71
71
|
size: {
|
|
72
72
|
type: _$vue.PropType<"" | "default" | "small" | "large">;
|
|
73
73
|
};
|
|
74
|
-
border: {
|
|
75
|
-
type: _$vue.PropType<boolean>;
|
|
76
|
-
default: false;
|
|
77
|
-
};
|
|
78
74
|
label: {
|
|
79
75
|
type: _$vue.PropType<string | number | boolean>;
|
|
80
76
|
default: undefined;
|
|
81
77
|
};
|
|
78
|
+
border: {
|
|
79
|
+
type: _$vue.PropType<boolean>;
|
|
80
|
+
default: false;
|
|
81
|
+
};
|
|
82
82
|
}>> & {
|
|
83
83
|
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
84
84
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
@@ -113,14 +113,14 @@ declare const Radio: {
|
|
|
113
113
|
size: {
|
|
114
114
|
type: _$vue.PropType<"" | "default" | "small" | "large">;
|
|
115
115
|
};
|
|
116
|
-
border: {
|
|
117
|
-
type: _$vue.PropType<boolean>;
|
|
118
|
-
default: false;
|
|
119
|
-
};
|
|
120
116
|
label: {
|
|
121
117
|
type: _$vue.PropType<string | number | boolean>;
|
|
122
118
|
default: undefined;
|
|
123
119
|
};
|
|
120
|
+
border: {
|
|
121
|
+
type: _$vue.PropType<boolean>;
|
|
122
|
+
default: false;
|
|
123
|
+
};
|
|
124
124
|
}>> & {
|
|
125
125
|
"onUpdate:modelValue"?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
126
126
|
onChange?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
@@ -248,18 +248,14 @@ declare const Radio: {
|
|
|
248
248
|
});
|
|
249
249
|
RadioGroup: {
|
|
250
250
|
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<_$vue.ExtractPropTypes<{
|
|
251
|
-
props: {
|
|
252
|
-
type: _$vue.PropType<_$element_plus0.radioOptionProp>;
|
|
253
|
-
default: () => Required<_$element_plus0.radioOptionProp>;
|
|
254
|
-
};
|
|
255
|
-
fill: {
|
|
256
|
-
type: _$vue.PropType<string>;
|
|
257
|
-
default: "";
|
|
258
|
-
};
|
|
259
251
|
modelValue: {
|
|
260
252
|
type: _$vue.PropType<string | number | boolean>;
|
|
261
253
|
default: undefined;
|
|
262
254
|
};
|
|
255
|
+
props: {
|
|
256
|
+
type: _$vue.PropType<_$element_plus0.radioOptionProp>;
|
|
257
|
+
default: () => Required<_$element_plus0.radioOptionProp>;
|
|
258
|
+
};
|
|
263
259
|
type: {
|
|
264
260
|
type: _$vue.PropType<"button" | "radio">;
|
|
265
261
|
default: "radio";
|
|
@@ -268,6 +264,10 @@ declare const Radio: {
|
|
|
268
264
|
type: _$vue.PropType<string>;
|
|
269
265
|
default: undefined;
|
|
270
266
|
};
|
|
267
|
+
fill: {
|
|
268
|
+
type: _$vue.PropType<string>;
|
|
269
|
+
default: "";
|
|
270
|
+
};
|
|
271
271
|
disabled: {
|
|
272
272
|
type: _$vue.PropType<boolean>;
|
|
273
273
|
default: undefined;
|
|
@@ -275,13 +275,13 @@ declare const Radio: {
|
|
|
275
275
|
size: {
|
|
276
276
|
type: _$vue.PropType<"" | "default" | "small" | "large">;
|
|
277
277
|
};
|
|
278
|
+
options: {
|
|
279
|
+
type: _$vue.PropType<_$element_plus0.radioOption[]>;
|
|
280
|
+
};
|
|
278
281
|
validateEvent: {
|
|
279
282
|
type: _$vue.PropType<boolean>;
|
|
280
283
|
default: true;
|
|
281
284
|
};
|
|
282
|
-
options: {
|
|
283
|
-
type: _$vue.PropType<_$element_plus0.radioOption[]>;
|
|
284
|
-
};
|
|
285
285
|
ariaLabel: {
|
|
286
286
|
type: _$vue.PropType<string>;
|
|
287
287
|
};
|
|
@@ -317,18 +317,14 @@ declare const Radio: {
|
|
|
317
317
|
M: {};
|
|
318
318
|
Defaults: {};
|
|
319
319
|
}, Readonly<_$vue.ExtractPropTypes<{
|
|
320
|
-
props: {
|
|
321
|
-
type: _$vue.PropType<_$element_plus0.radioOptionProp>;
|
|
322
|
-
default: () => Required<_$element_plus0.radioOptionProp>;
|
|
323
|
-
};
|
|
324
|
-
fill: {
|
|
325
|
-
type: _$vue.PropType<string>;
|
|
326
|
-
default: "";
|
|
327
|
-
};
|
|
328
320
|
modelValue: {
|
|
329
321
|
type: _$vue.PropType<string | number | boolean>;
|
|
330
322
|
default: undefined;
|
|
331
323
|
};
|
|
324
|
+
props: {
|
|
325
|
+
type: _$vue.PropType<_$element_plus0.radioOptionProp>;
|
|
326
|
+
default: () => Required<_$element_plus0.radioOptionProp>;
|
|
327
|
+
};
|
|
332
328
|
type: {
|
|
333
329
|
type: _$vue.PropType<"button" | "radio">;
|
|
334
330
|
default: "radio";
|
|
@@ -337,6 +333,10 @@ declare const Radio: {
|
|
|
337
333
|
type: _$vue.PropType<string>;
|
|
338
334
|
default: undefined;
|
|
339
335
|
};
|
|
336
|
+
fill: {
|
|
337
|
+
type: _$vue.PropType<string>;
|
|
338
|
+
default: "";
|
|
339
|
+
};
|
|
340
340
|
disabled: {
|
|
341
341
|
type: _$vue.PropType<boolean>;
|
|
342
342
|
default: undefined;
|
|
@@ -344,13 +344,13 @@ declare const Radio: {
|
|
|
344
344
|
size: {
|
|
345
345
|
type: _$vue.PropType<"" | "default" | "small" | "large">;
|
|
346
346
|
};
|
|
347
|
+
options: {
|
|
348
|
+
type: _$vue.PropType<_$element_plus0.radioOption[]>;
|
|
349
|
+
};
|
|
347
350
|
validateEvent: {
|
|
348
351
|
type: _$vue.PropType<boolean>;
|
|
349
352
|
default: true;
|
|
350
353
|
};
|
|
351
|
-
options: {
|
|
352
|
-
type: _$vue.PropType<_$element_plus0.radioOption[]>;
|
|
353
|
-
};
|
|
354
354
|
ariaLabel: {
|
|
355
355
|
type: _$vue.PropType<string>;
|
|
356
356
|
};
|
|
@@ -380,18 +380,14 @@ declare const Radio: {
|
|
|
380
380
|
__isTeleport?: never;
|
|
381
381
|
__isSuspense?: never;
|
|
382
382
|
} & _$vue.ComponentOptionsBase<Readonly<_$vue.ExtractPropTypes<{
|
|
383
|
-
props: {
|
|
384
|
-
type: _$vue.PropType<_$element_plus0.radioOptionProp>;
|
|
385
|
-
default: () => Required<_$element_plus0.radioOptionProp>;
|
|
386
|
-
};
|
|
387
|
-
fill: {
|
|
388
|
-
type: _$vue.PropType<string>;
|
|
389
|
-
default: "";
|
|
390
|
-
};
|
|
391
383
|
modelValue: {
|
|
392
384
|
type: _$vue.PropType<string | number | boolean>;
|
|
393
385
|
default: undefined;
|
|
394
386
|
};
|
|
387
|
+
props: {
|
|
388
|
+
type: _$vue.PropType<_$element_plus0.radioOptionProp>;
|
|
389
|
+
default: () => Required<_$element_plus0.radioOptionProp>;
|
|
390
|
+
};
|
|
395
391
|
type: {
|
|
396
392
|
type: _$vue.PropType<"button" | "radio">;
|
|
397
393
|
default: "radio";
|
|
@@ -400,6 +396,10 @@ declare const Radio: {
|
|
|
400
396
|
type: _$vue.PropType<string>;
|
|
401
397
|
default: undefined;
|
|
402
398
|
};
|
|
399
|
+
fill: {
|
|
400
|
+
type: _$vue.PropType<string>;
|
|
401
|
+
default: "";
|
|
402
|
+
};
|
|
403
403
|
disabled: {
|
|
404
404
|
type: _$vue.PropType<boolean>;
|
|
405
405
|
default: undefined;
|
|
@@ -407,13 +407,13 @@ declare const Radio: {
|
|
|
407
407
|
size: {
|
|
408
408
|
type: _$vue.PropType<"" | "default" | "small" | "large">;
|
|
409
409
|
};
|
|
410
|
+
options: {
|
|
411
|
+
type: _$vue.PropType<_$element_plus0.radioOption[]>;
|
|
412
|
+
};
|
|
410
413
|
validateEvent: {
|
|
411
414
|
type: _$vue.PropType<boolean>;
|
|
412
415
|
default: true;
|
|
413
416
|
};
|
|
414
|
-
options: {
|
|
415
|
-
type: _$vue.PropType<_$element_plus0.radioOption[]>;
|
|
416
|
-
};
|
|
417
417
|
ariaLabel: {
|
|
418
418
|
type: _$vue.PropType<string>;
|
|
419
419
|
};
|
|
@@ -447,7 +447,61 @@ declare const Radio: {
|
|
|
447
447
|
};
|
|
448
448
|
});
|
|
449
449
|
} & {
|
|
450
|
-
Group:
|
|
450
|
+
Group: {
|
|
451
|
+
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<_$vue.ExtractPropTypes<{
|
|
452
|
+
options: {
|
|
453
|
+
type: _$vue.PropType<Array<_$element_plus0.RadioProps | string | number>>;
|
|
454
|
+
default: () => any[];
|
|
455
|
+
};
|
|
456
|
+
optionType: {
|
|
457
|
+
type: _$vue.PropType<"default" | "button">;
|
|
458
|
+
default: string;
|
|
459
|
+
};
|
|
460
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {
|
|
461
|
+
options: (string | number | _$element_plus0.RadioProps)[];
|
|
462
|
+
optionType: "default" | "button";
|
|
463
|
+
}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
|
464
|
+
P: {};
|
|
465
|
+
B: {};
|
|
466
|
+
D: {};
|
|
467
|
+
C: {};
|
|
468
|
+
M: {};
|
|
469
|
+
Defaults: {};
|
|
470
|
+
}, Readonly<_$vue.ExtractPropTypes<{
|
|
471
|
+
options: {
|
|
472
|
+
type: _$vue.PropType<Array<_$element_plus0.RadioProps | string | number>>;
|
|
473
|
+
default: () => any[];
|
|
474
|
+
};
|
|
475
|
+
optionType: {
|
|
476
|
+
type: _$vue.PropType<"default" | "button">;
|
|
477
|
+
default: string;
|
|
478
|
+
};
|
|
479
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
480
|
+
options: (string | number | _$element_plus0.RadioProps)[];
|
|
481
|
+
optionType: "default" | "button";
|
|
482
|
+
}>;
|
|
483
|
+
__isFragment?: never;
|
|
484
|
+
__isTeleport?: never;
|
|
485
|
+
__isSuspense?: never;
|
|
486
|
+
} & _$vue.ComponentOptionsBase<Readonly<_$vue.ExtractPropTypes<{
|
|
487
|
+
options: {
|
|
488
|
+
type: _$vue.PropType<Array<_$element_plus0.RadioProps | string | number>>;
|
|
489
|
+
default: () => any[];
|
|
490
|
+
};
|
|
491
|
+
optionType: {
|
|
492
|
+
type: _$vue.PropType<"default" | "button">;
|
|
493
|
+
default: string;
|
|
494
|
+
};
|
|
495
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {
|
|
496
|
+
options: (string | number | _$element_plus0.RadioProps)[];
|
|
497
|
+
optionType: "default" | "button";
|
|
498
|
+
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
|
499
|
+
$slots: {
|
|
500
|
+
option?: (props: {
|
|
501
|
+
option: _$element_plus0.RadioProps;
|
|
502
|
+
}) => any;
|
|
503
|
+
};
|
|
504
|
+
});
|
|
451
505
|
};
|
|
452
506
|
//#endregion
|
|
453
507
|
export { Radio };
|