@aplus-frontend/ui 7.13.7 → 7.13.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ag-grid/components/body-cell/index.vue2.mjs +7 -7
- package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
- package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
- package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
- package/es/src/ag-grid/editable/index.vue.mjs +27 -27
- package/es/src/ag-grid/index.vue.mjs +249 -249
- package/es/src/ap-action/group/index.vue.mjs +15 -15
- package/es/src/ap-action/item/index.vue2.mjs +28 -28
- package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
- package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
- package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +50 -50
- package/es/src/ap-field/date/read.vue2.mjs +7 -7
- package/es/src/ap-field/date-range/index.vue.mjs +30 -30
- package/es/src/ap-field/date-range/read.vue2.mjs +20 -20
- package/es/src/ap-field/number/index.vue.mjs +24 -24
- package/es/src/ap-field/radio/index.vue.mjs +24 -24
- package/es/src/ap-field/second/index.vue.mjs +15 -15
- package/es/src/ap-field/second/read.vue2.mjs +7 -7
- package/es/src/ap-field/segmented/index.vue.mjs +24 -24
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +246 -206
- package/es/src/ap-field/select/read.vue2.mjs +6 -6
- package/es/src/ap-field/slider/index.vue.mjs +11 -11
- package/es/src/ap-field/style/select.mjs +17 -4
- package/es/src/ap-field/switch/index.vue.mjs +45 -45
- package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
- package/es/src/ap-field/text/read.vue2.mjs +3 -3
- package/es/src/ap-field/text-area/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
- package/es/src/ap-form/ap-form.vue2.mjs +46 -46
- package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
- package/es/src/ap-form/item/index.vue.mjs +75 -75
- package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
- package/es/src/ap-form/items/number/index.vue.mjs +17 -17
- package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
- package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
- package/es/src/ap-form/items/text/password.vue.mjs +19 -19
- package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
- package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
- package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
- package/es/src/ap-grid/editable/index.vue.mjs +19 -19
- package/es/src/ap-grid/index.vue.mjs +212 -212
- package/es/src/ap-list/index.vue.mjs +116 -116
- package/es/src/ap-table/ap-table.vue2.mjs +217 -217
- package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -42
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +22 -22
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -40
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +13 -13
- package/es/src/ap-table/constants.d.ts +2 -2
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
- package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
- package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
- package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
- package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
- package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
- package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
- package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
- package/es/src/business/batch-input-group/index.vue.mjs +60 -60
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
- package/es/src/editable-table/form-item.vue.mjs +35 -35
- package/es/src/editable-table/index.vue.mjs +19 -19
- package/es/src/full-screen/index.vue.mjs +46 -46
- package/es/src/mask/index.vue.mjs +48 -48
- package/es/src/portal/index.vue.mjs +5 -5
- package/es/src/scroll-bar/internal.vue.mjs +62 -62
- package/es/src/scroll-view/index.vue.mjs +66 -66
- package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
- package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
- package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
- package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
- package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
- package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
- package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
- package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
- package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
- package/es/src/skeleton/descriptions.vue2.mjs +15 -15
- package/es/src/skeleton/list-page.vue2.mjs +12 -12
- package/es/src/splitter/Panel.vue2.mjs +11 -11
- package/es/src/splitter/SplitBar.vue2.mjs +79 -79
- package/es/src/splitter/Splitter.vue2.mjs +50 -50
- package/es/src/text/group.vue.mjs +8 -8
- package/es/src/text/index.vue.mjs +48 -48
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/tooltip/index.vue2.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/second/read.vue2.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/style/select.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/business/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/portal/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
- package/lib/src/skeleton/components/list/index.vue2.js +1 -1
- package/lib/src/skeleton/components/list/item.vue2.js +1 -1
- package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
- package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/item.vue2.js +1 -1
- package/lib/src/skeleton/descriptions.vue2.js +1 -1
- package/lib/src/skeleton/list-page.vue2.js +1 -1
- package/lib/src/splitter/Panel.vue2.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { defineComponent as d, createBlock as r, openBlock as a, unref as e, normalizeClass as l, withCtx as f, createElementVNode as c, createVNode as y, toDisplayString as g, createElementBlock as k, Fragment as h, renderList as C } from "vue";
|
|
2
|
+
import { Flex as _, Divider as x } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import { useInjectApColumnSetting as L } from "../context.mjs";
|
|
5
5
|
import "./item.vue.mjs";
|
|
6
|
-
import { useLocale as
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import
|
|
9
|
-
const j = /* @__PURE__ */
|
|
6
|
+
import { useLocale as z } from "../../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as A } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import B from "./item.vue2.mjs";
|
|
9
|
+
const j = /* @__PURE__ */ d({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
customizeTemplateList: {},
|
|
13
13
|
persistenceKey: {},
|
|
14
14
|
onActiveChange: { type: Function }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const { t:
|
|
18
|
-
function p(t) {
|
|
19
|
-
n.value = t;
|
|
20
|
-
}
|
|
16
|
+
setup(s, { expose: m }) {
|
|
17
|
+
const { t: p } = z(), { b: n } = A("ap-column-setting-template-list"), { activeKey: o } = L();
|
|
21
18
|
function u(t) {
|
|
22
|
-
|
|
19
|
+
o.value = t;
|
|
20
|
+
}
|
|
21
|
+
function v(t) {
|
|
22
|
+
o.value = t;
|
|
23
23
|
}
|
|
24
|
-
return
|
|
24
|
+
return m({ updateActiveKey: v }), (t, F) => (a(), r(e(_), {
|
|
25
25
|
vertical: "",
|
|
26
|
-
class:
|
|
26
|
+
class: l(e(n)())
|
|
27
27
|
}, {
|
|
28
|
-
default:
|
|
29
|
-
|
|
30
|
-
class:
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class:
|
|
28
|
+
default: f(() => [
|
|
29
|
+
c("div", {
|
|
30
|
+
class: l(e(n)("title"))
|
|
31
|
+
}, g(e(p)("ap.apTable.setting.templateSetting")), 3),
|
|
32
|
+
y(e(x), { style: { margin: "0" } }),
|
|
33
|
+
c("div", {
|
|
34
|
+
class: l(e(n)("content"))
|
|
35
35
|
}, [
|
|
36
|
-
(a(!0),
|
|
36
|
+
(a(!0), k(h, null, C(s.customizeTemplateList, (i) => (a(), r(B, {
|
|
37
37
|
key: i.key,
|
|
38
38
|
value: i,
|
|
39
|
-
"is-active": e(
|
|
40
|
-
"should-remove":
|
|
41
|
-
onClick: () =>
|
|
39
|
+
"is-active": e(o) === i.key,
|
|
40
|
+
"should-remove": s.customizeTemplateList.length > 1,
|
|
41
|
+
onClick: () => u(i.key)
|
|
42
42
|
}, null, 8, ["value", "is-active", "should-remove", "onClick"]))), 128))
|
|
43
43
|
], 2)
|
|
44
44
|
]),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as b, ref as g, createElementBlock as
|
|
2
|
-
import { EditOutlined as
|
|
3
|
-
import { Flex as
|
|
1
|
+
import { defineComponent as b, ref as g, createElementBlock as p, openBlock as r, normalizeClass as n, unref as e, createElementVNode as f, createBlock as w, createCommentVNode as v, toDisplayString as B, withCtx as m, createVNode as s, withModifiers as d } from "vue";
|
|
2
|
+
import { EditOutlined as x, DeleteOutlined as N } from "@ant-design/icons-vue";
|
|
3
|
+
import { Flex as A, Popover as D } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
|
-
import { useInjectApColumnSetting as
|
|
5
|
+
import { useInjectApColumnSetting as E } from "../context.mjs";
|
|
6
6
|
import "./edit-form.vue.mjs";
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
7
|
+
import { useNamespace as V } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
import F from "./edit-form.vue2.mjs";
|
|
9
|
+
const K = /* @__PURE__ */ b({
|
|
10
10
|
__name: "item",
|
|
11
11
|
props: {
|
|
12
12
|
value: {},
|
|
@@ -14,65 +14,65 @@ const M = /* @__PURE__ */ b({
|
|
|
14
14
|
onClick: { type: Function },
|
|
15
15
|
shouldRemove: { type: Boolean }
|
|
16
16
|
},
|
|
17
|
-
setup(
|
|
18
|
-
const
|
|
19
|
-
function y(
|
|
20
|
-
if (!
|
|
17
|
+
setup(l) {
|
|
18
|
+
const c = l, { b: o } = V("ap-column-setting-template-item"), a = g(!1), { deleteTemplate: C, cacheConfig: k } = E();
|
|
19
|
+
function y(i) {
|
|
20
|
+
if (!i || i === c.value.label)
|
|
21
21
|
return;
|
|
22
|
-
const
|
|
23
|
-
|
|
22
|
+
const t = c.value;
|
|
23
|
+
t.label = i, a.value = !1;
|
|
24
24
|
}
|
|
25
|
-
return (
|
|
26
|
-
class: n([e(
|
|
27
|
-
onClick:
|
|
28
|
-
(...
|
|
25
|
+
return (i, t) => (r(), p("div", {
|
|
26
|
+
class: n([e(o)(), { [e(o)("active")]: l.isActive }]),
|
|
27
|
+
onClick: t[3] || (t[3] = //@ts-ignore
|
|
28
|
+
(...u) => l.onClick && l.onClick(...u))
|
|
29
29
|
}, [
|
|
30
|
-
|
|
31
|
-
class: n(e(
|
|
32
|
-
}, B(
|
|
33
|
-
e(k).persistenceKey ? (
|
|
30
|
+
f("span", {
|
|
31
|
+
class: n(e(o)("label"))
|
|
32
|
+
}, B(l.value.label), 3),
|
|
33
|
+
e(k).persistenceKey ? (r(), w(e(A), {
|
|
34
34
|
key: 0,
|
|
35
35
|
gap: 8,
|
|
36
|
-
class: n(e(
|
|
36
|
+
class: n(e(o)("action-wrapper"))
|
|
37
37
|
}, {
|
|
38
|
-
default:
|
|
39
|
-
|
|
38
|
+
default: m(() => [
|
|
39
|
+
s(e(D), {
|
|
40
40
|
open: a.value,
|
|
41
41
|
trigger: "click",
|
|
42
42
|
arrow: !1,
|
|
43
43
|
placement: "bottom",
|
|
44
44
|
"destroy-tooltip-on-hide": ""
|
|
45
45
|
}, {
|
|
46
|
-
content:
|
|
47
|
-
|
|
48
|
-
"initial-values": { label:
|
|
46
|
+
content: m(() => [
|
|
47
|
+
s(F, {
|
|
48
|
+
"initial-values": { label: l.value.label },
|
|
49
49
|
onConfirm: y,
|
|
50
|
-
onCancel:
|
|
50
|
+
onCancel: t[1] || (t[1] = () => a.value = !1)
|
|
51
51
|
}, null, 8, ["initial-values"])
|
|
52
52
|
]),
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
class: n(e(
|
|
56
|
-
onClick:
|
|
53
|
+
default: m(() => [
|
|
54
|
+
f("span", {
|
|
55
|
+
class: n(e(o)("icon-wrapper")),
|
|
56
|
+
onClick: t[0] || (t[0] = d((u) => a.value = !0, ["stop"]))
|
|
57
57
|
}, [
|
|
58
|
-
|
|
58
|
+
s(e(x))
|
|
59
59
|
], 2)
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 8, ["open"]),
|
|
63
|
-
|
|
63
|
+
l.shouldRemove ? (r(), p("span", {
|
|
64
64
|
key: 0,
|
|
65
|
-
class: n(e(
|
|
66
|
-
onClick:
|
|
65
|
+
class: n(e(o)("icon-wrapper")),
|
|
66
|
+
onClick: t[2] || (t[2] = d(() => e(C)(l.value.key), ["stop"]))
|
|
67
67
|
}, [
|
|
68
|
-
|
|
69
|
-
], 2)) :
|
|
68
|
+
s(e(N))
|
|
69
|
+
], 2)) : v("", !0)
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
|
-
}, 8, ["class"])) :
|
|
72
|
+
}, 8, ["class"])) : v("", !0)
|
|
73
73
|
], 2));
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
K as default
|
|
78
78
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as v, computed as w, unref as r, createElementBlock as u, createCommentVNode as b, openBlock as o, createVNode as c, withCtx as l, Fragment as
|
|
2
|
-
import { Row as N, Col as
|
|
1
|
+
import { defineComponent as v, computed as w, unref as r, createElementBlock as u, createCommentVNode as b, openBlock as o, createVNode as c, withCtx as l, Fragment as m, renderList as x, createBlock as d, mergeProps as B, resolveDynamicComponent as V } from "vue";
|
|
2
|
+
import { Row as N, Col as h, Checkbox as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useInjectApTable as L } from "../../../context.mjs";
|
|
4
4
|
import "../select-group/index.vue.mjs";
|
|
5
5
|
import { getLabelNode as P } from "../utils.mjs";
|
|
@@ -9,39 +9,39 @@ const U = { key: 0 }, T = /* @__PURE__ */ v({
|
|
|
9
9
|
props: {
|
|
10
10
|
value: {}
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
return
|
|
12
|
+
setup(s) {
|
|
13
|
+
const i = s, { columnsBackup: p, renderConfig: k } = L(), g = w(() => [...r(p) || []].sort((e, t) => e.children?.length && !t.children?.length ? 1 : !e.children?.length && t.children?.length ? -1 : 0));
|
|
14
|
+
function f(n) {
|
|
15
|
+
return i.value.find((e) => e.key === n.key);
|
|
16
16
|
}
|
|
17
17
|
function C(n) {
|
|
18
|
-
const e =
|
|
18
|
+
const e = f(n);
|
|
19
19
|
return {
|
|
20
20
|
checked: e?.show,
|
|
21
21
|
disabled: e?.disabled
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
function _(n, e) {
|
|
25
|
-
const a =
|
|
25
|
+
const a = i.value?.find((y) => y.key === n);
|
|
26
26
|
a && (a.show = e);
|
|
27
27
|
}
|
|
28
|
-
return (n, e) =>
|
|
28
|
+
return (n, e) => s.value?.length ? (o(), u("div", U, [
|
|
29
29
|
c(r(N), { gutter: [24, 12] }, {
|
|
30
30
|
default: l(() => [
|
|
31
|
-
(o(!0), u(
|
|
31
|
+
(o(!0), u(m, null, x(g.value, (t) => (o(), u(m, {
|
|
32
32
|
key: t.key
|
|
33
33
|
}, [
|
|
34
|
-
t.children?.length ? (o(), d(r(
|
|
34
|
+
t.children?.length ? (o(), d(r(h), {
|
|
35
35
|
key: 1,
|
|
36
36
|
span: 24
|
|
37
37
|
}, {
|
|
38
38
|
default: l(() => [
|
|
39
39
|
c(S, {
|
|
40
|
-
value:
|
|
40
|
+
value: f(t)
|
|
41
41
|
}, null, 8, ["value"])
|
|
42
42
|
]),
|
|
43
43
|
_: 2
|
|
44
|
-
}, 1024)) : (o(), d(r(
|
|
44
|
+
}, 1024)) : (o(), d(r(h), {
|
|
45
45
|
key: 0,
|
|
46
46
|
span: 8
|
|
47
47
|
}, {
|
|
@@ -1559,7 +1559,7 @@ export declare const apTableFormItemMap: {
|
|
|
1559
1559
|
maxTagPlaceholder: any;
|
|
1560
1560
|
optionLabel: any;
|
|
1561
1561
|
default: any;
|
|
1562
|
-
|
|
1562
|
+
option: any;
|
|
1563
1563
|
}> & {
|
|
1564
1564
|
notFoundContent: any;
|
|
1565
1565
|
suffixIcon: any;
|
|
@@ -1571,7 +1571,7 @@ export declare const apTableFormItemMap: {
|
|
|
1571
1571
|
maxTagPlaceholder: any;
|
|
1572
1572
|
optionLabel: any;
|
|
1573
1573
|
default: any;
|
|
1574
|
-
|
|
1574
|
+
option: any;
|
|
1575
1575
|
};
|
|
1576
1576
|
}) | null;
|
|
1577
1577
|
}, any, ComponentProvideOptions, {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { ApTitle as
|
|
1
|
+
import { defineComponent as I, computed as M, createElementBlock as f, renderSlot as n, openBlock as i, normalizeStyle as v, normalizeClass as r, unref as e, createElementVNode as d, createBlock as h, createCommentVNode as b, withCtx as s, resolveDynamicComponent as O, h as V, Fragment as S, createVNode as y, createTextVNode as T, toDisplayString as k, renderList as w } from "vue";
|
|
2
|
+
import { Button as L, Empty as C } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApTitle as x } from "../../ap-title/index.mjs";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
|
-
import { useAgGridModalInject as
|
|
5
|
+
import { useAgGridModalInject as j } from "../hooks/use-ag-grid-instance.mjs";
|
|
6
6
|
import D from "../style/index.mjs";
|
|
7
7
|
import { useLocale as z } from "../../../config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { useNamespace as G } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
-
const
|
|
9
|
+
const W = /* @__PURE__ */ I({
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
12
12
|
leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
|
|
@@ -15,93 +15,93 @@ const U = /* @__PURE__ */ M({
|
|
|
15
15
|
bordered: { type: Boolean },
|
|
16
16
|
layoutType: { default: void 0 }
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const { t:
|
|
20
|
-
if (
|
|
18
|
+
setup(l) {
|
|
19
|
+
const { t: p } = z(), c = j(), a = M(() => c?.selectedRows?.value || []), g = l, B = () => {
|
|
20
|
+
if (g.dividerOffset != null)
|
|
21
21
|
return {
|
|
22
|
-
"--ag-grid-modal-layout-divider-offset": `${
|
|
22
|
+
"--ag-grid-modal-layout-divider-offset": `${g.dividerOffset}px`
|
|
23
23
|
};
|
|
24
|
-
},
|
|
25
|
-
|
|
24
|
+
}, E = () => {
|
|
25
|
+
c?.clearAllSelected();
|
|
26
26
|
}, u = (t) => {
|
|
27
|
-
|
|
28
|
-
}, { e:
|
|
29
|
-
return (t, P) =>
|
|
27
|
+
c?.removeSelected(t);
|
|
28
|
+
}, { e: $, m: o, b: A } = G("ag-grid-modal"), N = D("ag-grid-modal");
|
|
29
|
+
return (t, P) => l.layoutType === "two-column" ? (i(), f("div", {
|
|
30
30
|
key: 0,
|
|
31
|
-
class:
|
|
32
|
-
style:
|
|
31
|
+
class: r([e(A)(), e(o)("table-layout"), l.bordered ? e(o)("bordered") : "", e(N)]),
|
|
32
|
+
style: v(B())
|
|
33
33
|
}, [
|
|
34
|
-
|
|
35
|
-
class:
|
|
34
|
+
d("div", {
|
|
35
|
+
class: r(e(o)("table-layout-left"))
|
|
36
36
|
}, [
|
|
37
|
-
|
|
37
|
+
l.leftTitle ? (i(), h(e(x), {
|
|
38
38
|
key: 0,
|
|
39
39
|
style: { "margin-bottom": "16px" }
|
|
40
40
|
}, {
|
|
41
|
-
prefix:
|
|
42
|
-
(
|
|
41
|
+
prefix: s(() => [
|
|
42
|
+
(i(), h(O(V(S, [l.leftTitle]))))
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
|
-
})) :
|
|
46
|
-
|
|
47
|
-
class:
|
|
45
|
+
})) : b("", !0),
|
|
46
|
+
d("div", {
|
|
47
|
+
class: r(e(o)("table-layout-left-content"))
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
n(t.$slots, "default")
|
|
50
50
|
], 2)
|
|
51
51
|
], 2),
|
|
52
|
-
|
|
53
|
-
class:
|
|
54
|
-
style:
|
|
52
|
+
d("div", {
|
|
53
|
+
class: r(e(o)("table-layout-right")),
|
|
54
|
+
style: v(l.rightContentStyle)
|
|
55
55
|
}, [
|
|
56
|
-
|
|
57
|
-
prefix:
|
|
58
|
-
|
|
59
|
-
count:
|
|
56
|
+
y(e(x), null, {
|
|
57
|
+
prefix: s(() => [
|
|
58
|
+
n(t.$slots, "rightTitle", {
|
|
59
|
+
count: a.value.length
|
|
60
60
|
}, () => [
|
|
61
|
-
|
|
61
|
+
T(k(`${e(p)("ap.apTableModal.selected")} (${a.value.length})`), 1)
|
|
62
62
|
])
|
|
63
63
|
]),
|
|
64
|
-
suffix:
|
|
65
|
-
|
|
64
|
+
suffix: s(() => [
|
|
65
|
+
y(e(L), {
|
|
66
66
|
type: "link",
|
|
67
67
|
style: { padding: "0px", height: "22px", "border-width": "0px" },
|
|
68
|
-
onClick:
|
|
68
|
+
onClick: E
|
|
69
69
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
|
|
70
|
+
default: s(() => [
|
|
71
|
+
T(k(e(p)("ap.apTableModal.clear")), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
74
|
})
|
|
75
75
|
]),
|
|
76
76
|
_: 3
|
|
77
77
|
}),
|
|
78
|
-
|
|
79
|
-
class:
|
|
78
|
+
d("div", {
|
|
79
|
+
class: r(e(o)("table-layout-right-content"))
|
|
80
80
|
}, [
|
|
81
|
-
(
|
|
82
|
-
key:
|
|
83
|
-
record:
|
|
84
|
-
actions: { deleteItem: u, deleteCurrent: () => u(
|
|
81
|
+
(i(!0), f(S, null, w(a.value, (m) => n(t.$slots, "renderSelectedItem", {
|
|
82
|
+
key: m,
|
|
83
|
+
record: m,
|
|
84
|
+
actions: { deleteItem: u, deleteCurrent: () => u(m) }
|
|
85
85
|
})), 128)),
|
|
86
|
-
|
|
86
|
+
a.value.length === 0 ? (i(), f("div", {
|
|
87
87
|
key: 0,
|
|
88
|
-
class:
|
|
88
|
+
class: r(e($)("empty"))
|
|
89
89
|
}, [
|
|
90
|
-
|
|
91
|
-
image: e(
|
|
90
|
+
y(e(C), {
|
|
91
|
+
image: e(C).PRESENTED_IMAGE_SIMPLE
|
|
92
92
|
}, null, 8, ["image"])
|
|
93
|
-
], 2)) :
|
|
93
|
+
], 2)) : b("", !0)
|
|
94
94
|
], 2),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
records:
|
|
95
|
+
d("div", null, [
|
|
96
|
+
n(t.$slots, "rightBottom", {
|
|
97
|
+
records: a.value,
|
|
98
98
|
actions: { deleteItem: u }
|
|
99
99
|
})
|
|
100
100
|
])
|
|
101
101
|
], 6)
|
|
102
|
-
], 6)) :
|
|
102
|
+
], 6)) : n(t.$slots, "default", { key: 1 });
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
export {
|
|
106
|
-
|
|
106
|
+
W as default
|
|
107
107
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { IconApAdLineCloseDrawer as
|
|
1
|
+
import { defineComponent as d, createElementBlock as p, openBlock as f, normalizeClass as l, unref as e, normalizeStyle as u, createElementVNode as o, renderSlot as y, createVNode as k } from "vue";
|
|
2
|
+
import { IconApAdLineCloseDrawer as C } from "@aplus-frontend/icon";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
4
|
import _ from "../style/selected-items.mjs";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const v = /* @__PURE__ */
|
|
5
|
+
import { useNamespace as h } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const v = /* @__PURE__ */ d({
|
|
7
7
|
__name: "default",
|
|
8
8
|
props: {
|
|
9
9
|
style: { type: [Boolean, null, String, Object, Array] }
|
|
10
10
|
},
|
|
11
11
|
emits: ["clickDel"],
|
|
12
|
-
setup(
|
|
13
|
-
const { e: t, b:
|
|
14
|
-
return (
|
|
15
|
-
style:
|
|
16
|
-
class: l([e(
|
|
12
|
+
setup(s, { emit: n }) {
|
|
13
|
+
const { e: t, b: c } = h("ap-selected-items"), a = _("ap-selected-items"), r = n, i = () => r("clickDel");
|
|
14
|
+
return (m, S) => (f(), p("div", {
|
|
15
|
+
style: u(s.style),
|
|
16
|
+
class: l([e(c)(), e(t)("default"), e(a)])
|
|
17
17
|
}, [
|
|
18
|
-
|
|
18
|
+
o("div", {
|
|
19
19
|
class: l(e(t)("default-content"))
|
|
20
20
|
}, [
|
|
21
|
-
|
|
21
|
+
y(m.$slots, "default")
|
|
22
22
|
], 2),
|
|
23
|
-
|
|
23
|
+
o("span", {
|
|
24
24
|
class: l(e(t)("del-icon")),
|
|
25
25
|
onClick: i
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
k(e(C))
|
|
28
28
|
], 2)
|
|
29
29
|
], 6));
|
|
30
30
|
}
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { SMALL_HEIGHT as
|
|
3
|
-
import { useAgGridModalInject as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as s, useTemplateRef as g, computed as f, ref as d, watch as p, onMounted as m, createElementBlock as H, openBlock as v, normalizeStyle as y, unref as w, renderSlot as S } from "vue";
|
|
2
|
+
import { SMALL_HEIGHT as c, LARGER_HEIGHT as L } from "../constants.mjs";
|
|
3
|
+
import { useAgGridModalInject as x } from "../hooks/use-ag-grid-instance.mjs";
|
|
4
|
+
const _ = /* @__PURE__ */ s({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
rowHeight: { default: 32 },
|
|
8
8
|
height: { default: void 0 }
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
const u =
|
|
12
|
-
() =>
|
|
13
|
-
),
|
|
14
|
-
const e =
|
|
10
|
+
setup(t) {
|
|
11
|
+
const u = t, o = g("wrapperContainer"), h = x(), i = f(
|
|
12
|
+
() => h?.dataSourceLength?.value || 0
|
|
13
|
+
), a = d(c), l = () => {
|
|
14
|
+
const e = o.value?.clientHeight, n = o.value?.querySelector(
|
|
15
15
|
".ag-body.ag-layout-normal"
|
|
16
16
|
)?.clientHeight;
|
|
17
|
-
let
|
|
18
|
-
!e || !
|
|
17
|
+
let r = 0;
|
|
18
|
+
!e || !n ? r = 0 : r = e - n, i.value * u.rowHeight > 480 - r && (a.value = L);
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
() =>
|
|
20
|
+
return p(
|
|
21
|
+
() => i.value,
|
|
22
22
|
() => {
|
|
23
|
-
|
|
23
|
+
l();
|
|
24
24
|
}
|
|
25
25
|
), m(() => {
|
|
26
|
-
|
|
27
|
-
}), (e,
|
|
26
|
+
l();
|
|
27
|
+
}), (e, n) => (v(), H("div", {
|
|
28
28
|
ref_key: "wrapperContainer",
|
|
29
|
-
ref:
|
|
29
|
+
ref: o,
|
|
30
30
|
style: y({
|
|
31
|
-
minHeight:
|
|
32
|
-
height:
|
|
31
|
+
minHeight: t.height ? "unset" : w(c),
|
|
32
|
+
height: t.height ?? a.value,
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "column"
|
|
35
35
|
})
|
|
@@ -39,5 +39,5 @@ const k = /* @__PURE__ */ h({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
_ as default
|
|
43
43
|
};
|