@aplus-frontend/ui 0.6.0-beta.11 → 0.6.0-beta.13
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/index.mjs +79 -77
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +1 -1
- package/es/src/ap-field/hooks/use-date-timezone.mjs +17 -8
- package/es/src/ap-form/dependency/index.vue.mjs +29 -24
- package/es/src/ap-form/interface.d.ts +3 -3
- package/es/src/ap-form/item/index.vue.mjs +39 -35
- package/es/src/ap-grid/hooks/use-render-columns.mjs +8 -8
- package/es/src/ap-grid/index.vue.mjs +2 -2
- package/es/src/ap-table/ap-table.vue2.mjs +17 -17
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +41 -44
- package/es/src/ap-table/constants.d.ts +18 -18
- package/es/src/ap-table/utils.d.ts +18 -18
- package/es/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/es/src/business/ap-copy/ApCopy.mjs +79 -0
- package/es/src/business/ap-copy/constans.d.ts +24 -0
- package/es/src/business/ap-copy/constans.mjs +25 -0
- package/es/src/business/ap-copy/index.d.ts +102 -0
- package/es/src/business/ap-copy/index.mjs +7 -0
- package/es/src/business/ap-copy/interface.d.ts +8 -0
- package/es/src/business/ap-copy/interface.mjs +1 -0
- package/es/src/business/ap-copy/style/css.d.ts +0 -0
- package/es/src/business/ap-copy/style/css.js +1 -0
- package/es/src/business/ap-copy/style/index.d.ts +0 -0
- package/es/src/business/ap-copy/style/index.js +1 -0
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +53 -53
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +23 -23
- package/es/src/business/ap-radio-group/index.d.ts +5 -0
- package/es/src/business/hooks/usePageListApGrid.d.ts +0 -2
- package/es/src/business/hooks/usePageListApGrid.mjs +48 -65
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +20 -18
- package/es/src/components.d.ts +1 -0
- package/es/src/index.mjs +58 -56
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/path-map.mjs +1 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/test/setup.d.ts +5 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/ap-field/hooks/use-date-timezone.js +1 -1
- package/lib/src/ap-form/dependency/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +3 -3
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-render-columns.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +18 -18
- package/lib/src/ap-table/utils.d.ts +18 -18
- package/lib/src/business/ap-copy/ApCopy.d.ts +52 -0
- package/lib/src/business/ap-copy/ApCopy.js +1 -0
- package/lib/src/business/ap-copy/constans.d.ts +24 -0
- package/lib/src/business/ap-copy/constans.js +1 -0
- package/lib/src/business/ap-copy/index.d.ts +102 -0
- package/lib/src/business/ap-copy/index.js +1 -0
- package/lib/src/business/ap-copy/interface.d.ts +8 -0
- package/lib/src/business/ap-copy/interface.js +1 -0
- package/lib/src/business/ap-copy/style/css.cjs +1 -0
- package/lib/src/business/ap-copy/style/css.d.ts +0 -0
- package/lib/src/business/ap-copy/style/index.cjs +1 -0
- package/lib/src/business/ap-copy/style/index.d.ts +0 -0
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +2 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +5 -0
- package/lib/src/business/hooks/usePageListApGrid.d.ts +0 -2
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/components.d.ts +1 -0
- package/lib/src/index.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/path-map.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/test/setup.d.ts +5 -0
- package/package.json +5 -8
- package/theme/antd-global-overwrite/admin/index.css +11 -9
- package/theme/antd-global-overwrite/admin/modal.css +9 -6
- package/theme/antd-global-overwrite/admin/modal.less +8 -6
- package/theme/antd-global-overwrite/admin/table.css +2 -3
- package/theme/antd-global-overwrite/admin/table.less +2 -3
- package/theme/antd-global-overwrite/aplus/index.css +11 -8
- package/theme/antd-global-overwrite/aplus/modal.css +9 -6
- package/theme/antd-global-overwrite/aplus/modal.less +8 -6
- package/theme/antd-global-overwrite/aplus/table.css +2 -2
- package/theme/antd-global-overwrite/aplus/table.less +2 -2
- package/theme/ap-action/item-dropdown.css +2 -2
- package/theme/ap-action/item.css +19 -8
- package/theme/ap-action/item.less +18 -6
- package/theme/ap-appendix/ap-appendix.css +8 -8
- package/theme/ap-appendix/ap-appendix.less +6 -6
- package/theme/ap-attachment/ap-attachment.css +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +5 -5
- package/theme/ap-batch-action/ap-batch-action.less +3 -3
- package/theme/ap-button/ap-button.css +2 -2
- package/theme/ap-card/ap-card.css +2 -2
- package/theme/ap-copy/ap-copy.css +94 -0
- package/theme/ap-copy/ap-copy.less +59 -0
- package/theme/ap-descriptions/ap-descriptions.css +6 -6
- package/theme/ap-descriptions/ap-descriptions.less +4 -4
- package/theme/ap-download/ap-download.css +2 -2
- package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
- package/theme/ap-field/checkbox.css +2 -2
- package/theme/ap-field/index.css +2 -2
- package/theme/ap-field/number.css +2 -2
- package/theme/ap-field/radio.css +2 -2
- package/theme/ap-field/text-area.css +2 -2
- package/theme/ap-form/ap-form-item-group.css +2 -2
- package/theme/ap-form/ap-form-item.css +6 -6
- package/theme/ap-form/ap-form-item.less +4 -4
- package/theme/ap-form/drawer-form.css +2 -2
- package/theme/ap-form/index.css +13 -13
- package/theme/ap-form/item-text-group.css +2 -2
- package/theme/ap-form/item-text.css +2 -2
- package/theme/ap-form/modal-form.css +2 -2
- package/theme/ap-form/search-form-sorter.css +6 -6
- package/theme/ap-form/search-form-sorter.less +4 -4
- package/theme/ap-form/search-form.css +13 -13
- package/theme/ap-form/search-form.less +3 -3
- package/theme/ap-grid/editable.css +2 -2
- package/theme/ap-grid/index.css +43 -24
- package/theme/ap-grid/index.less +14 -3
- package/theme/ap-group-search/ap-extension-select.css +2 -2
- package/theme/ap-group-search/ap-group-search.css +2 -2
- package/theme/ap-group-search/ap-popover-select.css +2 -2
- package/theme/ap-image/ap-image.css +2 -2
- package/theme/ap-input-radio/ap-input-radio.css +2 -2
- package/theme/ap-label/ap-label.css +2 -2
- package/theme/ap-ladder/ap-ladder.css +2 -2
- package/theme/ap-layout/ap-info-layout.css +2 -2
- package/theme/ap-list/index.css +2 -2
- package/theme/ap-product-info/ap-product-info.css +22 -32
- package/theme/ap-product-info/ap-product-info.less +28 -42
- package/theme/ap-radio-group/ap-radio-group.css +8 -7
- package/theme/ap-radio-group/ap-radio-group.less +7 -5
- package/theme/ap-select-layout/ap-select-layout.css +2 -2
- package/theme/ap-size-input/ap-size-input.css +2 -2
- package/theme/ap-status/ap-status.css +2 -2
- package/theme/ap-summary/index.css +2 -2
- package/theme/ap-table/ap-table-index.css +2 -2
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
- package/theme/ap-table/ap-table-paragraph-ellipsis.less +1 -1
- package/theme/ap-table/ap-table.css +59 -37
- package/theme/ap-table/ap-table.less +14 -7
- package/theme/ap-table/setting/index.css +14 -9
- package/theme/ap-table/setting/modal.css +7 -3
- package/theme/ap-table/setting/modal.less +5 -1
- package/theme/ap-table/setting/select-group.css +2 -2
- package/theme/ap-table/setting/sortable-item-meta.css +4 -4
- package/theme/ap-table/setting/sortable-item-meta.less +2 -2
- package/theme/ap-table/setting/sortable-item.css +2 -2
- package/theme/ap-table/setting/sorter.css +7 -6
- package/theme/ap-table/setting/sorter.less +4 -4
- package/theme/ap-table-modal/index.css +59 -37
- package/theme/ap-tag/ap-tag-group.css +2 -2
- package/theme/ap-tag/ap-tag.css +3 -3
- package/theme/ap-tag/ap-tag.less +1 -1
- package/theme/ap-title/ap-title.css +2 -2
- package/theme/ap-upload/index.css +2 -2
- package/theme/ap-upload/multiple-file.css +2 -2
- package/theme/ap-upload/picture.css +2 -2
- package/theme/ap-upload/single-file.css +2 -2
- package/theme/ap-upload/upload.css +2 -2
- package/theme/ap-upload-single/index.css +6 -6
- package/theme/ap-upload-single/index.less +4 -4
- package/theme/ap-view/ap-view.css +9 -9
- package/theme/ap-view/ap-view.less +7 -7
- package/theme/batch-input-group/index.css +4 -4
- package/theme/batch-input-group/popover-input.css +4 -4
- package/theme/batch-input-group/popover-input.less +2 -2
- package/theme/check-card/index.css +7 -7
- package/theme/check-card/index.less +5 -5
- package/theme/editable-table/index.css +30 -19
- package/theme/full-screen/index.css +2 -2
- package/theme/index.css +229 -206
- package/theme/index.less +1 -0
- package/theme/mask/index.css +2 -2
- package/theme/mixins/mixins.css +2 -2
- package/theme/mixins/mixins.less +2 -2
- package/theme/scroll-bar/index.css +2 -2
- package/theme/scroll-view/index.css +2 -2
- package/theme/splitter/index.css +5 -5
- package/theme/splitter/index.less +1 -1
- package/theme/text/group.css +2 -2
- package/theme/text/index.css +6 -6
- package/theme/text/index.less +4 -4
- package/theme/ui-mode.css +44 -90
- package/theme/ui-mode.less +90 -90
- package/theme/work-order-modal/index.css +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-copy/ap-copy.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-copy/ap-copy.less';
|
|
@@ -17,6 +17,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
17
17
|
type: PropType< ApProductInfoValue[]>;
|
|
18
18
|
default: () => never[];
|
|
19
19
|
};
|
|
20
|
+
disableCopy: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
20
24
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
21
25
|
title: {
|
|
22
26
|
type: StringConstructor;
|
|
@@ -34,10 +38,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
34
38
|
type: PropType< ApProductInfoValue[]>;
|
|
35
39
|
default: () => never[];
|
|
36
40
|
};
|
|
41
|
+
disableCopy: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
37
45
|
}>> & Readonly<{}>, {
|
|
38
46
|
values: ApProductInfoValue[];
|
|
39
47
|
title: string;
|
|
40
48
|
preview: boolean;
|
|
49
|
+
disableCopy: boolean;
|
|
41
50
|
imgSrc: string;
|
|
42
51
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
43
52
|
export default _default;
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApProductInfoProps as
|
|
1
|
+
import { defineComponent as v, h as f, createVNode as l, createTextVNode as p } from "vue";
|
|
2
|
+
import { ApProductInfoProps as y } from "./constans.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { Tooltip as p } from "@aplus-frontend/antdv";
|
|
5
4
|
import { ApImage as m } from "../ap-image/index.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
5
|
+
import { ApCopy as n } from "../ap-copy/index.mjs";
|
|
6
|
+
import { useNamespace as b } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
const N = /* @__PURE__ */ v({
|
|
9
9
|
name: "ApProductInfo",
|
|
10
|
-
props:
|
|
11
|
-
setup(
|
|
10
|
+
props: y(),
|
|
11
|
+
setup(a) {
|
|
12
12
|
const {
|
|
13
|
-
b:
|
|
14
|
-
e:
|
|
15
|
-
m:
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class:
|
|
24
|
-
}, [
|
|
25
|
-
|
|
13
|
+
b: s,
|
|
14
|
+
e: o,
|
|
15
|
+
m: r
|
|
16
|
+
} = b("ap-product-info"), u = (e) => typeof e.value == "function" ? e.value() : f(n, {
|
|
17
|
+
text: e.value,
|
|
18
|
+
textStyle: e.link ? "link" : "minor",
|
|
19
|
+
link: e.link,
|
|
20
|
+
disableCopy: a.disableCopy
|
|
21
|
+
}, e.value), c = h("uiMode");
|
|
22
|
+
return () => l("div", {
|
|
23
|
+
class: [s(), `${r(c.value)}`]
|
|
24
|
+
}, [l("div", {
|
|
25
|
+
class: o("img")
|
|
26
|
+
}, [l(m, {
|
|
27
|
+
src: a.imgSrc,
|
|
26
28
|
width: 44,
|
|
27
29
|
height: 44,
|
|
28
|
-
preview:
|
|
29
|
-
}, null)]),
|
|
30
|
-
class: [
|
|
31
|
-
}, [
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
preview: a.preview
|
|
31
|
+
}, null)]), l("div", {
|
|
32
|
+
class: [o("content")]
|
|
33
|
+
}, [l(n, {
|
|
34
|
+
disableCopy: a.disableCopy
|
|
35
|
+
}, {
|
|
36
|
+
default: () => [a.title]
|
|
37
|
+
}), l("div", {
|
|
38
|
+
class: o("row-container")
|
|
39
|
+
}, [a.values.map((e, t) => {
|
|
40
|
+
const i = e.col === 2, d = e.col !== 2 && t % 2 === 0;
|
|
41
|
+
return l("div", {
|
|
42
|
+
key: t,
|
|
43
|
+
class: [o("row-item"), r(i ? "full" : "half")]
|
|
44
|
+
}, [l("div", {
|
|
45
|
+
key: t,
|
|
46
|
+
class: [o("item")]
|
|
47
|
+
}, [e.label && l("div", {
|
|
48
|
+
class: o("label")
|
|
49
|
+
}, [e.label, l("span", null, [p(":")])]), l("div", {
|
|
50
|
+
class: [o("value"), !i && r("overflow")],
|
|
51
|
+
title: typeof e.value != "function" ? String(e.value || "") : ""
|
|
52
|
+
}, [typeof e.value == "function" ? e.value() : u(e)])]), d && l("div", {
|
|
53
|
+
class: o("divider"),
|
|
34
54
|
style: {
|
|
35
|
-
|
|
55
|
+
right: 0
|
|
36
56
|
}
|
|
37
|
-
}, [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}) : e("div", {
|
|
42
|
-
class: t("title")
|
|
43
|
-
}, [s("--")]), o.values && e("div", {
|
|
44
|
-
class: t("row-divider")
|
|
45
|
-
}, [o.values.map((l, n) => e(f, null, [e("div", {
|
|
46
|
-
key: n,
|
|
47
|
-
class: [t("item"), l.col === 2 && i("full-width"), n % 2 === 0 || l.col == 2 ? i("left") : i("right")]
|
|
48
|
-
}, [l.label && e("div", {
|
|
49
|
-
class: t("label")
|
|
50
|
-
}, [l.label, e("span", null, [s(":")])]), e("div", {
|
|
51
|
-
class: [t("value"), l.link && i("link")],
|
|
52
|
-
title: typeof l.value != "function" ? a(l.value) : "",
|
|
53
|
-
onClick: () => {
|
|
54
|
-
l.link && window.open(l.link, "_blank");
|
|
55
|
-
}
|
|
56
|
-
}, [typeof l.value == "function" ? l.value() : a(l.value)])]), l.col == 1 && n % 2 == 0 ? e("div", {
|
|
57
|
-
class: t("divider")
|
|
58
|
-
}, [e("div", {
|
|
59
|
-
class: t("divider-vertical")
|
|
60
|
-
}, null)]) : null]))])])]);
|
|
57
|
+
}, [l("div", {
|
|
58
|
+
class: o("divider-vertical")
|
|
59
|
+
}, null)])]);
|
|
60
|
+
})])])]);
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
export {
|
|
64
|
-
|
|
64
|
+
N as default
|
|
65
65
|
};
|
|
@@ -19,10 +19,15 @@ declare const ApProductInfo: {
|
|
|
19
19
|
type: PropType< ApProductInfoValue[]>;
|
|
20
20
|
default: () => never[];
|
|
21
21
|
};
|
|
22
|
+
disableCopy: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
22
26
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
23
27
|
values: ApProductInfoValue[];
|
|
24
28
|
title: string;
|
|
25
29
|
preview: boolean;
|
|
30
|
+
disableCopy: boolean;
|
|
26
31
|
imgSrc: string;
|
|
27
32
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
28
33
|
P: {};
|
|
@@ -48,10 +53,15 @@ declare const ApProductInfo: {
|
|
|
48
53
|
type: PropType< ApProductInfoValue[]>;
|
|
49
54
|
default: () => never[];
|
|
50
55
|
};
|
|
56
|
+
disableCopy: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
51
60
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
52
61
|
values: ApProductInfoValue[];
|
|
53
62
|
title: string;
|
|
54
63
|
preview: boolean;
|
|
64
|
+
disableCopy: boolean;
|
|
55
65
|
imgSrc: string;
|
|
56
66
|
}>;
|
|
57
67
|
__isFragment?: never;
|
|
@@ -74,10 +84,15 @@ declare const ApProductInfo: {
|
|
|
74
84
|
type: PropType< ApProductInfoValue[]>;
|
|
75
85
|
default: () => never[];
|
|
76
86
|
};
|
|
87
|
+
disableCopy: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
77
91
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
78
92
|
values: ApProductInfoValue[];
|
|
79
93
|
title: string;
|
|
80
94
|
preview: boolean;
|
|
95
|
+
disableCopy: boolean;
|
|
81
96
|
imgSrc: string;
|
|
82
97
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
83
98
|
$props: {
|
|
@@ -6,8 +6,10 @@ type __VLS_Props = {
|
|
|
6
6
|
optionStyle?: RadioOptionStyleType;
|
|
7
7
|
};
|
|
8
8
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
+
change: (value: string | number) => any;
|
|
9
10
|
"update:value": (value: string | number) => any;
|
|
10
11
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
11
13
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
12
14
|
}>, {
|
|
13
15
|
value: string | number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, isVNode as k, h as a, createElementBlock as n, openBlock as r, normalizeClass as c, unref as o, createVNode as S, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
|
|
2
2
|
import { Flex as F } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
5
|
import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
6
|
import { useControllableValue as x } from "../../hooks/useControllableValue.mjs";
|
|
7
|
-
const D = ["onClick"],
|
|
7
|
+
const D = ["onClick"], I = /* @__PURE__ */ b({
|
|
8
8
|
__name: "ap-radio-group",
|
|
9
9
|
props: {
|
|
10
10
|
value: { default: "" },
|
|
@@ -14,38 +14,38 @@ const D = ["onClick"], J = /* @__PURE__ */ k({
|
|
|
14
14
|
gap: 8
|
|
15
15
|
}) }
|
|
16
16
|
},
|
|
17
|
-
emits: ["update:value"],
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
d,
|
|
17
|
+
emits: ["update:value", "change"],
|
|
18
|
+
setup(f, { emit: d }) {
|
|
19
|
+
const { b: h, e: l } = L("ap-radio-group"), g = f, i = d, { value: y, updateValue: v } = x(
|
|
21
20
|
g,
|
|
21
|
+
i,
|
|
22
22
|
{
|
|
23
|
-
|
|
23
|
+
beforeUpdateValue: (e) => (i("change", e), !0)
|
|
24
24
|
}
|
|
25
|
-
);
|
|
25
|
+
), C = (e) => k(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e);
|
|
26
26
|
return (e, E) => {
|
|
27
|
-
var
|
|
28
|
-
return r(),
|
|
29
|
-
class:
|
|
27
|
+
var p;
|
|
28
|
+
return r(), n("div", {
|
|
29
|
+
class: c([o(h)()])
|
|
30
30
|
}, [
|
|
31
|
-
|
|
32
|
-
gap: (
|
|
31
|
+
S(o(F), {
|
|
32
|
+
gap: (p = e.optionStyle) == null ? void 0 : p.gap,
|
|
33
33
|
wrap: "wrap"
|
|
34
34
|
}, {
|
|
35
35
|
default: V(() => [
|
|
36
|
-
(r(!0),
|
|
37
|
-
var
|
|
38
|
-
return r(),
|
|
36
|
+
(r(!0), n(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
|
|
37
|
+
var s, u, m;
|
|
38
|
+
return r(), n("div", {
|
|
39
39
|
key: t.value,
|
|
40
|
-
class:
|
|
40
|
+
class: c([o(l)("item"), o(y) === t.value ? o(l)("item--active") : ""]),
|
|
41
41
|
style: B({
|
|
42
|
-
height: ((
|
|
43
|
-
lineHeight: ((
|
|
44
|
-
color: (
|
|
42
|
+
height: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
|
|
43
|
+
lineHeight: ((u = e.optionStyle) == null ? void 0 : u.height) + "px",
|
|
44
|
+
color: (m = e.optionStyle) == null ? void 0 : m.color
|
|
45
45
|
}),
|
|
46
|
-
onClick: (H) => o(
|
|
46
|
+
onClick: (H) => o(v)(t.value)
|
|
47
47
|
}, [
|
|
48
|
-
(r(), N(z(
|
|
48
|
+
(r(), N(z(C(t.label))))
|
|
49
49
|
], 14, D);
|
|
50
50
|
}), 128))
|
|
51
51
|
]),
|
|
@@ -56,5 +56,5 @@ const D = ["onClick"], J = /* @__PURE__ */ k({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
export {
|
|
59
|
-
|
|
59
|
+
I as default
|
|
60
60
|
};
|
|
@@ -7,8 +7,10 @@ declare const ApRadioGroup: {
|
|
|
7
7
|
options: RadioOptionType[];
|
|
8
8
|
optionStyle?: RadioOptionStyleType;
|
|
9
9
|
}> & Readonly<{
|
|
10
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
10
11
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
11
12
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
13
|
+
change: (value: string | number) => any;
|
|
12
14
|
"update:value": (value: string | number) => any;
|
|
13
15
|
}, PublicProps, {
|
|
14
16
|
value: string | number;
|
|
@@ -26,6 +28,7 @@ declare const ApRadioGroup: {
|
|
|
26
28
|
options: RadioOptionType[];
|
|
27
29
|
optionStyle?: RadioOptionStyleType;
|
|
28
30
|
}> & Readonly<{
|
|
31
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
29
32
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
30
33
|
}>, {}, {}, {}, {}, {
|
|
31
34
|
value: string | number;
|
|
@@ -40,8 +43,10 @@ declare const ApRadioGroup: {
|
|
|
40
43
|
options: RadioOptionType[];
|
|
41
44
|
optionStyle?: RadioOptionStyleType;
|
|
42
45
|
}> & Readonly<{
|
|
46
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
43
47
|
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
44
48
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
49
|
+
change: (value: string | number) => any;
|
|
45
50
|
"update:value": (value: string | number) => any;
|
|
46
51
|
}, string, {
|
|
47
52
|
value: string | number;
|
|
@@ -19,8 +19,6 @@ export interface UsePageListApGrid extends ApGridProps {
|
|
|
19
19
|
* 表格刷新相关
|
|
20
20
|
*/
|
|
21
21
|
tableRefresh?: boolean | Omit<UseTableRefreshOption, 'apTableRef'>;
|
|
22
|
-
/** 是否在deactivated的时候清空数据, 需要在setup中使用才会生效 */
|
|
23
|
-
clearDataSourceOnDeactivated?: boolean;
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* 集成了列表页面的ApGrid的默认配置
|
|
@@ -1,79 +1,69 @@
|
|
|
1
1
|
import "../../config-provider/index.mjs";
|
|
2
2
|
import "../index.mjs";
|
|
3
|
-
import { merge as
|
|
4
|
-
import { ref as
|
|
5
|
-
import { useGlobalConfig as
|
|
6
|
-
import { useTableRefresh as
|
|
7
|
-
function
|
|
8
|
-
const o =
|
|
9
|
-
isShowRowSelection:
|
|
10
|
-
clearSelectionOnRequest:
|
|
3
|
+
import { merge as c, cloneDeep as v } from "lodash-unified";
|
|
4
|
+
import { ref as g } from "vue";
|
|
5
|
+
import { useGlobalConfig as b } from "../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
import { useTableRefresh as R } from "./useTableRefresh.mjs";
|
|
7
|
+
function C(s) {
|
|
8
|
+
const o = g(null), {
|
|
9
|
+
isShowRowSelection: i = !0,
|
|
10
|
+
clearSelectionOnRequest: d = !0,
|
|
11
11
|
transformSearchFormValues: a,
|
|
12
|
-
api:
|
|
13
|
-
tableRefresh:
|
|
14
|
-
virtual:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const g = I("uiMode", "aplus"), c = () => {
|
|
12
|
+
api: l,
|
|
13
|
+
tableRefresh: f = !0,
|
|
14
|
+
virtual: m,
|
|
15
|
+
...p
|
|
16
|
+
} = s || {};
|
|
17
|
+
let n = null;
|
|
18
|
+
const h = b("uiMode", "aplus"), u = () => {
|
|
20
19
|
var e, r;
|
|
21
20
|
(r = (e = o.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
22
21
|
};
|
|
23
|
-
|
|
24
|
-
...
|
|
22
|
+
return R({
|
|
23
|
+
...w(f),
|
|
25
24
|
apTableRef: o
|
|
26
|
-
})
|
|
27
|
-
const b = async (e) => {
|
|
28
|
-
l = e.sort;
|
|
29
|
-
const r = a ? a(e) : e;
|
|
30
|
-
try {
|
|
31
|
-
if (!s) throw new Error("api is not defined");
|
|
32
|
-
const { records: t, total: w } = await s(r);
|
|
33
|
-
return m && c(), {
|
|
34
|
-
data: t,
|
|
35
|
-
total: w
|
|
36
|
-
};
|
|
37
|
-
} catch (t) {
|
|
38
|
-
return console.error(t), {
|
|
39
|
-
data: [],
|
|
40
|
-
total: 0
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
}, u = d();
|
|
44
|
-
S && V() && (G(() => {
|
|
45
|
-
x(() => {
|
|
46
|
-
u.value = void 0;
|
|
47
|
-
});
|
|
48
|
-
}), q(() => {
|
|
49
|
-
u.value = [];
|
|
50
|
-
}));
|
|
51
|
-
const A = i(
|
|
25
|
+
}), [c(
|
|
52
26
|
{
|
|
53
27
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
54
28
|
scroll: { x: "100%", y: "100%" },
|
|
55
29
|
columnResizable: !0,
|
|
56
|
-
request:
|
|
57
|
-
|
|
30
|
+
request: l ? async (e) => {
|
|
31
|
+
n = e.sort;
|
|
32
|
+
const r = a ? a(e) : e;
|
|
33
|
+
try {
|
|
34
|
+
if (!l) throw new Error("api is not defined");
|
|
35
|
+
const { records: t, total: S } = await l(r);
|
|
36
|
+
return d && u(), {
|
|
37
|
+
data: t,
|
|
38
|
+
total: S
|
|
39
|
+
};
|
|
40
|
+
} catch (t) {
|
|
41
|
+
return console.error(t), {
|
|
42
|
+
data: [],
|
|
43
|
+
total: 0
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
} : void 0,
|
|
47
|
+
rowSelection: i ? {
|
|
58
48
|
fixed: "left",
|
|
59
49
|
columnWidth: 34
|
|
60
50
|
} : void 0,
|
|
61
51
|
ref(e) {
|
|
62
52
|
o.value = e;
|
|
63
53
|
},
|
|
64
|
-
virtual:
|
|
54
|
+
virtual: c(
|
|
65
55
|
{
|
|
66
56
|
oSize: 20,
|
|
67
57
|
y: 20
|
|
68
58
|
},
|
|
69
|
-
|
|
59
|
+
m
|
|
70
60
|
),
|
|
71
61
|
// 新UI规范,需要都添加分割线
|
|
72
62
|
card: !0,
|
|
73
|
-
bordered:
|
|
63
|
+
bordered: h.value === "admin"
|
|
74
64
|
},
|
|
75
|
-
|
|
76
|
-
),
|
|
65
|
+
p
|
|
66
|
+
), {
|
|
77
67
|
reload: () => {
|
|
78
68
|
var e;
|
|
79
69
|
(e = o.value) == null || e.submit();
|
|
@@ -91,23 +81,16 @@ function H(n) {
|
|
|
91
81
|
getSearchFormValuesAndSorted: (e = !0) => {
|
|
92
82
|
var t;
|
|
93
83
|
const r = ((t = o.value) == null ? void 0 : t.getSearchFormValues(!!e)) || {};
|
|
94
|
-
return r.sort =
|
|
84
|
+
return r.sort = n && v(n), a ? a(r) : r;
|
|
95
85
|
},
|
|
96
|
-
clearSelection:
|
|
97
|
-
};
|
|
98
|
-
return [
|
|
99
|
-
y(() => ({
|
|
100
|
-
...A,
|
|
101
|
-
dataSource: D(u)
|
|
102
|
-
})),
|
|
103
|
-
R
|
|
104
|
-
];
|
|
86
|
+
clearSelection: u
|
|
87
|
+
}];
|
|
105
88
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
89
|
+
function w(s) {
|
|
90
|
+
return s === !0 ? {} : s === !1 ? {
|
|
108
91
|
refreshBefore: () => !1
|
|
109
|
-
} :
|
|
92
|
+
} : s;
|
|
110
93
|
}
|
|
111
94
|
export {
|
|
112
|
-
|
|
95
|
+
C as usePageListApGrid
|
|
113
96
|
};
|
|
@@ -21,6 +21,7 @@ export * from './ap-upload-file';
|
|
|
21
21
|
export * from './batch-input-group';
|
|
22
22
|
export * from './ap-size-input';
|
|
23
23
|
export * from './ap-product-info';
|
|
24
|
+
export * from './ap-copy';
|
|
24
25
|
export * from './ap-view';
|
|
25
26
|
export * from './ap-radio-group';
|
|
26
27
|
export { ApTransformDataHelper } from '../utils/ap-trans-data';
|
|
@@ -7,11 +7,11 @@ import { ApCard as d } from "./ap-card/index.mjs";
|
|
|
7
7
|
import { ApExpandAlert as G } from "./ap-expand-alert/index.mjs";
|
|
8
8
|
import { ApExportGroup as h } from "./ap-export-group/index.mjs";
|
|
9
9
|
import { ApImage as L } from "./ap-image/index.mjs";
|
|
10
|
-
import { ApInputRadio as
|
|
11
|
-
import { ApLabel as
|
|
12
|
-
import { ApLadder as
|
|
13
|
-
import { ApSelectLayout as
|
|
14
|
-
import { ApStatus as
|
|
10
|
+
import { ApInputRadio as y } from "./ap-input-radio/index.mjs";
|
|
11
|
+
import { ApLabel as E, ApLabelGroup as T } from "./ap-label/index.mjs";
|
|
12
|
+
import { ApLadder as P } from "./ap-ladder/index.mjs";
|
|
13
|
+
import { ApSelectLayout as g } from "./ap-select-layout/index.mjs";
|
|
14
|
+
import { ApStatus as w, ApStatusGroup as z } from "./ap-status/index.mjs";
|
|
15
15
|
import { ApTitle as H } from "./ap-title/index.mjs";
|
|
16
16
|
import "./hooks/index.mjs";
|
|
17
17
|
import { ApSummary as V } from "./ap-summary/index.mjs";
|
|
@@ -21,9 +21,10 @@ import "./ap-upload-file/index.mjs";
|
|
|
21
21
|
import "./batch-input-group/index.mjs";
|
|
22
22
|
import { ApSizeInput as O } from "./ap-size-input/index.mjs";
|
|
23
23
|
import { ApProductInfo as U } from "./ap-product-info/index.mjs";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
24
|
+
import { ApCopy as X } from "./ap-copy/index.mjs";
|
|
25
|
+
import { ApView as Z } from "./ap-view/index.mjs";
|
|
26
|
+
import { ApRadioGroup as $ } from "./ap-radio-group/index.mjs";
|
|
27
|
+
import { ApTransformDataHelper as po } from "../utils/ap-trans-data/index.mjs";
|
|
27
28
|
export {
|
|
28
29
|
k as ApAppendix,
|
|
29
30
|
x as ApAttachment,
|
|
@@ -31,25 +32,26 @@ export {
|
|
|
31
32
|
i as ApBatchActionGroup,
|
|
32
33
|
l as ApButtonGroup,
|
|
33
34
|
d as ApCard,
|
|
35
|
+
X as ApCopy,
|
|
34
36
|
G as ApExpandAlert,
|
|
35
37
|
h as ApExportGroup,
|
|
36
38
|
F as ApExtensionSelect,
|
|
37
39
|
J as ApGroupSearch,
|
|
38
40
|
L as ApImage,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
y as ApInputRadio,
|
|
42
|
+
E as ApLabel,
|
|
43
|
+
T as ApLabelGroup,
|
|
44
|
+
P as ApLadder,
|
|
43
45
|
K as ApPopoverSelect,
|
|
44
46
|
U as ApProductInfo,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
$ as ApRadioGroup,
|
|
48
|
+
g as ApSelectLayout,
|
|
47
49
|
O as ApSizeInput,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
w as ApStatus,
|
|
51
|
+
z as ApStatusGroup,
|
|
50
52
|
V as ApSummary,
|
|
51
53
|
A as ApTableModal,
|
|
52
54
|
H as ApTitle,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
po as ApTransformDataHelper,
|
|
56
|
+
Z as ApView
|
|
55
57
|
};
|
package/es/src/components.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ declare module '@vue/runtime-core' {
|
|
|
15
15
|
ApLabelGroup: typeof components.ApLabelGroup;
|
|
16
16
|
ApLadder: typeof components.ApLadder;
|
|
17
17
|
ApProductInfo: typeof components.ApProductInfo;
|
|
18
|
+
ApCopy: typeof components.ApCopy;
|
|
18
19
|
ApSelectLayout: typeof components.ApSelectLayout;
|
|
19
20
|
ApStatus: typeof components.ApStatus;
|
|
20
21
|
ApStatusGroup: typeof components.ApStatusGroup;
|