@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,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as k, computed as
|
|
1
|
+
import { defineComponent as k, computed as l, unref as c, createBlock as n, openBlock as o, withCtx as A, createElementBlock as f, createCommentVNode as v, Fragment as p, renderList as y, mergeProps as s } from "vue";
|
|
2
2
|
import { Space as F } from "@aplus-frontend/antdv";
|
|
3
|
-
import { isUndefined as
|
|
3
|
+
import { isUndefined as x } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../item/index.vue.mjs";
|
|
6
6
|
import "../item-dropdown/index.vue2.mjs";
|
|
7
7
|
import "../item-modal/index.vue2.mjs";
|
|
8
8
|
import "../item-popconfirm/index.vue2.mjs";
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import
|
|
9
|
+
import { useLocale as w } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import _ from "../item-dropdown/index.vue.mjs";
|
|
11
11
|
import B from "../item-modal/index.vue.mjs";
|
|
12
12
|
import $ from "../item-popconfirm/index.vue.mjs";
|
|
13
13
|
import b from "../item/index.vue2.mjs";
|
|
@@ -21,13 +21,13 @@ const q = /* @__PURE__ */ k({
|
|
|
21
21
|
actions: { default: () => [] },
|
|
22
22
|
iconFirst: { type: Boolean, default: void 0 }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
const r =
|
|
24
|
+
setup(m) {
|
|
25
|
+
const r = m, { t: d } = w(), u = l(
|
|
26
26
|
() => r.actions.filter(
|
|
27
|
-
(e) => e.visible ||
|
|
27
|
+
(e) => e.visible || x(e.visible)
|
|
28
28
|
)
|
|
29
|
-
), g =
|
|
30
|
-
const e = c(
|
|
29
|
+
), g = l(() => c(u).length > r.count), a = l(() => {
|
|
30
|
+
const e = c(u);
|
|
31
31
|
if (e.length <= r.count)
|
|
32
32
|
return {
|
|
33
33
|
showActions: e.map((t) => ({
|
|
@@ -50,8 +50,8 @@ const q = /* @__PURE__ */ k({
|
|
|
50
50
|
align: "center"
|
|
51
51
|
}, {
|
|
52
52
|
default: A(() => [
|
|
53
|
-
(o(!0),
|
|
54
|
-
t.actions ? (o(), n(
|
|
53
|
+
(o(!0), f(p, null, y(a.value.showActions, (t, h) => (o(), f(p, { key: h }, [
|
|
54
|
+
t.actions ? (o(), n(_, s({
|
|
55
55
|
key: 0,
|
|
56
56
|
ref_for: !0
|
|
57
57
|
}, t), null, 16)) : t.modalProps ? (o(), n(B, s({
|
|
@@ -65,11 +65,11 @@ const q = /* @__PURE__ */ k({
|
|
|
65
65
|
ref_for: !0
|
|
66
66
|
}, t), null, 16))
|
|
67
67
|
], 64))), 128)),
|
|
68
|
-
g.value ? (o(), n(
|
|
68
|
+
g.value ? (o(), n(_, {
|
|
69
69
|
key: 0,
|
|
70
|
-
actions:
|
|
71
|
-
placement:
|
|
72
|
-
trigger:
|
|
70
|
+
actions: a.value.menuActions,
|
|
71
|
+
placement: m.placement,
|
|
72
|
+
trigger: m.trigger,
|
|
73
73
|
text: c(d)("ap.common.more")
|
|
74
74
|
}, null, 8, ["actions", "placement", "trigger", "text"])) : v("", !0)
|
|
75
75
|
]),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as h, useSlots as A, createPropsRestProxy as F, ref as N, computed as d, unref as o, renderSlot as g, createElementBlock as u, createCommentVNode as f, openBlock as l, mergeProps as v, createVNode as k, normalizeClass as S, withCtx as V, createElementVNode as I, createBlock as b, resolveDynamicComponent as x, isVNode as L, toDisplayString as P } from "vue";
|
|
2
|
+
import { Tooltip as $ } from "@aplus-frontend/antdv";
|
|
3
|
+
import w from "@aplus-frontend/antdv/es/button/LoadingIcon";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import D from "../style/index.mjs";
|
|
6
6
|
import { useNamespace as E } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
-
const T = { key: 1 }, K = /* @__PURE__ */
|
|
7
|
+
const T = { key: 1 }, K = /* @__PURE__ */ h({
|
|
8
8
|
name: "ApActionItem",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -19,50 +19,50 @@ const T = { key: 1 }, K = /* @__PURE__ */ A({
|
|
|
19
19
|
iconFirst: { type: Boolean, default: !1 },
|
|
20
20
|
tooltip: { default: () => ({}) }
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const a =
|
|
24
|
-
function
|
|
25
|
-
|
|
22
|
+
setup(e) {
|
|
23
|
+
const a = A(), c = F(e, ["color", "disabled", "visible", "loading", "iconFirst", "icon", "tooltip"]), { b: m, m: n, e: C } = E("action-item"), s = N(!1), r = d(() => e.iconFirst && !!(e.icon || a.icon)), p = D("action-item");
|
|
24
|
+
function y(t) {
|
|
25
|
+
o(i) || e.disabled || (c.onClick?.(t), c.onAction && (s.value = !0, c.onAction(t).finally(() => s.value = !1)));
|
|
26
26
|
}
|
|
27
|
-
const i = d(() =>
|
|
28
|
-
|
|
27
|
+
const i = d(() => e.loading || o(s)), B = d(() => [
|
|
28
|
+
p.value,
|
|
29
29
|
m(),
|
|
30
|
-
n(
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
n(e.color),
|
|
31
|
+
r.value ? n("icon-first") : null,
|
|
32
|
+
e.disabled ? n("disabled") : null,
|
|
33
33
|
i.value ? n("loading") : null
|
|
34
34
|
].filter(Boolean));
|
|
35
|
-
return (
|
|
35
|
+
return (t, z) => g(t.$slots, "trigger", {
|
|
36
36
|
loading: i.value,
|
|
37
37
|
disabled: e.disabled,
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: y
|
|
39
39
|
}, () => [
|
|
40
|
-
e.visible ? (l(), u("span",
|
|
41
|
-
class:
|
|
42
|
-
onClick:
|
|
40
|
+
e.visible ? (l(), u("span", v({ key: 0 }, t.$attrs, {
|
|
41
|
+
class: B.value,
|
|
42
|
+
onClick: y
|
|
43
43
|
}), [
|
|
44
|
-
|
|
45
|
-
"prefix-cls":
|
|
44
|
+
k(o(w), {
|
|
45
|
+
"prefix-cls": o(m)(),
|
|
46
46
|
"exist-icon": !1,
|
|
47
47
|
loading: i.value
|
|
48
48
|
}, null, 8, ["prefix-cls", "loading"]),
|
|
49
49
|
e.icon || a.icon ? (l(), u("span", {
|
|
50
50
|
key: 0,
|
|
51
|
-
class:
|
|
51
|
+
class: S(o(C)("icon-wrapper"))
|
|
52
52
|
}, [
|
|
53
|
-
|
|
54
|
-
title:
|
|
53
|
+
k(o($), v({
|
|
54
|
+
title: r.value ? e.text : null
|
|
55
55
|
}, e.tooltip), {
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
(l(),
|
|
56
|
+
default: V(() => [
|
|
57
|
+
I("span", null, [
|
|
58
|
+
(l(), b(x(e.icon || a.icon)))
|
|
59
59
|
])
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 16, ["title"])
|
|
63
63
|
], 2)) : f("", !0),
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
r.value ? f("", !0) : g(t.$slots, "default", { key: 1 }, () => [
|
|
65
|
+
L(e.text) ? (l(), b(x(e.text), { key: 0 })) : (l(), u("span", T, P(e.text || ""), 1))
|
|
66
66
|
])
|
|
67
67
|
], 16)) : f("", !0)
|
|
68
68
|
]);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Dropdown as
|
|
3
|
-
import { IconApAdLineDown as
|
|
4
|
-
import { isUndefined as
|
|
1
|
+
import { defineComponent as _, ref as w, computed as A, createBlock as r, openBlock as t, unref as o, normalizeClass as m, withCtx as i, createElementVNode as d, createVNode as g, normalizeProps as B, guardReactiveProps as b, renderSlot as I, resolveDynamicComponent as x, createCommentVNode as D, createElementBlock as P, Fragment as N, renderList as $, mergeProps as c } from "vue";
|
|
2
|
+
import { Dropdown as L, Menu as V, MenuItem as z } from "@aplus-frontend/antdv";
|
|
3
|
+
import { IconApAdLineDown as E } from "@aplus-frontend/icon";
|
|
4
|
+
import { isUndefined as F, omit as M } from "lodash-unified";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
6
|
import "../item/index.vue.mjs";
|
|
7
7
|
import "../item-modal/index.vue2.mjs";
|
|
8
8
|
import "../item-popconfirm/index.vue2.mjs";
|
|
9
|
-
import
|
|
9
|
+
import S from "../style/dropdown-item.mjs";
|
|
10
10
|
import { useNamespace as O } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
-
import
|
|
11
|
+
import y from "../item/index.vue2.mjs";
|
|
12
12
|
import R from "../item-modal/index.vue.mjs";
|
|
13
13
|
import U from "../item-popconfirm/index.vue.mjs";
|
|
14
|
-
const oe = /* @__PURE__ */
|
|
14
|
+
const oe = /* @__PURE__ */ _({
|
|
15
15
|
name: "ApActionItemDropDown",
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
@@ -29,47 +29,47 @@ const oe = /* @__PURE__ */ C({
|
|
|
29
29
|
iconFirst: { type: Boolean },
|
|
30
30
|
tooltip: {}
|
|
31
31
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const p =
|
|
34
|
-
(n.source === "trigger" || e) && (
|
|
35
|
-
},
|
|
32
|
+
setup(l) {
|
|
33
|
+
const p = l, s = w(!1), { e: f, b: v } = O("action-item-dropdown"), u = S("action-item-dropdown"), k = (e, n) => {
|
|
34
|
+
(n.source === "trigger" || e) && (s.value = e);
|
|
35
|
+
}, h = A(() => p.actions.filter((e) => e.visible || F(e.visible)).map((e) => ({
|
|
36
36
|
...e,
|
|
37
37
|
onClick: (n) => {
|
|
38
|
-
e.onClick?.(n), !e.onAction && (
|
|
38
|
+
e.onClick?.(n), !e.onAction && (s.value = !1);
|
|
39
39
|
},
|
|
40
40
|
onAction: e.onAction ? async (n) => {
|
|
41
41
|
try {
|
|
42
42
|
await e.onAction?.(n);
|
|
43
43
|
} finally {
|
|
44
|
-
|
|
44
|
+
s.value = !1;
|
|
45
45
|
}
|
|
46
46
|
} : void 0
|
|
47
47
|
})));
|
|
48
|
-
return (e, n) => (t(), r(o(
|
|
49
|
-
open:
|
|
50
|
-
trigger:
|
|
51
|
-
placement:
|
|
52
|
-
class:
|
|
53
|
-
onOpenChange:
|
|
48
|
+
return (e, n) => (t(), r(o(L), {
|
|
49
|
+
open: s.value,
|
|
50
|
+
trigger: l.trigger,
|
|
51
|
+
placement: l.placement,
|
|
52
|
+
class: m(o(u)),
|
|
53
|
+
onOpenChange: k
|
|
54
54
|
}, {
|
|
55
|
-
overlay:
|
|
56
|
-
|
|
57
|
-
default:
|
|
58
|
-
(t(!0), N
|
|
59
|
-
key:
|
|
60
|
-
class:
|
|
55
|
+
overlay: i(() => [
|
|
56
|
+
g(o(V), null, {
|
|
57
|
+
default: i(() => [
|
|
58
|
+
(t(!0), P(N, null, $(h.value, (a, C) => (t(), r(o(z), {
|
|
59
|
+
key: C,
|
|
60
|
+
class: m([o(u), o(f)("item")])
|
|
61
61
|
}, {
|
|
62
|
-
default:
|
|
63
|
-
|
|
62
|
+
default: i(() => [
|
|
63
|
+
a.modalProps ? (t(), r(R, c({
|
|
64
64
|
key: 0,
|
|
65
65
|
ref_for: !0
|
|
66
|
-
},
|
|
66
|
+
}, a), null, 16)) : a.popconfirmProps ? (t(), r(U, c({
|
|
67
67
|
key: 1,
|
|
68
68
|
ref_for: !0
|
|
69
|
-
},
|
|
69
|
+
}, a), null, 16)) : (t(), r(y, c({
|
|
70
70
|
key: 2,
|
|
71
71
|
ref_for: !0
|
|
72
|
-
},
|
|
72
|
+
}, a), null, 16))
|
|
73
73
|
]),
|
|
74
74
|
_: 2
|
|
75
75
|
}, 1032, ["class"]))), 128))
|
|
@@ -77,19 +77,19 @@ const oe = /* @__PURE__ */ C({
|
|
|
77
77
|
_: 1
|
|
78
78
|
})
|
|
79
79
|
]),
|
|
80
|
-
default:
|
|
81
|
-
|
|
82
|
-
class:
|
|
80
|
+
default: i(() => [
|
|
81
|
+
d("span", {
|
|
82
|
+
class: m(o(v)())
|
|
83
83
|
}, [
|
|
84
|
-
|
|
85
|
-
default:
|
|
84
|
+
g(y, B(b(o(M)(p, ["actions", "trigger", "placement", "text"]))), {
|
|
85
|
+
default: i(() => [
|
|
86
86
|
I(e.$slots, "default", {}, () => [
|
|
87
|
-
(t(), r(
|
|
87
|
+
(t(), r(x(() => l.text)))
|
|
88
88
|
]),
|
|
89
|
-
|
|
90
|
-
class:
|
|
89
|
+
d("span", {
|
|
90
|
+
class: m(o(f)("icon"))
|
|
91
91
|
}, [
|
|
92
|
-
|
|
92
|
+
l.showIcon ? (t(), r(o(E), { key: 0 })) : D("", !0)
|
|
93
93
|
], 2)
|
|
94
94
|
]),
|
|
95
95
|
_: 3
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as g, ref as C, onMounted as V, createElementBlock as
|
|
1
|
+
import { defineComponent as g, ref as C, onMounted as V, createElementBlock as a, openBlock as o, Fragment as l, unref as e, createTextVNode as m, toDisplayString as d, createBlock as c, mergeProps as B } from "vue";
|
|
2
2
|
import { Spin as O, CheckboxGroup as T } from "@aplus-frontend/antdv";
|
|
3
|
-
import { isFunction as q, isNil as U, omit as
|
|
3
|
+
import { isFunction as q, isNil as U, omit as F } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "../../hooks/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { getOptionValue as
|
|
6
|
+
import N from "../hooks/use-options.mjs";
|
|
7
|
+
import S from "../style/index.mjs";
|
|
8
|
+
import { getOptionValue as A, getOptionLabel as _ } from "./helper.mjs";
|
|
9
9
|
import { useNamespace as j } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
import { useControllableValue as z } from "../../hooks/useControllableValue.mjs";
|
|
11
11
|
const Q = /* @__PURE__ */ g({
|
|
@@ -30,10 +30,10 @@ const Q = /* @__PURE__ */ g({
|
|
|
30
30
|
vertical: { type: Boolean }
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:value"],
|
|
33
|
-
setup(
|
|
34
|
-
const v = f, t =
|
|
33
|
+
setup(i, { emit: f }) {
|
|
34
|
+
const v = f, t = i, { options: u, updateOptions: y } = N(t), { b: x, m: k } = j("field-checkbox"), h = S("field"), n = C(!1);
|
|
35
35
|
V(() => {
|
|
36
|
-
q(t.request) && (n.value = !0, t.request().then((
|
|
36
|
+
q(t.request) && (n.value = !0, t.request().then((p) => y(p)).finally(() => {
|
|
37
37
|
n.value = !1;
|
|
38
38
|
}));
|
|
39
39
|
});
|
|
@@ -44,19 +44,19 @@ const Q = /* @__PURE__ */ g({
|
|
|
44
44
|
defaultValue: []
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
|
-
return (
|
|
48
|
-
e(U)(e(r)) ? (o(), l
|
|
49
|
-
|
|
50
|
-
], 64)) : (o(), l
|
|
51
|
-
|
|
47
|
+
return (p, D) => i.mode === "read" ? (o(), a(l, { key: 0 }, [
|
|
48
|
+
e(U)(e(r)) ? (o(), a(l, { key: 0 }, [
|
|
49
|
+
m(d(t.emptyText), 1)
|
|
50
|
+
], 64)) : (o(), a(l, { key: 1 }, [
|
|
51
|
+
m(d(e(u)?.filter((s) => e(r).indexOf(e(A)(s)) > -1).map((s) => e(_)(s)).join("、") || t.emptyText), 1)
|
|
52
52
|
], 64))
|
|
53
|
-
], 64)) : (o(), l
|
|
54
|
-
n.value ? (o(),
|
|
53
|
+
], 64)) : (o(), a(l, { key: 1 }, [
|
|
54
|
+
n.value ? (o(), c(e(O), {
|
|
55
55
|
key: 0,
|
|
56
56
|
size: "small"
|
|
57
|
-
})) : (o(),
|
|
57
|
+
})) : (o(), c(e(T), B(
|
|
58
58
|
{ key: 1 },
|
|
59
|
-
e(
|
|
59
|
+
e(F)(t, [
|
|
60
60
|
"onUpdate:value",
|
|
61
61
|
"value",
|
|
62
62
|
"request",
|
|
@@ -64,9 +64,9 @@ const Q = /* @__PURE__ */ g({
|
|
|
64
64
|
"emptyText"
|
|
65
65
|
]),
|
|
66
66
|
{
|
|
67
|
-
options: e(
|
|
67
|
+
options: e(u),
|
|
68
68
|
value: e(r),
|
|
69
|
-
class: [e(
|
|
69
|
+
class: [e(x)(), i.vertical ? e(k)("vertical") : null, e(h)],
|
|
70
70
|
"onUpdate:value": e(b)
|
|
71
71
|
}
|
|
72
72
|
), null, 16, ["options", "value", "class", "onUpdate:value"]))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isNil as
|
|
3
|
-
import { getOptionValue as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as m, createElementBlock as o, unref as a, openBlock as l, Fragment as n, createTextVNode as i, toDisplayString as d } from "vue";
|
|
2
|
+
import { isNil as r } from "lodash-unified";
|
|
3
|
+
import { getOptionValue as u, getOptionLabel as f } from "./helper.mjs";
|
|
4
|
+
const v = /* @__PURE__ */ m({
|
|
5
5
|
name: "ApFieldCheckboxRead",
|
|
6
6
|
__name: "read",
|
|
7
7
|
props: {
|
|
@@ -21,14 +21,14 @@ const g = /* @__PURE__ */ r({
|
|
|
21
21
|
request: {},
|
|
22
22
|
vertical: { type: Boolean }
|
|
23
23
|
},
|
|
24
|
-
setup(
|
|
25
|
-
return (
|
|
26
|
-
|
|
24
|
+
setup(e) {
|
|
25
|
+
return (p, c) => a(r)(e.value) ? (l(), o(n, { key: 0 }, [
|
|
26
|
+
i(d(e.emptyText), 1)
|
|
27
27
|
], 64)) : (l(), o(n, { key: 1 }, [
|
|
28
|
-
|
|
28
|
+
i(d(e.options?.filter((t) => e.value.indexOf(a(u)(t)) > -1).map((t) => a(f)(t)).join("、") || e.emptyText), 1)
|
|
29
29
|
], 64));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
v as default
|
|
34
34
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as E, computed as r, unref as
|
|
1
|
+
import { defineComponent as E, computed as r, unref as o, createElementBlock as g, createBlock as h, openBlock as i, Fragment as k, createTextVNode as w, toDisplayString as b, normalizeStyle as N, withCtx as s, createVNode as P, createCommentVNode as j, isRef as I, renderList as C, mergeProps as U, createSlots as H, renderSlot as K, normalizeProps as W, guardReactiveProps as $ } from "vue";
|
|
2
2
|
import { InputGroup as G, FormItemRest as L, Select as Y, SelectOption as Z, DatePicker as q } from "@aplus-frontend/antdv";
|
|
3
3
|
import { getTimeFormatToZone as J } from "@aplus-frontend/utils";
|
|
4
4
|
import u from "dayjs";
|
|
5
|
-
import { isNil as
|
|
5
|
+
import { isNil as O, omit as Q } from "lodash-unified";
|
|
6
6
|
import "../../hooks/index.mjs";
|
|
7
7
|
import { useDateTimezone as X } from "../hooks/use-date-timezone.mjs";
|
|
8
8
|
import { useDefaultPlaceholder as ee } from "../hooks/use-default-placeholder.mjs";
|
|
9
|
-
import { ApFieldDatePresetFormats as oe, PRESET_FORMAT_MAP as
|
|
9
|
+
import { ApFieldDatePresetFormats as oe, PRESET_FORMAT_MAP as S, PRESET_FORMAT_PICK_MAP as te, PRESET_FORMAT_TIME_MAP as ae } from "./constant.mjs";
|
|
10
10
|
import { formatDayWithTimezone as ne } from "./helper.mjs";
|
|
11
11
|
import { useControllableValue as le } from "../../hooks/useControllableValue.mjs";
|
|
12
12
|
const he = /* @__PURE__ */ E({
|
|
@@ -92,21 +92,21 @@ const he = /* @__PURE__ */ E({
|
|
|
92
92
|
timezone: {}
|
|
93
93
|
},
|
|
94
94
|
emits: ["update:value"],
|
|
95
|
-
setup(
|
|
96
|
-
const e =
|
|
95
|
+
setup(m, { emit: T }) {
|
|
96
|
+
const e = m, F = T, { value: c, updateValue: B } = le(
|
|
97
97
|
e,
|
|
98
98
|
F
|
|
99
|
-
),
|
|
99
|
+
), A = ee("Date", e), { currentTimezone: d } = X(e), l = r(
|
|
100
100
|
() => oe.indexOf(e.format) > -1
|
|
101
|
-
),
|
|
102
|
-
() => l.value ?
|
|
103
|
-
),
|
|
104
|
-
if (
|
|
101
|
+
), R = r(() => e.shownFormat ? e.shownFormat : l.value ? S[e.format] : e.format), p = r(
|
|
102
|
+
() => l.value ? S[e.format] : e.format
|
|
103
|
+
), v = r(() => {
|
|
104
|
+
if (O(o(c)))
|
|
105
105
|
return;
|
|
106
|
-
let
|
|
107
|
-
return e.timezone && (
|
|
108
|
-
}),
|
|
109
|
-
const
|
|
106
|
+
let t = u(o(c));
|
|
107
|
+
return e.timezone && (t = u(J(o(c), d.value))), t;
|
|
108
|
+
}), x = r(() => o(l) ? e.picker ?? te[e.format] : e.picker), M = r(() => {
|
|
109
|
+
const t = o(l) ? ae[e.format] : {};
|
|
110
110
|
return {
|
|
111
111
|
...Q(e, [
|
|
112
112
|
"value",
|
|
@@ -117,43 +117,43 @@ const he = /* @__PURE__ */ E({
|
|
|
117
117
|
"onUpdate:value",
|
|
118
118
|
"mode"
|
|
119
119
|
]),
|
|
120
|
-
placeholder:
|
|
121
|
-
...
|
|
120
|
+
placeholder: o(A),
|
|
121
|
+
...t
|
|
122
122
|
};
|
|
123
|
-
}),
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
126
|
-
|
|
123
|
+
}), y = (t, n, a = !0) => ne(d.value)(t, n, a);
|
|
124
|
+
function _(t) {
|
|
125
|
+
if (O(t)) {
|
|
126
|
+
B(null);
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
|
-
const n = u(
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
const n = u(t);
|
|
130
|
+
B(
|
|
131
|
+
y(
|
|
132
132
|
n,
|
|
133
|
-
|
|
133
|
+
o(l) ? o(p) : void 0,
|
|
134
134
|
e.formatBegins
|
|
135
135
|
)
|
|
136
136
|
);
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
const a = u(
|
|
138
|
+
function D(t, n) {
|
|
139
|
+
const a = u(t), f = t ? y(
|
|
140
140
|
a,
|
|
141
|
-
|
|
141
|
+
o(l) ? o(p) : void 0,
|
|
142
142
|
e.formatBegins
|
|
143
143
|
) : null;
|
|
144
|
-
e.onChange?.(
|
|
144
|
+
e.onChange?.(f, n);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const n = u(
|
|
146
|
+
function V(t) {
|
|
147
|
+
const n = u(t), a = t ? y(
|
|
148
148
|
n,
|
|
149
|
-
|
|
149
|
+
o(l) ? o(p) : void 0,
|
|
150
150
|
e.formatBegins
|
|
151
151
|
) : null;
|
|
152
152
|
e.onOk?.(a);
|
|
153
153
|
}
|
|
154
|
-
return (
|
|
155
|
-
|
|
156
|
-
], 64)) : (i(),
|
|
154
|
+
return (t, n) => m.mode === "read" ? (i(), g(k, { key: 0 }, [
|
|
155
|
+
w(b(v.value ? o(u)(v.value).format(p.value) : m.emptyText), 1)
|
|
156
|
+
], 64)) : (i(), h(o(G), {
|
|
157
157
|
key: 1,
|
|
158
158
|
compact: "",
|
|
159
159
|
style: N({
|
|
@@ -161,24 +161,24 @@ const he = /* @__PURE__ */ E({
|
|
|
161
161
|
})
|
|
162
162
|
}, {
|
|
163
163
|
default: s(() => [
|
|
164
|
-
|
|
164
|
+
P(o(L), null, {
|
|
165
165
|
default: s(() => [
|
|
166
|
-
Array.isArray(e.timezone) && e.timezone.length ? (i(),
|
|
166
|
+
Array.isArray(e.timezone) && e.timezone.length ? (i(), h(o(Y), {
|
|
167
167
|
key: 0,
|
|
168
|
-
value:
|
|
168
|
+
value: o(d),
|
|
169
169
|
"onUpdate:value": n[0] || (n[0] = (a) => I(d) ? d.value = a : null),
|
|
170
170
|
"default-active-first-option": "",
|
|
171
171
|
"dropdown-match-select-width": !1,
|
|
172
172
|
style: { "max-width": "50%" },
|
|
173
|
-
disabled:
|
|
173
|
+
disabled: m.disabled
|
|
174
174
|
}, {
|
|
175
175
|
default: s(() => [
|
|
176
|
-
(i(!0),
|
|
176
|
+
(i(!0), g(k, null, C(e.timezone, (a) => (i(), h(o(Z), {
|
|
177
177
|
key: a?.value,
|
|
178
178
|
value: a?.value
|
|
179
179
|
}, {
|
|
180
180
|
default: s(() => [
|
|
181
|
-
|
|
181
|
+
w(b(a?.label ?? a?.value), 1)
|
|
182
182
|
]),
|
|
183
183
|
_: 2
|
|
184
184
|
}, 1032, ["value"]))), 128))
|
|
@@ -188,18 +188,18 @@ const he = /* @__PURE__ */ E({
|
|
|
188
188
|
]),
|
|
189
189
|
_: 1
|
|
190
190
|
}),
|
|
191
|
-
|
|
192
|
-
value:
|
|
193
|
-
format:
|
|
194
|
-
picker:
|
|
195
|
-
"onUpdate:value":
|
|
196
|
-
onChange:
|
|
197
|
-
onOk:
|
|
191
|
+
P(o(q), U(M.value, {
|
|
192
|
+
value: v.value,
|
|
193
|
+
format: R.value,
|
|
194
|
+
picker: x.value,
|
|
195
|
+
"onUpdate:value": _,
|
|
196
|
+
onChange: D,
|
|
197
|
+
onOk: V
|
|
198
198
|
}), H({ _: 2 }, [
|
|
199
|
-
|
|
200
|
-
name:
|
|
199
|
+
C(t.$slots, (a, f) => ({
|
|
200
|
+
name: f,
|
|
201
201
|
fn: s((z) => [
|
|
202
|
-
K(
|
|
202
|
+
K(t.$slots, f, W($(z || {})))
|
|
203
203
|
])
|
|
204
204
|
}))
|
|
205
205
|
]), 1040, ["value", "format", "picker"])
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, computed as t, toDisplayString as s, unref as d } from "vue";
|
|
2
2
|
import { getTimeFormatToZone as m } from "@aplus-frontend/utils";
|
|
3
3
|
import n from "dayjs";
|
|
4
4
|
import { isNil as c } from "lodash-unified";
|
|
5
5
|
import { useDateTimezone as f } from "../hooks/use-date-timezone.mjs";
|
|
6
6
|
import { ApFieldDatePresetFormats as y, PRESET_FORMAT_MAP as B } from "./constant.mjs";
|
|
7
|
-
const S = /* @__PURE__ */
|
|
7
|
+
const S = /* @__PURE__ */ i({
|
|
8
8
|
name: "ApFieldDateRead",
|
|
9
9
|
__name: "read",
|
|
10
10
|
props: {
|
|
@@ -86,18 +86,18 @@ const S = /* @__PURE__ */ u({
|
|
|
86
86
|
formatBegins: { type: Boolean },
|
|
87
87
|
timezone: {}
|
|
88
88
|
},
|
|
89
|
-
setup(
|
|
90
|
-
const e =
|
|
89
|
+
setup(a) {
|
|
90
|
+
const e = a, { currentTimezone: r } = f(e), p = t(
|
|
91
91
|
() => y.indexOf(e.format) > -1
|
|
92
|
-
),
|
|
92
|
+
), u = t(
|
|
93
93
|
() => p.value ? B[e.format] : e.format
|
|
94
|
-
),
|
|
94
|
+
), l = t(() => {
|
|
95
95
|
if (c(e.value))
|
|
96
96
|
return;
|
|
97
97
|
let o = n(e.value);
|
|
98
98
|
return e.timezone && (o = n(m(e.value, r.value))), o;
|
|
99
99
|
});
|
|
100
|
-
return (o, h) =>
|
|
100
|
+
return (o, h) => s(l.value ? d(n)(l.value).format(u.value) : a.emptyText);
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
export {
|