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
@@ -1,11 +1,12 @@
|
|
1
1
|
import { intersectionWith as E, isEqual as k, find as d, remove as w } from "lodash-es";
|
2
|
-
import { defineComponent as q, computed as T, useTemplateRef as
|
2
|
+
import { defineComponent as q, computed as T, useTemplateRef as b, ref as C, onMounted as F, watch as z, nextTick as I, resolveComponent as p, openBlock as r, createBlock as g, normalizeStyle as U, withCtx as n, createVNode as a, createElementVNode as f, createElementBlock as x, Fragment as R, renderList as N, unref as u, createTextVNode as m, toDisplayString as P, createCommentVNode as G, mergeProps as H, renderSlot as J } from "vue";
|
3
3
|
import { withInstall as K } from "../_util/vue/install.js";
|
4
4
|
import { ElTag as V, ElTooltip as Q, ElScrollbar as X } from "element-plus";
|
5
5
|
import Y from "../Pagetable/index.js";
|
6
|
-
import {
|
6
|
+
import { bT as Z } from "../../index-CIR6wX_E.js";
|
7
7
|
import { addUnit as B } from "../_util/dom/style.js";
|
8
|
-
import
|
8
|
+
import "../Input/index.js";
|
9
|
+
import ee from "../Input/TableSelect/hooks/useTableSelect.js";
|
9
10
|
const te = { style: { display: "flex", padding: "5px" } }, le = {
|
10
11
|
ref: "div",
|
11
12
|
style: { flex: "1 1 0px", display: "flex", gap: "5px", overflow: "hidden" }
|
@@ -22,13 +23,13 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
22
23
|
const D = T(() => ({
|
23
24
|
width: B(i.width),
|
24
25
|
height: B(i.height)
|
25
|
-
})), y =
|
26
|
+
})), y = b("table"), l = C([]), S = T(() => l.value.map((o) => e == null ? void 0 : e.tag(o))), v = C(!1), L = b("div");
|
26
27
|
F(() => {
|
27
28
|
new MutationObserver((t) => {
|
28
29
|
t.forEach((s) => {
|
29
30
|
if (s.type == "childList") {
|
30
|
-
const
|
31
|
-
|
31
|
+
const c = s.target;
|
32
|
+
c.scrollWidth > c.clientWidth ? v.value = !0 : v.value = !1;
|
32
33
|
}
|
33
34
|
});
|
34
35
|
}).observe(L.value, {
|
@@ -37,14 +38,14 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
37
38
|
});
|
38
39
|
const W = (o, t) => {
|
39
40
|
d(o, t) ? d(l.value, t) || l.value.push(t) : d(l.value, t) && w(l.value, t), e == null || e.onSelect(l.value);
|
40
|
-
},
|
41
|
+
}, j = (o) => {
|
41
42
|
o.length > 0 ? o.forEach((t) => {
|
42
43
|
d(l.value, t) || l.value.push(t);
|
43
44
|
}) : w(l.value, (t) => d(i.data, t)), e == null || e.onSelect(l.value);
|
44
|
-
}, e = ee(),
|
45
|
+
}, e = ee(), A = () => {
|
45
46
|
e == null || e.selectDone();
|
46
|
-
},
|
47
|
-
|
47
|
+
}, M = () => {
|
48
|
+
O(), l.value = [], e == null || e.onSelect([], !0);
|
48
49
|
};
|
49
50
|
z(
|
50
51
|
() => i.data,
|
@@ -58,22 +59,22 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
58
59
|
E(i.data, l.value, k).forEach((t) => {
|
59
60
|
y.value.toggleRowSelection(t, !0);
|
60
61
|
});
|
61
|
-
},
|
62
|
+
}, O = () => {
|
62
63
|
E(i.data, l.value, k).forEach((t) => {
|
63
64
|
y.value.toggleRowSelection(t, !1);
|
64
65
|
});
|
65
66
|
};
|
66
67
|
return (o, t) => {
|
67
|
-
const s = p("o-button"),
|
68
|
-
return r(), g(
|
68
|
+
const s = p("o-button"), c = p("o-flexitem"), $ = p("o-colflex");
|
69
|
+
return r(), g($, {
|
69
70
|
style: U(D.value)
|
70
71
|
}, {
|
71
72
|
default: n(() => [
|
72
|
-
a(
|
73
|
+
a(c, { "flex-basic": "need" }, {
|
73
74
|
default: n(() => [
|
74
75
|
f("div", te, [
|
75
76
|
f("div", le, [
|
76
|
-
(r(!0), x(R, null, N(S.value, (h) => (r(), g(
|
77
|
+
(r(!0), x(R, null, N(S.value, (h) => (r(), g(u(V), { type: "info" }, {
|
77
78
|
default: n(() => [
|
78
79
|
m(P(h), 1)
|
79
80
|
]),
|
@@ -82,21 +83,21 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
82
83
|
], 512),
|
83
84
|
f("div", oe, [
|
84
85
|
v.value ? (r(), x("div", ne, [
|
85
|
-
a(
|
86
|
+
a(u(Q), {
|
86
87
|
effect: "light",
|
87
88
|
teleported: !1
|
88
89
|
}, {
|
89
90
|
default: n(() => [
|
90
91
|
a(s, {
|
91
92
|
size: "small",
|
92
|
-
icon:
|
93
|
+
icon: u(Z),
|
93
94
|
text: ""
|
94
95
|
}, null, 8, ["icon"])
|
95
96
|
]),
|
96
97
|
content: n(() => [
|
97
|
-
a(
|
98
|
+
a(u(X), { "max-height": "100" }, {
|
98
99
|
default: n(() => [
|
99
|
-
(r(!0), x(R, null, N(S.value, (h) => (r(), g(
|
100
|
+
(r(!0), x(R, null, N(S.value, (h) => (r(), g(u(V), {
|
100
101
|
type: "info",
|
101
102
|
style: { margin: "5px" }
|
102
103
|
}, {
|
@@ -116,7 +117,7 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
116
117
|
a(s, {
|
117
118
|
type: "primary",
|
118
119
|
size: "small",
|
119
|
-
onClick:
|
120
|
+
onClick: A
|
120
121
|
}, {
|
121
122
|
default: n(() => t[0] || (t[0] = [
|
122
123
|
m("确定")
|
@@ -127,7 +128,7 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
127
128
|
f("div", null, [
|
128
129
|
a(s, {
|
129
130
|
size: "small",
|
130
|
-
onClick:
|
131
|
+
onClick: M
|
131
132
|
}, {
|
132
133
|
default: n(() => t[1] || (t[1] = [
|
133
134
|
m("清空")
|
@@ -140,16 +141,17 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
140
141
|
]),
|
141
142
|
_: 1
|
142
143
|
}),
|
143
|
-
a(
|
144
|
+
a(c, null, {
|
144
145
|
default: n(() => [
|
145
|
-
a(
|
146
|
+
a(u(Y), H({
|
146
147
|
ref: "table",
|
147
148
|
data: o.data,
|
148
149
|
"selection-mode": "",
|
149
150
|
size: "small",
|
150
151
|
"pagination-teleported": !1,
|
152
|
+
"pagination-show-jumber": !1,
|
151
153
|
onSelect: W,
|
152
|
-
onSelectAll:
|
154
|
+
onSelectAll: j
|
153
155
|
}, o.$attrs), {
|
154
156
|
default: n(() => [
|
155
157
|
J(o.$slots, "default")
|
@@ -164,8 +166,8 @@ const te = { style: { display: "flex", padding: "5px" } }, le = {
|
|
164
166
|
}, 8, ["style"]);
|
165
167
|
};
|
166
168
|
}
|
167
|
-
}),
|
169
|
+
}), he = K(ae, {});
|
168
170
|
export {
|
169
|
-
|
171
|
+
he as default
|
170
172
|
};
|
171
173
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/TableSelectPagetable/TableSelectPagetable.vue","../../../src/components/TableSelectPagetable/index.ts"],"sourcesContent":["<template>\r\n <o-colflex :style=\"style\">\r\n <o-flexitem flex-basic=\"need\">\r\n <div :style=\"{ display: 'flex', padding: '5px' }\">\r\n <div ref=\"div\" :style=\"{ flex: '1 1 0px', display: 'flex', gap: '5px', overflow: 'hidden' }\">\r\n <el-tag v-for=\"tag in tags\" type=\"info\">{{ tag }}</el-tag>\r\n </div>\r\n <div :style=\"{ flex: 'none', width: '150px', display: 'flex', gap: '5px', justifyContent: 'right' }\">\r\n <div v-if=\"visiable\">\r\n <el-tooltip effect=\"light\" :teleported=\"false\">\r\n <template #default>\r\n <o-button size=\"small\" :icon=\"More\" text />\r\n </template>\r\n <template #content>\r\n <el-scrollbar max-height=\"100\">\r\n <el-tag v-for=\"tag in tags\" type=\"info\" :style=\"{ margin: '5px' }\">\r\n {{ tag }}\r\n </el-tag>\r\n </el-scrollbar>\r\n </template>\r\n </el-tooltip>\r\n </div>\r\n <div>\r\n <o-button type=\"primary\" size=\"small\" @click=\"selectDone\">确定</o-button>\r\n </div>\r\n <div>\r\n <o-button size=\"small\" @click=\"clearSelection\">清空</o-button>\r\n </div>\r\n </div>\r\n </div>\r\n </o-flexitem>\r\n <o-flexitem>\r\n <pagetable ref=\"table\" :data=\"data\" selection-mode size=\"small\" :pagination-teleported=\"false\"\r\n @select=\"onSelect\" @select-all=\"onSelectAll\" v-bind=\"$attrs\">\r\n <slot></slot>\r\n </pagetable>\r\n </o-flexitem>\r\n </o-colflex>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { ElTag, ElTooltip, ElScrollbar } from 'element-plus'\r\nimport { More } from '@element-plus/icons-vue'\r\nimport { computed, nextTick, onMounted, ref, useTemplateRef, watch
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/TableSelectPagetable/TableSelectPagetable.vue","../../../src/components/TableSelectPagetable/index.ts"],"sourcesContent":["<template>\r\n <o-colflex :style=\"style\">\r\n <o-flexitem flex-basic=\"need\">\r\n <div :style=\"{ display: 'flex', padding: '5px' }\">\r\n <div ref=\"div\" :style=\"{ flex: '1 1 0px', display: 'flex', gap: '5px', overflow: 'hidden' }\">\r\n <el-tag v-for=\"tag in tags\" type=\"info\">{{ tag }}</el-tag>\r\n </div>\r\n <div :style=\"{ flex: 'none', width: '150px', display: 'flex', gap: '5px', justifyContent: 'right' }\">\r\n <div v-if=\"visiable\">\r\n <el-tooltip effect=\"light\" :teleported=\"false\">\r\n <template #default>\r\n <o-button size=\"small\" :icon=\"More\" text />\r\n </template>\r\n <template #content>\r\n <el-scrollbar max-height=\"100\">\r\n <el-tag v-for=\"tag in tags\" type=\"info\" :style=\"{ margin: '5px' }\">\r\n {{ tag }}\r\n </el-tag>\r\n </el-scrollbar>\r\n </template>\r\n </el-tooltip>\r\n </div>\r\n <div>\r\n <o-button type=\"primary\" size=\"small\" @click=\"selectDone\">确定</o-button>\r\n </div>\r\n <div>\r\n <o-button size=\"small\" @click=\"clearSelection\">清空</o-button>\r\n </div>\r\n </div>\r\n </div>\r\n </o-flexitem>\r\n <o-flexitem>\r\n <pagetable ref=\"table\" :data=\"data\" selection-mode size=\"small\" :pagination-teleported=\"false\"\r\n :pagination-show-jumber=\"false\" @select=\"onSelect\" @select-all=\"onSelectAll\" v-bind=\"$attrs\">\r\n <slot></slot>\r\n </pagetable>\r\n </o-flexitem>\r\n </o-colflex>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport Pagetable from '../Pagetable'\r\nimport { ElTag, ElTooltip, ElScrollbar } from 'element-plus'\r\nimport { More } from '@element-plus/icons-vue'\r\nimport { computed, nextTick, onMounted, ref, useTemplateRef, watch } from 'vue'\r\nimport { find, intersectionWith, isEqual, remove } from 'lodash-es'\r\nimport { addUnit } from '../_util'\r\nimport { useTableselect } from '../Input'\r\n\r\ndefineOptions({ name: 'OTableselectPagetable', inheritAttrs: true })\r\n\r\nconst { data, width = 600, height = 300 } = defineProps<{ data: any[], width: number | string, height: number | string }>()\r\nconst style = computed(() => {\r\n return {\r\n width: addUnit(width),\r\n height: addUnit(height)\r\n }\r\n})\r\nconst tableRef = useTemplateRef('table')\r\nconst selection = ref<any[]>([])\r\nconst tags = computed(() => selection.value.map((item) => tableselect?.tag(item)))\r\n\r\nconst visiable = ref(false)\r\nconst divRef = useTemplateRef('div')\r\nonMounted(() => {\r\n const observer = new MutationObserver((mutations) => {\r\n mutations.forEach((mutation) => {\r\n if (mutation.type == 'childList') {\r\n const target = mutation.target as HTMLDivElement\r\n if (target.scrollWidth > target.clientWidth) {\r\n visiable.value = true\r\n } else {\r\n visiable.value = false\r\n }\r\n }\r\n });\r\n });\r\n observer.observe(divRef.value!, {\r\n childList: true\r\n });\r\n})\r\n\r\nconst onSelect = (_selection: any[], _row: any) => {\r\n if (find(_selection, _row)) {\r\n if (!find(selection.value, _row)) {\r\n selection.value.push(_row)\r\n }\r\n } else {\r\n if (find(selection.value, _row)) {\r\n remove(selection.value, _row)\r\n }\r\n }\r\n tableselect?.onSelect(selection.value)\r\n}\r\nconst onSelectAll = (_selection: any[]) => {\r\n if (_selection.length > 0) {\r\n _selection.forEach((item) => {\r\n if (!find(selection.value, item)) {\r\n selection.value.push(item)\r\n }\r\n })\r\n } else {\r\n remove(selection.value, (item) => find(data, item))\r\n }\r\n tableselect?.onSelect(selection.value)\r\n}\r\n\r\nconst tableselect = useTableselect()\r\nconst selectDone = () => {\r\n tableselect?.selectDone()\r\n}\r\nconst clearSelection = () => {\r\n uncheckSelection()\r\n selection.value = []\r\n tableselect?.onSelect([], true)\r\n}\r\n\r\nwatch(\r\n () => data,\r\n async () => {\r\n if (data.length > 0) {\r\n await nextTick()\r\n checkSelection()\r\n }\r\n }\r\n)\r\nwatch(() => tableselect?.selection, () => {\r\n if (tableselect?.selection && tableselect.selection.length > 0) {\r\n selection.value = tableselect.selection\r\n checkSelection()\r\n }\r\n})\r\n\r\nconst checkSelection = () => {\r\n const _selection = intersectionWith(data, selection.value, isEqual)\r\n _selection.forEach((row) => {\r\n //@ts-ignore\r\n tableRef.value!.toggleRowSelection(row, true)\r\n })\r\n}\r\n\r\nconst uncheckSelection = () => {\r\n const _selection = intersectionWith(data, selection.value, isEqual)\r\n _selection.forEach((row) => {\r\n //@ts-ignore\r\n tableRef.value!.toggleRowSelection(row, false)\r\n })\r\n}\r\n</script>","import { withInstall } from '../_util'\r\n\r\nimport TableSelectPagetable from './TableSelectPagetable.vue'\r\n\r\nexport default withInstall(TableSelectPagetable, {})\r\n"],"names":["style","computed","addUnit","__props","tableRef","useTemplateRef","selection","ref","tags","item","tableselect","visiable","divRef","onMounted","mutations","mutation","target","onSelect","_selection","_row","find","remove","onSelectAll","useTableselect","selectDone","clearSelection","uncheckSelection","watch","nextTick","checkSelection","intersectionWith","isEqual","row","index","withInstall","TableSelectPagetable"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAmDM,UAAAA,IAAQC,EAAS,OACZ;AAAA,MACH,OAAOC,EAAQC,EAAA,KAAK;AAAA,MACpB,QAAQD,EAAQC,EAAM,MAAA;AAAA,IAAA,EAE7B,GACKC,IAAWC,EAAe,OAAO,GACjCC,IAAYC,EAAW,CAAA,CAAE,GACzBC,IAAOP,EAAS,MAAMK,EAAU,MAAM,IAAI,CAACG,MAASC,KAAA,gBAAAA,EAAa,IAAID,EAAK,CAAC,GAE3EE,IAAWJ,EAAI,EAAK,GACpBK,IAASP,EAAe,KAAK;AACnC,IAAAQ,EAAU,MAAM;AAaH,MAZQ,IAAI,iBAAiB,CAACC,MAAc;AACvC,QAAAA,EAAA,QAAQ,CAACC,MAAa;AACxB,cAAAA,EAAS,QAAQ,aAAa;AAC9B,kBAAMC,IAASD,EAAS;AACpB,YAAAC,EAAO,cAAcA,EAAO,cAC5BL,EAAS,QAAQ,KAEjBA,EAAS,QAAQ;AAAA,UAEzB;AAAA,QAAA,CACH;AAAA,MAAA,CACJ,EACQ,QAAQC,EAAO,OAAQ;AAAA,QAC5B,WAAW;AAAA,MAAA,CACd;AAAA,IAAA,CACJ;AAEK,UAAAK,IAAW,CAACC,GAAmBC,MAAc;AAC3C,MAAAC,EAAKF,GAAYC,CAAI,IAChBC,EAAKd,EAAU,OAAOa,CAAI,KACjBb,EAAA,MAAM,KAAKa,CAAI,IAGzBC,EAAKd,EAAU,OAAOa,CAAI,KACnBE,EAAAf,EAAU,OAAOa,CAAI,GAGvBT,KAAA,QAAAA,EAAA,SAASJ,EAAU;AAAA,IAAK,GAEnCgB,IAAc,CAACJ,MAAsB;AACnC,MAAAA,EAAW,SAAS,IACTA,EAAA,QAAQ,CAACT,MAAS;AACzB,QAAKW,EAAKd,EAAU,OAAOG,CAAI,KACjBH,EAAA,MAAM,KAAKG,CAAI;AAAA,MAC7B,CACH,IAEMY,EAAAf,EAAU,OAAO,CAACG,MAASW,EAAKjB,EAAA,MAAMM,CAAI,CAAC,GAEzCC,KAAA,QAAAA,EAAA,SAASJ,EAAU;AAAA,IAAK,GAGnCI,IAAca,MACdC,IAAa,MAAM;AACrB,MAAAd,KAAA,QAAAA,EAAa;AAAA,IAAW,GAEtBe,IAAiB,MAAM;AACR,MAAAC,KACjBpB,EAAU,QAAQ,IACLI,KAAA,QAAAA,EAAA,SAAS,IAAI;AAAA,IAAI;AAGlC,IAAAiB;AAAA,MACI,MAAMxB,EAAI;AAAA,MACV,YAAY;AACJ,QAAAA,EAAI,KAAC,SAAS,MACd,MAAMyB,EAAS,GACAC;MAEvB;AAAA,IAAA,GAEEF,EAAA,MAAMjB,KAAA,gBAAAA,EAAa,WAAW,MAAM;AACtC,MAAIA,KAAA,QAAAA,EAAa,aAAaA,EAAY,UAAU,SAAS,MACzDJ,EAAU,QAAQI,EAAY,WACfmB;IACnB,CACH;AAED,UAAMA,IAAiB,MAAM;AAEd,MADQC,EAAiB3B,QAAMG,EAAU,OAAOyB,CAAO,EACvD,QAAQ,CAACC,MAAQ;AAEf,QAAA5B,EAAA,MAAO,mBAAmB4B,GAAK,EAAI;AAAA,MAAA,CAC/C;AAAA,IAAA,GAGCN,IAAmB,MAAM;AAEhB,MADQI,EAAiB3B,QAAMG,EAAU,OAAOyB,CAAO,EACvD,QAAQ,CAACC,MAAQ;AAEf,QAAA5B,EAAA,MAAO,mBAAmB4B,GAAK,EAAK;AAAA,MAAA,CAChD;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IC7ILC,KAAeC,EAAYC,IAAsB,EAAE;"}
|
@@ -3,7 +3,7 @@ import { ref as h, watch as B, defineComponent as M, getCurrentInstance as D, in
|
|
3
3
|
import { withInstall as Be } from "../_util/vue/install.js";
|
4
4
|
import { ElIcon as J } from "element-plus";
|
5
5
|
import { isNumber as ke, isUndefined as ze } from "../_util/types.js";
|
6
|
-
import { e as Re } from "../../functions-
|
6
|
+
import { e as Re } from "../../functions-LOH6x_02.js";
|
7
7
|
import { buildProps as be, definePropType as pe } from "../_util/vue/props/runtime.js";
|
8
8
|
import { UPDATE_MODEL_EVENT as me } from "../_constants/event.js";
|
9
9
|
import { useNamespace as V } from "../_hooks/use-namespace/index.js";
|
@@ -12,7 +12,7 @@ import { tabsRootContextKey as Q } from "./constants.js";
|
|
12
12
|
import { t as he, r as ye, i as Oe, b as Le, n as Fe, c as Me, d as Ve, e as Z } from "../../index-C9tCD90X.js";
|
13
13
|
import { capitalize as I } from "../_util/strings.js";
|
14
14
|
import { throwError as q } from "../_util/error.js";
|
15
|
-
import {
|
15
|
+
import { g as Qe, i as Ue } from "../../index-CIR6wX_E.js";
|
16
16
|
import { mutable as We } from "../_util/typescript.js";
|
17
17
|
import { EVENT_CODE as je } from "../_constants/aria.js";
|
18
18
|
import { tabBarProps as De } from "./tab-bar.js";
|