orion-design 0.1.59 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js +400 -0
- package/dist/LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js.map +1 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js +310 -0
- package/dist/TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js.map +1 -0
- package/dist/components/Edittable/Edittable.d.ts +99 -0
- package/dist/components/Edittable/columns/EdittableCellButton.d.ts +13 -0
- package/dist/components/Edittable/columns/EdittableColumnButtongroup.d.ts +28 -0
- package/dist/components/Edittable/columns/EdittableColumnCheckbox.d.ts +35 -0
- package/dist/components/Edittable/columns/EdittableColumnDate.d.ts +51 -0
- package/dist/components/Edittable/columns/EdittableColumnDiy.d.ts +25 -0
- package/dist/components/Edittable/columns/EdittableColumnIndex.d.ts +5 -0
- package/dist/components/Edittable/columns/EdittableColumnLov.d.ts +46 -0
- package/dist/components/Edittable/columns/EdittableColumnMultiselect.d.ts +67 -0
- package/dist/components/Edittable/columns/EdittableColumnNumber.d.ts +87 -0
- package/dist/components/Edittable/columns/EdittableColumnSingleselect.d.ts +67 -0
- package/dist/components/Edittable/columns/EdittableColumnString.d.ts +41 -0
- package/dist/components/Edittable/columns/EdittableColumngroup.d.ts +14 -0
- package/dist/components/Edittable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Edittable/hooks/useColumns.js +175 -0
- package/dist/components/Edittable/hooks/useColumns.js.map +1 -0
- package/dist/components/Edittable/index.d.ts +121 -0
- package/dist/components/Edittable/index.js +947 -0
- package/dist/components/Edittable/index.js.map +1 -0
- package/dist/components/Edittable/utils/index.d.ts +15 -0
- package/dist/components/Edittable/utils/index.js +66 -0
- package/dist/components/Edittable/utils/index.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +3 -9
- package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +2 -6
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.d.ts +3 -14
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.vue.d.ts +2 -2
- package/dist/components/Form/DateInput/DateInput.d.ts +3 -17
- package/dist/components/Form/DateInput/DateInput.vue.d.ts +2 -2
- package/dist/components/Form/DiyItem/DiyItem.d.ts +1 -1
- package/dist/components/Form/FileInput/FileInput.d.ts +3 -10
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +2 -371
- package/dist/components/Form/Form.d.ts +8 -0
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/Form.vue.d.ts +2 -2
- package/dist/components/Form/LovInput/LovInput.d.ts +4 -21
- package/dist/components/Form/LovInput/LovInput.js +1 -4
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.vue.d.ts +3 -26521
- package/dist/components/Form/LovInput/index.d.ts +0 -1
- package/dist/components/Form/LovInput/index.js +1 -6
- package/dist/components/Form/LovInput/index.js.map +1 -1
- package/dist/components/Form/MultiSelect/MultiSelect.d.ts +3 -17
- package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +2 -2
- package/dist/components/Form/NumberInput/NumberInput.d.ts +3 -19
- package/dist/components/Form/NumberInput/NumberInput.vue.d.ts +2 -2
- package/dist/components/Form/PasswordInput/PasswordInput.d.ts +3 -13
- package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +2 -2
- package/dist/components/Form/RadioGroup/RadioGroup.d.ts +3 -14
- package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +2 -2
- package/dist/components/Form/SingleSelect/SingleSelect.d.ts +3 -17
- package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +2 -2
- package/dist/components/Form/StringInput/StringInput.d.ts +3 -13
- package/dist/components/Form/StringInput/StringInput.vue.d.ts +2 -2
- package/dist/components/Form/Switch/Switch.d.ts +3 -9
- package/dist/components/Form/Switch/Switch.vue.d.ts +2 -6
- package/dist/components/Form/TableSelect/TableSelect.d.ts +3 -26
- package/dist/components/Form/TableSelect/TableSelect.js +1 -4
- package/dist/components/Form/TableSelect/TableSelect.js.map +1 -1
- package/dist/components/Form/TableSelect/TableSelect.vue.d.ts +3 -26525
- package/dist/components/Form/TableSelect/index.d.ts +0 -1
- package/dist/components/Form/TableSelect/index.js +1 -6
- package/dist/components/Form/TableSelect/index.js.map +1 -1
- package/dist/components/Form/Textarea/Textarea.d.ts +3 -14
- package/dist/components/Form/Textarea/Textarea.vue.d.ts +2 -2
- package/dist/components/Form/hooks/index.d.ts +2 -6
- package/dist/components/Form/hooks/index.js +31 -79
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.d.ts +1 -1
- package/dist/components/Form/index.js +391 -628
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Input/Checkbox/Checkbox.d.ts +3 -0
- package/dist/components/Input/Checkbox/Checkbox.js +2 -0
- package/dist/components/Input/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Input/Checkbox/Checkbox.vue.d.ts +14 -0
- package/dist/components/Input/Checkbox/index.d.ts +1 -0
- package/dist/components/Input/Checkbox/index.js +2 -0
- package/dist/components/Input/Checkbox/index.js.map +1 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.d.ts +7 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.js +2 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Input/CheckboxGroup/CheckboxGroup.vue.d.ts +14 -0
- package/dist/components/Input/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/Input/CheckboxGroup/index.js +2 -0
- package/dist/components/Input/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Input/DateInput/DateInput.d.ts +10 -0
- package/dist/components/Input/DateInput/DateInput.js +2 -0
- package/dist/components/Input/DateInput/DateInput.js.map +1 -0
- package/dist/components/Input/DateInput/DateInput.vue.d.ts +11 -0
- package/dist/components/Input/DateInput/index.d.ts +1 -0
- package/dist/components/Input/DateInput/index.js +2 -0
- package/dist/components/Input/DateInput/index.js.map +1 -0
- package/dist/components/Input/FileInput/FileInput.d.ts +3 -0
- package/dist/components/Input/FileInput/FileInput.js +2 -0
- package/dist/components/Input/FileInput/FileInput.js.map +1 -0
- package/dist/components/Input/FileInput/FileInput.vue.d.ts +380 -0
- package/dist/components/Input/FileInput/index.d.ts +1 -0
- package/dist/components/Input/FileInput/index.js +2 -0
- package/dist/components/Input/FileInput/index.js.map +1 -0
- package/dist/components/Input/LovInput/LovInput.d.ts +14 -0
- package/dist/components/Input/LovInput/LovInput.js +5 -0
- package/dist/components/Input/LovInput/LovInput.js.map +1 -0
- package/dist/components/Input/LovInput/LovInput.vue.d.ts +26548 -0
- package/dist/components/Input/LovInput/hooks/useLov.js.map +1 -0
- package/dist/components/Input/LovInput/index.d.ts +2 -0
- package/dist/components/Input/LovInput/index.js +7 -0
- package/dist/components/Input/LovInput/index.js.map +1 -0
- package/dist/components/Input/MultiSelect/MultiSelect.d.ts +10 -0
- package/dist/components/Input/MultiSelect/MultiSelect.js +2 -0
- package/dist/components/Input/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/Input/MultiSelect/MultiSelect.vue.d.ts +14 -0
- package/dist/components/Input/MultiSelect/index.d.ts +1 -0
- package/dist/components/Input/MultiSelect/index.js +2 -0
- package/dist/components/Input/MultiSelect/index.js.map +1 -0
- package/dist/components/Input/NumberInput/NumberInput.d.ts +12 -0
- package/dist/components/Input/NumberInput/NumberInput.js +2 -0
- package/dist/components/Input/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/Input/NumberInput/NumberInput.vue.d.ts +28 -0
- package/dist/components/Input/NumberInput/index.d.ts +1 -0
- package/dist/components/Input/NumberInput/index.js +2 -0
- package/dist/components/Input/NumberInput/index.js.map +1 -0
- package/dist/components/Input/PasswordInput/PasswordInput.d.ts +6 -0
- package/dist/components/Input/PasswordInput/PasswordInput.js +2 -0
- package/dist/components/Input/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/Input/PasswordInput/PasswordInput.vue.d.ts +11 -0
- package/dist/components/Input/PasswordInput/index.d.ts +1 -0
- package/dist/components/Input/PasswordInput/index.js +2 -0
- package/dist/components/Input/PasswordInput/index.js.map +1 -0
- package/dist/components/Input/RadioGroup/RadioGroup.d.ts +7 -0
- package/dist/components/Input/RadioGroup/RadioGroup.js +2 -0
- package/dist/components/Input/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Input/RadioGroup/RadioGroup.vue.d.ts +14 -0
- package/dist/components/Input/RadioGroup/index.d.ts +1 -0
- package/dist/components/Input/RadioGroup/index.js +2 -0
- package/dist/components/Input/RadioGroup/index.js.map +1 -0
- package/dist/components/Input/SingleSelect/SingleSelect.d.ts +10 -0
- package/dist/components/Input/SingleSelect/SingleSelect.js +2 -0
- package/dist/components/Input/SingleSelect/SingleSelect.js.map +1 -0
- package/dist/components/Input/SingleSelect/SingleSelect.vue.d.ts +14 -0
- package/dist/components/Input/SingleSelect/index.d.ts +1 -0
- package/dist/components/Input/SingleSelect/index.js +2 -0
- package/dist/components/Input/SingleSelect/index.js.map +1 -0
- package/dist/components/Input/StringInput/StringInput.d.ts +6 -0
- package/dist/components/Input/StringInput/StringInput.js +2 -0
- package/dist/components/Input/StringInput/StringInput.js.map +1 -0
- package/dist/components/Input/StringInput/StringInput.vue.d.ts +28 -0
- package/dist/components/Input/StringInput/index.d.ts +1 -0
- package/dist/components/Input/StringInput/index.js +2 -0
- package/dist/components/Input/StringInput/index.js.map +1 -0
- package/dist/components/Input/Switch/Switch.d.ts +3 -0
- package/dist/components/Input/Switch/Switch.js +2 -0
- package/dist/components/Input/Switch/Switch.js.map +1 -0
- package/dist/components/Input/Switch/Switch.vue.d.ts +14 -0
- package/dist/components/Input/Switch/index.d.ts +1 -0
- package/dist/components/Input/Switch/index.js +2 -0
- package/dist/components/Input/Switch/index.js.map +1 -0
- package/dist/components/Input/TableSelect/TableSelect.d.ts +19 -0
- package/dist/components/Input/TableSelect/TableSelect.js +5 -0
- package/dist/components/Input/TableSelect/TableSelect.js.map +1 -0
- package/dist/components/Input/TableSelect/TableSelect.vue.d.ts +26546 -0
- package/dist/components/Input/TableSelect/hooks/useTableSelect.js.map +1 -0
- package/dist/components/Input/TableSelect/index.d.ts +2 -0
- package/dist/components/Input/TableSelect/index.js +7 -0
- package/dist/components/Input/TableSelect/index.js.map +1 -0
- package/dist/components/Input/Textarea/Textarea.d.ts +7 -0
- package/dist/components/Input/Textarea/Textarea.js +2 -0
- package/dist/components/Input/Textarea/Textarea.js.map +1 -0
- package/dist/components/Input/Textarea/Textarea.vue.d.ts +11 -0
- package/dist/components/Input/Textarea/index.d.ts +1 -0
- package/dist/components/Input/Textarea/index.js +2 -0
- package/dist/components/Input/Textarea/index.js.map +1 -0
- package/dist/components/Input/hooks/index.d.ts +3 -0
- package/dist/components/Input/hooks/index.js +25 -0
- package/dist/components/Input/hooks/index.js.map +1 -0
- package/dist/components/Input/index.d.ts +27166 -0
- package/dist/components/Input/index.js +32 -0
- package/dist/components/Input/index.js.map +1 -0
- package/dist/components/Input/utils/index.js.map +1 -0
- package/dist/components/LovTable/index.js +4 -3
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/TableSelectPagetable/index.js +31 -29
- package/dist/components/TableSelectPagetable/index.js.map +1 -1
- package/dist/components/components.d.ts +2 -0
- package/dist/components/components.js +45 -28
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +68 -51
- package/dist/components/index.js.map +1 -1
- package/dist/components-D1sXVvN9.js +73 -0
- package/dist/{components-DqItbXAG.js.map → components-D1sXVvN9.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +71 -54
- package/dist/index.js.map +1 -1
- package/dist/request/leaf7/Leaf7EncryptRequestParser.js +22 -12
- package/dist/request/leaf7/Leaf7EncryptRequestParser.js.map +1 -1
- package/dist/request/leaf7/types.d.ts +3 -0
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +1 -1
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Form/LovInput/hooks/useLov.js.map +0 -1
- package/dist/components/Form/TableSelect/hooks/useTableSelect.js.map +0 -1
- package/dist/components/Form/utils/index.js.map +0 -1
- package/dist/components-DqItbXAG.js +0 -56
- /package/dist/components/{Form → Input}/LovInput/hooks/useLov.d.ts +0 -0
- /package/dist/components/{Form → Input}/LovInput/hooks/useLov.js +0 -0
- /package/dist/components/{Form → Input}/TableSelect/hooks/useTableSelect.d.ts +0 -0
- /package/dist/components/{Form → Input}/TableSelect/hooks/useTableSelect.js +0 -0
- /package/dist/components/{Form → Input}/utils/index.d.ts +0 -0
- /package/dist/components/{Form → Input}/utils/index.js +0 -0
@@ -0,0 +1,310 @@
|
|
1
|
+
import { defineComponent as V, mergeModels as c, useModel as g, openBlock as m, createBlock as f, unref as i, withCtx as h, createElementBlock as C, Fragment as _, renderList as M, createTextVNode as R, toDisplayString as A, computed as S, watch as T, ref as b, useTemplateRef as E, onMounted as U, provide as K, reactive as L, resolveComponent as q, renderSlot as H, createElementVNode as J, createVNode as O, createCommentVNode as Q } from "vue";
|
2
|
+
import { ElInput as k, ElRadioGroup as W, ElRadio as X, ElCheckboxGroup as Y, ElCheckbox as Z, ElSwitch as ee, ElDropdown as le, ElTag as ae } from "element-plus";
|
3
|
+
import { useInputCode as $ } from "./components/Input/hooks/index.js";
|
4
|
+
import { tableSelectContext as oe } from "./components/Input/TableSelect/TableSelect.js";
|
5
|
+
import { k as te, e as ne } from "./index-CIR6wX_E.js";
|
6
|
+
import { pick as de } from "lodash-es";
|
7
|
+
const fe = /* @__PURE__ */ V({
|
8
|
+
name: "OPasswordInput",
|
9
|
+
inheritAttrs: !1,
|
10
|
+
__name: "PasswordInput",
|
11
|
+
props: /* @__PURE__ */ c({
|
12
|
+
maxlength: {},
|
13
|
+
placeholder: {},
|
14
|
+
disabled: { type: Boolean },
|
15
|
+
readonly: { type: Boolean }
|
16
|
+
}, {
|
17
|
+
modelValue: {},
|
18
|
+
modelModifiers: {}
|
19
|
+
}),
|
20
|
+
emits: ["update:modelValue"],
|
21
|
+
setup(t) {
|
22
|
+
const s = g(t, "modelValue");
|
23
|
+
return (a, n) => (m(), f(i(k), {
|
24
|
+
modelValue: s.value,
|
25
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => s.value = e),
|
26
|
+
maxlength: a.maxlength,
|
27
|
+
placeholder: a.placeholder,
|
28
|
+
disabled: a.disabled,
|
29
|
+
readonly: a.readonly,
|
30
|
+
type: "password"
|
31
|
+
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly"]));
|
32
|
+
}
|
33
|
+
}), ve = /* @__PURE__ */ V({
|
34
|
+
name: "OTextarea",
|
35
|
+
inheritAttrs: !1,
|
36
|
+
__name: "Textarea",
|
37
|
+
props: /* @__PURE__ */ c({
|
38
|
+
maxlength: {},
|
39
|
+
placeholder: {},
|
40
|
+
disabled: { type: Boolean },
|
41
|
+
readonly: { type: Boolean },
|
42
|
+
rows: {}
|
43
|
+
}, {
|
44
|
+
modelValue: {},
|
45
|
+
modelModifiers: {}
|
46
|
+
}),
|
47
|
+
emits: ["update:modelValue"],
|
48
|
+
setup(t) {
|
49
|
+
const s = g(t, "modelValue");
|
50
|
+
return (a, n) => (m(), f(i(k), {
|
51
|
+
modelValue: s.value,
|
52
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => s.value = e),
|
53
|
+
maxlength: a.maxlength,
|
54
|
+
placeholder: a.placeholder,
|
55
|
+
disabled: a.disabled,
|
56
|
+
readonly: a.readonly,
|
57
|
+
type: "textarea",
|
58
|
+
rows: a.rows,
|
59
|
+
resize: "none"
|
60
|
+
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly", "rows"]));
|
61
|
+
}
|
62
|
+
}), he = /* @__PURE__ */ V({
|
63
|
+
name: "ORadioGroup",
|
64
|
+
inheritAttrs: !1,
|
65
|
+
__name: "RadioGroup",
|
66
|
+
props: /* @__PURE__ */ c({
|
67
|
+
disabled: { type: Boolean },
|
68
|
+
code: {}
|
69
|
+
}, {
|
70
|
+
modelValue: {},
|
71
|
+
modelModifiers: {}
|
72
|
+
}),
|
73
|
+
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
74
|
+
setup(t, { emit: s }) {
|
75
|
+
const a = s, n = (d) => {
|
76
|
+
a("change", d);
|
77
|
+
}, e = g(t, "modelValue"), r = $();
|
78
|
+
return (d, o) => (m(), f(i(W), {
|
79
|
+
modelValue: e.value,
|
80
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => e.value = u),
|
81
|
+
disabled: d.disabled,
|
82
|
+
onChange: n
|
83
|
+
}, {
|
84
|
+
default: h(() => [
|
85
|
+
(m(!0), C(_, null, M(i(r), (u) => (m(), f(i(X), {
|
86
|
+
key: u.value,
|
87
|
+
value: u.value
|
88
|
+
}, {
|
89
|
+
default: h(() => [
|
90
|
+
R(A(u.content), 1)
|
91
|
+
]),
|
92
|
+
_: 2
|
93
|
+
}, 1032, ["value"]))), 128))
|
94
|
+
]),
|
95
|
+
_: 1
|
96
|
+
}, 8, ["modelValue", "disabled"]));
|
97
|
+
}
|
98
|
+
}), Ve = /* @__PURE__ */ V({
|
99
|
+
name: "OCheckboxGroup",
|
100
|
+
inheritAttrs: !1,
|
101
|
+
__name: "CheckboxGroup",
|
102
|
+
props: /* @__PURE__ */ c({
|
103
|
+
disabled: { type: Boolean },
|
104
|
+
code: {}
|
105
|
+
}, {
|
106
|
+
modelValue: {},
|
107
|
+
modelModifiers: {}
|
108
|
+
}),
|
109
|
+
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
110
|
+
setup(t, { emit: s }) {
|
111
|
+
const a = s, n = (o) => {
|
112
|
+
a("change", o.join(","));
|
113
|
+
}, e = g(t, "modelValue"), r = S({
|
114
|
+
get: () => {
|
115
|
+
if (e.value)
|
116
|
+
return e.value.split(",");
|
117
|
+
},
|
118
|
+
set: (o) => {
|
119
|
+
o ? e.value = o.join(",") : e.value = "";
|
120
|
+
}
|
121
|
+
}), d = $();
|
122
|
+
return (o, u) => (m(), f(i(Y), {
|
123
|
+
modelValue: r.value,
|
124
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => r.value = p),
|
125
|
+
disabled: o.disabled,
|
126
|
+
onChange: n
|
127
|
+
}, {
|
128
|
+
default: h(() => [
|
129
|
+
(m(!0), C(_, null, M(i(d), (p) => (m(), f(i(Z), {
|
130
|
+
key: p.value,
|
131
|
+
label: p.content,
|
132
|
+
value: p.value
|
133
|
+
}, null, 8, ["label", "value"]))), 128))
|
134
|
+
]),
|
135
|
+
_: 1
|
136
|
+
}, 8, ["modelValue", "disabled"]));
|
137
|
+
}
|
138
|
+
}), ge = /* @__PURE__ */ V({
|
139
|
+
name: "OSwitch",
|
140
|
+
inheritAttrs: !1,
|
141
|
+
__name: "Switch",
|
142
|
+
props: /* @__PURE__ */ c({
|
143
|
+
disabled: { type: Boolean }
|
144
|
+
}, {
|
145
|
+
modelValue: {},
|
146
|
+
modelModifiers: {}
|
147
|
+
}),
|
148
|
+
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
149
|
+
setup(t, { emit: s }) {
|
150
|
+
const a = s, n = (d) => {
|
151
|
+
a("change", d ? "1" : "0");
|
152
|
+
}, e = g(t, "modelValue"), r = S({
|
153
|
+
get: () => e.value ? e.value == "1" : !1,
|
154
|
+
set: (d) => {
|
155
|
+
const o = e.value, u = d ? "1" : "0";
|
156
|
+
(o || d) && (e.value = u);
|
157
|
+
}
|
158
|
+
});
|
159
|
+
return (d, o) => (m(), f(i(ee), {
|
160
|
+
modelValue: r.value,
|
161
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => r.value = u),
|
162
|
+
disabled: d.disabled,
|
163
|
+
onChange: n
|
164
|
+
}, null, 8, ["modelValue", "disabled"]));
|
165
|
+
}
|
166
|
+
}), be = /* @__PURE__ */ V({
|
167
|
+
name: "OFileInput",
|
168
|
+
inheritAttrs: !1,
|
169
|
+
__name: "FileInput",
|
170
|
+
props: /* @__PURE__ */ c({
|
171
|
+
disabled: { type: Boolean }
|
172
|
+
}, {
|
173
|
+
modelValue: {},
|
174
|
+
modelModifiers: {}
|
175
|
+
}),
|
176
|
+
emits: ["update:modelValue"],
|
177
|
+
setup(t) {
|
178
|
+
const s = g(t, "modelValue");
|
179
|
+
T(s, () => {
|
180
|
+
s.value || (a.value = "");
|
181
|
+
});
|
182
|
+
const a = b(""), n = E("inputRef");
|
183
|
+
return U(() => {
|
184
|
+
n.value.input.onchange = (e) => {
|
185
|
+
var r;
|
186
|
+
s.value = (r = e == null ? void 0 : e.target) == null ? void 0 : r.files[0];
|
187
|
+
}, a.value = "";
|
188
|
+
}), (e, r) => (m(), f(i(k), {
|
189
|
+
ref: "inputRef",
|
190
|
+
modelValue: a.value,
|
191
|
+
"onUpdate:modelValue": r[0] || (r[0] = (d) => a.value = d),
|
192
|
+
disabled: e.disabled,
|
193
|
+
type: "file",
|
194
|
+
"validate-event": !1
|
195
|
+
}, null, 8, ["modelValue", "disabled"]));
|
196
|
+
}
|
197
|
+
}), ue = {
|
198
|
+
key: 0,
|
199
|
+
style: { position: "absolute", inset: "4px 30px 4px 4px", overflow: "hidden", pointerEvents: "none" }
|
200
|
+
}, ye = /* @__PURE__ */ V({
|
201
|
+
name: "OTableSelect",
|
202
|
+
inheritAttrs: !1,
|
203
|
+
__name: "TableSelect",
|
204
|
+
props: /* @__PURE__ */ c({
|
205
|
+
maxlength: {},
|
206
|
+
placeholder: {},
|
207
|
+
disabled: { type: Boolean },
|
208
|
+
readonly: { type: Boolean },
|
209
|
+
pick: {},
|
210
|
+
tag: { type: Function }
|
211
|
+
}, {
|
212
|
+
modelValue: {},
|
213
|
+
modelModifiers: {}
|
214
|
+
}),
|
215
|
+
emits: /* @__PURE__ */ c(["change"], ["update:modelValue"]),
|
216
|
+
setup(t, { emit: s }) {
|
217
|
+
const a = s, n = g(t, "modelValue"), e = b(""), r = E("input"), d = b(!1), o = b(!1), u = b([]), p = E("dropdown"), v = b([]);
|
218
|
+
U(async () => {
|
219
|
+
y && (v.value = await y(n.value), v.value && (u.value = v.value.map((l) => t.tag(l))));
|
220
|
+
}), T(n, async () => {
|
221
|
+
d.value ? y && (v.value = await y(n.value), v.value && (u.value = v.value.map((l) => t.tag(l)))) : d.value = !0;
|
222
|
+
});
|
223
|
+
const F = (l) => {
|
224
|
+
o.value = l;
|
225
|
+
}, G = () => {
|
226
|
+
o.value || p.value.handleOpen();
|
227
|
+
}, P = () => {
|
228
|
+
r.value.focus();
|
229
|
+
}, D = (l) => {
|
230
|
+
o.value ? ["Enter", "Escape"].indexOf(l.code) > -1 ? p.value.handleClose() : l.code == "ArrowDown" ? l.stopPropagation() : l.code == "Tab" && (o.value = !1, p.value.handleClose()) : ["ArrowUp", "ArrowDown"].indexOf(l.code) > -1 && (p.value.handleOpen(), l.stopPropagation());
|
231
|
+
}, I = () => {
|
232
|
+
o.value ? r.value.focus() : e.value = "";
|
233
|
+
}, N = (l, x) => {
|
234
|
+
d.value = !1, n.value = l.map((w) => de(w, t.pick)), u.value = l.map((w) => t.tag(w)), x && (e.value = ""), a("change", l);
|
235
|
+
}, z = () => {
|
236
|
+
p.value.handleClose();
|
237
|
+
};
|
238
|
+
let y;
|
239
|
+
const j = (l) => {
|
240
|
+
y = l;
|
241
|
+
};
|
242
|
+
return K(
|
243
|
+
oe,
|
244
|
+
L({
|
245
|
+
inputValue: e,
|
246
|
+
selection: v,
|
247
|
+
onSelect: N,
|
248
|
+
selectDone: z,
|
249
|
+
tag: t.tag,
|
250
|
+
registerRowCompletionProvider: j
|
251
|
+
})
|
252
|
+
), (l, x) => {
|
253
|
+
const w = q("o-space");
|
254
|
+
return m(), f(i(le), {
|
255
|
+
ref: "dropdown",
|
256
|
+
trigger: "click",
|
257
|
+
onVisibleChange: F,
|
258
|
+
style: { width: "100%" }
|
259
|
+
}, {
|
260
|
+
dropdown: h(() => [
|
261
|
+
H(l.$slots, "default")
|
262
|
+
]),
|
263
|
+
default: h(() => [
|
264
|
+
J("div", {
|
265
|
+
onFocus: P,
|
266
|
+
style: { position: "relative", width: "100%", height: "100%" }
|
267
|
+
}, [
|
268
|
+
O(i(k), {
|
269
|
+
ref: "input",
|
270
|
+
modelValue: e.value,
|
271
|
+
"onUpdate:modelValue": x[0] || (x[0] = (B) => e.value = B),
|
272
|
+
maxlength: l.maxlength,
|
273
|
+
placeholder: l.placeholder,
|
274
|
+
disabled: l.disabled,
|
275
|
+
readonly: l.readonly,
|
276
|
+
onInput: G,
|
277
|
+
onKeydown: D,
|
278
|
+
onBlur: I,
|
279
|
+
"suffix-icon": o.value ? i(te) : i(ne)
|
280
|
+
}, null, 8, ["modelValue", "maxlength", "placeholder", "disabled", "readonly", "suffix-icon"]),
|
281
|
+
o.value ? Q("", !0) : (m(), C("div", ue, [
|
282
|
+
O(w, null, {
|
283
|
+
default: h(() => [
|
284
|
+
(m(!0), C(_, null, M(u.value, (B) => (m(), f(i(ae), { type: "info" }, {
|
285
|
+
default: h(() => [
|
286
|
+
R(A(B), 1)
|
287
|
+
]),
|
288
|
+
_: 2
|
289
|
+
}, 1024))), 256))
|
290
|
+
]),
|
291
|
+
_: 1
|
292
|
+
})
|
293
|
+
]))
|
294
|
+
], 32)
|
295
|
+
]),
|
296
|
+
_: 3
|
297
|
+
}, 512);
|
298
|
+
};
|
299
|
+
}
|
300
|
+
});
|
301
|
+
export {
|
302
|
+
fe as _,
|
303
|
+
ve as a,
|
304
|
+
he as b,
|
305
|
+
Ve as c,
|
306
|
+
ge as d,
|
307
|
+
be as e,
|
308
|
+
ye as f
|
309
|
+
};
|
310
|
+
//# sourceMappingURL=TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js","sources":["../src/components/Input/PasswordInput/PasswordInput.vue","../src/components/Input/Textarea/Textarea.vue","../src/components/Input/RadioGroup/RadioGroup.vue","../src/components/Input/CheckboxGroup/CheckboxGroup.vue","../src/components/Input/Switch/Switch.vue","../src/components/Input/FileInput/FileInput.vue","../src/components/Input/TableSelect/TableSelect.vue"],"sourcesContent":["<template>\r\n <el-input v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"disabled\" :readonly=\"readonly\"\r\n type=\"password\" />\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport type { PasswordInputProps } from './PasswordInput'\r\nimport { ElInput } from 'element-plus'\r\n\r\ndefineOptions({ name: 'OPasswordInput', inheritAttrs: false })\r\n\r\nconst { maxlength, placeholder, disabled, readonly } = defineProps<PasswordInputProps>()\r\n\r\nconst model = defineModel<string>()\r\n</script>\r\n","<template>\r\n <el-input v-model=\"model\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"disabled\" :readonly=\"readonly\"\r\n type=\"textarea\" :rows=\"rows\" :resize=\"'none'\" />\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport type { TextareaProps } from './Textarea'\r\nimport { ElInput } from 'element-plus'\r\n\r\ndefineOptions({ name: 'OTextarea', inheritAttrs: false })\r\n\r\nconst { maxlength, placeholder, disabled, readonly, rows } = defineProps<TextareaProps>()\r\n\r\nconst model = defineModel<string>()\r\n</script>\r\n","<template>\r\n <el-radio-group v-model=\"model\" :disabled=\"disabled\" @change=\"onChange\">\r\n <el-radio v-for=\"codeItem in normalizedCode\" :key=\"codeItem.value\" :value=\"codeItem.value\">\r\n {{ codeItem.content }}\r\n </el-radio>\r\n </el-radio-group>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport type { RadioGroupProps } from './RadioGroup'\r\nimport { useInputCode } from '../hooks'\r\nimport { ElRadioGroup, ElRadio } from 'element-plus'\r\n\r\ndefineOptions({ name: 'ORadioGroup', inheritAttrs: false })\r\nconst emit = defineEmits<{\r\n (e: 'change', value: string): void\r\n}>()\r\nconst onChange = (value: any) => {\r\n emit('change', value)\r\n}\r\n\r\nconst { disabled } = defineProps<RadioGroupProps>()\r\n\r\nconst model = defineModel<string>()\r\nconst normalizedCode = useInputCode()\r\n</script>\r\n","<template>\r\n <el-checkbox-group v-model=\"elModel\" :disabled=\"disabled\" @change=\"onChange\">\r\n <el-checkbox v-for=\"codeItem in normalizedCode\" :key=\"codeItem.value\" :label=\"codeItem.content\"\r\n :value=\"codeItem.value\" />\r\n </el-checkbox-group>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport type { CheckboxGroupProps } from './CheckboxGroup'\r\nimport { useInputCode } from '../hooks'\r\nimport { ElCheckboxGroup, ElCheckbox } from 'element-plus'\r\nimport { computed } from 'vue'\r\n\r\n\r\ndefineOptions({ name: 'OCheckboxGroup', inheritAttrs: false })\r\nconst emit = defineEmits<{\r\n (e: 'change', value: string): void\r\n}>()\r\nconst onChange = (value: any) => {\r\n emit('change', value.join(','))\r\n}\r\n\r\nconst { disabled } = defineProps<CheckboxGroupProps>()\r\n\r\nconst model = defineModel<string>()\r\nconst elModel = computed<string[] | undefined>({\r\n get: () => {\r\n if (!model.value) {\r\n return undefined\r\n }\r\n return model.value.split(',')\r\n },\r\n set: (newValue) => {\r\n if (!newValue) {\r\n model.value = ''\r\n } else {\r\n model.value = newValue.join(',')\r\n }\r\n },\r\n})\r\n\r\nconst normalizedCode = useInputCode()\r\n</script>\r\n","<template>\r\n <el-switch v-model=\"elModel\" :disabled=\"disabled\" @change=\"onChange\" />\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport type { SwitchProps } from './Switch'\r\nimport { ElSwitch } from 'element-plus'\r\nimport { computed } from 'vue'\r\n\r\ndefineOptions({ name: 'OSwitch', inheritAttrs: false })\r\nconst emit = defineEmits<{\r\n (e: 'change', value: '1' | '0'): void\r\n}>()\r\nconst onChange = (value: any) => {\r\n emit('change', value ? '1' : '0')\r\n}\r\n\r\nconst { disabled } = defineProps<SwitchProps>()\r\n\r\nconst model = defineModel<string>()\r\nconst elModel = computed<boolean>({\r\n get: () => {\r\n if (!model.value) {\r\n return false\r\n }\r\n return model.value == '1'\r\n },\r\n set: (_newValue) => {\r\n const oldValue = model.value\r\n const newValue = _newValue ? '1' : '0'\r\n if (oldValue) {\r\n model.value = newValue\r\n } else {\r\n if (_newValue) {\r\n model.value = newValue\r\n }\r\n }\r\n },\r\n})\r\n</script>\r\n","<template>\r\n <el-input ref=\"inputRef\" v-model=\"file\" :disabled=\"disabled\" type=\"file\" :validate-event=\"false\" />\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport type { FileInputProps } from './FileInput'\r\nimport { ElInput } from 'element-plus'\r\nimport { onMounted, ref, useTemplateRef, watch } from 'vue'\r\n\r\ndefineOptions({ name: 'OFileInput', inheritAttrs: false })\r\n\r\nconst { disabled } = defineProps<FileInputProps>()\r\n\r\nconst model = defineModel<File>()\r\nwatch(model, () => {\r\n if (!model.value) {\r\n file.value = ''\r\n }\r\n})\r\n\r\nconst file = ref('')\r\nconst fileRef = useTemplateRef('inputRef')\r\nonMounted(() => {\r\n fileRef.value!.input!.onchange = (event) => {\r\n //@ts-ignore\r\n model.value = event?.target?.files[0]\r\n }\r\n file.value = ''\r\n})\r\n</script>\r\n","<template>\r\n <el-dropdown ref=\"dropdown\" :trigger=\"'click'\" @visible-change=\"onVisibleChange\" style=\"width: 100%;\">\r\n <div @focus=\"onFocus\" :style=\"{ position: 'relative', width: '100%', height: '100%' }\">\r\n <el-input ref=\"input\" v-model=\"inputValue\" :maxlength=\"maxlength\" :placeholder=\"placeholder\" :disabled=\"disabled\"\r\n :readonly=\"readonly\" @input=\"onInput\" @keydown=\"onKeydown\" @blur=\"onBlur\"\r\n :suffix-icon=\"visible ? ArrowUp : ArrowDown\" />\r\n <div v-if=\"!visible\"\r\n :style=\"{ position: 'absolute', inset: '4px 30px 4px 4px', overflow: 'hidden', pointerEvents: 'none' }\">\r\n <o-space>\r\n <el-tag v-for=\"tag in tags\" type=\"info\">{{ tag }}</el-tag>\r\n </o-space>\r\n </div>\r\n </div>\r\n <template #dropdown>\r\n <slot></slot>\r\n </template>\r\n </el-dropdown>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { RowCompletionProvider, TableSelectContext, tableSelectContext, type TableSelectProps } from './TableSelect'\r\nimport { ElInput, ElDropdown, ElTag } from 'element-plus'\r\nimport { ArrowDown, ArrowUp } from '@element-plus/icons-vue'\r\nimport { onMounted, provide, reactive, ref, useTemplateRef, watch } from 'vue'\r\nimport { pick } from 'lodash-es'\r\n\r\n\r\ndefineOptions({ name: 'OTableSelect', inheritAttrs: false })\r\n\r\nconst emit = defineEmits<{\r\n (e: 'change', selection: any[]): void\r\n}>()\r\nconst { maxlength, placeholder, disabled, readonly, pick: pickup, tag } = defineProps<TableSelectProps>()\r\nconst model = defineModel<any[]>()\r\n\r\nconst inputValue = ref('')\r\nconst inputRef = useTemplateRef('input')\r\nconst modifyByForm = ref(false)\r\nconst visible = ref(false)\r\nconst tags = ref<string[]>([])\r\nconst dropdownRef = useTemplateRef('dropdown')\r\nconst selection = ref<any[] | undefined>([])\r\n\r\nonMounted(async () => {\r\n if (completionItemProvider) {\r\n selection.value = await completionItemProvider(model.value)\r\n if (selection.value) {\r\n tags.value = selection.value.map((item) => tag(item))\r\n }\r\n }\r\n})\r\n\r\nwatch(model, async () => {\r\n if (modifyByForm.value) {\r\n if (completionItemProvider) {\r\n selection.value = await completionItemProvider(model.value)\r\n if (selection.value) {\r\n tags.value = selection.value.map((item) => tag(item))\r\n }\r\n }\r\n } else {\r\n modifyByForm.value = true\r\n }\r\n})\r\n\r\nconst onVisibleChange = (val: boolean) => {\r\n visible.value = val\r\n}\r\n\r\nconst onInput = () => {\r\n if (!visible.value) {\r\n dropdownRef.value!.handleOpen()\r\n }\r\n}\r\n\r\nconst onFocus = () => {\r\n inputRef.value!.focus()\r\n}\r\n\r\nconst onKeydown = (e: any) => {\r\n if (visible.value) {\r\n if (['Enter', 'Escape'].indexOf(e.code) > -1) {\r\n dropdownRef.value!.handleClose()\r\n } else if ('ArrowDown' == e.code) {\r\n e.stopPropagation()\r\n } else if ('Tab' == e.code) {\r\n visible.value = false\r\n dropdownRef.value!.handleClose()\r\n }\r\n } else {\r\n if (['ArrowUp', 'ArrowDown'].indexOf(e.code) > -1) {\r\n dropdownRef.value!.handleOpen()\r\n e.stopPropagation()\r\n }\r\n }\r\n}\r\n\r\nconst onBlur = () => {\r\n if (visible.value) {\r\n inputRef.value!.focus()\r\n } else {\r\n inputValue.value = ''\r\n }\r\n}\r\n\r\nconst onSelect: TableSelectContext['onSelect'] = (_selection, clear) => {\r\n modifyByForm.value = false\r\n model.value = _selection.map((item) => pick(item, pickup))\r\n tags.value = _selection.map((item) => tag(item))\r\n if (clear) {\r\n inputValue.value = ''\r\n }\r\n emit('change', _selection)\r\n}\r\n\r\nconst selectDone: TableSelectContext['selectDone'] = () => {\r\n dropdownRef.value!.handleClose()\r\n}\r\n\r\nlet completionItemProvider: RowCompletionProvider | undefined\r\nconst registerRowCompletionProvider: TableSelectContext['registerRowCompletionProvider'] = (provider) => {\r\n completionItemProvider = provider\r\n}\r\n\r\nprovide(\r\n tableSelectContext,\r\n reactive({\r\n inputValue,\r\n selection,\r\n onSelect,\r\n selectDone,\r\n tag,\r\n registerRowCompletionProvider\r\n })\r\n)\r\n</script>"],"names":["model","_useModel","__props","emit","__emit","onChange","value","normalizedCode","useInputCode","elModel","computed","newValue","_newValue","oldValue","watch","file","ref","fileRef","useTemplateRef","onMounted","event","_a","inputValue","inputRef","modifyByForm","visible","tags","dropdownRef","selection","completionItemProvider","item","onVisibleChange","val","onInput","onFocus","onKeydown","e","onBlur","onSelect","_selection","clear","pick","selectDone","registerRowCompletionProvider","provider","provide","tableSelectContext","reactive"],"mappings":"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"}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
import { PropType, ExtractPropTypes, CSSProperties } from 'vue';
|
2
|
+
type rowClassNameFn = (data: {
|
3
|
+
rowData: any;
|
4
|
+
rowIndex: number;
|
5
|
+
}) => string;
|
6
|
+
type rowStyleFn = (data: {
|
7
|
+
rowData: any;
|
8
|
+
rowIndex: number;
|
9
|
+
}) => CSSProperties;
|
10
|
+
type cellClassNameFn = (data: {
|
11
|
+
rowData: any;
|
12
|
+
column: {
|
13
|
+
name: string;
|
14
|
+
head: string;
|
15
|
+
};
|
16
|
+
rowIndex: number;
|
17
|
+
columnIndex: number;
|
18
|
+
}) => string;
|
19
|
+
type cellStyleFn = (data: {
|
20
|
+
rowData: any;
|
21
|
+
column: {
|
22
|
+
name: string;
|
23
|
+
head: string;
|
24
|
+
};
|
25
|
+
rowIndex: number;
|
26
|
+
columnIndex: number;
|
27
|
+
}) => CSSProperties;
|
28
|
+
export declare const edittableProps: () => {
|
29
|
+
data: ArrayConstructor;
|
30
|
+
showRowNumber: {
|
31
|
+
type: BooleanConstructor;
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
selectionMode: {
|
35
|
+
type: BooleanConstructor;
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
currentRowMode: {
|
39
|
+
type: BooleanConstructor;
|
40
|
+
default: boolean;
|
41
|
+
};
|
42
|
+
size: PropType<"" | "large" | "default" | "small">;
|
43
|
+
rowClassName: PropType<string | rowClassNameFn>;
|
44
|
+
rowStyle: PropType<CSSProperties | rowStyleFn>;
|
45
|
+
cellClassName: PropType<string | cellClassNameFn>;
|
46
|
+
cellStyle: PropType<CSSProperties | cellStyleFn>;
|
47
|
+
};
|
48
|
+
export type EdittableProps = Partial<ExtractPropTypes<ReturnType<typeof edittableProps>>>;
|
49
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
50
|
+
data: ArrayConstructor;
|
51
|
+
showRowNumber: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
55
|
+
selectionMode: {
|
56
|
+
type: BooleanConstructor;
|
57
|
+
default: boolean;
|
58
|
+
};
|
59
|
+
currentRowMode: {
|
60
|
+
type: BooleanConstructor;
|
61
|
+
default: boolean;
|
62
|
+
};
|
63
|
+
size: PropType<"" | "large" | "default" | "small">;
|
64
|
+
rowClassName: PropType<string | rowClassNameFn>;
|
65
|
+
rowStyle: PropType<CSSProperties | rowStyleFn>;
|
66
|
+
cellClassName: PropType<string | cellClassNameFn>;
|
67
|
+
cellStyle: PropType<CSSProperties | cellStyleFn>;
|
68
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], "selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
69
|
+
data: ArrayConstructor;
|
70
|
+
showRowNumber: {
|
71
|
+
type: BooleanConstructor;
|
72
|
+
default: boolean;
|
73
|
+
};
|
74
|
+
selectionMode: {
|
75
|
+
type: BooleanConstructor;
|
76
|
+
default: boolean;
|
77
|
+
};
|
78
|
+
currentRowMode: {
|
79
|
+
type: BooleanConstructor;
|
80
|
+
default: boolean;
|
81
|
+
};
|
82
|
+
size: PropType<"" | "large" | "default" | "small">;
|
83
|
+
rowClassName: PropType<string | rowClassNameFn>;
|
84
|
+
rowStyle: PropType<CSSProperties | rowStyleFn>;
|
85
|
+
cellClassName: PropType<string | cellClassNameFn>;
|
86
|
+
cellStyle: PropType<CSSProperties | cellStyleFn>;
|
87
|
+
}>> & Readonly<{
|
88
|
+
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
89
|
+
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
90
|
+
onRowClick?: ((...args: any[]) => any) | undefined;
|
91
|
+
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
92
|
+
onCellClick?: ((...args: any[]) => any) | undefined;
|
93
|
+
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
94
|
+
}>, {
|
95
|
+
showRowNumber: boolean;
|
96
|
+
selectionMode: boolean;
|
97
|
+
currentRowMode: boolean;
|
98
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
99
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const edittableCellButtonProps: () => {
|
3
|
+
type: StringConstructor;
|
4
|
+
};
|
5
|
+
export type EdittableCellButtonProps = Partial<ExtractPropTypes<ReturnType<typeof edittableCellButtonProps>>>;
|
6
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
7
|
+
type: StringConstructor;
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
9
|
+
type: StringConstructor;
|
10
|
+
}>> & Readonly<{
|
11
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
13
|
+
export default _default;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { ExtractPropTypes, PropType, SlotsType } from 'vue';
|
2
|
+
export declare const edittableColumnButtongroupProps: () => {
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
6
|
+
name: StringConstructor;
|
7
|
+
width: (NumberConstructor | StringConstructor)[];
|
8
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
9
|
+
};
|
10
|
+
export type EdittableColumnButtongroupProps = Partial<ExtractPropTypes<ReturnType<typeof edittableColumnButtongroupProps>>>;
|
11
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
12
|
+
head: StringConstructor;
|
13
|
+
headAlign: PropType<"left" | "right" | "center">;
|
14
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
15
|
+
name: StringConstructor;
|
16
|
+
width: (NumberConstructor | StringConstructor)[];
|
17
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
18
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
19
|
+
head: StringConstructor;
|
20
|
+
headAlign: PropType<"left" | "right" | "center">;
|
21
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
22
|
+
name: StringConstructor;
|
23
|
+
width: (NumberConstructor | StringConstructor)[];
|
24
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
25
|
+
}>> & Readonly<{}>, {}, SlotsType<{
|
26
|
+
default: any;
|
27
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
28
|
+
export default _default;
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
2
|
+
export declare const edittableColumnLinkProps: () => {
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
6
|
+
name: StringConstructor;
|
7
|
+
width: (NumberConstructor | StringConstructor)[];
|
8
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
9
|
+
editable: BooleanConstructor;
|
10
|
+
cellEditable: BooleanConstructor;
|
11
|
+
};
|
12
|
+
export type EdittableColumnLinkProps = Partial<ExtractPropTypes<ReturnType<typeof edittableColumnLinkProps>>>;
|
13
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
14
|
+
head: StringConstructor;
|
15
|
+
headAlign: PropType<"left" | "right" | "center">;
|
16
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
17
|
+
name: StringConstructor;
|
18
|
+
width: (NumberConstructor | StringConstructor)[];
|
19
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
20
|
+
editable: BooleanConstructor;
|
21
|
+
cellEditable: BooleanConstructor;
|
22
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
23
|
+
head: StringConstructor;
|
24
|
+
headAlign: PropType<"left" | "right" | "center">;
|
25
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
26
|
+
name: StringConstructor;
|
27
|
+
width: (NumberConstructor | StringConstructor)[];
|
28
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
29
|
+
editable: BooleanConstructor;
|
30
|
+
cellEditable: BooleanConstructor;
|
31
|
+
}>> & Readonly<{}>, {
|
32
|
+
editable: boolean;
|
33
|
+
cellEditable: boolean;
|
34
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
35
|
+
export default _default;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
export declare const edittableColumnDateProps: () => {
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
6
|
+
name: StringConstructor;
|
7
|
+
width: (NumberConstructor | StringConstructor)[];
|
8
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
9
|
+
editable: BooleanConstructor;
|
10
|
+
cellEditable: BooleanConstructor;
|
11
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
12
|
+
placeholder: StringConstructor;
|
13
|
+
clearable: BooleanConstructor;
|
14
|
+
format: StringConstructor;
|
15
|
+
sourceFormat: StringConstructor;
|
16
|
+
};
|
17
|
+
export type EdittableColumnDateProps = Partial<ExtractPropTypes<ReturnType<typeof edittableColumnDateProps>>>;
|
18
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
19
|
+
head: StringConstructor;
|
20
|
+
headAlign: PropType<"left" | "right" | "center">;
|
21
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
22
|
+
name: StringConstructor;
|
23
|
+
width: (NumberConstructor | StringConstructor)[];
|
24
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
25
|
+
editable: BooleanConstructor;
|
26
|
+
cellEditable: BooleanConstructor;
|
27
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
28
|
+
placeholder: StringConstructor;
|
29
|
+
clearable: BooleanConstructor;
|
30
|
+
format: StringConstructor;
|
31
|
+
sourceFormat: StringConstructor;
|
32
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
33
|
+
head: StringConstructor;
|
34
|
+
headAlign: PropType<"left" | "right" | "center">;
|
35
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
36
|
+
name: StringConstructor;
|
37
|
+
width: (NumberConstructor | StringConstructor)[];
|
38
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
39
|
+
editable: BooleanConstructor;
|
40
|
+
cellEditable: BooleanConstructor;
|
41
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
42
|
+
placeholder: StringConstructor;
|
43
|
+
clearable: BooleanConstructor;
|
44
|
+
format: StringConstructor;
|
45
|
+
sourceFormat: StringConstructor;
|
46
|
+
}>> & Readonly<{}>, {
|
47
|
+
clearable: boolean;
|
48
|
+
editable: boolean;
|
49
|
+
cellEditable: boolean;
|
50
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
51
|
+
export default _default;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { PropType, ExtractPropTypes, SlotsType } from 'vue';
|
2
|
+
export declare const edittableColumnDiyProps: () => {
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
name: StringConstructor;
|
6
|
+
width: (NumberConstructor | StringConstructor)[];
|
7
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
8
|
+
};
|
9
|
+
export type EdittableColumnDiyProps = Partial<ExtractPropTypes<ReturnType<typeof edittableColumnDiyProps>>>;
|
10
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
11
|
+
head: StringConstructor;
|
12
|
+
headAlign: PropType<"left" | "right" | "center">;
|
13
|
+
name: StringConstructor;
|
14
|
+
width: (NumberConstructor | StringConstructor)[];
|
15
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
16
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
17
|
+
head: StringConstructor;
|
18
|
+
headAlign: PropType<"left" | "right" | "center">;
|
19
|
+
name: StringConstructor;
|
20
|
+
width: (NumberConstructor | StringConstructor)[];
|
21
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
22
|
+
}>> & Readonly<{}>, {}, SlotsType<{
|
23
|
+
default: any;
|
24
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
25
|
+
export default _default;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare const edittableColumnIndexProps: () => {};
|
3
|
+
export type QuerytableColumnIndexProps = Partial<ExtractPropTypes<ReturnType<typeof edittableColumnIndexProps>>>;
|
4
|
+
declare const _default: import('vue').DefineComponent<{}, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
5
|
+
export default _default;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { ExtractPropTypes, PropType, SlotsType } from 'vue';
|
2
|
+
export declare const edittableColumnLovProps: () => {
|
3
|
+
head: StringConstructor;
|
4
|
+
headAlign: PropType<"left" | "right" | "center">;
|
5
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
6
|
+
name: StringConstructor;
|
7
|
+
width: (NumberConstructor | StringConstructor)[];
|
8
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
9
|
+
editable: BooleanConstructor;
|
10
|
+
cellEditable: BooleanConstructor;
|
11
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
12
|
+
placeholder: StringConstructor;
|
13
|
+
fillMapping: PropType<string | ((row: any, params: Record<string, any>) => void)>;
|
14
|
+
};
|
15
|
+
export type EdittableColumnLovProps = Partial<ExtractPropTypes<ReturnType<typeof edittableColumnLovProps>>>;
|
16
|
+
declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
|
17
|
+
head: StringConstructor;
|
18
|
+
headAlign: PropType<"left" | "right" | "center">;
|
19
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
20
|
+
name: StringConstructor;
|
21
|
+
width: (NumberConstructor | StringConstructor)[];
|
22
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
23
|
+
editable: BooleanConstructor;
|
24
|
+
cellEditable: BooleanConstructor;
|
25
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
26
|
+
placeholder: StringConstructor;
|
27
|
+
fillMapping: PropType<string | ((row: any, params: Record<string, any>) => void)>;
|
28
|
+
}>, () => null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
29
|
+
head: StringConstructor;
|
30
|
+
headAlign: PropType<"left" | "right" | "center">;
|
31
|
+
bodyAlign: PropType<"left" | "right" | "center">;
|
32
|
+
name: StringConstructor;
|
33
|
+
width: (NumberConstructor | StringConstructor)[];
|
34
|
+
fixed: (StringConstructor | BooleanConstructor)[];
|
35
|
+
editable: BooleanConstructor;
|
36
|
+
cellEditable: BooleanConstructor;
|
37
|
+
maxlength: (NumberConstructor | StringConstructor)[];
|
38
|
+
placeholder: StringConstructor;
|
39
|
+
fillMapping: PropType<string | ((row: any, params: Record<string, any>) => void)>;
|
40
|
+
}>> & Readonly<{}>, {
|
41
|
+
editable: boolean;
|
42
|
+
cellEditable: boolean;
|
43
|
+
}, SlotsType<{
|
44
|
+
default: any;
|
45
|
+
}>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
46
|
+
export default _default;
|