@aplus-frontend/ui 7.13.8 → 7.13.9
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 +12 -2
- package/es/src/ap-field/select/index.vue.mjs +127 -124
- 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 +53 -36
- 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/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 +52 -51
- 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.vue.d.ts +1 -0
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +31 -30
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +41 -40
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +14 -14
- package/es/src/ap-table/style/setting.mjs +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/locale/lang/en.mjs +2 -1
- package/es/src/locale/lang/zh-cn.mjs +2 -1
- 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 +12 -2
- 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/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.vue.d.ts +1 -0
- 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/style/setting.js +1 -1
- 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/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.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,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { SMALL_HEIGHT as
|
|
3
|
-
import { useAgGridModalInject as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as h, useTemplateRef as g, computed as p, ref as f, watch as d, 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 l, LARGER_HEIGHT as _ } from "../constants.mjs";
|
|
3
|
+
import { useAgGridModalInject as L } from "../hooks/use-ag-grid-instance.mjs";
|
|
4
|
+
const k = /* @__PURE__ */ h({
|
|
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(c) {
|
|
11
|
+
const u = c, t = g("wrapperContainer"), s = L(), r = p(
|
|
12
|
+
() => s?.dataSourceLength?.value || 0
|
|
13
|
+
), i = f(l), a = () => {
|
|
14
|
+
const e = t.value?.clientHeight, o = t.value?.querySelector(
|
|
15
15
|
".ag-body.ag-layout-normal"
|
|
16
16
|
)?.clientHeight;
|
|
17
|
-
let
|
|
18
|
-
!e || !
|
|
17
|
+
let n = 0;
|
|
18
|
+
!e || !o ? n = 0 : n = e - o, r.value * u.rowHeight > 480 - n && (i.value = _);
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
() =>
|
|
20
|
+
return d(
|
|
21
|
+
() => r.value,
|
|
22
22
|
() => {
|
|
23
|
-
|
|
23
|
+
a();
|
|
24
24
|
}
|
|
25
25
|
), m(() => {
|
|
26
|
-
|
|
27
|
-
}), (e,
|
|
26
|
+
a();
|
|
27
|
+
}), (e, o) => (v(), H("div", {
|
|
28
28
|
ref_key: "wrapperContainer",
|
|
29
|
-
ref:
|
|
29
|
+
ref: t,
|
|
30
30
|
style: y({
|
|
31
|
-
minHeight:
|
|
32
|
-
height:
|
|
31
|
+
minHeight: e.height ? "unset" : w(l),
|
|
32
|
+
height: e.height ?? i.value,
|
|
33
33
|
display: "flex",
|
|
34
34
|
flexDirection: "column"
|
|
35
35
|
})
|
|
@@ -39,5 +39,5 @@ const _ = /* @__PURE__ */ s({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
export {
|
|
42
|
-
|
|
42
|
+
k as default
|
|
43
43
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as N, useSlots as T, createVNode as
|
|
2
|
-
import { Descriptions as
|
|
3
|
-
import { get as
|
|
1
|
+
import { defineComponent as N, useSlots as T, createVNode as l, createTextVNode as D, Fragment as V, shallowRef as w, watch as E, createElementBlock as _, openBlock as k, normalizeStyle as A, normalizeClass as B, unref as n, mergeProps as I } from "vue";
|
|
2
|
+
import { Descriptions as R } from "@aplus-frontend/antdv";
|
|
3
|
+
import { get as p } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import "./help-message/index.vue.mjs";
|
|
6
|
-
import { mixinsAttachmentExtraProps as
|
|
7
|
-
import
|
|
8
|
-
import { useGlobalConfig as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
6
|
+
import { mixinsAttachmentExtraProps as j, transformValue as z, isEmptyWithType as F } from "./helper.mjs";
|
|
7
|
+
import G from "./style/index.mjs";
|
|
8
|
+
import { useGlobalConfig as u } from "../../config-provider/hooks/use-global-config.mjs";
|
|
9
|
+
import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
import L from "./help-message/index.vue2.mjs";
|
|
11
|
+
const Z = /* @__PURE__ */ N({
|
|
12
12
|
name: "ApDescriptions",
|
|
13
13
|
__name: "ap-descriptions",
|
|
14
14
|
props: {
|
|
@@ -20,30 +20,30 @@ const _ = /* @__PURE__ */ N({
|
|
|
20
20
|
},
|
|
21
21
|
className: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const o =
|
|
23
|
+
setup(f) {
|
|
24
|
+
const o = f, c = u("apDescriptions"), d = u("downloadCenterTriggerConfig"), {
|
|
25
25
|
b: y,
|
|
26
26
|
be: m
|
|
27
|
-
} =
|
|
27
|
+
} = M("ap-descriptions"), b = G("ap-descriptions"), g = T(), S = (e = {}) => {
|
|
28
28
|
let r = "";
|
|
29
29
|
return o.descriptionsProps?.layout === "vertical" && (r = "start"), {
|
|
30
30
|
justifyContent: r,
|
|
31
31
|
...e
|
|
32
32
|
};
|
|
33
|
-
},
|
|
34
|
-
const r =
|
|
33
|
+
}, s = (e) => {
|
|
34
|
+
const r = p(o.dataSource, e.field);
|
|
35
35
|
if (e.customRender)
|
|
36
36
|
return e.customRender(o.dataSource);
|
|
37
|
-
e.valueType === "attachment" && (e.extraProps =
|
|
38
|
-
fromConfig:
|
|
37
|
+
e.valueType === "attachment" && (e.extraProps = j(e.extraProps, {
|
|
38
|
+
fromConfig: c.value?.downloadFile,
|
|
39
39
|
fromGlobal: d.value?.trigger
|
|
40
40
|
}));
|
|
41
41
|
const t = e.format ? e.format(r, o.dataSource || {}) : r;
|
|
42
|
-
return
|
|
42
|
+
return z({
|
|
43
43
|
value: t,
|
|
44
44
|
record: o.dataSource
|
|
45
45
|
}, e);
|
|
46
|
-
}, v = (e) => e.valueType === "text" && !!e.extraProps?.ellipsis,
|
|
46
|
+
}, v = (e) => e.valueType === "text" && !!e.extraProps?.ellipsis, C = (e, r) => {
|
|
47
47
|
if (e.visible != null) {
|
|
48
48
|
if (typeof e.visible == "boolean")
|
|
49
49
|
return e.visible;
|
|
@@ -54,12 +54,12 @@ const _ = /* @__PURE__ */ N({
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
return !0;
|
|
57
|
-
},
|
|
57
|
+
}, P = (e, r, t) => e.valueType === "empty" ? null : F(p(t, e.field), e) ? l("span", null, [D("--")]) : e.contentSlotName ? g?.[e.contentSlotName]?.({
|
|
58
58
|
index: r,
|
|
59
59
|
record: t,
|
|
60
|
-
item:
|
|
61
|
-
}) :
|
|
62
|
-
label: t.label &&
|
|
60
|
+
item: s(e)
|
|
61
|
+
}) : l(V, null, [e.prefix, s(e), e.suffix]), x = (e = [], r) => e.filter((t) => C(t, r)).map((t, a) => ({
|
|
62
|
+
label: t.label && l(L, {
|
|
63
63
|
helpMessage: t.helpMessage,
|
|
64
64
|
label: t.label
|
|
65
65
|
}, null),
|
|
@@ -67,26 +67,26 @@ const _ = /* @__PURE__ */ N({
|
|
|
67
67
|
style: t.style,
|
|
68
68
|
contentStyle: t.contentStyle,
|
|
69
69
|
labelStyle: t.labelStyle,
|
|
70
|
-
key: t.field?.toString() || "empty" +
|
|
70
|
+
key: t.field?.toString() || "empty" + a,
|
|
71
71
|
class: v(t) ? m("item", "ellipsis") : "",
|
|
72
|
-
children:
|
|
73
|
-
})),
|
|
72
|
+
children: P(t, a, r)
|
|
73
|
+
})), i = w([]);
|
|
74
74
|
return E([() => o.schemas, () => o.dataSource], () => {
|
|
75
|
-
|
|
75
|
+
i.value = x(o.schemas, o.dataSource);
|
|
76
76
|
}, {
|
|
77
77
|
immediate: !0,
|
|
78
78
|
deep: !0
|
|
79
|
-
}), (e, r) => (
|
|
80
|
-
class:
|
|
81
|
-
style:
|
|
82
|
-
}, [n(
|
|
79
|
+
}), (e, r) => (k(), _("div", {
|
|
80
|
+
class: B([e.className, n(y)(), n(b)]),
|
|
81
|
+
style: A(e.style)
|
|
82
|
+
}, [l(n(R), I(e.descriptionsProps, {
|
|
83
83
|
"label-style": S({
|
|
84
|
-
...
|
|
84
|
+
...e.descriptionsProps?.labelStyle || {}
|
|
85
85
|
}),
|
|
86
|
-
items:
|
|
86
|
+
items: i.value
|
|
87
87
|
}), null, 16, ["label-style", "items"])], 6));
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
Z as default
|
|
92
92
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as r, computed as m, createVNode as
|
|
1
|
+
import { defineComponent as r, computed as m, createVNode as t, createElementBlock as d, openBlock as o, createBlock as l, createCommentVNode as u, resolveDynamicComponent as f, unref as s, withCtx as h } from "vue";
|
|
2
2
|
import { QuestionCircleOutlined as b } from "@ant-design/icons-vue";
|
|
3
|
-
import { TypographyText as
|
|
3
|
+
import { TypographyText as _, Tooltip as y } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
|
-
import { useNamespace as
|
|
5
|
+
import { useNamespace as x } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
6
|
const C = {
|
|
7
7
|
style: {
|
|
8
8
|
display: "inline-flex"
|
|
@@ -13,29 +13,29 @@ const C = {
|
|
|
13
13
|
helpMessage: {},
|
|
14
14
|
label: {}
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const n =
|
|
18
|
-
m:
|
|
19
|
-
} =
|
|
16
|
+
setup(i) {
|
|
17
|
+
const n = i, {
|
|
18
|
+
m: p
|
|
19
|
+
} = x("ap-descriptions"), a = m(() => {
|
|
20
20
|
const e = n.label;
|
|
21
|
-
return typeof e != "object" ?
|
|
22
|
-
class:
|
|
21
|
+
return typeof e != "object" ? t("div", {
|
|
22
|
+
class: p("item-label"),
|
|
23
23
|
style: {
|
|
24
24
|
maxWidth: "var(--ap-descriptions-item-label-width, auto)"
|
|
25
25
|
}
|
|
26
|
-
}, [
|
|
26
|
+
}, [t(_, {
|
|
27
27
|
ellipsis: {
|
|
28
28
|
tooltip: e
|
|
29
29
|
},
|
|
30
30
|
content: e
|
|
31
31
|
}, null)]) : e;
|
|
32
32
|
});
|
|
33
|
-
return (e,
|
|
33
|
+
return (e, c) => (o(), d("span", C, [(o(), l(f(a.value))), e.helpMessage ? (o(), l(s(y), {
|
|
34
34
|
key: 0,
|
|
35
35
|
placement: "topLeft",
|
|
36
|
-
title:
|
|
36
|
+
title: e.helpMessage
|
|
37
37
|
}, {
|
|
38
|
-
default: h(() => [
|
|
38
|
+
default: h(() => [t(s(b), {
|
|
39
39
|
class: "ap-descriptions-item-content__help"
|
|
40
40
|
})]),
|
|
41
41
|
_: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as I, ref as P, useSlots as T, computed as l, unref as t, createBlock as j, openBlock as n, mergeProps as V, withCtx as s, createElementVNode as
|
|
1
|
+
import { defineComponent as I, ref as P, useSlots as T, computed as l, unref as t, createBlock as j, openBlock as n, mergeProps as V, withCtx as s, createElementVNode as C, normalizeClass as D, createElementBlock as p, createCommentVNode as m, createVNode as r, renderSlot as M, createSlots as U, toDisplayString as b, createTextVNode as E, withModifiers as G } from "vue";
|
|
2
2
|
import { LoadingOutlined as R } from "@ant-design/icons-vue";
|
|
3
|
-
import { Button as W, Tooltip as
|
|
3
|
+
import { Button as W, Tooltip as k } from "@aplus-frontend/antdv";
|
|
4
4
|
import { IconApAdLineDownload as $ } from "@aplus-frontend/icon";
|
|
5
5
|
import { isArray as q, omit as H } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
@@ -9,7 +9,7 @@ import { useOssInit as K } from "./hooks/index.mjs";
|
|
|
9
9
|
import { useStyle as Q } from "./hooks/useStyle.mjs";
|
|
10
10
|
import { getFileInfo as f } from "./utils/getFileInfo.mjs";
|
|
11
11
|
import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
-
import { useGlobalConfig as
|
|
12
|
+
import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
13
|
const Y = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "spin"
|
|
@@ -47,12 +47,12 @@ const Y = {
|
|
|
47
47
|
preview: { type: Boolean, default: !1 }
|
|
48
48
|
},
|
|
49
49
|
emits: ["downloadCallback"],
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
50
|
+
setup(_, { emit: A }) {
|
|
51
|
+
const u = A, c = P(!1), { lang: B, t: g } = X(), O = T(), z = l(() => B.value === "zh-cn" ? "zh_CN" : "en_US"), e = _, i = h("apUpload"), v = h(
|
|
52
52
|
"downloadCenterTriggerConfig"
|
|
53
|
-
),
|
|
53
|
+
), w = l(() => e.disabled), x = l(() => e.size), d = l(
|
|
54
54
|
() => e.preview && (q(e.fileName) ? e.fileName.length === 1 : !0)
|
|
55
|
-
), { getInnerWrapperClass: F } = Q(
|
|
55
|
+
), { getInnerWrapperClass: F } = Q(x, w), L = l(() => e.getOssAccess || i.value?.getOssAccess), S = () => {
|
|
56
56
|
const o = f(
|
|
57
57
|
e.needName ?? i?.value?.needName,
|
|
58
58
|
e.fileName
|
|
@@ -61,30 +61,30 @@ const Y = {
|
|
|
61
61
|
src: o.path,
|
|
62
62
|
fileName: o.fileName
|
|
63
63
|
});
|
|
64
|
-
},
|
|
64
|
+
}, N = async () => {
|
|
65
65
|
if (!e.disabled) {
|
|
66
66
|
c.value = !0;
|
|
67
67
|
try {
|
|
68
|
-
if (
|
|
68
|
+
if (v.value?.trigger) {
|
|
69
69
|
let a = f(
|
|
70
70
|
e.needName ?? i?.value?.needName,
|
|
71
71
|
e.fileName
|
|
72
|
-
).map((
|
|
73
|
-
objectName:
|
|
74
|
-
fileName:
|
|
72
|
+
).map((y) => ({
|
|
73
|
+
objectName: y.path,
|
|
74
|
+
fileName: y.fileName
|
|
75
75
|
}));
|
|
76
|
-
await
|
|
76
|
+
await v.value?.trigger(a), u("downloadCallback", a);
|
|
77
77
|
} else {
|
|
78
78
|
const a = await (await K(
|
|
79
79
|
L.value,
|
|
80
|
-
t(
|
|
80
|
+
t(z)
|
|
81
81
|
)).downloadFile(
|
|
82
82
|
f(
|
|
83
83
|
e.needName ?? i?.value?.needName,
|
|
84
84
|
e.fileName
|
|
85
85
|
)
|
|
86
86
|
);
|
|
87
|
-
|
|
87
|
+
u("downloadCallback", a);
|
|
88
88
|
}
|
|
89
89
|
} catch (o) {
|
|
90
90
|
console.error(o);
|
|
@@ -96,11 +96,11 @@ const Y = {
|
|
|
96
96
|
return (o, a) => (n(), j(t(W), V(t(H)(e, ["getOssAccess", "fileName", "needName"]), {
|
|
97
97
|
type: e.type,
|
|
98
98
|
size: e.size,
|
|
99
|
-
disabled:
|
|
100
|
-
onClick: a[0] || (a[0] = () => (d.value ? S :
|
|
99
|
+
disabled: w.value,
|
|
100
|
+
onClick: a[0] || (a[0] = () => (d.value ? S : N)())
|
|
101
101
|
}), {
|
|
102
102
|
default: s(() => [
|
|
103
|
-
|
|
103
|
+
C("div", {
|
|
104
104
|
class: D(t(F))
|
|
105
105
|
}, [
|
|
106
106
|
c.value ? (n(), p("span", Y, [
|
|
@@ -109,16 +109,16 @@ const Y = {
|
|
|
109
109
|
t(O).icon ? (n(), p("span", Z, [
|
|
110
110
|
M(o.$slots, "icon")
|
|
111
111
|
])) : m("", !0),
|
|
112
|
-
r(t(
|
|
112
|
+
r(t(k), null, U({
|
|
113
113
|
default: s(() => [
|
|
114
|
-
|
|
114
|
+
C("span", ee, b(o.text), 1)
|
|
115
115
|
]),
|
|
116
116
|
_: 2
|
|
117
117
|
}, [
|
|
118
118
|
d.value ? {
|
|
119
119
|
name: "title",
|
|
120
120
|
fn: s(() => [
|
|
121
|
-
E(
|
|
121
|
+
E(b(t(g)("ap.apAppendix.previewFile")), 1)
|
|
122
122
|
]),
|
|
123
123
|
key: "0"
|
|
124
124
|
} : void 0
|
|
@@ -126,10 +126,10 @@ const Y = {
|
|
|
126
126
|
d.value ? (n(), p("span", {
|
|
127
127
|
key: 2,
|
|
128
128
|
class: "preview-icon",
|
|
129
|
-
onClick: G(
|
|
129
|
+
onClick: G(N, ["stop"])
|
|
130
130
|
}, [
|
|
131
|
-
r(t(
|
|
132
|
-
title: t(
|
|
131
|
+
r(t(k), {
|
|
132
|
+
title: t(g)("ap.apAppendix.downloadFile")
|
|
133
133
|
}, {
|
|
134
134
|
default: s(() => [
|
|
135
135
|
r(t($))
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as j, computed as
|
|
1
|
+
import { defineComponent as j, computed as c, ref as f, watch as x, nextTick as m, onMounted as G, createElementBlock as i, createCommentVNode as C, openBlock as l, normalizeClass as n, unref as t, createVNode as S, withCtx as y, createElementVNode as $, normalizeStyle as h, renderSlot as L, createBlock as E, toDisplayString as u, resolveDynamicComponent as z, Fragment as A, renderList as J, createTextVNode as P } from "vue";
|
|
2
2
|
import { DownOutlined as Q } from "@ant-design/icons-vue";
|
|
3
3
|
import { Alert as U, Tooltip as X } from "@aplus-frontend/antdv";
|
|
4
|
-
import { isNil as Y, isString as
|
|
4
|
+
import { isNil as Y, isString as B } from "lodash-unified";
|
|
5
5
|
import { ApActionItem as Z } from "../../ap-action/index.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import _ from "./style/index.mjs";
|
|
8
8
|
import { useLocale as ee } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
9
|
import { useNamespace as te } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
|
-
const le = ["onClick"],
|
|
10
|
+
const le = ["onClick"], fe = /* @__PURE__ */ j({
|
|
11
11
|
__name: "ApExpandAlert",
|
|
12
12
|
props: {
|
|
13
13
|
type: { default: "warning" },
|
|
@@ -26,66 +26,66 @@ const le = ["onClick"], pe = /* @__PURE__ */ j({
|
|
|
26
26
|
afterClose: {}
|
|
27
27
|
},
|
|
28
28
|
emits: ["choose", "expand", "close"],
|
|
29
|
-
setup(
|
|
30
|
-
const v = R,
|
|
31
|
-
if (
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
29
|
+
setup(D, { expose: V, emit: R }) {
|
|
30
|
+
const v = R, p = D, { t: N } = ee(), q = c(() => {
|
|
31
|
+
if (p.type != "card")
|
|
32
|
+
return p.type;
|
|
33
|
+
}), a = f(""), d = f(null), F = c(() => ({
|
|
34
34
|
fontWeight: "400",
|
|
35
35
|
wordBreak: "break-all",
|
|
36
36
|
overflow: "hidden",
|
|
37
37
|
display: "-webkit-box",
|
|
38
|
-
webkitLineClamp:
|
|
38
|
+
webkitLineClamp: a.value,
|
|
39
39
|
webkitBoxOrient: "vertical",
|
|
40
40
|
lineHeight: "18px"
|
|
41
41
|
}));
|
|
42
42
|
function M() {
|
|
43
|
-
|
|
43
|
+
a.value === "1" ? (a.value = "", v("expand", "expand")) : (a.value = "1", v("expand", "collapse"));
|
|
44
44
|
}
|
|
45
|
-
const O =
|
|
46
|
-
function w(
|
|
47
|
-
|
|
45
|
+
const O = c(() => a.value === "1" ? N("ap.apExpandAlert.expand") : N("ap.apExpandAlert.collapse")), k = f(!0), T = c(() => a.value !== "1");
|
|
46
|
+
function w(e) {
|
|
47
|
+
e ? a.value = "" : a.value = "1";
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
function K(
|
|
51
|
-
v("close",
|
|
49
|
+
const H = f(!1);
|
|
50
|
+
function K(e) {
|
|
51
|
+
v("close", e), H.value = !0;
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
() =>
|
|
53
|
+
x(
|
|
54
|
+
() => p.data,
|
|
55
55
|
() => {
|
|
56
|
-
|
|
57
|
-
if (
|
|
58
|
-
const
|
|
59
|
-
parseInt(
|
|
56
|
+
a.value = "", m(() => {
|
|
57
|
+
if (d.value) {
|
|
58
|
+
const e = Number(d.value.clientHeight), r = Number(
|
|
59
|
+
parseInt(d.value.style.lineHeight)
|
|
60
60
|
);
|
|
61
|
-
|
|
61
|
+
e < r * Number(p.rows) && T.value ? k.value = !1 : k.value = !0;
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
immediate: !0
|
|
67
67
|
}
|
|
68
|
-
),
|
|
69
|
-
() =>
|
|
70
|
-
(
|
|
71
|
-
|
|
72
|
-
w(
|
|
73
|
-
}) :
|
|
74
|
-
w(
|
|
68
|
+
), x(
|
|
69
|
+
() => p.defaultExpand,
|
|
70
|
+
(e) => {
|
|
71
|
+
e ? m(() => {
|
|
72
|
+
w(e);
|
|
73
|
+
}) : m(() => {
|
|
74
|
+
w(e);
|
|
75
75
|
});
|
|
76
76
|
},
|
|
77
77
|
{ immediate: !0 }
|
|
78
78
|
), G(() => {
|
|
79
|
-
|
|
80
|
-
() =>
|
|
81
|
-
(
|
|
82
|
-
Y(
|
|
79
|
+
x(
|
|
80
|
+
() => p.contentStyle,
|
|
81
|
+
(e) => {
|
|
82
|
+
Y(e.lineHeight) || m(() => {
|
|
83
83
|
const r = document.querySelector(
|
|
84
84
|
`#${b} .ant-alert-action`
|
|
85
|
-
),
|
|
85
|
+
), s = document.querySelector(
|
|
86
86
|
`#${b} .ant-alert-icon`
|
|
87
87
|
);
|
|
88
|
-
r && r.setAttribute("style", `line-height: ${
|
|
88
|
+
r && r.setAttribute("style", `line-height: ${e.lineHeight}`), s && s.setAttribute("style", `line-height: ${e.lineHeight}`);
|
|
89
89
|
});
|
|
90
90
|
},
|
|
91
91
|
{
|
|
@@ -95,85 +95,85 @@ const le = ["onClick"], pe = /* @__PURE__ */ j({
|
|
|
95
95
|
}
|
|
96
96
|
);
|
|
97
97
|
});
|
|
98
|
-
const { b:
|
|
98
|
+
const { b: I, e: o } = te("ap-expand-alert"), W = _("ap-expand-alert"), b = `${I()}-key-${Date.now()}-${(Math.random() * 1e6).toFixed(0)}`;
|
|
99
99
|
return V({
|
|
100
100
|
setExpand: w
|
|
101
|
-
}), (
|
|
101
|
+
}), (e, r) => H.value ? C("", !0) : (l(), i("div", {
|
|
102
102
|
key: 0,
|
|
103
103
|
id: b,
|
|
104
|
-
class:
|
|
104
|
+
class: n([t(I)(), t(W)])
|
|
105
105
|
}, [
|
|
106
|
-
|
|
106
|
+
S(t(U), {
|
|
107
107
|
type: q.value,
|
|
108
108
|
"show-icon": e.showIcon,
|
|
109
109
|
closable: e.closable,
|
|
110
|
-
class:
|
|
110
|
+
class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""]),
|
|
111
111
|
"after-close": e.afterClose,
|
|
112
112
|
onClose: K
|
|
113
113
|
}, {
|
|
114
|
-
action:
|
|
115
|
-
k.value ? (
|
|
114
|
+
action: y(() => [
|
|
115
|
+
k.value ? (l(), E(t(Z), {
|
|
116
116
|
key: 0,
|
|
117
117
|
size: "small",
|
|
118
118
|
style: { "font-size": "12px", "padding-left": "16px" },
|
|
119
|
-
onClick: r[0] || (r[0] = (
|
|
119
|
+
onClick: r[0] || (r[0] = (s) => M())
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
-
class:
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
class:
|
|
121
|
+
default: y(() => [
|
|
122
|
+
$("span", {
|
|
123
|
+
class: n(t(o)("expandText"))
|
|
124
|
+
}, u(O.value), 3),
|
|
125
|
+
S(t(Q), {
|
|
126
|
+
class: n(T.value ? t(o)("expandIcon") : t(o)("collapseIcon"))
|
|
127
127
|
}, null, 8, ["class"])
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
130
|
-
})) :
|
|
130
|
+
})) : C("", !0)
|
|
131
131
|
]),
|
|
132
|
-
message:
|
|
133
|
-
|
|
132
|
+
message: y(() => [
|
|
133
|
+
$("div", {
|
|
134
134
|
ref_key: "ellipsisBoxRef",
|
|
135
|
-
ref:
|
|
135
|
+
ref: d,
|
|
136
136
|
style: h({ ...F.value, ...e.contentStyle }),
|
|
137
|
-
class:
|
|
137
|
+
class: n(t(o)("alertContent"))
|
|
138
138
|
}, [
|
|
139
|
-
|
|
140
|
-
t(
|
|
139
|
+
L(e.$slots, "default", {}, () => [
|
|
140
|
+
t(B)(e.prefix) ? (l(), i("span", {
|
|
141
141
|
key: 0,
|
|
142
|
-
class:
|
|
142
|
+
class: n(t(o)("prefix")),
|
|
143
143
|
style: h(e.prefixStyle)
|
|
144
|
-
},
|
|
144
|
+
}, u(e.prefix), 7)) : (l(), E(z(e.prefix), {
|
|
145
145
|
key: 1,
|
|
146
146
|
style: h(e.prefixStyle)
|
|
147
147
|
}, null, 8, ["style"])),
|
|
148
|
-
t(
|
|
148
|
+
t(B)(e.data) ? (l(), i("span", {
|
|
149
149
|
key: 2,
|
|
150
|
-
class:
|
|
151
|
-
},
|
|
152
|
-
|
|
150
|
+
class: n(t(o)("text"))
|
|
151
|
+
}, u(e.data), 3)) : (l(!0), i(A, { key: 3 }, J(e.data, (s, g) => (l(), i(A, { key: g }, [
|
|
152
|
+
S(t(X), {
|
|
153
153
|
title: e.tipTitle ? e.tipTitle : null
|
|
154
154
|
}, {
|
|
155
|
-
default:
|
|
156
|
-
|
|
157
|
-
record:
|
|
155
|
+
default: y(() => [
|
|
156
|
+
L(e.$slots, "item", {
|
|
157
|
+
record: s,
|
|
158
158
|
index: g
|
|
159
159
|
}, () => [
|
|
160
|
-
|
|
161
|
-
class:
|
|
162
|
-
onClick: (ae) =>
|
|
163
|
-
},
|
|
160
|
+
$("span", {
|
|
161
|
+
class: n(t(o)("showItem")),
|
|
162
|
+
onClick: (ae) => e.$emit("choose", s)
|
|
163
|
+
}, u(e.mapLabel ? s[e.mapLabel] : s), 11, le)
|
|
164
164
|
])
|
|
165
165
|
]),
|
|
166
166
|
_: 2
|
|
167
167
|
}, 1032, ["title"]),
|
|
168
|
-
g !== e.data.length - 1 ? (
|
|
168
|
+
g !== e.data.length - 1 ? (l(), i("span", {
|
|
169
169
|
key: 0,
|
|
170
|
-
class:
|
|
170
|
+
class: n(t(o)("spliter")),
|
|
171
171
|
style: h(e.separatorStyle)
|
|
172
172
|
}, [
|
|
173
|
-
t(
|
|
174
|
-
P(
|
|
175
|
-
], 64)) : (
|
|
176
|
-
], 6)) :
|
|
173
|
+
t(B)(e.separator) ? (l(), i(A, { key: 0 }, [
|
|
174
|
+
P(u(e.separator), 1)
|
|
175
|
+
], 64)) : (l(), E(z(e.separator), { key: 1 }))
|
|
176
|
+
], 6)) : C("", !0)
|
|
177
177
|
], 64))), 128))
|
|
178
178
|
])
|
|
179
179
|
], 6)
|
|
@@ -184,5 +184,5 @@ const le = ["onClick"], pe = /* @__PURE__ */ j({
|
|
|
184
184
|
}
|
|
185
185
|
});
|
|
186
186
|
export {
|
|
187
|
-
|
|
187
|
+
fe as default
|
|
188
188
|
};
|