@aplus-frontend/ui 6.22.1 → 6.23.0

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.
Files changed (98) hide show
  1. package/es/index.mjs +235 -234
  2. package/es/src/ap-field/checkbox/read.vue.d.ts +11 -0
  3. package/es/src/ap-field/checkbox/read.vue.mjs +4 -0
  4. package/es/src/ap-field/checkbox/read.vue2.mjs +37 -0
  5. package/es/src/ap-field/date/read.vue.d.ts +9 -0
  6. package/es/src/ap-field/date/read.vue.mjs +4 -0
  7. package/es/src/ap-field/date/read.vue2.mjs +102 -0
  8. package/es/src/ap-field/date-range/read.vue.d.ts +9 -0
  9. package/es/src/ap-field/date-range/read.vue.mjs +4 -0
  10. package/es/src/ap-field/date-range/read.vue2.mjs +121 -0
  11. package/es/src/ap-field/index.d.ts +99 -0
  12. package/es/src/ap-field/index.mjs +75 -40
  13. package/es/src/ap-field/number/read.vue.d.ts +23 -0
  14. package/es/src/ap-field/number/read.vue.mjs +4 -0
  15. package/es/src/ap-field/number/read.vue2.mjs +80 -0
  16. package/es/src/ap-field/radio/read.vue.d.ts +10 -0
  17. package/es/src/ap-field/radio/read.vue.mjs +4 -0
  18. package/es/src/ap-field/radio/read.vue2.mjs +42 -0
  19. package/es/src/ap-field/select/read.vue.d.ts +6 -0
  20. package/es/src/ap-field/select/read.vue.mjs +4 -0
  21. package/es/src/ap-field/select/read.vue2.mjs +118 -0
  22. package/es/src/ap-field/switch/read.vue.d.ts +11 -0
  23. package/es/src/ap-field/switch/read.vue.mjs +4 -0
  24. package/es/src/ap-field/switch/read.vue2.mjs +58 -0
  25. package/es/src/ap-field/text/read-password.vue.d.ts +16 -0
  26. package/es/src/ap-field/text/read-password.vue.mjs +4 -0
  27. package/es/src/ap-field/text/read-password.vue2.mjs +82 -0
  28. package/es/src/ap-field/text/read.vue.d.ts +13 -0
  29. package/es/src/ap-field/text/read.vue.mjs +4 -0
  30. package/es/src/ap-field/text/read.vue2.mjs +63 -0
  31. package/es/src/ap-field/text-area/read.vue.d.ts +13 -0
  32. package/es/src/ap-field/text-area/read.vue.mjs +4 -0
  33. package/es/src/ap-field/text-area/read.vue2.mjs +69 -0
  34. package/es/src/ap-field/tree-select/read.vue.d.ts +8 -0
  35. package/es/src/ap-field/tree-select/read.vue.mjs +4 -0
  36. package/es/src/ap-field/tree-select/read.vue2.mjs +182 -0
  37. package/es/src/ap-grid/index.vue.mjs +1 -1
  38. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +36 -54
  39. package/es/src/ap-table/constants.d.ts +29 -2415
  40. package/es/src/ap-table/constants.mjs +41 -52
  41. package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
  42. package/es/src/business/ap-label/group/ApLabelGroup.mjs +11 -10
  43. package/es/src/index.mjs +285 -284
  44. package/es/src/utils/copy.d.ts +3 -0
  45. package/es/src/utils/copy.mjs +21 -0
  46. package/es/src/version.d.ts +1 -1
  47. package/es/src/version.mjs +1 -1
  48. package/lib/index.js +1 -1
  49. package/lib/src/ap-field/checkbox/read.vue.d.ts +11 -0
  50. package/lib/src/ap-field/checkbox/read.vue.js +1 -0
  51. package/lib/src/ap-field/checkbox/read.vue2.js +1 -0
  52. package/lib/src/ap-field/date/read.vue.d.ts +9 -0
  53. package/lib/src/ap-field/date/read.vue.js +1 -0
  54. package/lib/src/ap-field/date/read.vue2.js +1 -0
  55. package/lib/src/ap-field/date-range/read.vue.d.ts +9 -0
  56. package/lib/src/ap-field/date-range/read.vue.js +1 -0
  57. package/lib/src/ap-field/date-range/read.vue2.js +1 -0
  58. package/lib/src/ap-field/index.d.ts +99 -0
  59. package/lib/src/ap-field/index.js +1 -1
  60. package/lib/src/ap-field/number/read.vue.d.ts +23 -0
  61. package/lib/src/ap-field/number/read.vue.js +1 -0
  62. package/lib/src/ap-field/number/read.vue2.js +1 -0
  63. package/lib/src/ap-field/radio/read.vue.d.ts +10 -0
  64. package/lib/src/ap-field/radio/read.vue.js +1 -0
  65. package/lib/src/ap-field/radio/read.vue2.js +1 -0
  66. package/lib/src/ap-field/select/read.vue.d.ts +6 -0
  67. package/lib/src/ap-field/select/read.vue.js +1 -0
  68. package/lib/src/ap-field/select/read.vue2.js +1 -0
  69. package/lib/src/ap-field/switch/read.vue.d.ts +11 -0
  70. package/lib/src/ap-field/switch/read.vue.js +1 -0
  71. package/lib/src/ap-field/switch/read.vue2.js +1 -0
  72. package/lib/src/ap-field/text/read-password.vue.d.ts +16 -0
  73. package/lib/src/ap-field/text/read-password.vue.js +1 -0
  74. package/lib/src/ap-field/text/read-password.vue2.js +1 -0
  75. package/lib/src/ap-field/text/read.vue.d.ts +13 -0
  76. package/lib/src/ap-field/text/read.vue.js +1 -0
  77. package/lib/src/ap-field/text/read.vue2.js +1 -0
  78. package/lib/src/ap-field/text-area/read.vue.d.ts +13 -0
  79. package/lib/src/ap-field/text-area/read.vue.js +1 -0
  80. package/lib/src/ap-field/text-area/read.vue2.js +1 -0
  81. package/lib/src/ap-field/tree-select/read.vue.d.ts +8 -0
  82. package/lib/src/ap-field/tree-select/read.vue.js +1 -0
  83. package/lib/src/ap-field/tree-select/read.vue2.js +1 -0
  84. package/lib/src/ap-grid/index.vue.js +1 -1
  85. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  86. package/lib/src/ap-table/constants.d.ts +29 -2415
  87. package/lib/src/ap-table/constants.js +1 -1
  88. package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
  89. package/lib/src/business/ap-label/group/ApLabelGroup.js +1 -1
  90. package/lib/src/index.js +1 -1
  91. package/lib/src/utils/copy.d.ts +3 -0
  92. package/lib/src/utils/copy.js +1 -0
  93. package/lib/src/version.d.ts +1 -1
  94. package/lib/src/version.js +1 -1
  95. package/package.json +1 -1
  96. package/theme/ap-tag/ap-tag.css +1 -0
  97. package/theme/ap-tag/ap-tag.less +1 -0
  98. package/theme/index.css +1 -0
