@aplus-frontend/ui 0.4.31 → 0.4.32

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 (140) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +3 -3
  9. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  10. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  11. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  12. package/es/src/ap-field/date/index.vue.mjs +4 -4
  13. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  14. package/es/src/ap-field/index.mjs +30 -30
  15. package/es/src/ap-field/interface.d.ts +4 -0
  16. package/es/src/ap-field/number/index.vue.mjs +8 -8
  17. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  18. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  19. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  20. package/es/src/ap-field/select/index.vue.mjs +112 -93
  21. package/es/src/ap-field/select/use-select-options.d.ts +21 -0
  22. package/es/src/ap-field/select/use-select-options.mjs +43 -0
  23. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  24. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  25. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  26. package/es/src/ap-field/text/password.vue.mjs +2 -2
  27. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  28. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  29. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  30. package/es/src/ap-form/item/index.vue.mjs +7 -7
  31. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  32. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  33. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  34. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  35. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  40. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  41. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  42. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  43. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  44. package/es/src/ap-form/render/item.vue.mjs +2 -2
  45. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  46. package/es/src/ap-form/set/index.vue.mjs +1 -1
  47. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  48. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  49. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  50. package/es/src/ap-list/index.vue.mjs +4 -4
  51. package/es/src/ap-table/ap-table.vue2.mjs +28 -28
  52. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +3 -3
  53. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  54. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +52 -33
  55. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  56. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  57. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  58. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  59. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  60. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  61. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  62. package/es/src/ap-table/constants.mjs +40 -40
  63. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  64. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  65. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  66. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  67. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  68. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  69. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  70. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  71. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  72. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  73. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  74. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  75. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  76. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  77. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  78. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  79. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  80. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  81. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  82. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  83. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  84. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  85. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +1 -1
  86. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +1 -1
  87. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  88. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  89. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  90. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  91. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  92. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  93. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  94. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  95. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  96. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  97. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  98. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  99. package/es/src/business/batch-input-group/index.vue.d.ts +1 -0
  100. package/es/src/business/batch-input-group/index.vue.mjs +70 -60
  101. package/es/src/business/batch-input-group/interface.d.ts +5 -1
  102. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  103. package/es/src/business/hooks/useTableRefresh.mjs +39 -32
  104. package/es/src/check-card/index.vue2.mjs +3 -3
  105. package/es/src/editable-table/form-item.vue.mjs +2 -2
  106. package/es/src/editable-table/index.vue.mjs +2 -2
  107. package/es/src/full-screen/index.vue.mjs +3 -3
  108. package/es/src/hooks/useFullScreen.mjs +5 -5
  109. package/es/src/locale/lang/en.mjs +2 -2
  110. package/es/src/locale/lang/zh-cn.mjs +2 -2
  111. package/es/src/portal/index.vue.mjs +2 -2
  112. package/es/src/scroll-bar/index.vue.mjs +3 -3
  113. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  114. package/es/src/scroll-view/index.vue.mjs +9 -9
  115. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  116. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  117. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  118. package/lib/src/ap-field/index.js +1 -1
  119. package/lib/src/ap-field/interface.d.ts +4 -0
  120. package/lib/src/ap-field/select/index.vue.js +1 -1
  121. package/lib/src/ap-field/select/use-select-options.d.ts +21 -0
  122. package/lib/src/ap-field/select/use-select-options.js +1 -0
  123. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  124. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  125. package/lib/src/ap-table/constants.js +1 -1
  126. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  127. package/lib/src/business/batch-input-group/index.vue.d.ts +1 -0
  128. package/lib/src/business/batch-input-group/index.vue.js +2 -2
  129. package/lib/src/business/batch-input-group/interface.d.ts +5 -1
  130. package/lib/src/business/hooks/useTableRefresh.js +1 -1
  131. package/lib/src/locale/lang/en.js +1 -1
  132. package/lib/src/locale/lang/zh-cn.js +1 -1
  133. package/package.json +3 -3
  134. package/theme/batch-input-group/index.css +5 -1
  135. package/theme/batch-input-group/index.less +1 -0
  136. package/theme/batch-input-group/popover-input.css +2 -1
  137. package/theme/batch-input-group/popover-input.less +5 -1
  138. package/theme/index.css +5 -1
  139. package/theme/ap-scroll-bar/index.css +0 -31
  140. package/theme/ap-scroll-bar/index.less +0 -39
@@ -1,18 +1,19 @@
1
- import { defineComponent as O, ref as g, computed as r, unref as n, openBlock as B, createElementBlock as P, createVNode as d, withCtx as A, createBlock as T, normalizeStyle as z, createCommentVNode as K, mergeProps as M } from "vue";
1
+ import { defineComponent as N, ref as g, computed as u, unref as n, createElementBlock as $, openBlock as B, normalizeStyle as b, normalizeClass as K, createVNode as c, withCtx as A, createBlock as M, createCommentVNode as D, mergeProps as q } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
- import { Space as $ } from "@aplus-frontend/antdv";
3
+ import { Space as G } from "@aplus-frontend/antdv";
4
4
  import "../../config-provider/index.mjs";
