orion-design 0.1.58 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -5
- 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/Throne/hooks/use-throne-context.js.map +1 -1
- package/dist/components/Button/index.d.ts +2 -41
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Card/index.d.ts +1 -3
- 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 +929 -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 -468
- 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 +4 -72
- 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 -26795
- 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 -26799
- 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 +3 -39
- package/dist/components/Form/index.js +391 -628
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Icon/Icon.vue.d.ts +15 -1
- package/dist/components/Icon/index.d.ts +22 -4
- package/dist/components/Icon/index.js +24 -15
- package/dist/components/Icon/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/LovPagetable.vue.d.ts +2 -154
- package/dist/components/LovTable/LovQuerytable.vue.d.ts +2 -98
- package/dist/components/LovTable/index.d.ts +4 -139
- package/dist/components/LovTable/index.js +4 -3
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Pagetable/hooks/useColumns.js +33 -29
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.js +347 -314
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Querytable/hooks/useColumns.js +12 -8
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.js +276 -243
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/TableSelectPagetable/TableSelectPagetable.vue.d.ts +2 -154
- package/dist/components/TableSelectPagetable/index.d.ts +2 -82
- package/dist/components/TableSelectPagetable/index.js +28 -26
- package/dist/components/TableSelectPagetable/index.js.map +1 -1
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tooltip/index.d.ts +8993 -0
- package/dist/components/Tooltip/index.js +12 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/Tree/Tree.vue.d.ts +2 -160
- package/dist/components/Tree/index.d.ts +2 -84
- package/dist/components/_util/dom/element.js +1 -1
- package/dist/components/_util/dom/style.js +1 -1
- package/dist/components/_util/error.js +1 -1
- package/dist/components/_util/functions.js +1 -1
- package/dist/components/_util/index.js +1 -1
- package/dist/components/_util/objects.js +1 -1
- package/dist/components/_util/strings.js +2 -2
- package/dist/components/_util/types.js +2 -2
- package/dist/components/_util/vue/icon.js +10 -10
- package/dist/components/_util/vue/install.js +1 -1
- package/dist/components/_util/vue/props/runtime.js +1 -1
- package/dist/components/_util/vue/refs.js +1 -1
- package/dist/components/_util/vue/vnode.js +1 -1
- package/dist/components/components.d.ts +3 -0
- package/dist/components/components.js +48 -29
- package/dist/components/components.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +66 -47
- package/dist/components/index.js.map +1 -1
- package/dist/components-D1sXVvN9.js +73 -0
- package/dist/components-D1sXVvN9.js.map +1 -0
- package/dist/{functions-DzLqXvGt.js → functions-LOH6x_02.js} +2 -2
- package/dist/functions-LOH6x_02.js.map +1 -0
- package/dist/icon/index.d.ts +1 -0
- package/dist/icon/index.js +297 -0
- package/dist/icon/index.js.map +1 -0
- package/dist/index-CIR6wX_E.js +4885 -0
- package/dist/{index-Bm0F5NQQ.js.map → index-CIR6wX_E.js.map} +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +69 -50
- package/dist/index.js.map +1 -1
- package/dist/utils/functions.js +1 -1
- 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-BZKLgLQx.js +0 -54
- package/dist/components-BZKLgLQx.js.map +0 -1
- package/dist/functions-DzLqXvGt.js.map +0 -1
- package/dist/index-Bm0F5NQQ.js +0 -224
- /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,32 @@
|
|
1
|
+
import "lodash-es";
|
2
|
+
import "vue";
|
3
|
+
import { withInstall as s } from "../_util/vue/install.js";
|
4
|
+
import "element-plus";
|
5
|
+
import { _ as t, a, b as o, c, d as n, e, f as _ } from "../../LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js";
|
6
|
+
import { _ as m, a as i, b as f, c as r, d as p, e as l, f as u } from "../../TableSelect.vue_vue_type_script_setup_true_lang-0WMTwNxX.js";
|
7
|
+
import { lovContextKey as R } from "./LovInput/LovInput.js";
|
8
|
+
import { default as q } from "./LovInput/hooks/useLov.js";
|
9
|
+
import { tableSelectContext as A } from "./TableSelect/TableSelect.js";
|
10
|
+
import { default as E } from "./TableSelect/hooks/useTableSelect.js";
|
11
|
+
const h = s(t), C = s(m), v = s(i), w = s(a), T = s(o), g = s(f), k = s(r), G = s(c), L = s(p), y = s(n), D = s(l), F = s(e), K = s(_), M = s(u);
|
12
|
+
export {
|
13
|
+
G as Checkbox,
|
14
|
+
k as CheckboxGroup,
|
15
|
+
y as DateInput,
|
16
|
+
D as FileInput,
|
17
|
+
F as LovInput,
|
18
|
+
T as MultiSelect,
|
19
|
+
K as NumberInput,
|
20
|
+
C as PasswordInput,
|
21
|
+
g as RadioGroup,
|
22
|
+
w as SingleSelect,
|
23
|
+
h as StringInput,
|
24
|
+
L as Switch,
|
25
|
+
M as TableSelect,
|
26
|
+
v as Textarea,
|
27
|
+
R as lovContextKey,
|
28
|
+
A as tableSelectContext,
|
29
|
+
q as useLov,
|
30
|
+
E as useTableselect
|
31
|
+
};
|
32
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Input/index.ts"],"sourcesContent":["import { withInstall } from '../_util'\r\n\r\nimport StringInputInner from './StringInput/StringInput.vue'\r\nimport PasswordInputInner from './PasswordInput/PasswordInput.vue'\r\nimport TextareaInner from './Textarea/Textarea.vue'\r\nimport SingleSelectInner from './SingleSelect/SingleSelect.vue'\r\nimport MultiSelectInner from './MultiSelect/MultiSelect.vue'\r\nimport RadioGroupInner from './RadioGroup/RadioGroup.vue'\r\nimport CheckboxGroupInner from './CheckboxGroup/CheckboxGroup.vue'\r\nimport CheckboxInner from './Checkbox/Checkbox.vue'\r\nimport SwitchInner from './Switch/Switch.vue'\r\nimport DateInputInner from './DateInput/DateInput.vue'\r\nimport FileInputInner from './FileInput/FileInput.vue'\r\nimport LovInputInner from './LovInput/LovInput.vue'\r\nimport NumberInputInner from './NumberInput/NumberInput.vue'\r\nimport TableSelectInner from './TableSelect/TableSelect.vue'\r\n\r\nexport const StringInput = withInstall(StringInputInner)\r\nexport const PasswordInput = withInstall(PasswordInputInner)\r\nexport const Textarea = withInstall(TextareaInner)\r\nexport const SingleSelect = withInstall(SingleSelectInner)\r\nexport const MultiSelect = withInstall(MultiSelectInner)\r\nexport const RadioGroup = withInstall(RadioGroupInner)\r\nexport const CheckboxGroup = withInstall(CheckboxGroupInner)\r\nexport const Checkbox = withInstall(CheckboxInner)\r\nexport const Switch = withInstall(SwitchInner)\r\nexport const DateInput = withInstall(DateInputInner)\r\nexport const FileInput = withInstall(FileInputInner)\r\nexport const LovInput = withInstall(LovInputInner)\r\nexport const NumberInput = withInstall(NumberInputInner)\r\nexport const TableSelect = withInstall(TableSelectInner)\r\n\r\nexport * from './StringInput'\r\nexport * from './PasswordInput'\r\nexport * from './Textarea'\r\nexport * from './SingleSelect'\r\nexport * from './MultiSelect'\r\nexport * from './RadioGroup'\r\nexport * from './CheckboxGroup'\r\nexport * from './Checkbox'\r\nexport * from './Switch'\r\nexport * from './DateInput'\r\nexport * from './FileInput'\r\nexport * from './LovInput'\r\nexport * from './NumberInput'\r\nexport * from './TableSelect'\r\n"],"names":["StringInput","withInstall","StringInputInner","PasswordInput","PasswordInputInner","Textarea","TextareaInner","SingleSelect","SingleSelectInner","MultiSelect","MultiSelectInner","RadioGroup","RadioGroupInner","CheckboxGroup","CheckboxGroupInner","Checkbox","CheckboxInner","Switch","SwitchInner","DateInput","DateInputInner","FileInput","FileInputInner","LovInput","LovInputInner","NumberInput","NumberInputInner","TableSelect","TableSelectInner"],"mappings":";;;;;;;;;;AAiBa,MAAAA,IAAcC,EAAYC,CAAgB,GAC1CC,IAAgBF,EAAYG,CAAkB,GAC9CC,IAAWJ,EAAYK,CAAa,GACpCC,IAAeN,EAAYO,CAAiB,GAC5CC,IAAcR,EAAYS,CAAgB,GAC1CC,IAAaV,EAAYW,CAAe,GACxCC,IAAgBZ,EAAYa,CAAkB,GAC9CC,IAAWd,EAAYe,CAAa,GACpCC,IAAShB,EAAYiB,CAAW,GAChCC,IAAYlB,EAAYmB,CAAc,GACtCC,IAAYpB,EAAYqB,CAAc,GACtCC,IAAWtB,EAAYuB,CAAa,GACpCC,IAAcxB,EAAYyB,CAAgB,GAC1CC,IAAc1B,EAAY2B,CAAgB;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/Input/utils/index.ts"],"sourcesContent":["export const getSingleCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n for (let i = 0; i < options.length; i++) {\r\n const { value, content } = options[i]\r\n if (value == curValue) {\r\n return content\r\n }\r\n }\r\n\r\n return curValue + '(?)'\r\n}\r\n\r\nexport const getMultiCodeContent = (\r\n options: Array<{\r\n value: string\r\n content: string\r\n }>,\r\n curValue: string\r\n) => {\r\n if (!curValue) {\r\n return null\r\n }\r\n\r\n let content = ''\r\n\r\n const data = curValue.split(',')\r\n data.forEach((selectValue, valueIndex) => {\r\n const index = options.findIndex((item) => {\r\n if (item.value == selectValue) return true\r\n })\r\n\r\n if (index == -1) {\r\n content += `${selectValue}(?)`\r\n } else {\r\n content += options[index].content\r\n }\r\n\r\n if (valueIndex != data.length - 1) {\r\n content += ','\r\n }\r\n })\r\n\r\n return content\r\n}\r\n"],"names":["getSingleCodeContent","options","curValue","i","value","content","getMultiCodeContent","data","selectValue","valueIndex","index","item"],"mappings":"AAAa,MAAAA,IAAuB,CAClCC,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,WAASC,IAAI,GAAGA,IAAIF,EAAQ,QAAQE,KAAK;AACvC,UAAM,EAAE,OAAAC,GAAO,SAAAC,EAAQ,IAAIJ,EAAQE,CAAC;AACpC,QAAIC,KAASF;AACJ,aAAAG;AAAA,EAEX;AAEA,SAAOH,IAAW;AACpB,GAEaI,IAAsB,CACjCL,GAIAC,MACG;AACH,MAAI,CAACA;AACI,WAAA;AAGT,MAAIG,IAAU;AAER,QAAAE,IAAOL,EAAS,MAAM,GAAG;AAC1B,SAAAK,EAAA,QAAQ,CAACC,GAAaC,MAAe;AACxC,UAAMC,IAAQT,EAAQ,UAAU,CAACU,MAAS;AACpC,UAAAA,EAAK,SAASH,EAAoB,QAAA;AAAA,IAAA,CACvC;AAED,IAAIE,KAAS,KACXL,KAAW,GAAGG,CAAW,QAEdH,KAAAJ,EAAQS,CAAK,EAAE,SAGxBD,KAAcF,EAAK,SAAS,MACnBF,KAAA;AAAA,EACb,CACD,GAEMA;AACT;"}
|
@@ -79,83 +79,7 @@ declare function __VLS_template(): {
|
|
79
79
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
80
80
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
81
81
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
82
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').
|
83
|
-
data: ArrayConstructor;
|
84
|
-
tailData: ObjectConstructor;
|
85
|
-
pagination: import('vue').PropType<{
|
86
|
-
currentPage?: number;
|
87
|
-
pageSize?: number;
|
88
|
-
pageSizes?: number[];
|
89
|
-
total?: number;
|
90
|
-
}>;
|
91
|
-
paginationTeleported: {
|
92
|
-
type: BooleanConstructor;
|
93
|
-
default: boolean;
|
94
|
-
};
|
95
|
-
paginationPagerCount: NumberConstructor;
|
96
|
-
paginationShowTotal: {
|
97
|
-
type: BooleanConstructor;
|
98
|
-
default: boolean;
|
99
|
-
};
|
100
|
-
paginationShowSizes: {
|
101
|
-
type: BooleanConstructor;
|
102
|
-
default: boolean;
|
103
|
-
};
|
104
|
-
paginationShowJumber: {
|
105
|
-
type: BooleanConstructor;
|
106
|
-
default: boolean;
|
107
|
-
};
|
108
|
-
showRowNumber: {
|
109
|
-
type: BooleanConstructor;
|
110
|
-
default: boolean;
|
111
|
-
};
|
112
|
-
selectionMode: {
|
113
|
-
type: BooleanConstructor;
|
114
|
-
default: boolean;
|
115
|
-
};
|
116
|
-
currentRowMode: {
|
117
|
-
type: BooleanConstructor;
|
118
|
-
default: boolean;
|
119
|
-
};
|
120
|
-
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
121
|
-
rowClassName: import('vue').PropType<string | ((data: {
|
122
|
-
rowData: any;
|
123
|
-
rowIndex: number;
|
124
|
-
}) => string)>;
|
125
|
-
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
126
|
-
rowData: any;
|
127
|
-
rowIndex: number;
|
128
|
-
}) => import('vue').CSSProperties)>;
|
129
|
-
cellClassName: import('vue').PropType<string | ((data: {
|
130
|
-
rowData: any;
|
131
|
-
column: {
|
132
|
-
name: string;
|
133
|
-
head: string;
|
134
|
-
};
|
135
|
-
rowIndex: number;
|
136
|
-
columnIndex: number;
|
137
|
-
}) => string)>;
|
138
|
-
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
139
|
-
rowData: any;
|
140
|
-
column: {
|
141
|
-
name: string;
|
142
|
-
head: string;
|
143
|
-
};
|
144
|
-
rowIndex: number;
|
145
|
-
columnIndex: number;
|
146
|
-
}) => import('vue').CSSProperties)>;
|
147
|
-
}>> & Readonly<{
|
148
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
149
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
150
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
151
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
152
|
-
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
153
|
-
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
154
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
155
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
156
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
157
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
158
|
-
}>, {
|
82
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
|
159
83
|
paginationTeleported: boolean;
|
160
84
|
paginationShowTotal: boolean;
|
161
85
|
paginationShowSizes: boolean;
|
@@ -354,83 +278,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
354
278
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
355
279
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
356
280
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
357
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').
|
358
|
-
data: ArrayConstructor;
|
359
|
-
tailData: ObjectConstructor;
|
360
|
-
pagination: import('vue').PropType<{
|
361
|
-
currentPage?: number;
|
362
|
-
pageSize?: number;
|
363
|
-
pageSizes?: number[];
|
364
|
-
total?: number;
|
365
|
-
}>;
|
366
|
-
paginationTeleported: {
|
367
|
-
type: BooleanConstructor;
|
368
|
-
default: boolean;
|
369
|
-
};
|
370
|
-
paginationPagerCount: NumberConstructor;
|
371
|
-
paginationShowTotal: {
|
372
|
-
type: BooleanConstructor;
|
373
|
-
default: boolean;
|
374
|
-
};
|
375
|
-
paginationShowSizes: {
|
376
|
-
type: BooleanConstructor;
|
377
|
-
default: boolean;
|
378
|
-
};
|
379
|
-
paginationShowJumber: {
|
380
|
-
type: BooleanConstructor;
|
381
|
-
default: boolean;
|
382
|
-
};
|
383
|
-
showRowNumber: {
|
384
|
-
type: BooleanConstructor;
|
385
|
-
default: boolean;
|
386
|
-
};
|
387
|
-
selectionMode: {
|
388
|
-
type: BooleanConstructor;
|
389
|
-
default: boolean;
|
390
|
-
};
|
391
|
-
currentRowMode: {
|
392
|
-
type: BooleanConstructor;
|
393
|
-
default: boolean;
|
394
|
-
};
|
395
|
-
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
396
|
-
rowClassName: import('vue').PropType<string | ((data: {
|
397
|
-
rowData: any;
|
398
|
-
rowIndex: number;
|
399
|
-
}) => string)>;
|
400
|
-
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
401
|
-
rowData: any;
|
402
|
-
rowIndex: number;
|
403
|
-
}) => import('vue').CSSProperties)>;
|
404
|
-
cellClassName: import('vue').PropType<string | ((data: {
|
405
|
-
rowData: any;
|
406
|
-
column: {
|
407
|
-
name: string;
|
408
|
-
head: string;
|
409
|
-
};
|
410
|
-
rowIndex: number;
|
411
|
-
columnIndex: number;
|
412
|
-
}) => string)>;
|
413
|
-
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
414
|
-
rowData: any;
|
415
|
-
column: {
|
416
|
-
name: string;
|
417
|
-
head: string;
|
418
|
-
};
|
419
|
-
rowIndex: number;
|
420
|
-
columnIndex: number;
|
421
|
-
}) => import('vue').CSSProperties)>;
|
422
|
-
}>> & Readonly<{
|
423
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
424
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
425
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
426
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
427
|
-
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
428
|
-
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
429
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
430
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
431
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
432
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
433
|
-
}>, {
|
281
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
|
434
282
|
paginationTeleported: boolean;
|
435
283
|
paginationShowTotal: boolean;
|
436
284
|
paginationShowSizes: boolean;
|
@@ -51,55 +51,7 @@ declare function __VLS_template(): {
|
|
51
51
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
52
52
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
53
53
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
54
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').
|
55
|
-
data: ArrayConstructor;
|
56
|
-
showRowNumber: {
|
57
|
-
type: BooleanConstructor;
|
58
|
-
default: boolean;
|
59
|
-
};
|
60
|
-
selectionMode: {
|
61
|
-
type: BooleanConstructor;
|
62
|
-
default: boolean;
|
63
|
-
};
|
64
|
-
currentRowMode: {
|
65
|
-
type: BooleanConstructor;
|
66
|
-
default: boolean;
|
67
|
-
};
|
68
|
-
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
69
|
-
rowClassName: import('vue').PropType<string | ((data: {
|
70
|
-
rowData: any;
|
71
|
-
rowIndex: number;
|
72
|
-
}) => string)>;
|
73
|
-
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
74
|
-
rowData: any;
|
75
|
-
rowIndex: number;
|
76
|
-
}) => import('vue').CSSProperties)>;
|
77
|
-
cellClassName: import('vue').PropType<string | ((data: {
|
78
|
-
rowData: any;
|
79
|
-
column: {
|
80
|
-
name: string;
|
81
|
-
head: string;
|
82
|
-
};
|
83
|
-
rowIndex: number;
|
84
|
-
columnIndex: number;
|
85
|
-
}) => string)>;
|
86
|
-
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
87
|
-
rowData: any;
|
88
|
-
column: {
|
89
|
-
name: string;
|
90
|
-
head: string;
|
91
|
-
};
|
92
|
-
rowIndex: number;
|
93
|
-
columnIndex: number;
|
94
|
-
}) => import('vue').CSSProperties)>;
|
95
|
-
}>> & Readonly<{
|
96
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
97
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
98
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
99
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
100
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
101
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
102
|
-
}>, {
|
54
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
|
103
55
|
showRowNumber: boolean;
|
104
56
|
selectionMode: boolean;
|
105
57
|
currentRowMode: boolean;
|
@@ -220,55 +172,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
220
172
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
221
173
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
222
174
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
223
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').
|
224
|
-
data: ArrayConstructor;
|
225
|
-
showRowNumber: {
|
226
|
-
type: BooleanConstructor;
|
227
|
-
default: boolean;
|
228
|
-
};
|
229
|
-
selectionMode: {
|
230
|
-
type: BooleanConstructor;
|
231
|
-
default: boolean;
|
232
|
-
};
|
233
|
-
currentRowMode: {
|
234
|
-
type: BooleanConstructor;
|
235
|
-
default: boolean;
|
236
|
-
};
|
237
|
-
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
238
|
-
rowClassName: import('vue').PropType<string | ((data: {
|
239
|
-
rowData: any;
|
240
|
-
rowIndex: number;
|
241
|
-
}) => string)>;
|
242
|
-
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
243
|
-
rowData: any;
|
244
|
-
rowIndex: number;
|
245
|
-
}) => import('vue').CSSProperties)>;
|
246
|
-
cellClassName: import('vue').PropType<string | ((data: {
|
247
|
-
rowData: any;
|
248
|
-
column: {
|
249
|
-
name: string;
|
250
|
-
head: string;
|
251
|
-
};
|
252
|
-
rowIndex: number;
|
253
|
-
columnIndex: number;
|
254
|
-
}) => string)>;
|
255
|
-
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
256
|
-
rowData: any;
|
257
|
-
column: {
|
258
|
-
name: string;
|
259
|
-
head: string;
|
260
|
-
};
|
261
|
-
rowIndex: number;
|
262
|
-
columnIndex: number;
|
263
|
-
}) => import('vue').CSSProperties)>;
|
264
|
-
}>> & Readonly<{
|
265
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
266
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
267
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
268
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
269
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
270
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
271
|
-
}>, {
|
175
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
|
272
176
|
showRowNumber: boolean;
|
273
177
|
selectionMode: boolean;
|
274
178
|
currentRowMode: boolean;
|
@@ -1,9 +1,7 @@
|
|
1
1
|
export declare const LovQuerytable: import('../_util').SFCWithInstall<{
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
3
3
|
data: any[];
|
4
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').
|
5
|
-
data: any[];
|
6
|
-
}> & Readonly<{}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
4
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
7
5
|
table: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
8
6
|
data: ArrayConstructor;
|
9
7
|
showRowNumber: {
|
@@ -52,55 +50,7 @@ export declare const LovQuerytable: import('../_util').SFCWithInstall<{
|
|
52
50
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
53
51
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
54
52
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
55
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').
|
56
|
-
data: ArrayConstructor;
|
57
|
-
showRowNumber: {
|
58
|
-
type: BooleanConstructor;
|
59
|
-
default: boolean;
|
60
|
-
};
|
61
|
-
selectionMode: {
|
62
|
-
type: BooleanConstructor;
|
63
|
-
default: boolean;
|
64
|
-
};
|
65
|
-
currentRowMode: {
|
66
|
-
type: BooleanConstructor;
|
67
|
-
default: boolean;
|
68
|
-
};
|
69
|
-
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
70
|
-
rowClassName: import('vue').PropType<string | ((data: {
|
71
|
-
rowData: any;
|
72
|
-
rowIndex: number;
|
73
|
-
}) => string)>;
|
74
|
-
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
75
|
-
rowData: any;
|
76
|
-
rowIndex: number;
|
77
|
-
}) => import('vue').CSSProperties)>;
|
78
|
-
cellClassName: import('vue').PropType<string | ((data: {
|
79
|
-
rowData: any;
|
80
|
-
column: {
|
81
|
-
name: string;
|
82
|
-
head: string;
|
83
|
-
};
|
84
|
-
rowIndex: number;
|
85
|
-
columnIndex: number;
|
86
|
-
}) => string)>;
|
87
|
-
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
88
|
-
rowData: any;
|
89
|
-
column: {
|
90
|
-
name: string;
|
91
|
-
head: string;
|
92
|
-
};
|
93
|
-
rowIndex: number;
|
94
|
-
columnIndex: number;
|
95
|
-
}) => import('vue').CSSProperties)>;
|
96
|
-
}>> & Readonly<{
|
97
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
98
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
99
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
100
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
101
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
102
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
103
|
-
}>, {
|
53
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selectionChange" | "currentRowChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
|
104
54
|
showRowNumber: boolean;
|
105
55
|
selectionMode: boolean;
|
106
56
|
currentRowMode: boolean;
|
@@ -196,16 +146,7 @@ export declare const LovPagetable: import('../_util').SFCWithInstall<{
|
|
196
146
|
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
197
147
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
198
148
|
"update:pagination": (...args: any[]) => void;
|
199
|
-
}, import('vue').
|
200
|
-
data: any[];
|
201
|
-
pagination: {
|
202
|
-
currentPage?: number;
|
203
|
-
pageSize?: number;
|
204
|
-
total?: number;
|
205
|
-
};
|
206
|
-
}> & Readonly<{
|
207
|
-
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
208
|
-
}>, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
149
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
209
150
|
table: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
210
151
|
data: ArrayConstructor;
|
211
152
|
tailData: ObjectConstructor;
|
@@ -282,83 +223,7 @@ export declare const LovPagetable: import('../_util').SFCWithInstall<{
|
|
282
223
|
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
283
224
|
onCellClick?: ((...args: any[]) => any) | undefined;
|
284
225
|
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
285
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').
|
286
|
-
data: ArrayConstructor;
|
287
|
-
tailData: ObjectConstructor;
|
288
|
-
pagination: import('vue').PropType<{
|
289
|
-
currentPage?: number;
|
290
|
-
pageSize?: number;
|
291
|
-
pageSizes?: number[];
|
292
|
-
total?: number;
|
293
|
-
}>;
|
294
|
-
paginationTeleported: {
|
295
|
-
type: BooleanConstructor;
|
296
|
-
default: boolean;
|
297
|
-
};
|
298
|
-
paginationPagerCount: NumberConstructor;
|
299
|
-
paginationShowTotal: {
|
300
|
-
type: BooleanConstructor;
|
301
|
-
default: boolean;
|
302
|
-
};
|
303
|
-
paginationShowSizes: {
|
304
|
-
type: BooleanConstructor;
|
305
|
-
default: boolean;
|
306
|
-
};
|
307
|
-
paginationShowJumber: {
|
308
|
-
type: BooleanConstructor;
|
309
|
-
default: boolean;
|
310
|
-
};
|
311
|
-
showRowNumber: {
|
312
|
-
type: BooleanConstructor;
|
313
|
-
default: boolean;
|
314
|
-
};
|
315
|
-
selectionMode: {
|
316
|
-
type: BooleanConstructor;
|
317
|
-
default: boolean;
|
318
|
-
};
|
319
|
-
currentRowMode: {
|
320
|
-
type: BooleanConstructor;
|
321
|
-
default: boolean;
|
322
|
-
};
|
323
|
-
size: import('vue').PropType<"" | "large" | "default" | "small">;
|
324
|
-
rowClassName: import('vue').PropType<string | ((data: {
|
325
|
-
rowData: any;
|
326
|
-
rowIndex: number;
|
327
|
-
}) => string)>;
|
328
|
-
rowStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
329
|
-
rowData: any;
|
330
|
-
rowIndex: number;
|
331
|
-
}) => import('vue').CSSProperties)>;
|
332
|
-
cellClassName: import('vue').PropType<string | ((data: {
|
333
|
-
rowData: any;
|
334
|
-
column: {
|
335
|
-
name: string;
|
336
|
-
head: string;
|
337
|
-
};
|
338
|
-
rowIndex: number;
|
339
|
-
columnIndex: number;
|
340
|
-
}) => string)>;
|
341
|
-
cellStyle: import('vue').PropType<import('vue').CSSProperties | ((data: {
|
342
|
-
rowData: any;
|
343
|
-
column: {
|
344
|
-
name: string;
|
345
|
-
head: string;
|
346
|
-
};
|
347
|
-
rowIndex: number;
|
348
|
-
columnIndex: number;
|
349
|
-
}) => import('vue').CSSProperties)>;
|
350
|
-
}>> & Readonly<{
|
351
|
-
onSelect?: ((...args: any[]) => any) | undefined;
|
352
|
-
"onSelect-all"?: ((...args: any[]) => any) | undefined;
|
353
|
-
onSelectionChange?: ((...args: any[]) => any) | undefined;
|
354
|
-
onCurrentRowChange?: ((...args: any[]) => any) | undefined;
|
355
|
-
"onUpdate:pagination"?: ((...args: any[]) => any) | undefined;
|
356
|
-
onPaginationChange?: ((...args: any[]) => any) | undefined;
|
357
|
-
onRowClick?: ((...args: any[]) => any) | undefined;
|
358
|
-
onRowDblclick?: ((...args: any[]) => any) | undefined;
|
359
|
-
onCellClick?: ((...args: any[]) => any) | undefined;
|
360
|
-
onCellDblclick?: ((...args: any[]) => any) | undefined;
|
361
|
-
}>, {
|
226
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("select" | "select-all" | "selectionChange" | "currentRowChange" | "update:pagination" | "paginationChange" | "rowClick" | "rowDblclick" | "cellClick" | "cellDblclick")[], import('vue').PublicProps, {
|
362
227
|
paginationTeleported: boolean;
|
363
228
|
paginationShowTotal: boolean;
|
364
229
|
paginationShowSizes: boolean;
|
@@ -3,8 +3,8 @@ import { defineComponent as A, useTemplateRef as k, ref as v, watch as x, openBl
|
|
3
3
|
import { withInstall as D } from "../_util/vue/install.js";
|
4
4
|
import "element-plus";
|
5
5
|
import T from "../Querytable/index.js";
|
6
|
-
import "../
|
7
|
-
import Q from "../
|
6
|
+
import "../Input/index.js";
|
7
|
+
import Q from "../Input/LovInput/hooks/useLov.js";
|
8
8
|
import q from "../Pagetable/index.js";
|
9
9
|
const B = /* @__PURE__ */ A({
|
10
10
|
name: "OLovQuerytable",
|
@@ -115,7 +115,8 @@ const B = /* @__PURE__ */ A({
|
|
115
115
|
pagination: t.pagination,
|
116
116
|
"onUpdate:pagination": s,
|
117
117
|
size: "small",
|
118
|
-
"pagination-teleported": !1
|
118
|
+
"pagination-teleported": !1,
|
119
|
+
"pagination-show-jumber": !1
|
119
120
|
}, {
|
120
121
|
default: S(() => [
|
121
122
|
z(t.$slots, "default")
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/LovTable/LovQuerytable.vue","../../../src/components/LovTable/LovPagetable.vue","../../../src/components/LovTable/index.ts"],"sourcesContent":["<template>\r\n <querytable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" size=\"small\">\r\n <slot></slot>\r\n </querytable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport Querytable from '../Querytable'\r\nimport { useLov } from '../
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/LovTable/LovQuerytable.vue","../../../src/components/LovTable/LovPagetable.vue","../../../src/components/LovTable/index.ts"],"sourcesContent":["<template>\r\n <querytable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" size=\"small\">\r\n <slot></slot>\r\n </querytable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport Querytable from '../Querytable'\r\nimport { useLov } from '../Input'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovQuerytable', inheritAttrs: true })\r\n\r\nconst { data } = defineProps<{ data: any[] }>()\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()\r\nlov?.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value!.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","<template>\r\n <pagetable ref=\"table\" :data=\"data\" @row-click=\"onRowClick\" current-row-mode\r\n @current-row-change=\"handleCurrentRowChange\" :pagination=\"pagination\" @update:pagination=\"onUpdatePagination\"\r\n size=\"small\" :pagination-teleported=\"false\" :pagination-show-jumber=\"false\">\r\n <slot></slot>\r\n </pagetable>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { useLov } from '../Input'\r\nimport { ref, useTemplateRef, watch } from 'vue'\r\nimport { findIndex } from 'lodash-es'\r\n\r\ndefineOptions({ name: 'OLovPagetable', inheritAttrs: true })\r\n\r\nconst { data, pagination } = defineProps<{\r\n data: any[]\r\n pagination: {\r\n currentPage?: number\r\n pageSize?: number\r\n total?: number\r\n }\r\n}>()\r\n\r\nconst emits = defineEmits(['update:pagination'])\r\nconst onUpdatePagination = (data: any) => {\r\n emits('update:pagination', data)\r\n}\r\n\r\nconst tableRef = useTemplateRef('table')\r\nconst currentRowIndex = ref()\r\nconst currentRowData = ref()\r\n\r\nconst lov = useLov()!\r\nlov.registerKeydownHandler((code) => {\r\n if (code == 'ArrowUp') {\r\n let nextRow: any\r\n if (currentRowIndex.value == 0) {\r\n nextRow = data[data.length - 1]\r\n } else {\r\n nextRow = data[currentRowIndex.value - 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'ArrowDown') {\r\n let nextRow: any\r\n if (currentRowIndex.value == data.length - 1) {\r\n nextRow = data[0]\r\n } else {\r\n nextRow = data[currentRowIndex.value + 1]\r\n }\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(nextRow)\r\n scrollToRow(currentRowIndex.value)\r\n } else if (code == 'Enter') {\r\n currentRowData.value && lov?.backfill(currentRowData.value)\r\n } else if (code == 'ArrowLeft') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n if (currentPage > 1) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage - 1,\r\n })\r\n }\r\n } else if (code == 'ArrowRight') {\r\n const currentPage = pagination?.currentPage\r\n const pageSize = pagination?.pageSize\r\n const total = pagination?.total\r\n if (!currentPage || !pageSize || !total) {\r\n return\r\n }\r\n const totalPage = Math.ceil(total / pageSize)\r\n if (currentPage < totalPage) {\r\n emits('update:pagination', {\r\n ...pagination,\r\n currentPage: currentPage + 1,\r\n })\r\n }\r\n }\r\n})\r\n\r\nconst scrollToRow = (index: number) => {\r\n const $table = tableRef.value!.$el\r\n const $row = $table.querySelectorAll('.el-table__row')[index]\r\n $row.scrollIntoViewIfNeeded()\r\n}\r\n\r\nconst onRowClick = (row: any) => {\r\n lov?.backfill(row)\r\n}\r\n\r\nconst handleCurrentRowChange = (row: any) => {\r\n const index = findIndex(data, row)\r\n if (index == -1) {\r\n currentRowIndex.value = 0\r\n currentRowData.value = data[0]\r\n } else {\r\n currentRowIndex.value = index\r\n currentRowData.value = row\r\n }\r\n}\r\n\r\nwatch(\r\n () => data,\r\n () => {\r\n if (data.length > 0) {\r\n //@ts-ignore\r\n tableRef.value!.setCurrentRow(data[0])\r\n }\r\n }\r\n)\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport LovQuerytableInner from './LovQuerytable.vue'\r\nimport LovPagetableInner from './LovPagetable.vue'\r\n\r\nexport const LovQuerytable = withInstall(LovQuerytableInner)\r\nexport const LovPagetable = withInstall(LovPagetableInner)\r\n"],"names":["tableRef","useTemplateRef","currentRowIndex","ref","currentRowData","lov","useLov","code","nextRow","__props","scrollToRow","index","onRowClick","row","handleCurrentRowChange","findIndex","watch","emits","__emit","onUpdatePagination","data","currentPage","_a","pageSize","_b","total","_c","_d","_e","_f","totalPage","LovQuerytable","withInstall","LovQuerytableInner","LovPagetable","LovPagetableInner"],"mappings":"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"}
|