@@ -0,0 +1,118 @@
1
+ import { defineComponent as y, computed as f, createElementBlock as h, createCommentVNode as B, openBlock as C, toDisplayString as w } from "vue";
2
+ import { isArray as g } from "lodash-unified";
3
+ const S = { key: 0 }, v = /* @__PURE__ */ y({
4
+ name: "ApFieldSelectRead",
5
+ __name: "read",
6
+ props: {
7
+ mode: {},
8
+ class: {},
9
+ style: {},
10
+ defaultValue: {},
11
+ notFoundContent: {},
12
+ suffixIcon: {},
13
+ itemIcon: {},
14
+ size: {},
15
+ bordered: { type: Boolean },
16
+ transitionName: {},
17
+ choiceTransitionName: {},
18
+ popupClassName: {},
19
+ dropdownClassName: {},
20
+ placement: {},
21
+ status: {},
22
+ children: {},
23
+ listHeight: {},
24
+ onMouseenter: {},
25
+ onMouseleave: {},
26
+ tabindex: {},
27
+ onClick: {},
28
+ onFocus: {},
29
+ onBlur: {},
30
+ onChange: {},
31
+ onKeydown: {},
32
+ onKeyup: {},
33
+ onMousedown: {},
34
+ onSelect: {},
35
+ open: { type: Boolean },
36
+ animation: {},
37
+ direction: {},
38
+ disabled: { type: Boolean },
39
+ prefixCls: {},
40
+ getPopupContainer: {},
41
+ virtual: { type: Boolean },
42
+ dropdownMatchSelectWidth: {},
43
+ loading: { type: Boolean },
44
+ showAction: {},
45
+ dropdownAlign: {},
46
+ placeholder: {},
47
+ allowClear: { type: Boolean },
48
+ autofocus: { type: Boolean },
49
+ defaultOpen: { type: Boolean },
50
+ id: {},
51
+ clearIcon: {},
52
+ options: {},
53
+ onDeselect: {},
54
+ fieldNames: {},
55
+ dropdownStyle: {},
56
+ dropdownRender: {},
57
+ showSearch: { type: Boolean },
58
+ searchValue: {},
59
+ onInputKeyDown: {},
60
+ removeIcon: {},
61
+ maxTagCount: {},
62
+ maxTagTextLength: {},
63
+ maxTagPlaceholder: {},
64
+ tokenSeparators: {},
65
+ tagRender: {},
66
+ optionLabelRender: {},
67
+ onClear: {},
68
+ onDropdownVisibleChange: {},
69
+ showArrow: { type: Boolean },
70
+ onPopupScroll: {},
71
+ menuItemSelectedIcon: {},
72
+ listItemHeight: {},
73
+ inputValue: {},
74
+ autoClearSearchValue: { type: Boolean },
75
+ filterOption: {},
76
+ filterSort: {},
77
+ optionFilterProp: {},
78
+ optionLabelProp: {},
79
+ defaultActiveFirstOption: { type: Boolean },
80
+ onClickOption: {},
81
+ labelInValue: { type: Boolean },
82
+ emptyText: { default: "--" },
83
+ request: {},
84
+ multiple: { type: Boolean },
85
+ value: {},
86
+ "onUpdate:value": {},
87
+ searchMode: {},
88
+ refetchOnFocus: { type: Boolean },
89
+ lazy: { type: Boolean },
90
+ addAll: { type: [Boolean, Number] },
91
+ params: {},
92
+ searchDelay: {}
93
+ },
94
+ setup(c) {
95
+ const e = c, u = f(() => {
96
+ var r, p, i;
97
+ const o = e.value;
98
+ if (!o)
99
+ return e.emptyText;
100
+ const n = ((r = e.fieldNames) == null ? void 0 : r.label) || "label", l = ((p = e.fieldNames) == null ? void 0 : p.value) || "value";
101
+ if (g(o))
102
+ return o.map(
103
+ (a) => {
104
+ var s, d;
105
+ return (d = (s = e.options) == null ? void 0 : s.find((m) => m[l] === a)) == null ? void 0 : d[n];
106
+ }
107
+ ).filter(Boolean).join("、") || e.emptyText;
108
+ const t = (i = e.options) == null ? void 0 : i.find(
109
+ (a) => a[l] === o
110
+ );
111
+ return (t == null ? void 0 : t[n]) || e.emptyText;
112
+ });
113
+ return (o, n) => o.mode === "read" ? (C(), h("span", S, w(u.value), 1)) : B("", !0);
114
+ }
115
+ });
116
+ export {
117
+ v as default
118
+ };
@@ -0,0 +1,11 @@
1
+ import { ApFieldSwitchProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare const _default: DefineComponent<ApFieldSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldSwitchProps> & Readonly<{}>, {
4
+ size: "small" | "default";
5
+ disabled: boolean;
6
+ loading: boolean;
7
+ checkedValue: string | number | boolean;
8
+ unCheckedValue: string | number | boolean;
9
+ emptyText: string;
10
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
11
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./read.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,58 @@
1
+ import { defineComponent as u, computed as a, createVNode as d, Fragment as c, createBlock as r, openBlock as i, resolveDynamicComponent as s } from "vue";
2
+ import { isNil as h } from "lodash-unified";
3
+ const k = /* @__PURE__ */ u({
4
+ name: "ApFieldSwitchRead",
5
+ __name: "read",
6
+ props: {
7
+ mode: {},
8
+ class: {},
9
+ style: {},
10
+ id: {},
11
+ prefixCls: {},
12
+ size: {
13
+ default: "default"
14
+ },
15
+ disabled: {
16
+ type: Boolean,
17
+ default: void 0
18
+ },
19
+ checkedChildren: {},
20
+ unCheckedChildren: {},
21
+ tabindex: {},
22
+ autofocus: {
23
+ type: Boolean
24
+ },
25
+ loading: {
26
+ type: Boolean,
27
+ default: void 0
28
+ },
29
+ checked: {},
30
+ checkedValue: {
31
+ default: !0
32
+ },
33
+ unCheckedValue: {
34
+ default: !1
35
+ },
36
+ onChange: {},
37
+ onKeydown: {},
38
+ onMouseup: {},
39
+ "onUpdate:checked": {},
40
+ onBlur: {},
41
+ onFocus: {},
42
+ emptyText: {
43
+ default: "--"
44
+ },
45
+ onAction: {},
46
+ confirm: {}
47
+ },
48
+ setup(o) {
49
+ const e = o, t = a(() => {
50
+ const n = e.checked;
51
+ return h(n) ? d(c, null, [e.emptyText]) : n === e.checkedValue ? d(c, null, [e.checkedChildren || `${e.checkedValue}`]) : d(c, null, [e.unCheckedChildren || `${e.unCheckedValue}`]);
52
+ });
53
+ return (n, l) => (i(), r(s(t.value)));
54
+ }
55
+ });
56
+ export {
57
+ k as default
58
+ };
@@ -0,0 +1,16 @@
1
+ import { ApFieldTextPasswordProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { FieldMode } from '..';
4
+ declare const _default: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextPasswordProps> & Readonly<{}>, {
5
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
6
+ mode: FieldMode;
7
+ visible: boolean;
8
+ disabled: boolean;
9
+ bordered: boolean;
10
+ lazy: boolean;
11
+ allowClear: boolean;
12
+ emptyText: string;
13
+ action: string;
14
+ visibilityToggle: boolean;
15
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./read-password.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,82 @@
1
+ import { defineComponent as p, unref as e, createElementBlock as r, createBlock as l, openBlock as t, Fragment as s, createTextVNode as f, toDisplayString as i, withCtx as y, createElementVNode as u } from "vue";
2
+ import { Space as c } from "@aplus-frontend/antdv";
3
+ import { EyeOutlined as m, EyeInvisibleOutlined as B } from "@ant-design/icons-vue";
4
+ const g = /* @__PURE__ */ p({
5
+ name: "ApFieldTextPasswordRead",
6
+ __name: "read-password",
7
+ props: {
8
+ mode: { default: "edit" },
9
+ class: {},
10
+ style: {},
11
+ id: {},
12
+ placeholder: {},
13
+ autocomplete: {},
14
+ type: { default: "text" },
15
+ name: {},
16
+ size: {},
17
+ autofocus: { type: Boolean },
18
+ lazy: { type: Boolean, default: !0 },
19
+ maxlength: {},
20
+ loading: { type: Boolean },
21
+ bordered: { type: Boolean, default: !0 },
22
+ showCount: { type: [Boolean, Object] },
23
+ htmlSize: {},
24
+ onPressEnter: {},
25
+ onKeydown: {},
26
+ onKeyup: {},
27
+ onMousedown: {},
28
+ onMouseUp: {},
29
+ onFocus: {},
30
+ onBlur: {},
31
+ onChange: {},
32
+ onInput: {},
33
+ onRawInput: {},
34
+ "onUpdate:value": {},
35
+ onCompositionstart: {},
36
+ onCompositionend: {},
37
+ valueModifiers: {},
38
+ hidden: { type: Boolean },
39
+ status: {},
40
+ value: {},
41
+ defaultValue: {},
42
+ inputElement: {},
43
+ prefixCls: {},
44
+ disabled: { type: Boolean, default: void 0 },
45
+ focused: { type: Boolean },
46
+ triggerFocus: {},
47
+ readonly: { type: Boolean },
48
+ handleReset: {},
49
+ addonBefore: {},
50
+ addonAfter: {},
51
+ prefix: {},
52
+ suffix: {},
53
+ clearIcon: {},
54
+ allowClear: { type: Boolean, default: !0 },
55
+ inputPrefixCls: {},
56
+ action: { default: "click" },
57
+ visibilityToggle: { type: Boolean, default: !0 },
58
+ visible: { type: Boolean, default: void 0 },
59
+ "onUpdate:visible": {},
60
+ emptyText: { default: "--" }
61
+ },
62
+ setup(d) {
63
+ const o = e(d.visible);
64
+ return (n, a) => n.value ? (t(), l(e(c), { key: 1 }, {
65
+ default: y(() => [
66
+ u("span", null, i(e(o) ? n.value : "********"), 1),
67
+ u("span", {
68
+ style: { cursor: "pointer" },
69
+ onClick: a[0] || (a[0] = () => o.value = !e(o))
70
+ }, [
71
+ e(o) ? (t(), l(e(m), { key: 0 })) : (t(), l(e(B), { key: 1 }))
72
+ ])
73
+ ]),
74
+ _: 1
75
+ })) : (t(), r(s, { key: 0 }, [
76
+ f(i(n.emptyText), 1)
77
+ ], 64));
78
+ }
79
+ });
80
+ export {
81
+ g as default
82
+ };
@@ -0,0 +1,13 @@
1
+ import { ApFieldTextProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { FieldMode } from '..';
4
+ declare const _default: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextProps> & Readonly<{}>, {
5
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
6
+ mode: FieldMode;
7
+ disabled: boolean;
8
+ bordered: boolean;
9
+ lazy: boolean;
10
+ allowClear: boolean;
11
+ emptyText: string;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
13
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./read.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,63 @@
1
+ import { defineComponent as a, createElementBlock as l, openBlock as p, toDisplayString as o } from "vue";
2
+ const r = /* @__PURE__ */ a({
3
+ name: "ApFieldTextRead",
4
+ __name: "read",
5
+ props: {
6
+ mode: { default: "edit" },
7
+ class: {},
8
+ style: {},
9
+ id: {},
10
+ placeholder: {},
11
+ autocomplete: {},
12
+ type: { default: "text" },
13
+ name: {},
14
+ size: {},
15
+ autofocus: { type: Boolean },
16
+ lazy: { type: Boolean, default: !0 },
17
+ maxlength: {},
18
+ loading: { type: Boolean },
19
+ bordered: { type: Boolean, default: !0 },
20
+ showCount: { type: [Boolean, Object] },
21
+ htmlSize: {},
22
+ onPressEnter: {},
23
+ onKeydown: {},
24
+ onKeyup: {},
25
+ onMousedown: {},
26
+ onMouseUp: {},
27
+ onFocus: {},
28
+ onBlur: {},
29
+ onChange: {},
30
+ onInput: {},
31
+ onRawInput: {},
32
+ "onUpdate:value": {},
33
+ onCompositionstart: {},
34
+ onCompositionend: {},
35
+ valueModifiers: {},
36
+ hidden: { type: Boolean },
37
+ status: {},
38
+ value: {},
39
+ defaultValue: {},
40
+ inputElement: {},
41
+ prefixCls: {},
42
+ disabled: { type: Boolean, default: void 0 },
43
+ focused: { type: Boolean },
44
+ triggerFocus: {},
45
+ readonly: { type: Boolean },
46
+ handleReset: {},
47
+ addonBefore: {},
48
+ addonAfter: {},
49
+ prefix: {},
50
+ suffix: {},
51
+ clearIcon: {},
52
+ allowClear: { type: Boolean, default: !0 },
53
+ emptyText: { default: "--" },
54
+ beforeInput: {}
55
+ },
56
+ setup(t) {
57
+ const e = t;
58
+ return (n, u) => (p(), l("span", null, o(e.prefix) + " " + o(n.value || e.emptyText) + " " + o(e.suffix), 1));
59
+ }
60
+ });
61
+ export {
62
+ r as default
63
+ };
@@ -0,0 +1,13 @@
1
+ import { ApFieldTextAreaProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { FieldMode } from '..';
4
+ declare const _default: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTextAreaProps> & Readonly<{}>, {
5
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
6
+ mode: FieldMode;
7
+ disabled: boolean;
8
+ bordered: boolean;
9
+ lazy: boolean;
10
+ allowClear: boolean;
11
+ emptyText: string;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./read.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,69 @@
1
+ import { defineComponent as o, createElementBlock as t, createCommentVNode as a, openBlock as n, toDisplayString as l, unref as r } from "vue";
2
+ import { isNil as p } from "lodash-unified";
3
+ const u = {
4
+ key: 0,
5
+ style: {
6
+ whiteSpace: "pre-wrap",
7
+ wordWrap: "break-word",
8
+ wordBreak: "break-all"
9
+ }
10
+ }, y = /* @__PURE__ */ o({
11
+ name: "ApFieldTextAreaRead",
12
+ __name: "read",
13
+ props: {
14
+ mode: { default: "edit" },
15
+ class: {},
16
+ style: {},
17
+ rows: {},
18
+ autoSize: { type: [Boolean, Object] },
19
+ onResize: {},
20
+ onCompositionstart: {},
21
+ onCompositionend: {},
22
+ valueModifiers: {},
23
+ size: {},
24
+ value: {},
25
+ name: {},
26
+ type: { default: "text" },
27
+ onFocus: {},
28
+ onBlur: {},
29
+ onChange: {},
30
+ onInput: {},
31
+ onKeydown: {},
32
+ onKeyup: {},
33
+ onMousedown: {},
34
+ focused: { type: Boolean },
35
+ hidden: { type: Boolean },
36
+ disabled: { type: Boolean, default: void 0 },
37
+ prefixCls: {},
38
+ autocomplete: {},
39
+ loading: { type: Boolean },
40
+ bordered: { type: Boolean, default: !0 },
41
+ defaultValue: {},
42
+ status: {},
43
+ placeholder: {},
44
+ allowClear: { type: Boolean, default: !0 },
45
+ autofocus: { type: Boolean },
46
+ id: {},
47
+ clearIcon: {},
48
+ readonly: { type: Boolean },
49
+ "onUpdate:value": {},
50
+ lazy: { type: Boolean, default: !0 },
51
+ maxlength: {},
52
+ showCount: { type: [Boolean, Object] },
53
+ htmlSize: {},
54
+ onPressEnter: {},
55
+ onMouseUp: {},
56
+ onRawInput: {},
57
+ inputElement: {},
58
+ triggerFocus: {},
59
+ handleReset: {},
60
+ emptyText: { default: "--" },
61
+ beforeInput: {}
62
+ },
63
+ setup(d) {
64
+ return (e, s) => e.mode === "read" ? (n(), t("span", u, l(r(p)(e.value) || e.value === "" ? e.emptyText : e.value), 1)) : a("", !0);
65
+ }
66
+ });
67
+ export {
68
+ y as default
69
+ };
@@ -0,0 +1,8 @@
1
+ import { ApFieldTreeSelectProps } from '../interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ import { FieldMode } from '..';
4
+ declare const _default: DefineComponent<ApFieldTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFieldTreeSelectProps> & Readonly<{}>, {
5
+ mode: FieldMode;
6
+ emptyText: string;
7
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import f from "./read.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,182 @@
1
+ import { isVNode as w, defineComponent as x, computed as C, createVNode as a, Fragment as m, createBlock as N, openBlock as S, resolveDynamicComponent as T } from "vue";
2
+ import { isArray as b } from "lodash-unified";
3
+ import { Space as v, Tag as V } from "@aplus-frontend/antdv";
4
+ function y(n) {
5
+ return typeof n == "function" || Object.prototype.toString.call(n) === "[object Object]" && !w(n);
6
+ }
7
+ const _ = /* @__PURE__ */ x({
8
+ name: "ApFieldTreeSelectRead",
9
+ __name: "read",
10
+ props: {
11
+ mode: {
12
+ default: "edit"
13
+ },
14
+ class: {},
15
+ style: {},
16
+ suffixIcon: {},
17
+ size: {},
18
+ bordered: {
19
+ type: Boolean
20
+ },
21
+ treeLine: {},
22
+ replaceFields: {},
23
+ placement: {},
24
+ status: {},
25
+ popupClassName: {},
26
+ dropdownClassName: {},
27
+ "onUpdate:value": {},
28
+ "onUpdate:treeExpandedKeys": {},
29
+ "onUpdate:searchValue": {},
30
+ value: {},
31
+ children: {},
32
+ listHeight: {},
33
+ onMouseenter: {},
34
+ onMouseleave: {},
35
+ tabindex: {},
36
+ onClick: {},
37
+ onFocus: {},
38
+ onBlur: {},
39
+ onChange: {},
40
+ onKeydown: {},
41
+ onKeyup: {},
42
+ onMousedown: {},
43
+ onSelect: {},
44
+ open: {
45
+ type: Boolean
46
+ },
47
+ animation: {},
48
+ direction: {},
49
+ multiple: {
50
+ type: Boolean
51
+ },
52
+ disabled: {
53
+ type: Boolean
54
+ },
55
+ prefixCls: {},
56
+ getPopupContainer: {},
57
+ virtual: {
58
+ type: Boolean
59
+ },
60
+ dropdownMatchSelectWidth: {},
61
+ loading: {
62
+ type: Boolean
63
+ },
64
+ defaultValue: {},
65
+ showAction: {},
66
+ transitionName: {},
67
+ dropdownAlign: {},
68
+ placeholder: {},
69
+ allowClear: {
70
+ type: Boolean
71
+ },
72
+ autofocus: {
73
+ type: Boolean
74
+ },
75
+ defaultOpen: {
76
+ type: Boolean
77
+ },
78
+ id: {},
79
+ clearIcon: {},
80
+ notFoundContent: {},
81
+ onDeselect: {},
82
+ onSearch: {},
83
+ fieldNames: {},
84
+ dropdownStyle: {},
85
+ dropdownRender: {},
86
+ switcherIcon: {},
87
+ filterTreeNode: {},
88
+ treeData: {},
89
+ treeCheckable: {
90
+ type: Boolean
91
+ },
92
+ showSearch: {
93
+ type: Boolean
94
+ },
95
+ searchValue: {},
96
+ onInputKeyDown: {},
97
+ removeIcon: {},
98
+ maxTagCount: {},
99
+ maxTagTextLength: {},
100
+ maxTagPlaceholder: {},
101
+ tokenSeparators: {},
102
+ tagRender: {},
103
+ choiceTransitionName: {},
104
+ optionLabelRender: {},
105
+ onClear: {},
106
+ onDropdownVisibleChange: {},
107
+ getRawInputElement: {},
108
+ showArrow: {
109
+ type: Boolean
110
+ },
111
+ onPopupScroll: {},
112
+ listItemHeight: {},
113
+ inputValue: {},
114
+ autoClearSearchValue: {
115
+ type: Boolean
116
+ },
117
+ labelInValue: {
118
+ type: Boolean
119
+ },
120
+ showCheckedStrategy: {},
121
+ treeExpandAction: {},
122
+ treeDefaultExpandAll: {
123
+ type: Boolean
124
+ },
125
+ treeIcon: {},
126
+ treeLoadedKeys: {},
127
+ onTreeLoad: {},
128
+ treeNodeFilterProp: {},
129
+ treeNodeLabelProp: {},
130
+ treeCheckStrictly: {
131
+ type: Boolean
132
+ },
133
+ treeDataSimpleMode: {},
134
+ treeExpandedKeys: {},
135
+ treeDefaultExpandedKeys: {},
136
+ onTreeExpand: {},
137
+ dropdownPopupAlign: {},
138
+ emptyText: {
139
+ default: "--"
140
+ },
141
+ request: {},
142
+ lazy: {
143
+ type: Boolean
144
+ },
145
+ params: {},
146
+ loadData: {
147
+ type: Boolean
148
+ }
149
+ },
150
+ setup(n) {
151
+ const e = n, f = C(() => {
152
+ var s, u;
153
+ let l;
154
+ const r = e.value, i = b(r) ? r : [r].filter(Boolean);
155
+ if (!i.length)
156
+ return a(m, null, [e.emptyText]);
157
+ const o = [], h = ((s = e.fieldNames) == null ? void 0 : s.label) || "label", g = ((u = e.fieldNames) == null ? void 0 : u.value) || "value";
158
+ function c(t) {
159
+ var p;
160
+ for (const d of t) {
161
+ if (i.find((B) => B === d[g]) && o.push(d[h]), o.length === i.length)
162
+ return;
163
+ (p = d.children) != null && p.length && c(d.children);
164
+ }
165
+ }
166
+ return c(e.treeData), o.length ? o.length === 1 ? a("span", null, [o[0]]) : a(v, {
167
+ size: 4
168
+ }, y(l = o.map((t, p) => a(V, {
169
+ style: "margin-right: 0px",
170
+ key: `${t}-${p}`
171
+ }, y(t) ? t : {
172
+ default: () => [t]
173
+ }))) ? l : {
174
+ default: () => [l]
175
+ }) : a(m, null, [e.emptyText]);
176
+ });
177
+ return (l, r) => (S(), N(T(f.value)));
178
+ }
179
+ });
180
+ export {
181
+ _ as default
182
+ };
@@ -343,7 +343,7 @@ const Gt = /* @__PURE__ */ $e({
343
343
  return (r = s.value) == null ? void 0 : r.scrollToRow(l, t);
344
344
  }
345
345
  return B(
346
- [o.columnResizable, o.columns],
346
+ () => [o.columnResizable, o.columns],
347
347
  () => {
348
348
  var t;
349
349
  const e = _e();