@web-utils/form-ui 1.0.0-beta94 → 1.0.0-beta96
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/address-input/index.d.ts +2 -2
- package/awesome-button/index.d.ts +6 -4
- package/capsule-tab/index.d.ts +2 -2
- package/card/index.d.ts +2 -2
- package/chunks/{n1KViU9y2.mjs → 7mLGHDva2.mjs} +12 -9
- package/chunks/{6dpdFLpv2.mjs → BJsEGC-v2.mjs} +35 -44
- package/chunks/{Cv1iIzzy2.mjs → BanS-yUY2.mjs} +1 -1
- package/chunks/{BZw-uhPj.mjs → C23Qaggp.mjs} +27 -26
- package/chunks/{JUkvPXqc.mjs → CZxWWk4N.mjs} +8 -8
- package/chunks/{BKdkhZkk2.mjs → D7kTwnJK2.mjs} +1 -1
- package/chunks/{C6l7TFPU.mjs → D8C17D2k.mjs} +7 -7
- package/chunks/{DRkvaPr32.mjs → DIQto0dy2.mjs} +11 -8
- package/chunks/{DngNYJVa2.mjs → DzfHfYvS2.mjs} +1 -1
- package/chunks/{5BOS55Lv2.mjs → NYkLWtyw2.mjs} +1 -1
- package/chunks/{BpZ0yk642.mjs → Y3LG5Oyd2.mjs} +23 -18
- package/chunks/{DFJMTSc7.mjs → bPnQPTY0.mjs} +1 -1
- package/chunks/{-d4DuTH12.mjs → dgRz6V6p2.mjs} +1 -1
- package/chunks/qIca9lDu2.mjs +108 -0
- package/chunks/{BTVXdtOG.mjs → sl7eKGeX.mjs} +121 -110
- package/chunks/{D6B1lNKn2.mjs → v2GLQDzI2.mjs} +18 -18
- package/code-mirror-editor/index.d.ts +2 -2
- package/confirm-button/index.d.ts +121 -1
- package/confirmable/index.d.ts +92 -1
- package/context-menu/index.d.ts +3 -3
- package/count-up/index.d.ts +3 -3
- package/custom-scrollbar/index.d.ts +2 -2
- package/data-box/index.d.ts +2 -2
- package/data-card/index.d.ts +2 -2
- package/data-card-text/index.d.ts +2 -2
- package/data-display/index.d.ts +2 -2
- package/data-icons/index.d.ts +2 -2
- package/data-imgtext/index.d.ts +2 -2
- package/data-operatext/index.d.ts +2 -2
- package/data-panel/index.d.ts +2 -2
- package/data-pay/index.d.ts +2 -2
- package/data-price/index.d.ts +2 -2
- package/data-progress/index.d.ts +2 -2
- package/data-rotate/index.d.ts +2 -2
- package/data-table-picker/index.d.ts +2 -2
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/index.d.ts +2 -2
- package/dialog-form/index.d.ts +1 -1
- package/dialog-form/index.mjs +1 -1
- package/dict-render/index.d.ts +2 -2
- package/e-charts/index.d.ts +2 -2
- package/easy-popup/index.d.ts +3 -3
- package/editable-progress/index.d.ts +2 -2
- package/editable-tree/index.d.ts +4 -4
- package/element-dialog/index.d.ts +294 -16
- package/flex-box/index.d.ts +2 -2
- package/flex-column/index.d.ts +2 -2
- package/flex-item/index.d.ts +2 -2
- package/flex-row/index.d.ts +2 -2
- package/flex-scroll-area/index.d.ts +1 -1
- package/flex-scroller/index.d.ts +2 -2
- package/flow-designer/index.d.ts +6 -6
- package/flow-viewer/index.d.ts +2 -2
- package/form-button/index.d.ts +92 -1
- package/form-cascader/index.d.ts +9 -7
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.d.ts +8 -6
- package/form-checkbox-group/index.d.ts +372 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-date-picker/index.d.ts +10 -8
- package/form-holder/index.d.ts +2 -2
- package/form-image/index.d.ts +7 -5
- package/form-input/index.d.ts +11 -9
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +8 -6
- package/form-input-email/index.d.ts +8 -8
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +8 -8
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +11 -9
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +8 -8
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +8 -6
- package/form-input-time/index.d.ts +10 -8
- package/form-item/index.d.ts +5 -5
- package/form-item-config-provider/index.d.ts +3 -3
- package/form-item-group/index.d.ts +6 -4
- package/form-radio-group/index.d.ts +15 -13
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +8 -6
- package/form-row/index.d.ts +2 -2
- package/form-select/index.d.ts +11 -9
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +9 -7
- package/form-switch/index.d.ts +8 -6
- package/form-table/index.d.ts +10 -6
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.d.ts +10 -8
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.d.ts +7 -5
- package/form-textarea/index.d.ts +8 -8
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.d.ts +8 -6
- package/form-tree-select/index.d.ts +10 -8
- package/form-tree-select-multiple/index.d.ts +10 -8
- package/form-view/index.d.ts +4 -4
- package/fy-array/index.d.ts +266 -3
- package/fy-cascader/index.d.ts +266 -3
- package/fy-checkbox/index.d.ts +266 -3
- package/fy-curd/index.d.ts +13 -10
- package/fy-curd/index.mjs +1 -1
- package/fy-date/index.d.ts +266 -3
- package/fy-dynamic/index.d.ts +266 -3
- package/fy-dynamic/index.mjs +1 -1
- package/fy-empty/index.d.ts +2 -2
- package/fy-form/index.d.ts +9 -9
- package/fy-form/index.mjs +1 -1
- package/fy-input/index.d.ts +266 -3
- package/fy-input-color/index.d.ts +266 -3
- package/fy-input-icon/index.d.ts +266 -3
- package/fy-input-map/index.d.ts +266 -3
- package/fy-input-number/index.d.ts +266 -3
- package/fy-input-table/index.d.ts +266 -3
- package/fy-input-table/index.mjs +1 -1
- package/fy-input-tree/index.d.ts +267 -4
- package/fy-radio/index.d.ts +266 -3
- package/fy-rate/index.d.ts +266 -3
- package/fy-select/index.d.ts +267 -4
- package/fy-slider/index.d.ts +266 -3
- package/fy-switch/index.d.ts +266 -3
- package/fy-tabs/index.d.ts +2 -2
- package/fy-time/index.d.ts +731 -4
- package/fy-title/index.d.ts +266 -3
- package/fy-tree/index.d.ts +2 -2
- package/fy-tree/index.mjs +1 -1
- package/fy-u-editor/index.d.ts +3 -3
- package/fy-upload/index.d.ts +267 -4
- package/guide-steps/index.d.ts +2 -2
- package/helper/form-item.d.ts +1 -1
- package/helper/input.d.ts +18 -12
- package/highlight-j-s/index.d.ts +2 -2
- package/icon-temp/index.d.ts +2 -2
- package/image-cropper/index.d.ts +354 -1
- package/image-preview/index.d.ts +2 -2
- package/image-viewer/index.d.ts +2 -2
- package/index.mjs +16 -16
- package/input-number-range/index.d.ts +2 -2
- package/json-editor/index.d.ts +2 -2
- package/keyboard/index.d.ts +2 -2
- package/loading-view/index.d.ts +2 -2
- package/monaco-editor/index.d.ts +2 -2
- package/name-avatar/index.d.ts +2 -2
- package/package.json +3 -4
- package/page-index/index.d.ts +2 -2
- package/page-index-top/index.d.ts +2 -2
- package/page-skeleton/index.d.ts +2 -2
- package/page-skeleton-new/index.d.ts +2 -2
- package/pageable-table/index.d.ts +4 -4
- package/pageable-table/index.mjs +1 -1
- package/photo-swipe/index.d.ts +2 -2
- package/props/col.d.ts +1 -1
- package/props/form-item.d.ts +1 -1
- package/props/input-number.d.ts +1 -1
- package/props/input-number.mjs +5 -1
- package/props/input.d.ts +1 -1
- package/props/input.mjs +3 -2
- package/props/textarea.d.ts +1 -1
- package/props/textarea.mjs +1 -1
- package/sign-panel/index.d.ts +2 -2
- package/split-pane/index.d.ts +4 -4
- package/stateful/index.d.ts +5 -3
- package/sub-table/index.d.ts +4 -2
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.d.ts +4 -2
- package/sub-table-plus/index.mjs +1 -1
- package/table-column/index.d.ts +3 -3
- package/table-column-def/index.d.ts +4 -4
- package/table-view/index.d.ts +7 -4
- package/table-view/index.mjs +13 -18
- package/tag-render/index.d.ts +2 -2
- package/text-ellipsis/index.d.ts +3 -3
- package/toolbar/index.d.ts +4 -4
- package/toolbar-button/index.d.ts +5 -5
- package/vue/directives/chat-drag.d.ts +2 -0
- package/vue/directives/chat-drag.mjs +12 -0
- package/vue/directives/click-outside.d.ts +10 -0
- package/vue/directives/click-outside.mjs +36 -0
- package/vue/directives/dialog-drag.d.ts +2 -0
- package/vue/directives/dialog-drag.mjs +15 -0
- package/vue/directives/drag-move.d.ts +10 -0
- package/vue/directives/drag-move.mjs +27 -0
- package/vue/directives/fix-fixed-column-height.d.ts +7 -0
- package/vue/directives/fix-fixed-column-height.mjs +20 -0
- package/vue/directives/index.d.ts +7 -0
- package/vue/directives/index.mjs +8 -0
- package/vue/directives/resize.d.ts +2 -0
- package/vue/directives/resize.mjs +12 -0
- package/vue/directives/scroll-bottom.d.ts +5 -0
- package/vue/directives/scroll-bottom.mjs +6 -0
- package/vue/hooks/index.d.ts +3 -0
- package/vue/hooks/index.mjs +4 -0
- package/vue/hooks/useDictionary.d.ts +60 -0
- package/{hook → vue/hooks}/useDictionary.mjs +2 -2
- package/vue/hooks/useEventBus.d.ts +1 -0
- package/vue/hooks/useEventBus.mjs +20 -0
- package/{hook → vue/hooks}/useVisibilityChange.mjs +1 -1
- package/vue/index.d.ts +3 -0
- package/vue/index.mjs +83 -0
- package/vue/mixin/bus.d.ts +5 -0
- package/vue/mixin/bus.mjs +33 -0
- package/vue/mixin/dialog.d.ts +38 -0
- package/vue/mixin/dialog.mjs +2 -0
- package/vue/mixin/index.d.ts +6 -0
- package/vue/mixin/index.mjs +7 -0
- package/vue/mixin/message.d.ts +2 -0
- package/vue/mixin/message.mjs +27 -0
- package/vue/mixin/multi-items.d.ts +43 -0
- package/vue/mixin/multi-items.mjs +70 -0
- package/vue/mixin/page.d.ts +28 -0
- package/vue/mixin/page.mjs +38 -0
- package/vue/mixin/resize-mixin.d.ts +15 -0
- package/vue/mixin/resize-mixin.mjs +24 -0
- package/vue-cron/index.d.ts +3 -3
- package/vue-qr-code/index.d.ts +2 -2
- package/vue-tags-input/index.d.ts +3 -3
- package/vue-tree-select/index.d.ts +13 -13
- package/vue-video-player/index.d.ts +2 -2
- package/watermark/index.d.ts +3 -3
- package/web-types.json +1 -1
- package/year-calendar/index.d.ts +2 -2
- package/chunks/DML17Idh2.mjs +0 -108
- package/hook/useDictionary.d.ts +0 -3
- /package/{hook → vue/hooks}/useVisibilityChange.d.ts +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { useDictionary as e } from "../vue/hooks/useDictionary.mjs";
|
|
2
|
+
import { n as t, o as n } from "./_7MDfW_y.mjs";
|
|
3
|
+
import { allProps as r, predicate as i } from "../props/select.mjs";
|
|
4
|
+
import { ElOption as a, ElSelect as o } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import { computed as s, createVNode as c, mergeProps as l, ref as u, watchEffect as d } from "vue";
|
|
7
|
+
import { isNumber as f, isPlainObject as p, isString as m } from "@web-utils/core";
|
|
8
|
+
import "element-plus/es/components/select/style/css";
|
|
9
|
+
import "element-plus/es/components/option/style/css";
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormSelect.vue
|
|
12
|
+
var h = {
|
|
13
|
+
name: "FormSelect",
|
|
14
|
+
inheritAttrs: !1,
|
|
15
|
+
props: { ...r },
|
|
16
|
+
emits: { ...t },
|
|
17
|
+
setup(t, { emit: r, slots: h, attrs: g }) {
|
|
18
|
+
let { emitInput: _, render: v, placeholder: y, disabled: b, listeners: x, inputProps: S } = n(t, {
|
|
19
|
+
emit: r,
|
|
20
|
+
slots: h,
|
|
21
|
+
attrs: g,
|
|
22
|
+
predicate: i,
|
|
23
|
+
messagePrefix: "请选择"
|
|
24
|
+
}), C = u(null), w = u(!1);
|
|
25
|
+
d(() => {
|
|
26
|
+
if (t.multiple && t.multipleStringMode) {
|
|
27
|
+
var e;
|
|
28
|
+
C.value = (e = t.modelValue) == null ? void 0 : e.split(",").filter((e) => e);
|
|
29
|
+
} else C.value = t.modelValue;
|
|
30
|
+
});
|
|
31
|
+
let T = (e) => {
|
|
32
|
+
if (t.multiple && t.multipleStringMode ? _(e.join(t.multipleStringSeparator)) : _(e), t.emitLabel) {
|
|
33
|
+
let n = O.value.find((n) => n[t.props.value] === e), i = n == null ? void 0 : n[t.props.label];
|
|
34
|
+
i !== t.optionLabel && r("update:optionLabel", i);
|
|
35
|
+
}
|
|
36
|
+
}, { dictItems: E } = e(t), D = u([]), O = s(() => {
|
|
37
|
+
if (t.dictType) return E.value;
|
|
38
|
+
if (t.remote) return D.value;
|
|
39
|
+
if (t.gender) return [{
|
|
40
|
+
[t.props.label]: "男",
|
|
41
|
+
[t.props.value]: t.chinese ? "男" : t.typing ? 1 : "1"
|
|
42
|
+
}, {
|
|
43
|
+
[t.props.label]: "女",
|
|
44
|
+
[t.props.value]: t.chinese ? "女" : t.typing ? 2 : "2"
|
|
45
|
+
}];
|
|
46
|
+
if (t.confirm) return [{
|
|
47
|
+
[t.props.label]: "是",
|
|
48
|
+
[t.props.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
|
|
49
|
+
}, {
|
|
50
|
+
[t.props.label]: "否",
|
|
51
|
+
[t.props.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
|
|
52
|
+
}];
|
|
53
|
+
if (t.all) return [{
|
|
54
|
+
[t.props.value]: "",
|
|
55
|
+
[t.props.label]: "全部"
|
|
56
|
+
}, ...t.options];
|
|
57
|
+
if (t.start && t.end) return Array(t.end - t.start + 1).fill(1).map((e, n) => ({
|
|
58
|
+
[t.props.label]: t.start + n,
|
|
59
|
+
[t.props.value]: t.start + n
|
|
60
|
+
}));
|
|
61
|
+
if (t.year) {
|
|
62
|
+
let e = (/* @__PURE__ */ new Date()).getFullYear(), n = [], r = 10;
|
|
63
|
+
f(t.year) && (r = t.year);
|
|
64
|
+
for (let i = -r; i <= r; i++) {
|
|
65
|
+
let r = e + i;
|
|
66
|
+
n.push({
|
|
67
|
+
[t.props.label]: r,
|
|
68
|
+
[t.props.value]: r
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return n;
|
|
72
|
+
}
|
|
73
|
+
return t.options ? t.options.map((e) => (e[t.props.value] = e[t.props.value] ?? e[t.props.label], e)) : [];
|
|
74
|
+
}), k = async (e) => {
|
|
75
|
+
try {
|
|
76
|
+
var n;
|
|
77
|
+
w.value = !0;
|
|
78
|
+
let r = await t.remoteMethod(e, t.prop);
|
|
79
|
+
((n = r.data.data) == null ? void 0 : n.length) >= 0 ? m(r.data.data[0]) ? D.value = r.data.data.map((e) => ({
|
|
80
|
+
[t.props.value]: e,
|
|
81
|
+
[t.props.label]: e
|
|
82
|
+
})) : p(r.data.data[0]) && (D.value = r.data.data) : D.value = [];
|
|
83
|
+
} catch {}
|
|
84
|
+
w.value = !1;
|
|
85
|
+
};
|
|
86
|
+
return d(() => {
|
|
87
|
+
t.remote && k();
|
|
88
|
+
}), () => v({ vNodes: c(o, l(x.value, S.value, {
|
|
89
|
+
offset: t.dropDownOffset,
|
|
90
|
+
"model-value": C.value,
|
|
91
|
+
"onUpdate:modelValue": T,
|
|
92
|
+
disabled: b.value,
|
|
93
|
+
placeholder: y.value
|
|
94
|
+
}), {
|
|
95
|
+
...h,
|
|
96
|
+
default: h.default || (() => {
|
|
97
|
+
var e;
|
|
98
|
+
return (e = O.value) == null ? void 0 : e.map(({ value: e, label: t }) => c(a, {
|
|
99
|
+
key: e,
|
|
100
|
+
label: t,
|
|
101
|
+
value: e
|
|
102
|
+
}, null));
|
|
103
|
+
})
|
|
104
|
+
}) });
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { h as t };
|
|
@@ -5,11 +5,13 @@ import s from "../element-resize-observer/index.mjs";
|
|
|
5
5
|
import { getDictLabel as c } from "../helper/dictionary.mjs";
|
|
6
6
|
import { t as l } from "./C_QfuxeQ.mjs";
|
|
7
7
|
import { t as u } from "./BdrgibgS.mjs";
|
|
8
|
-
import { useVisibilityChange as ee } from "../
|
|
9
|
-
import {
|
|
8
|
+
import { useVisibilityChange as ee } from "../vue/hooks/useVisibilityChange.mjs";
|
|
9
|
+
import { useEventBus as te } from "../vue/hooks/useEventBus.mjs";
|
|
10
|
+
import "../vue/index.mjs";
|
|
11
|
+
import { ElCheckbox as d, ElDrawer as f, ElEmpty as p, ElMessage as ne, ElPagination as re, ElRadio as m, ElTable as h, ElTableColumn as g } from "element-plus/es";
|
|
10
12
|
import "element-plus/es/components/base/style/css";
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import {
|
|
13
|
+
import { Fragment as ie, computed as _, createBlock as v, createTextVNode as y, createVNode as b, inject as x, isVNode as S, mergeModels as C, mergeProps as w, nextTick as ae, onUpdated as oe, openBlock as T, provide as E, reactive as D, ref as O, toDisplayString as k, useModel as A, useTemplateRef as se, watch as j, withCtx as M } from "vue";
|
|
14
|
+
import { isArray as N, isFunction as ce, isString as P } from "@web-utils/core";
|
|
13
15
|
import "element-plus/es/components/message/style/css";
|
|
14
16
|
import "element-plus/es/components/drawer/style/css";
|
|
15
17
|
import "element-plus/es/components/table/style/css";
|
|
@@ -18,11 +20,10 @@ import "element-plus/es/components/table-column/style/css";
|
|
|
18
20
|
import "element-plus/es/components/pagination/style/css";
|
|
19
21
|
import "element-plus/es/components/empty/style/css";
|
|
20
22
|
import "element-plus/es/components/radio/style/css";
|
|
21
|
-
import {
|
|
22
|
-
import { uuid as ce } from "@web-utils/integrations/uuid";
|
|
23
|
+
import { uuid as le } from "@web-utils/integrations/uuid";
|
|
23
24
|
import "../pageable-table/style.css";
|
|
24
25
|
//#region src/components/table/components/TableColumnSettingPanel.vue
|
|
25
|
-
var
|
|
26
|
+
var F = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
26
27
|
__name: "TableColumnSettingPanel",
|
|
27
28
|
props: /* @__PURE__ */ C({ columns: {
|
|
28
29
|
type: Array,
|
|
@@ -108,12 +109,12 @@ var P = /* @__PURE__ */ Object.assign({ name: "TableColumnSettingPanel" }, {
|
|
|
108
109
|
});
|
|
109
110
|
//#endregion
|
|
110
111
|
//#region src/components/table/components/TableColumnFilterable.vue?vue&type=script&lang.jsx
|
|
111
|
-
function
|
|
112
|
+
function I(e) {
|
|
112
113
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !S(e);
|
|
113
114
|
}
|
|
114
115
|
//#endregion
|
|
115
116
|
//#region src/components/table/components/TableColumnFilterable.vue
|
|
116
|
-
var
|
|
117
|
+
var ue = {
|
|
117
118
|
name: "TableColumnFilterable",
|
|
118
119
|
props: { ...l },
|
|
119
120
|
setup(t, { slots: n }) {
|
|
@@ -128,9 +129,9 @@ var le = {
|
|
|
128
129
|
return () => b(u, w(i.value, {
|
|
129
130
|
filterMethod: o.value,
|
|
130
131
|
filters: s.value
|
|
131
|
-
}),
|
|
132
|
+
}), I(n) ? n : { default: () => [n] });
|
|
132
133
|
}
|
|
133
|
-
},
|
|
134
|
+
}, L = {
|
|
134
135
|
data: {
|
|
135
136
|
type: Array,
|
|
136
137
|
default: () => []
|
|
@@ -252,7 +253,7 @@ var le = {
|
|
|
252
253
|
type: String,
|
|
253
254
|
default: "45"
|
|
254
255
|
},
|
|
255
|
-
viewId: String,
|
|
256
|
+
viewId: [String, Array],
|
|
256
257
|
url: String,
|
|
257
258
|
hideOnSinglePage: Boolean,
|
|
258
259
|
api: Function,
|
|
@@ -306,7 +307,7 @@ var le = {
|
|
|
306
307
|
selectExport: Boolean,
|
|
307
308
|
useVisibilityChange: Boolean,
|
|
308
309
|
rowDbClick: Function
|
|
309
|
-
},
|
|
310
|
+
}, R = {
|
|
310
311
|
data: !0,
|
|
311
312
|
rowDbClick: !0,
|
|
312
313
|
selectionWidth: !0,
|
|
@@ -333,38 +334,38 @@ var le = {
|
|
|
333
334
|
columns: !0,
|
|
334
335
|
payloadStyle: !0,
|
|
335
336
|
disabledRowKeys: !0
|
|
336
|
-
},
|
|
337
|
+
}, de = (e) => R[e] !== !0;
|
|
337
338
|
//#endregion
|
|
338
339
|
//#region src/components/table/PageableTable.vue?vue&type=script&lang.jsx
|
|
339
|
-
function
|
|
340
|
+
function fe(e) {
|
|
340
341
|
let t = "";
|
|
341
342
|
for (let n in e) t += `<TableColumnDef prop="${n}" label="${n}"/>\n`;
|
|
342
343
|
return t;
|
|
343
344
|
}
|
|
344
|
-
var
|
|
345
|
+
var z = {
|
|
345
346
|
loading: 1,
|
|
346
347
|
error: -1,
|
|
347
348
|
empty: 2,
|
|
348
349
|
success: 0
|
|
349
|
-
},
|
|
350
|
+
}, B = {
|
|
350
351
|
name: "PageableTable",
|
|
351
352
|
emits: { "page-loaded": null },
|
|
352
353
|
inheritAttrs: !1,
|
|
353
|
-
props: { ...
|
|
354
|
+
props: { ...L },
|
|
354
355
|
setup(e, { emit: l, attrs: u, slots: d, expose: f }) {
|
|
355
356
|
E(i, e.rowDbClick);
|
|
356
|
-
let v =
|
|
357
|
+
let v = se("table"), x = O({
|
|
357
358
|
hideProps: {},
|
|
358
359
|
fixedProps: {},
|
|
359
360
|
filterableProps: {},
|
|
360
361
|
sortableProps: {}
|
|
361
|
-
}), S = O(
|
|
362
|
+
}), S = O(z.empty), C = O([]), T = O(null), D = O(!1), k = O([]), A = O({
|
|
362
363
|
total: 0,
|
|
363
364
|
page: 1,
|
|
364
365
|
limit: e.pageSize,
|
|
365
366
|
ascs: e.ascs,
|
|
366
367
|
descs: e.descs
|
|
367
|
-
}), M = O(0),
|
|
368
|
+
}), M = O(0), I = O(0), L = _(() => e.reloadOnModelChange ? {
|
|
368
369
|
asc: A.value.ascs,
|
|
369
370
|
desc: A.value.descs,
|
|
370
371
|
page: A.value.page,
|
|
@@ -375,14 +376,14 @@ var R = {
|
|
|
375
376
|
desc: A.value.descs,
|
|
376
377
|
page: A.value.page,
|
|
377
378
|
limit: A.value.limit
|
|
378
|
-
}),
|
|
379
|
+
}), R = _(() => {
|
|
379
380
|
var e;
|
|
380
381
|
let t = `${(A.value.page - 1) * A.value.limit + (((e = C.value) == null ? void 0 : e.length) ?? 0)}`;
|
|
381
382
|
return t.length > 3 ? 60 + (t.length - 3) * 10 : 60;
|
|
382
|
-
}),
|
|
383
|
+
}), B = () => {
|
|
383
384
|
V();
|
|
384
|
-
},
|
|
385
|
-
if (e.clickRowSelect &&
|
|
385
|
+
}, pe = (t, n, r) => {
|
|
386
|
+
if (e.clickRowSelect && X(t)) {
|
|
386
387
|
var i;
|
|
387
388
|
if (k.value.find((n) => n[e.rowKey] === t[e.rowKey])) {
|
|
388
389
|
var a;
|
|
@@ -398,20 +399,20 @@ var R = {
|
|
|
398
399
|
return ((t = e.$options) == null ? void 0 : t.name) === "ElTableBody";
|
|
399
400
|
});
|
|
400
401
|
n == null || (t = n.$refs) == null || (t = t.tooltip) == null || t.hide();
|
|
401
|
-
},
|
|
402
|
-
M.value = t,
|
|
403
|
-
},
|
|
404
|
-
|
|
405
|
-
},
|
|
402
|
+
}, me = ({ scrollLeft: e, scrollTop: t }) => {
|
|
403
|
+
M.value = t, I.value = e;
|
|
404
|
+
}, he = () => {
|
|
405
|
+
be(M.value, I.value);
|
|
406
|
+
}, ge = (e) => n(fe(e)), _e = ({ prop: t, order: n }) => {
|
|
406
407
|
e.payloadStyle === "body" ? (A.value.ascs = n === "ascending" ? [t] : e.ascs, A.value.descs = n === "descending" ? [t] : e.descs) : (A.value.ascs = n === "ascending" ? t : "", A.value.descs = n === "descending" ? t : "");
|
|
407
|
-
},
|
|
408
|
-
|
|
409
|
-
},
|
|
408
|
+
}, ve = (e) => {
|
|
409
|
+
X(e) && (T.value = e);
|
|
410
|
+
}, ye = (e) => {
|
|
410
411
|
k.value = e;
|
|
411
|
-
},
|
|
412
|
+
}, H = () => {
|
|
412
413
|
var e;
|
|
413
414
|
(e = v.value) == null || e.clearSelection();
|
|
414
|
-
},
|
|
415
|
+
}, U = () => {
|
|
415
416
|
let t;
|
|
416
417
|
return t = e.payloadStyle === "body" ? {
|
|
417
418
|
page: {
|
|
@@ -426,20 +427,20 @@ var R = {
|
|
|
426
427
|
size: A.value.limit,
|
|
427
428
|
...e.model || {}
|
|
428
429
|
}, e.selectExport && (e.rowKey ? t.exportKeys = k.value.map((t) => t[e.rowKey]) : t.exportKeys = k.value.map((e) => C.value.indexOf(e))), t;
|
|
429
|
-
},
|
|
430
|
+
}, W = async (t = !0) => {
|
|
430
431
|
if (!e.api && e.data !== !1) {
|
|
431
432
|
var n;
|
|
432
433
|
C.value = e.data, A.value.page = 1, A.value.total = (n = C.value) == null ? void 0 : n.length, A.value.limit = A.value.total < 1 ? e.pageSize : A.value.total;
|
|
433
434
|
return;
|
|
434
435
|
}
|
|
435
436
|
t !== !1 && (C.value = []);
|
|
436
|
-
let r, i =
|
|
437
|
+
let r, i = U();
|
|
437
438
|
if (e.api) {
|
|
438
|
-
t !== !1 && (S.value =
|
|
439
|
+
t !== !1 && (S.value = z.loading);
|
|
439
440
|
try {
|
|
440
441
|
e.api && (r = await e.api(i));
|
|
441
442
|
} catch {
|
|
442
|
-
S.value =
|
|
443
|
+
S.value = z.error;
|
|
443
444
|
return;
|
|
444
445
|
}
|
|
445
446
|
} else if (e.data) r = { data: { data: {
|
|
@@ -454,15 +455,15 @@ var R = {
|
|
|
454
455
|
return;
|
|
455
456
|
}
|
|
456
457
|
let { data: { data: a } = {} } = r || {}, { total: o, records: s } = a || {};
|
|
457
|
-
A.value.total = Number(o), C.value = await
|
|
458
|
-
},
|
|
459
|
-
|
|
458
|
+
A.value.total = Number(o), C.value = await xe(s), !s || !s.length ? S.value = z.empty : S.value = z.success, G(), l("page-loaded", a);
|
|
459
|
+
}, G = () => {
|
|
460
|
+
ae(() => {
|
|
460
461
|
var e;
|
|
461
462
|
(e = v.value) == null || e.doLayout();
|
|
462
463
|
});
|
|
463
|
-
},
|
|
464
|
-
await
|
|
465
|
-
},
|
|
464
|
+
}, K = async (e) => {
|
|
465
|
+
await W(e);
|
|
466
|
+
}, q = () => {
|
|
466
467
|
A.value = {
|
|
467
468
|
total: 0,
|
|
468
469
|
page: 1,
|
|
@@ -470,12 +471,12 @@ var R = {
|
|
|
470
471
|
ascs: e.ascs,
|
|
471
472
|
descs: e.descs
|
|
472
473
|
};
|
|
473
|
-
},
|
|
474
|
+
}, be = (e, t) => {
|
|
474
475
|
v.value.setScrollTop(e), v.value.setScrollLeft(t);
|
|
475
|
-
},
|
|
476
|
+
}, J = (e, t) => {
|
|
476
477
|
var n;
|
|
477
478
|
(n = v.value) == null || n.toggleRowSelection(e, t);
|
|
478
|
-
},
|
|
479
|
+
}, xe = async (t) => {
|
|
479
480
|
if (!t) return [];
|
|
480
481
|
let n = [...t];
|
|
481
482
|
for (let t of n) for (let n of e.dicOptions) if (t[`$${n.prop}`] = t[n.prop], n.dicData) {
|
|
@@ -483,76 +484,86 @@ var R = {
|
|
|
483
484
|
t[n.prop] = ((r = n.dicData.find((e) => e.modelValue === t[n.prop])) == null ? void 0 : r.label) || t[n.prop];
|
|
484
485
|
} else t[n.prop] = await c(n.dicType, t[n.prop]);
|
|
485
486
|
return n;
|
|
486
|
-
},
|
|
487
|
+
}, Y = () => {
|
|
487
488
|
D.value = !D.value;
|
|
488
|
-
},
|
|
489
|
+
}, X = (t) => {
|
|
489
490
|
var n;
|
|
490
491
|
return !(t != null && t.disabled) && !((n = e.disabledRowKeys) != null && n.includes(t == null ? void 0 : t[e.rowKey]));
|
|
491
492
|
};
|
|
492
493
|
e.useVisibilityChange && ee({ onPageVisible: () => {
|
|
493
|
-
|
|
494
|
-
} })
|
|
495
|
-
|
|
496
|
-
|
|
494
|
+
K(!1);
|
|
495
|
+
} });
|
|
496
|
+
let Z = _(() => {
|
|
497
|
+
let t = [];
|
|
498
|
+
return P(e.viewId) ? t = e.viewId.split(",") : N(e.viewId) && (t = e.viewId), t.filter((e) => e);
|
|
499
|
+
});
|
|
500
|
+
te("reloadTable", (e) => {
|
|
501
|
+
if (P(e) || N(e)) {
|
|
502
|
+
let t = e;
|
|
503
|
+
P(e) && (t = e.split(",")), Z.value.some((e) => t.includes(e)) && (console.info(`reloadTable:${Z.value.join()}`), W());
|
|
504
|
+
} else console.warn("`viewId`的类型必须是字符串或数组");
|
|
505
|
+
}), j(() => e.url, q), j(() => e.api, q), j(() => e.data, W), j(() => L.value, W, {
|
|
497
506
|
deep: !0,
|
|
498
507
|
immediate: e.immediate
|
|
499
508
|
});
|
|
500
509
|
let Q = (t) => {
|
|
501
510
|
let n;
|
|
502
|
-
if (
|
|
511
|
+
if (ce(e.rowKey)) {
|
|
503
512
|
if (n = e.rowKey(t), n) return n;
|
|
504
513
|
} else if (e.rowKey && (n = t[e.rowKey], n)) return n;
|
|
505
|
-
return n = "__rowKey", t[n] || (t[n] =
|
|
514
|
+
return n = "__rowKey", t[n] || (t[n] = le(!1)), t[n];
|
|
506
515
|
}, $ = _(() => {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
let
|
|
511
|
-
|
|
512
|
-
|
|
516
|
+
var t;
|
|
517
|
+
let n = [];
|
|
518
|
+
if (((t = e.columns) == null ? void 0 : t.length) > 0) for (let t = 0; t < e.columns.length; t++) {
|
|
519
|
+
let { prop: r, sortable: i, fixed: a, ...o } = e.columns[t], s = {
|
|
520
|
+
...o,
|
|
521
|
+
prop: r,
|
|
522
|
+
allowSort: i !== !1
|
|
523
|
+
};
|
|
524
|
+
s.hide = x.value.hideProps[r], s.filterable = x.value.filterableProps[r], s.sortable = x.value.sortableProps[r] === !0, s.fixed = a || x.value.fixedProps[r], n.push(s);
|
|
525
|
+
}
|
|
526
|
+
else if (d.default) {
|
|
527
|
+
var i;
|
|
528
|
+
let e = r((i = d.default) == null ? void 0 : i.call(d));
|
|
529
|
+
for (let t = 0; t < e.length; t++) {
|
|
530
|
+
let { props: r, children: i } = e[t];
|
|
513
531
|
if (!r) continue;
|
|
514
532
|
let { sortable: a, prop: o, fixed: s, ...c } = r, l = {
|
|
515
533
|
...c,
|
|
516
534
|
prop: o,
|
|
517
535
|
allowSort: a !== !1
|
|
518
536
|
};
|
|
519
|
-
i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), l.hide = x.value.hideProps[o], l.filterable = x.value.filterableProps[o], l.sortable = x.value.sortableProps[o] === !0, l.fixed = s || x.value.fixedProps[o],
|
|
537
|
+
i && (l.headerSlot = i.header, l.defaultSlot = i.default, l.expandSlot = i.expand, l.iconSlot = i["filter-icon"]), l.hide = x.value.hideProps[o], l.filterable = x.value.filterableProps[o], l.sortable = x.value.sortableProps[o] === !0, l.fixed = s || x.value.fixedProps[o], n.push(l);
|
|
520
538
|
}
|
|
521
|
-
} else if (e.columns) for (let n = 0; n < e.columns.length; n++) {
|
|
522
|
-
let { prop: r, sortable: i, fixed: a, ...o } = e.columns[n], s = {
|
|
523
|
-
...o,
|
|
524
|
-
prop: r,
|
|
525
|
-
allowSort: i !== !1
|
|
526
|
-
};
|
|
527
|
-
s.hide = x.value.hideProps[r], s.filterable = x.value.filterableProps[r], s.sortable = x.value.sortableProps[r] === !0, s.fixed = a || x.value.fixedProps[r], t.push(s);
|
|
528
539
|
}
|
|
529
|
-
return
|
|
540
|
+
return n;
|
|
530
541
|
});
|
|
531
|
-
|
|
532
|
-
|
|
542
|
+
oe(() => {
|
|
543
|
+
he();
|
|
533
544
|
}), f({
|
|
534
545
|
records: C,
|
|
535
|
-
getPage:
|
|
536
|
-
refresh:
|
|
537
|
-
reload:
|
|
538
|
-
doLayout:
|
|
539
|
-
clearSelection:
|
|
540
|
-
toggleRowSelection:
|
|
541
|
-
toggleSettings:
|
|
546
|
+
getPage: W,
|
|
547
|
+
refresh: K,
|
|
548
|
+
reload: q,
|
|
549
|
+
doLayout: G,
|
|
550
|
+
clearSelection: H,
|
|
551
|
+
toggleRowSelection: J,
|
|
552
|
+
toggleSettings: Y,
|
|
542
553
|
currentRow: T,
|
|
543
|
-
getPageQuery:
|
|
554
|
+
getPageQuery: U,
|
|
544
555
|
tableColumns: $
|
|
545
556
|
}), E(a, {
|
|
546
557
|
records: C,
|
|
547
|
-
getPage:
|
|
548
|
-
refresh:
|
|
549
|
-
reload:
|
|
550
|
-
doLayout:
|
|
551
|
-
clearSelection:
|
|
552
|
-
toggleRowSelection:
|
|
553
|
-
toggleSettings:
|
|
558
|
+
getPage: W,
|
|
559
|
+
refresh: K,
|
|
560
|
+
reload: q,
|
|
561
|
+
doLayout: G,
|
|
562
|
+
clearSelection: H,
|
|
563
|
+
toggleRowSelection: J,
|
|
564
|
+
toggleSettings: Y
|
|
554
565
|
});
|
|
555
|
-
let { autoBindProps:
|
|
566
|
+
let { autoBindProps: Se, listeners: Ce } = t(e, { predicate: de });
|
|
556
567
|
return () => b("div", {
|
|
557
568
|
class: [
|
|
558
569
|
"pageable-table",
|
|
@@ -562,7 +573,7 @@ var R = {
|
|
|
562
573
|
style: u.style
|
|
563
574
|
}, [b("div", { class: "pageable-table-wrapper" }, [
|
|
564
575
|
d.toolbar && d.toolbar({ selectedRows: k.value }),
|
|
565
|
-
b(h, w(
|
|
576
|
+
b(h, w(Ce.value, Se.value, {
|
|
566
577
|
ref: "table",
|
|
567
578
|
data: C.value,
|
|
568
579
|
class: ["flex-item", { "header-bold": e.headerBold }],
|
|
@@ -571,20 +582,20 @@ var R = {
|
|
|
571
582
|
rowKey: Q,
|
|
572
583
|
size: "default",
|
|
573
584
|
height: e.autoHeight ? null : "auto",
|
|
574
|
-
onScroll:
|
|
575
|
-
onSortChange:
|
|
576
|
-
onRowDblclick:
|
|
577
|
-
onRowClick:
|
|
585
|
+
onScroll: me,
|
|
586
|
+
onSortChange: _e,
|
|
587
|
+
onRowDblclick: B,
|
|
588
|
+
onRowClick: pe,
|
|
578
589
|
onCellClick: V,
|
|
579
|
-
onCurrentChange:
|
|
580
|
-
onSelectionChange:
|
|
590
|
+
onCurrentChange: ve,
|
|
591
|
+
onSelectionChange: ye
|
|
581
592
|
}), {
|
|
582
593
|
default: () => {
|
|
583
594
|
let t = [];
|
|
584
595
|
if (e.multiple && e.selection && t.push(b(g, {
|
|
585
596
|
key: "selection",
|
|
586
597
|
type: "selection",
|
|
587
|
-
selectable:
|
|
598
|
+
selectable: X,
|
|
588
599
|
width: e.selectionWidth,
|
|
589
600
|
align: "center"
|
|
590
601
|
}, null)), !e.multiple && e.selection && t.push(b(g, {
|
|
@@ -600,20 +611,20 @@ var R = {
|
|
|
600
611
|
}, { default: () => [b("span", null, null)] }),
|
|
601
612
|
default: ({ row: e }) => b(m, {
|
|
602
613
|
label: !0,
|
|
603
|
-
disabled: !
|
|
614
|
+
disabled: !X(e),
|
|
604
615
|
modelValue: T.value && Q(T.value) === Q(e)
|
|
605
616
|
}, { default: () => [b("span", null, null)] })
|
|
606
617
|
})), e.index && t.push(b(g, {
|
|
607
618
|
key: "index",
|
|
608
619
|
type: "index",
|
|
609
620
|
label: "序号",
|
|
610
|
-
width:
|
|
621
|
+
width: R.value,
|
|
611
622
|
align: "center"
|
|
612
623
|
}, { default: ({ $index: e }) => (A.value.page - 1) * A.value.limit + e + 1 || e + 1 })), $.value.length > 0) for (let e = 0; e < $.value.length; e++) {
|
|
613
624
|
let n = $.value[e];
|
|
614
625
|
if (n.hide) continue;
|
|
615
626
|
let { prop: r, headerSlot: i, defaultSlot: a, expandSlot: o, iconSlot: s, ...c } = n;
|
|
616
|
-
t.push(b(
|
|
627
|
+
t.push(b(ue, w(c, { prop: r }), {
|
|
617
628
|
default: d[r] ? ({ row: e }) => d[r]({ row: e }) : a,
|
|
618
629
|
header: i,
|
|
619
630
|
expand: o,
|
|
@@ -625,21 +636,21 @@ var R = {
|
|
|
625
636
|
label: "点击表格行复制模板"
|
|
626
637
|
}, { default: ({ row: e }) => b("pre", {
|
|
627
638
|
class: "pointer",
|
|
628
|
-
onClick: () =>
|
|
639
|
+
onClick: () => ge(e)
|
|
629
640
|
}, [JSON.stringify(e, null, " ")]) }));
|
|
630
641
|
return t;
|
|
631
642
|
},
|
|
632
|
-
empty: () => d.empty ? d.empty() : b(
|
|
633
|
-
S.value ===
|
|
634
|
-
S.value ===
|
|
643
|
+
empty: () => d.empty ? d.empty() : b(ie, null, [
|
|
644
|
+
S.value === z.loading && b("span", { class: "pageable-table-loading" }, [b("i", { class: "table-status-icon el-icon-loading" }, null), y("加载中...")]),
|
|
645
|
+
S.value === z.error && b(o, {
|
|
635
646
|
class: "pageable-table-error",
|
|
636
|
-
onClick:
|
|
647
|
+
onClick: K
|
|
637
648
|
}, { default: () => [b("i", { class: "table-status-icon el-icon-error" }, null), y("加载失败,点击重试!")] }),
|
|
638
|
-
S.value !==
|
|
649
|
+
S.value !== z.loading && S.value !== z.error && b(p, null, null)
|
|
639
650
|
]),
|
|
640
651
|
append: d.append
|
|
641
652
|
}),
|
|
642
|
-
e.paging && b(
|
|
653
|
+
e.paging && b(re, {
|
|
643
654
|
"current-page": A.value.page,
|
|
644
655
|
"onUpdate:current-page": (e) => A.value.page = e,
|
|
645
656
|
"hide-on-single-page": e.hideOnSinglePage,
|
|
@@ -659,15 +670,15 @@ var R = {
|
|
|
659
670
|
background: !0,
|
|
660
671
|
layout: "total, sizes, prev, pager, next, jumper"
|
|
661
672
|
}, null),
|
|
662
|
-
b(
|
|
673
|
+
b(F, {
|
|
663
674
|
settings: x.value,
|
|
664
675
|
"onUpdate:settings": (e) => x.value = e,
|
|
665
676
|
modelValue: D.value,
|
|
666
677
|
"onUpdate:modelValue": (e) => D.value = e,
|
|
667
678
|
columns: $.value
|
|
668
679
|
}, null)
|
|
669
|
-
]), b(s, { onNotify:
|
|
680
|
+
]), b(s, { onNotify: G }, null)]);
|
|
670
681
|
}
|
|
671
682
|
};
|
|
672
683
|
//#endregion
|
|
673
|
-
export {
|
|
684
|
+
export { B as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useDictionary as e } from "../vue/hooks/useDictionary.mjs";
|
|
2
|
+
import { n as t, o as n } from "./_7MDfW_y.mjs";
|
|
3
3
|
import { allProps as r, predicate as i } from "../props/radio-group.mjs";
|
|
4
4
|
import { ElRadio as a, ElRadioButton as o, ElRadioGroup as s } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
@@ -17,27 +17,27 @@ var m = {
|
|
|
17
17
|
name: "FormRadioGroup",
|
|
18
18
|
inheritAttrs: !1,
|
|
19
19
|
props: { ...r },
|
|
20
|
-
emits: { ...
|
|
21
|
-
setup(
|
|
22
|
-
let h = f(
|
|
20
|
+
emits: { ...t },
|
|
21
|
+
setup(t, { slots: r, attrs: u, emit: m }) {
|
|
22
|
+
let h = f(t, "modelValue"), { render: g, disabled: _, listeners: v, inputProps: y } = n(t, {
|
|
23
23
|
emit: m,
|
|
24
24
|
slots: r,
|
|
25
25
|
attrs: u,
|
|
26
26
|
predicate: i,
|
|
27
27
|
messagePrefix: "请选择"
|
|
28
|
-
}), b = c(() =>
|
|
28
|
+
}), b = c(() => t.classic ? "label" : t.labelProp), x = c(() => t.classic ? "value" : t.valueProp), { dictItems: S } = e(t), C = c(() => t.dictType ? S.value : t.gender ? [{
|
|
29
29
|
[b.value]: "男",
|
|
30
|
-
[x.value]:
|
|
30
|
+
[x.value]: t.chinese ? "男" : t.typing ? 1 : "1"
|
|
31
31
|
}, {
|
|
32
32
|
[b.value]: "女",
|
|
33
|
-
[x.value]:
|
|
34
|
-
}] :
|
|
33
|
+
[x.value]: t.chinese ? "女" : t.typing ? 2 : "2"
|
|
34
|
+
}] : t.confirm ? [{
|
|
35
35
|
[b.value]: "是",
|
|
36
|
-
[x.value]:
|
|
36
|
+
[x.value]: t.chinese ? "是" : t.english ? "Y" : t.typing ? 1 : "1"
|
|
37
37
|
}, {
|
|
38
38
|
[b.value]: "否",
|
|
39
|
-
[x.value]:
|
|
40
|
-
}] :
|
|
39
|
+
[x.value]: t.chinese ? "否" : t.english ? "N" : t.typing ? 0 : "0"
|
|
40
|
+
}] : t.options);
|
|
41
41
|
return () => g({ vNodes: l(s, d(v.value, y.value, {
|
|
42
42
|
modelValue: h.value,
|
|
43
43
|
"onUpdate:modelValue": (e) => h.value = e,
|
|
@@ -45,14 +45,14 @@ var m = {
|
|
|
45
45
|
}), {
|
|
46
46
|
...r,
|
|
47
47
|
default: r.default || (() => {
|
|
48
|
-
var
|
|
49
|
-
return (
|
|
50
|
-
key:
|
|
51
|
-
value:
|
|
48
|
+
var e;
|
|
49
|
+
return (e = C.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" || t.radioType === "button" ? l(o, {
|
|
50
|
+
key: e,
|
|
51
|
+
value: e,
|
|
52
52
|
disabled: r
|
|
53
53
|
}, p(n) ? n : { default: () => [n] }) : l(a, {
|
|
54
|
-
key:
|
|
55
|
-
value:
|
|
54
|
+
key: e,
|
|
55
|
+
value: e,
|
|
56
56
|
disabled: r
|
|
57
57
|
}, p(n) ? n : { default: () => [n] }));
|
|
58
58
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<
|
|
1
|
+
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
2
|
modelValue: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -20,7 +20,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
20
20
|
}>, {}, {}, {}, {
|
|
21
21
|
focus(): void;
|
|
22
22
|
change(): void;
|
|
23
|
-
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<
|
|
23
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
24
24
|
modelValue: {
|
|
25
25
|
type: StringConstructor;
|
|
26
26
|
default: string;
|