5
- import { omit as D } from "lodash-unified";
5
+ import { isNumber as H, omit as Y } from "lodash-unified";
6
6
  import "./popover-input/index.vue.mjs";
7
7
  import "../../hooks/index.mjs";
8
- import { isDef as G } from "../../utils/index.mjs";
9
- import { useDefaultPlaceholder as N } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
- import { useControllableValue as q } from "../../hooks/useControllableValue.mjs";
11
- import { useLocale as H } from "../../config-provider/hooks/use-locale.mjs";
12
- import Y from "../../ap-field/select/index.vue.mjs";
13
- import { ApFieldText as J } from "../../ap-field/text/index.mjs";
14
- import Q from "./popover-input/index.vue2.mjs";
15
- const c = "GROUP_SEARCH_ALL", de = /* @__PURE__ */ O({
8
+ import { isDef as J } from "../../utils/index.mjs";
9
+ import { useDefaultPlaceholder as Q } from "../../ap-field/hooks/use-default-placeholder.mjs";
10
+ import { useControllableValue as W } from "../../hooks/useControllableValue.mjs";
11
+ import { useLocale as X } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
13
+ import ee from "../../ap-field/select/index.vue.mjs";
14
+ import { ApFieldText as te } from "../../ap-field/text/index.mjs";
15
+ import oe from "./popover-input/index.vue2.mjs";
16
+ const d = "GROUP_SEARCH_ALL", ge = /* @__PURE__ */ N({
16
17
  __name: "index",
17
18
  props: {
18
19
  style: { type: [Boolean, null, String, Object, Array] },
@@ -21,6 +22,7 @@ const c = "GROUP_SEARCH_ALL", de = /* @__PURE__ */ O({
21
22
  hasAll: { type: Boolean, default: !0 },
22
23
  value: {},
23
24
  "onUpdate:value": {},
25
+ popoverPlacement: { default: "left" },
24
26
  mode: { default: "edit" },
25
27
  class: {},
26
28
  id: {},
@@ -68,54 +70,60 @@ const c = "GROUP_SEARCH_ALL", de = /* @__PURE__ */ O({
68
70
  emptyText: { default: "--" }
69
71
  },
70
72
  emits: ["update:value"],
71
- setup(b, { emit: V }) {
72
- const l = b, C = N("Text", l), S = V, { value: a, updateValue: i } = q(
73
+ setup(V, { emit: C }) {
74
+ const l = V, S = Q("Text", l), x = C, { value: a, updateValue: p } = W(
73
75
  l,
74
- S
75
- ), s = g(), f = g(), { t: I } = H(), U = r(() => l.options ? l.options.length > 1 && l.hasAll ? [
76
- { value: c, label: I("ap.apGroupSearch.all") },
76
+ x
77
+ ), i = g(), f = g(), { t: I } = X(), { b: P, cssVar: U } = Z("batch-input-group"), w = u(() => {
78
+ const e = l.popoverPlacement;
79
+ return console.log("placement", l.popoverPlacement), {
80
+ "popover-left": H(e) ? `${e}px` : e === "left" ? "0px" : "unset",
81
+ "popover-right": e === "right" ? "0px" : "unset"
82
+ };
83
+ }), k = u(() => l.options ? l.options.length > 1 && l.hasAll ? [
84
+ { value: d, label: I("ap.common.all") },
77
85
  ...l.options
78
- ] : l.options : []), w = r(() => l.options ? l.options.map((e) => e.value) : []), k = r(() => {
86
+ ] : l.options : []), R = u(() => l.options ? l.options.map((e) => e.value) : []), _ = u(() => {
79
87
  var e, t;
80
88
  return (t = (e = n(a)) == null ? void 0 : e.value) != null && t.length ? n(a).value.join(",") : "";
81
- }), x = r(() => {
89
+ }), j = u(() => {
82
90
  var e, t;
83
91
  return (t = (e = n(a)) == null ? void 0 : e.value) != null && t.length ? n(a).value.join(`
84
92
  `) : "";
85
- }), R = r(() => {
93
+ }), E = u(() => {
86
94
  var t;
87
95
  const e = (t = n(a)) == null ? void 0 : t.key;
88
96
  if (e != null && e.length)
89
- return e.length === 1 ? e[0] : c;
90
- }), _ = r(() => {
97
+ return e.length === 1 ? e[0] : d;
98
+ }), F = u(() => {
91
99
  var o;
92
100
  const e = (o = n(a)) == null ? void 0 : o.key;
93
- return !e || (e == null ? void 0 : e.length) <= 1 ? n(C) : (l.options || []).filter((u) => e.includes(u.value)).map((u) => u.label).join("/");
101
+ return !e || (e == null ? void 0 : e.length) <= 1 ? n(S) : (l.options || []).filter((r) => e.includes(r.value)).map((r) => r.label).join("/");
94
102
  });
95
- function j(e) {
96
- const t = n(a) || {}, o = e === c ? n(w) : G(e) ? [e] : [];
97
- i({
103
+ function L(e) {
104
+ const t = n(a) || {}, o = e === d ? n(R) : J(e) ? [e] : [];
105
+ p({
98
106
  ...t,
99
107
  key: o
100
108
  });
101
109
  }
102
- function E(e) {
110
+ function O(e) {
103
111
  var v, y;
104
- const t = n(a) || {}, o = e.target.value || "", u = o.replace(/[,]+/g, ",");
105
- if (o !== u) {
112
+ const t = n(a) || {}, o = e.target.value || "", r = o.replace(/[,]+/g, ",");
113
+ if (o !== r) {
106
114
  const h = (y = (v = f.value) == null ? void 0 : v.$el) == null ? void 0 : y.querySelector("input");
107
- h && (h.value = u);
115
+ h && (h.value = r);
108
116
  }
109
- let p = u.split(",");
110
- p.length === 1 && p[0] === "" && (p = []), i({
117
+ let s = r.split(",");
118
+ s.length === 1 && s[0] === "" && (s = []), p({
111
119
  ...t,
112
- value: p
120
+ value: s
113
121
  });
114
122
  }
115
- function F(e) {
123
+ function z(e) {
116
124
  const t = n(a) || {};
117
125
  let o = e.split(/,|\n/);
118
- i({
126
+ p({
119
127
  ...t,
120
128
  value: o
121
129
  });
@@ -123,41 +131,42 @@ const c = "GROUP_SEARCH_ALL", de = /* @__PURE__ */ O({
123
131
  function m() {
124
132
  var o;
125
133
  const e = n(a) || {}, t = (o = e.value) == null ? void 0 : o.filter(Boolean);
126
- i({
134
+ p({
127
135
  ...e,
128
136
  value: t
129
137
  });
130
138
  }
131
- function L(e) {
139
+ function T(e) {
132
140
  var t;
133
141
  m(), (t = l.onBlur) == null || t.call(l, e);
134
142
  }
135
- return (e, t) => (B(), P("div", {
143
+ return (e, t) => (B(), $("div", {
136
144
  ref_key: "containerRef",
137
- ref: s,
138
- style: { position: "relative" },
145
+ ref: i,
146
+ class: K(n(P)()),
147
+ style: b(n(U)(w.value)),
139
148
  onFocus: t[0] || (t[0] = //@ts-ignore
140
149
  (...o) => e.onFocus && e.onFocus(...o)),
141
150
  onBlur: t[1] || (t[1] = //@ts-ignore
142
151
  (...o) => e.onBlur && e.onBlur(...o))
143
152
  }, [
144
- d(n($).Compact, { block: "" }, {
153
+ c(n(G).Compact, { block: "" }, {
145
154
  default: A(() => {
146
155
  var o;
147
156
  return [
148
- (o = e.options) != null && o.length ? (B(), T(n(Y), {
157
+ (o = e.options) != null && o.length ? (B(), M(n(ee), {
149
158
  key: 0,
150
- style: z(e.style),
151
- options: U.value,
152
- value: R.value,
159
+ style: b(e.style),
160
+ options: k.value,
161
+ value: E.value,
153
162
  "allow-clear": !1,
154
163
  "dropdown-match-select-width": !1,
155
164
  disabled: e.disabled,
156
- "get-popup-container": () => s.value,
157
- "onUpdate:value": j
158
- }, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : K("", !0),
159
- d(n(J), M(
160
- n(D)(l, [
165
+ "get-popup-container": () => i.value,
166
+ "onUpdate:value": L
167
+ }, null, 8, ["style", "options", "value", "disabled", "get-popup-container"])) : D("", !0),
168
+ c(n(te), q(
169
+ n(Y)(l, [
161
170
  "style",
162
171
  "value",
163
172
  "onUpdate:value",
@@ -169,20 +178,21 @@ const c = "GROUP_SEARCH_ALL", de = /* @__PURE__ */ O({
169
178
  ref_key: "inputRef",
170
179
  ref: f,
171
180
  style: e.inputStyle,
172
- value: k.value,
173
- placeholder: _.value,
174
- onInput: E,
175
- onBlur: L
181
+ value: _.value,
182
+ placeholder: F.value,
183
+ onInput: O,
184
+ onBlur: T
176
185
  }
177
186
  ), {
178
187
  suffix: A(() => [
179
- d(Q, {
180
- _parent: s.value,
181
- value: x.value,
188
+ c(oe, {
189
+ _parent: i.value,
190
+ value: j.value,
182
191
  disabled: e.disabled,
183
- "onUpdate:value": F,
192
+ placement: l.popoverPlacement,
193
+ "onUpdate:value": z,
184
194
  onClose: m
185
- }, null, 8, ["_parent", "value", "disabled"])
195
+ }, null, 8, ["_parent", "value", "disabled", "placement"])
186
196
  ]),
187
197
  _: 1
188
198
  }, 16, ["style", "value", "placeholder"])
@@ -190,9 +200,9 @@ const c = "GROUP_SEARCH_ALL", de = /* @__PURE__ */ O({
190
200
  }),
191
201
  _: 1
192
202
  })
193
- ], 544));
203
+ ], 38));
194
204
  }
195
205
  });
196
206
  export {
197
- de as default
207
+ ge as default
198
208
  };
@@ -1,4 +1,4 @@
1
- import { ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
1
+ import { ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field/interface';
2
2
  import { ApFormItemProps } from '../../ap-form';
3
3
  import { DefaultOptionType } from '@aplus-frontend/antdv/es/select';
4
4
  import { StyleValue } from 'vue';
@@ -28,6 +28,10 @@ export interface BatchInputGroupProps extends Omit<ApFieldTextProps, 'value' | '
28
28
  */
29
29
  value?: BatchInputGroupValueType;
30
30
  'onUpdate:value'?: (nextValue: BatchInputGroupValueType) => void;
31
+ /**
32
+ * 设置弹出层弹出的位置,默认为`left`
33
+ */
34
+ popoverPlacement?: 'left' | 'right' | number;
31
35
  }
32
36
  export interface BatchInputGroupPopoverInputProps extends Pick<ApFieldTextAreaProps, 'value' | 'onUpdate:value'> {
33
37
  _parent?: HTMLElement;
@@ -1,4 +1,4 @@
1
- import { defineComponent as A, ref as m, openBlock as w, createElementBlock as B, normalizeClass as p, unref as e, createVNode as c, withCtx as d, createElementVNode as L } from "vue";
1
+ import { defineComponent as A, ref as m, createElementBlock as w, openBlock as B, normalizeClass as p, unref as e, createVNode as c, withCtx as d, createElementVNode as L } from "vue";
2
2
  import { Popover as N, Textarea as P } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
4
  import { IconApAdLineScreen as z } from "@aplus-frontend/icon";
@@ -33,7 +33,7 @@ const D = /* @__PURE__ */ A({
33
33
  o.disabled ? n.value = !1 : n.value = t, !t && ((a = o.onClose) == null || a.call(o));
34
34
  }
35
35
  const { b: u, e: I, em: V, bm: k } = O("batch-input-group-popover-input");
36
- return (t, a) => (w(), B("div", {
36
+ return (t, a) => (B(), w("div", {
37
37
  class: p(e(u)())
38
38
  }, [
39
39
  c(e(N), {
@@ -1,50 +1,57 @@
1
- import { ref as Y, onMounted as x, nextTick as y, onActivated as D, onDeactivated as o } from "vue";
1
+ import { ref as h, onMounted as x, nextTick as y, onActivated as D, onDeactivated as E } from "vue";
2
2
  import "../../index.mjs";
3
- import { useGlobalConfig as E } from "../../config-provider/hooks/use-global-config.mjs";
4
- function v(e) {
5
- return document.querySelector(e);
3
+ import { useGlobalConfig as R } from "../../config-provider/hooks/use-global-config.mjs";
4
+ function L(e) {
5
+ return e === "admin" ? window : (window.top !== window ? window.top : window) ?? window;
6
6
  }
7
- function L(e, s = ".demo") {
8
- const a = v(s);
9
- a && (a.scrollTop = e);
7
+ function f(e, r) {
8
+ return r.document.querySelector(e);
9
+ }
10
+ function M(e, r = ".demo", m) {
11
+ const s = f(r, m);
12
+ s && (s.scrollTop = e);
10
13
  }
11
14
  function C(e) {
12
- const s = E("scrollYDomName");
13
- let a = !0;
14
- const d = Y(0), T = Y(0), g = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", b = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
15
- let S = !0;
16
- const n = (c) => {
17
- if (a === !1) return;
18
- const l = c.target;
19
- T.value = l.scrollTop;
15
+ const r = R("scrollYDomName"), m = R("uiMode"), s = L(m.value ?? "aplus");
16
+ let v = !0;
17
+ const o = h(0), w = h(0), Y = (["reset", "submit", void 0].includes(e == null ? void 0 : e.refreshType) ? e == null ? void 0 : e.refreshType : "submit") ?? "submit", T = (e == null ? void 0 : e.refreshBefore) ?? (() => !0);
18
+ let i = !0;
19
+ const b = (u) => {
20
+ if (v === !1) return;
21
+ const l = u.target;
22
+ w.value = l.scrollTop;
20
23
  };
21
24
  return x(() => {
22
25
  y(() => {
23
- S = !1;
26
+ i = !1;
24
27
  });
25
28
  }), D(() => {
26
- const c = b == null ? void 0 : b();
27
- if (S) {
29
+ const u = T == null ? void 0 : T();
30
+ if (i) {
28
31
  setTimeout(() => {
29
- const l = v(s.value);
30
- l && l.addEventListener("scroll", n);
32
+ const l = f(r.value, s);
33
+ l && l.addEventListener("scroll", b);
31
34
  });
32
35
  return;
33
36
  }
34
- c && setTimeout(() => {
35
- var t, u, r, m, h, f, R;
36
- a = !0, (u = (t = e == null ? void 0 : e.apTableRef) == null ? void 0 : t.value) == null || u[g](), (R = (f = (h = (m = (r = e == null ? void 0 : e.apTableRef) == null ? void 0 : r.value) == null ? void 0 : m.scrollBar) == null ? void 0 : h.x) == null ? void 0 : f.scroll) == null || R.call(f, d.value), L(T.value, s.value);
37
- const l = v(s.value);
38
- l && l.addEventListener("scroll", n);
37
+ u && setTimeout(() => {
38
+ var c, a, t, d, S, n, g;
39
+ v = !0, (a = (c = e == null ? void 0 : e.apTableRef) == null ? void 0 : c.value) == null || a[Y](), (g = (n = (S = (d = (t = e == null ? void 0 : e.apTableRef) == null ? void 0 : t.value) == null ? void 0 : d.scrollBar) == null ? void 0 : S.x) == null ? void 0 : n.scroll) == null || g.call(n, o.value), M(
40
+ w.value,
41
+ r.value,
42
+ s
43
+ );
44
+ const l = f(r.value, s);
45
+ l && l.addEventListener("scroll", b);
39
46
  });
40
- }), o(() => {
41
- var l, t, u, r, m;
42
- a = !1, d.value = ((m = (r = (u = (t = (l = e == null ? void 0 : e.apTableRef) == null ? void 0 : l.value) == null ? void 0 : t.scrollBar) == null ? void 0 : u.x) == null ? void 0 : r.getCurrentScroll) == null ? void 0 : m.call(r)) ?? 0;
43
- const c = v(s.value);
44
- c && c.removeEventListener("scroll", n);
47
+ }), E(() => {
48
+ var l, c, a, t, d;
49
+ v = !1, o.value = ((d = (t = (a = (c = (l = e == null ? void 0 : e.apTableRef) == null ? void 0 : l.value) == null ? void 0 : c.scrollBar) == null ? void 0 : a.x) == null ? void 0 : t.getCurrentScroll) == null ? void 0 : d.call(t)) ?? 0;
50
+ const u = f(r.value, s);
51
+ u && u.removeEventListener("scroll", b);
45
52
  }), {
46
- tableScrollX: d,
47
- tableScrollY: T
53
+ tableScrollX: o,
54
+ tableScrollY: w
48
55
  };
49
56
  }
50
57
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, computed as d, unref as o, createVNode as m, Fragment as W, watch as $, watchEffect as j, openBlock as c, createElementBlock as C, normalizeStyle as D, normalizeClass as z, withModifiers as M, createBlock as f, renderSlot as O, resolveDynamicComponent as S, createCommentVNode as g, createElementVNode as U } from "vue";
1
+ import { defineComponent as I, computed as d, unref as o, createVNode as m, Fragment as W, watch as $, watchEffect as j, createElementBlock as C, openBlock as c, withModifiers as D, normalizeClass as z, normalizeStyle as M, createBlock as f, renderSlot as O, createCommentVNode as g, resolveDynamicComponent as S, createElementVNode as U } from "vue";
2
2
  import { Skeleton as q } from "@aplus-frontend/antdv";
3
3
  import "../config-provider/index.mjs";
4
4
  import "../hooks/index.mjs";
@@ -115,9 +115,9 @@ const K = ["src"], oe = /* @__PURE__ */ I({
115
115
  return (b = (u = l.value) == null ? void 0 : u.cancelValue) == null ? void 0 : b.call(u, a.value);
116
116
  });
117
117
  }), (e, t) => (c(), C("div", {
118
- style: D(T.value),
118
+ style: M(T.value),
119
119
  class: z(w.value),
120
- onClick: M(F, ["stop"])
120
+ onClick: D(F, ["stop"])
121
121
  }, [n.value.loading ? (c(), f(o(q), {
122
122
  key: 0,
123
123
  active: ""
@@ -1,4 +1,4 @@
1
- import { defineComponent as K, ref as d, unref as n, useSlots as M, watch as g, openBlock as G, createBlock as H, mergeProps as b, withCtx as w, createVNode as W, createSlots as $, renderList as q, renderSlot as U, normalizeProps as J, guardReactiveProps as Q } from "vue";
1
+ import { defineComponent as K, ref as d, unref as n, useSlots as M, watch as g, createBlock as G, openBlock as H, mergeProps as b, withCtx as w, createVNode as W, createSlots as $, renderList as q, renderSlot as U, normalizeProps as J, guardReactiveProps as Q } from "vue";
2
2
  import { Table as X } from "@aplus-frontend/antdv";
3
3
  import { ApForm as C } from "../ap-form/index.mjs";
4
4
  import { isArray as Y, isEqual as Z, isNumber as f, cloneDeep as m, omit as y } from "lodash-unified";
@@ -194,7 +194,7 @@ const he = /* @__PURE__ */ K({
194
194
  scrollTo: z,
195
195
  setTableData: P,
196
196
  clear: O
197
- }), (e, o) => (G(), H(n(C).FormItem, b(e.formItem, {
197
+ }), (e, o) => (H(), G(n(C).FormItem, b(e.formItem, {
198
198
  name: e.name,
199
199
  label: e.label
200
200
  }), {
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, useSlots as $, ref as w, watch as C, unref as o, openBlock as q, createBlock as J, withCtx as c, createVNode as b, mergeProps as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as ee, guardReactiveProps as te } from "vue";
1
+ import { defineComponent as W, useSlots as $, ref as w, watch as C, unref as o, createBlock as q, openBlock as J, withCtx as c, createVNode as b, mergeProps as Q, createSlots as X, renderList as Y, renderSlot as Z, normalizeProps as ee, guardReactiveProps as te } from "vue";
2
2
  import { Table as ae } from "@aplus-frontend/antdv";
3
3
  import { ApForm as p } from "../ap-form/index.mjs";
4
4
  import { isEqual as ne, isArray as R, isNumber as x, cloneDeep as h, omit as F } from "lodash-unified";
@@ -209,7 +209,7 @@ const Ce = /* @__PURE__ */ W({
209
209
  scrollTo: H,
210
210
  clear: U,
211
211
  setTableData: K
212
- }), (e, t) => (q(), J(o(p), {
212
+ }), (e, t) => (J(), q(o(p), {
213
213
  ref_key: "formRef",
214
214
  ref: s,
215
215
  "initial-values": {
@@ -1,4 +1,4 @@
1
- import { defineComponent as R, ref as i, watch as E, unref as a, computed as n, openBlock as m, createBlock as d, withCtx as v, resolveDynamicComponent as z, mergeProps as C, renderSlot as F, createElementVNode as N, normalizeClass as S } from "vue";
1
+ import { defineComponent as R, ref as i, watch as E, unref as a, computed as n, createBlock as m, openBlock as d, withCtx as v, resolveDynamicComponent as z, mergeProps as C, renderSlot as F, createElementVNode as N, normalizeClass as S } from "vue";
2
2
  import "../hooks/index.mjs";
3
3
  import "../portal/index.mjs";
4
4
  import "../config-provider/index.mjs";
@@ -43,12 +43,12 @@ const H = /* @__PURE__ */ R({
43
43
  enter: o,
44
44
  exit: s,
45
45
  toggle: c
46
- }), (e, r) => (m(), d(a(B), {
46
+ }), (e, r) => (d(), m(a(B), {
47
47
  to: "body",
48
48
  disabled: l.value !== "window"
49
49
  }, {
50
50
  default: v(() => [
51
- (m(), d(z(e.wrapperElementName), C({
51
+ (d(), m(z(e.wrapperElementName), C({
52
52
  ref_key: "target",
53
53
  ref: f
54
54
  }, e.$attrs, {
@@ -1,5 +1,5 @@
1
1
  import { isClient as d } from "@vueuse/core";
2
- import { computed as c, unref as u, isRef as v, ref as f, watch as p } from "vue";
2
+ import { ref as c, computed as f, isRef as v, unref as u, watch as p } from "vue";
3
3
  const a = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new Set();
4
4
  d && document.addEventListener("fullscreenchange", () => {
5
5
  if (o.forEach((e) => e.value = !1), document.fullscreenElement) {
@@ -9,13 +9,13 @@ d && document.addEventListener("fullscreenchange", () => {
9
9
  e && (e.value = !0);
10
10
  }
11
11
  });
12
- const E = (e = f(null)) => {
13
- const i = c({
12
+ const E = (e = c(null)) => {
13
+ const i = f({
14
14
  get: () => u(e),
15
15
  set: (t) => {
16
16
  v(e) && (e.value = t);
17
17
  }
18
- }), l = f(!1);
18
+ }), l = c(!1);
19
19
  o.add(l), p(
20
20
  () => e.value,
21
21
  (t, n) => {
@@ -40,7 +40,7 @@ const E = (e = f(null)) => {
40
40
  }
41
41
  return {
42
42
  target: i,
43
- full: c(() => u(l)),
43
+ full: f(() => u(l)),
44
44
  enter: r,
45
45
  exit: s,
46
46
  toggle: m
@@ -12,7 +12,8 @@ const e = {
12
12
  chooseText: "Please choose",
13
13
  redo: "Refresh",
14
14
  back: "Back",
15
- more: "More"
15
+ more: "More",
16
+ all: "All"
16
17
  },
17
18
  field: {
18
19
  startDateText: "Start date",
@@ -142,7 +143,6 @@ const e = {
142
143
  },
143
144
  apGroupSearch: {
144
145
  defaultPlaceholder: "Please input",
145
- all: "All",
146
146
  close: "Close",
147
147
  clear: "Clear",
148
148
  confirm: "Confirm",
@@ -12,7 +12,8 @@ const e = {
12
12
  chooseText: "请选择",
13
13
  redo: "刷新",
14
14
  back: "返回",
15
- more: "更多"
15
+ more: "更多",
16
+ all: "全部"
16
17
  },
17
18
  field: {
18
19
  startDateText: "开始日期",
@@ -150,7 +151,6 @@ const e = {
150
151
  },
151
152
  apGroupSearch: {
152
153
  defaultPlaceholder: "请输入",
153
- all: "全部",
154
154
  close: "关闭",
155
155
  clear: "清空",
156
156
  confirm: "确定",
@@ -1,4 +1,4 @@
1
- import { defineComponent as r, openBlock as n, createBlock as p, Teleport as a, mergeProps as l, renderSlot as s } from "vue";
1
+ import { defineComponent as r, createBlock as n, openBlock as p, Teleport as a, mergeProps as l, renderSlot as s } from "vue";
2
2
  const m = /* @__PURE__ */ r({
3
3
  name: "Portal",
4
4
  __name: "index",
@@ -9,7 +9,7 @@ const m = /* @__PURE__ */ r({
9
9
  },
10
10
  setup(o) {
11
11
  const t = o;
12
- return (e, d) => (n(), p(a, l(t, {
12
+ return (e, d) => (p(), n(a, l(t, {
13
13
  to: e.to || "body"
14
14
  }), [
15
15
  s(e.$slots, "default")
@@ -1,4 +1,4 @@
1
- import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s, openBlock as k, createBlock as C, mergeProps as B, createCommentVNode as L } from "vue";
1
+ import { defineComponent as z, toRef as g, ref as p, watchEffect as x, unref as a, watch as _, computed as s, createBlock as k, createCommentVNode as C, openBlock as B, mergeProps as L } from "vue";
2
2
  import "./internal.vue2.mjs";
3
3
  import { omit as R } from "lodash-unified";
4
4
  import { getScrollable as u, ensureRangeValue as w } from "./utils/index.mjs";
@@ -79,14 +79,14 @@ const W = /* @__PURE__ */ z({
79
79
  var e;
80
80
  return a((e = l.value) == null ? void 0 : e.container);
81
81
  })
82
- }), (e, t) => n.value !== 100 ? (k(), C(E, B({
82
+ }), (e, t) => n.value !== 100 ? (B(), k(E, L({
83
83
  key: 0,
84
84
  ref_key: "barRef",
85
85
  ref: l
86
86
  }, a(R)(r, ["onScroll", "extraSize", "scrollContainer"]), {
87
87
  "bar-length": n.value,
88
88
  onScroll: d
89
- }), null, 16, ["bar-length"])) : L("", !0);
89
+ }), null, 16, ["bar-length"])) : C("", !0);
90
90
  }
91
91
  });
92
92
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, ref as f, toRef as h, watch as W, watchEffect as z, unref as o, openBlock as A, createElementBlock as N, normalizeClass as m, normalizeStyle as U, createElementVNode as L } from "vue";
1
+ import { defineComponent as V, ref as f, toRef as h, watch as W, watchEffect as z, unref as o, createElementBlock as A, openBlock as N, normalizeStyle as U, normalizeClass as m, createElementVNode as L } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import { useTrack as X } from "./hooks/use-track.mjs";
4
4
  import { ensureRangeValue as C } from "./utils/index.mjs";
@@ -88,7 +88,7 @@ const I = /* @__PURE__ */ V({
88
88
  bar: l,
89
89
  track: c,
90
90
  scroll: $
91
- }), (e, n) => (A(), N("div", {
91
+ }), (e, n) => (N(), A("div", {
92
92
  ref_key: "container",
93
93
  ref: k,
94
94
  class: m([o(B)(), o(P)(e.direction)]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as fe, ref as ue, reactive as he, computed as v, unref as l, watchEffect as _, watch as pe, openBlock as P, createElementBlock as ye, normalizeClass as B, normalizeStyle as M, withModifiers as A, createElementVNode as z, renderSlot as me, createBlock as L, mergeProps as O, createCommentVNode as T } from "vue";
1
+ import { defineComponent as fe, ref as ue, reactive as he, computed as v, unref as l, watchEffect as _, watch as pe, createElementBlock as ye, openBlock as P, withModifiers as M, normalizeStyle as A, normalizeClass as B, createElementVNode as z, renderSlot as me, createBlock as L, createCommentVNode as O, mergeProps as T } from "vue";
2
2
  import "../config-provider/index.mjs";
3
3
  import "../scroll-bar/index.mjs";
4
4
  import { isDef as f } from "../utils/index.mjs";
@@ -206,10 +206,10 @@ const Ye = /* @__PURE__ */ fe({
206
206
  ref_key: "containerRef",
207
207
  ref: s,
208
208
  class: B(l(J)()),
209
- style: M(oe.value),
209
+ style: A(oe.value),
210
210
  onWheel: [
211
- A(ae, ["exact"]),
212
- A(le, ["shift"])
211
+ M(ae, ["exact"]),
212
+ M(le, ["shift"])
213
213
  ]
214
214
  }, [
215
215
  z("div", {
@@ -221,21 +221,21 @@ const Ye = /* @__PURE__ */ fe({
221
221
  ], 2),
222
222
  z("div", {
223
223
  class: B([l(w)("bar-wrapper"), l(W)("bar-wrapper", "vertical")]),
224
- style: M(`height: calc(100% - ${m.value ? t.xBarProps.trackWidth || 10 : 0}px)`)
224
+ style: A(`height: calc(100% - ${m.value ? t.xBarProps.trackWidth || 10 : 0}px)`)
225
225
  }, [
226
- x.value ? (P(), L(l(H), O({
226
+ x.value ? (P(), L(l(H), T({
227
227
  key: 0,
228
228
  ref_key: "yBarRef",
229
229
  ref: Q
230
230
  }, t.yBarProps, {
231
231
  "bar-length": c.y,
232
232
  onScroll: e[0] || (e[0] = (a) => X(a, "vertical"))
233
- }), null, 16, ["bar-length"])) : T("", !0)
233
+ }), null, 16, ["bar-length"])) : O("", !0)
234
234
  ], 6),
235
235
  z("div", {
236
236
  class: B([l(w)("bar-wrapper"), l(W)("bar-wrapper", "horizontal")])
237
237
  }, [
238
- m.value ? (P(), L(l(H), O({
238
+ m.value ? (P(), L(l(H), T({
239
239
  key: 0,
240
240
  ref_key: "xBarRef",
241
241
  ref: K
@@ -243,7 +243,7 @@ const Ye = /* @__PURE__ */ fe({
243
243
  direction: "horizontal",
244
244
  "bar-length": c.x,
245
245
  onScroll: e[1] || (e[1] = (a) => X(a, "horizontal"))
246
- }), null, 16, ["bar-length"])) : T("", !0)
246
+ }), null, 16, ["bar-length"])) : O("", !0)
247
247
  ], 2)
248
248
  ], 38));
249
249
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, openBlock as s, createBlock as a, unref as o, withCtx as r, createElementVNode as t, toDisplayString as i, createVNode as d } from "vue";
1
+ import { defineComponent as n, createBlock as s, openBlock as a, unref as o, withCtx as r, createVNode as d, createElementVNode as t, toDisplayString as i } from "vue";
2
2
  import { QuestionCircleOutlined as p } from "@ant-design/icons-vue";
3
3
  import { Tooltip as m } from "@aplus-frontend/antdv";
4
4
  import "../config-provider/index.mjs";
@@ -7,7 +7,7 @@ const u = { class: "title" }, c = { class: "flex" }, _ = { class: "flex" }, w =
7
7
  __name: "help-message",
8
8
  setup(x) {
9
9
  const { t: l } = f();
10
- return (v, e) => (s(), a(o(m), { placement: "right" }, {
10
+ return (v, e) => (a(), s(o(m), { placement: "right" }, {
11
11
  title: r(() => [
12
12
  t("div", u, [
13
13
  t("div", c, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, ref as g, computed as F, openBlock as E, createElementBlock as N, createVNode as t, unref as e, mergeProps as L, withCtx as n, h as P } from "vue";
1
+ import { defineComponent as T, ref as g, computed as F, createElementBlock as E, openBlock as N, createVNode as t, unref as e, mergeProps as L, withCtx as n, h as P } from "vue";
2
2
  import { message as q, Modal as I, Input as A, Textarea as V } from "@aplus-frontend/antdv";
3
3
  import { ApForm as i } from "../ap-form/index.mjs";
4
4
  import "./help-message.vue.mjs";
@@ -86,7 +86,7 @@ const pe = /* @__PURE__ */ T({
86
86
  console.log(c.value);
87
87
  }, 500), m("modalClose");
88
88
  };
89
- return (r, a) => (E(), N("div", null, [
89
+ return (r, a) => (N(), E("div", null, [
90
90
  t(e(I), L(s, {
91
91
  width: 600,
92
92
  centered: !0,