@aplus-frontend/ui 0.6.0-beta.0 → 0.6.0-beta.1

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 (149) hide show
  1. package/es/src/ap-form/ap-form.vue2.mjs +57 -58
  2. package/es/src/ap-form/interface.d.ts +4 -0
  3. package/es/src/ap-form/item/index.vue.mjs +33 -28
  4. package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
  5. package/es/src/ap-form/items/date/index.vue.mjs +8 -7
  6. package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
  7. package/es/src/ap-form/items/number/index.vue.mjs +9 -8
  8. package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
  9. package/es/src/ap-form/items/select/index.vue.mjs +7 -6
  10. package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
  11. package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
  12. package/es/src/ap-form/items/text/password.vue.mjs +1 -0
  13. package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
  14. package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
  15. package/es/src/ap-form/render/item.vue.mjs +5 -4
  16. package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
  17. package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +8 -8
  18. package/es/src/ap-form/search-form/index.vue.mjs +35 -34
  19. package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
  20. package/es/src/ap-grid/editable/index.vue.mjs +1 -1
  21. package/es/src/ap-grid/index.vue.mjs +24 -23
  22. package/es/src/ap-grid/interface.d.ts +1 -1
  23. package/es/src/business/ap-view/ap-view.vue2.mjs +91 -88
  24. package/es/src/business/ap-view/components/main-button-content.vue2.mjs +25 -23
  25. package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +38 -38
  26. package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
  27. package/es/src/check-card/index.vue2.mjs +1 -1
  28. package/es/src/design-token/index.mjs +9 -3
  29. package/es/src/editable-table/form-item.vue.mjs +1 -1
  30. package/es/src/editable-table/index.vue.mjs +27 -27
  31. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  32. package/lib/src/ap-form/interface.d.ts +4 -0
  33. package/lib/src/ap-form/item/index.vue.js +1 -1
  34. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  35. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  36. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  37. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  38. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  39. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  40. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  41. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  42. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  43. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  44. package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
  45. package/lib/src/ap-form/render/item.vue.js +1 -1
  46. package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
  47. package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
  48. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  49. package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
  50. package/lib/src/ap-grid/editable/index.vue.js +1 -1
  51. package/lib/src/ap-grid/index.vue.js +1 -1
  52. package/lib/src/ap-grid/interface.d.ts +1 -1
  53. package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
  54. package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
  55. package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
  56. package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
  57. package/lib/src/check-card/index.vue2.js +1 -1
  58. package/lib/src/design-token/index.js +1 -1
  59. package/lib/src/editable-table/form-item.vue.js +1 -1
  60. package/lib/src/editable-table/index.vue.js +1 -1
  61. package/package.json +1 -1
  62. package/theme/ap-action/item-dropdown.css +5 -5
  63. package/theme/ap-action/item-dropdown.less +1 -1
  64. package/theme/ap-action/item.css +5 -5
  65. package/theme/ap-action/item.less +1 -1
  66. package/theme/ap-appendix/ap-appendix.css +3 -3
  67. package/theme/ap-attachment/ap-attachment.css +3 -3
  68. package/theme/ap-batch-action/ap-batch-action.css +3 -3
  69. package/theme/ap-button/ap-button.css +3 -3
  70. package/theme/ap-card/ap-card.css +3 -3
  71. package/theme/ap-descriptions/ap-descriptions.css +3 -3
  72. package/theme/ap-download/ap-download.css +3 -3
  73. package/theme/ap-expand-alert/ap-expand-alert.css +3 -3
  74. package/theme/ap-field/checkbox.css +4 -4
  75. package/theme/ap-field/checkbox.less +2 -1
  76. package/theme/ap-field/index.css +5 -5
  77. package/theme/ap-field/number.css +3 -3
  78. package/theme/ap-field/radio.css +4 -4
  79. package/theme/ap-field/radio.less +1 -1
  80. package/theme/ap-field/text-area.css +3 -3
  81. package/theme/ap-form/ap-form-item-group.css +3 -3
  82. package/theme/ap-form/ap-form-item.css +10 -8
  83. package/theme/ap-form/ap-form-item.less +8 -6
  84. package/theme/ap-form/drawer-form.css +3 -3
  85. package/theme/ap-form/index.css +21 -19
  86. package/theme/ap-form/item-text-group.css +3 -3
  87. package/theme/ap-form/item-text.css +3 -3
  88. package/theme/ap-form/modal-form.css +3 -3
  89. package/theme/ap-form/search-form-sorter.css +12 -12
  90. package/theme/ap-form/search-form-sorter.less +7 -7
  91. package/theme/ap-form/search-form.css +21 -19
  92. package/theme/ap-form/search-form.less +5 -5
  93. package/theme/ap-grid/editable.css +5 -5
  94. package/theme/ap-grid/editable.less +2 -2
  95. package/theme/ap-grid/index.css +44 -33
  96. package/theme/ap-grid/index.less +17 -8
  97. package/theme/ap-group-search/ap-extension-select.css +3 -3
  98. package/theme/ap-group-search/ap-group-search.css +3 -3
  99. package/theme/ap-group-search/ap-popover-select.css +3 -3
  100. package/theme/ap-image/ap-image.css +3 -3
  101. package/theme/ap-input-radio/ap-input-radio.css +3 -3
  102. package/theme/ap-label/ap-label.css +3 -3
  103. package/theme/ap-ladder/ap-ladder.css +3 -3
  104. package/theme/ap-layout/ap-info-layout.css +3 -3
  105. package/theme/ap-list/index.css +4 -4
  106. package/theme/ap-list/index.less +2 -1
  107. package/theme/ap-product-info/ap-product-info.css +3 -3
  108. package/theme/ap-select-layout/ap-select-layout.css +3 -3
  109. package/theme/ap-size-input/ap-size-input.css +3 -3
  110. package/theme/ap-status/ap-status.css +3 -3
  111. package/theme/ap-summary/index.css +3 -3
  112. package/theme/ap-table/ap-table-index.css +3 -3
  113. package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
  114. package/theme/ap-table/ap-table.css +43 -37
  115. package/theme/ap-table/ap-table.less +12 -8
  116. package/theme/ap-table/setting/index.css +7 -7
  117. package/theme/ap-table/setting/modal.css +5 -5
  118. package/theme/ap-table/setting/select-group.css +3 -3
  119. package/theme/ap-table/setting/sortable-item-meta.css +3 -3
  120. package/theme/ap-table/setting/sortable-item.css +3 -3
  121. package/theme/ap-table/setting/sorter.css +5 -5
  122. package/theme/ap-table-modal/index.css +43 -37
  123. package/theme/ap-tag/ap-tag-group.css +3 -3
  124. package/theme/ap-tag/ap-tag.css +3 -3
  125. package/theme/ap-title/ap-title.css +3 -3
  126. package/theme/ap-upload/index.css +3 -3
  127. package/theme/ap-upload/multiple-file.css +3 -3
  128. package/theme/ap-upload/picture.css +3 -3
  129. package/theme/ap-upload/single-file.css +3 -3
  130. package/theme/ap-upload/upload.css +3 -3
  131. package/theme/ap-upload-single/index.css +3 -3
  132. package/theme/ap-view/ap-view.css +3 -3
  133. package/theme/batch-input-group/index.css +5 -5
  134. package/theme/batch-input-group/popover-input.css +3 -3
  135. package/theme/check-card/index.css +22 -22
  136. package/theme/check-card/index.less +17 -15
  137. package/theme/editable-table/index.css +36 -32
  138. package/theme/editable-table/index.less +9 -7
  139. package/theme/full-screen/index.css +3 -3
  140. package/theme/index.css +98 -81
  141. package/theme/mask/index.css +3 -3
  142. package/theme/mixins/config.less +26 -4
  143. package/theme/mixins/mixins.css +3 -3
  144. package/theme/scroll-bar/index.css +3 -3
  145. package/theme/scroll-view/index.css +3 -3
  146. package/theme/splitter/index.css +8 -8
  147. package/theme/text/group.css +3 -3
  148. package/theme/text/index.css +5 -5
  149. package/theme/work-order-modal/index.css +3 -3
@@ -1,18 +1,19 @@
1
- import { defineComponent as M, computed as N, ref as p, createVNode as g, watch as S, onMounted as Y, createBlock as $, openBlock as j, unref as w, normalizeClass as x, withCtx as z, createElementVNode as W } from "vue";
1
+ import { defineComponent as Y, computed as N, ref as p, createVNode as g, watch as x, createBlock as $, openBlock as j, unref as w, normalizeClass as E, withCtx as z, createElementVNode as M } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import q from "./icons/line-down.vue.mjs";
4
- import { ApBatchActionGroup as H } from "../ap-batch-action-group/index.mjs";
3
+ import W from "./icons/line-down.vue.mjs";
4
+ import { ApBatchActionGroup as q } from "../ap-batch-action-group/index.mjs";
5
5
  import "./components/main-button-content.vue.mjs";
6
6
  import "./components/menu-list-content.vue.mjs";
7
- import { useViewProvide as J } from "./hooks/use-view-provide.mjs";
8
- import { useInjectApTable as Q } from "../../ap-table/context.mjs";
7
+ import { useViewProvide as H } from "./hooks/use-view-provide.mjs";
8
+ import { useInjectApTable as J } from "../../ap-table/context.mjs";
9
9
  import { SYSTEM_VIEW_KEY as y } from "./utils/enum.mjs";
10
+ import { isValid as Q } from "@aplus-frontend/utils";
10
11
  import { useGlobalConfig as X } from "../../config-provider/hooks/use-global-config.mjs";
11
12
  import { useNamespace as Z } from "../../config-provider/hooks/use-namespace.mjs";
12
- import { useLocale as U } from "../../config-provider/hooks/use-locale.mjs";
13
- import h from "./components/main-button-content.vue2.mjs";
13
+ import { useLocale as h } from "../../config-provider/hooks/use-locale.mjs";
14
+ import U from "./components/main-button-content.vue2.mjs";
14
15
  import R from "./components/menu-list-content.vue2.mjs";
15
- const fe = /* @__PURE__ */ M({
16
+ const ve = /* @__PURE__ */ Y({
16
17
  __name: "ap-view",
17
18
  props: {
18
19
  tableKey: {},
@@ -22,25 +23,25 @@ const fe = /* @__PURE__ */ M({
22
23
  default: 20
23
24
  }
24
25
  },
25
- setup(E) {
26
- const c = E, L = X("viewCacheOption"), {
26
+ setup(F) {
27
+ const f = F, L = X("viewCacheOption"), {
27
28
  b: d
28
29
  } = Z("ap-view"), {
29
30
  t: T
30
- } = U(), V = N(() => ({
31
+ } = h(), V = N(() => ({
31
32
  viewKey: y,
32
33
  viewName: T("ap.apView.systemView")
33
34
  })), {
34
35
  getSearchFormValues: k,
35
36
  setSearchFormValues: A,
36
37
  submit: B,
37
- reset: F
38
- } = Q(), G = p(!1), K = p(!1), r = p("system"), P = {
38
+ reset: G
39
+ } = J(), P = p(!1), K = p(!1), r = p("system"), D = {
39
40
  dropdownType: "dropdown",
40
- content: g(h, {
41
- maxViewNum: c.maxViewNum
41
+ content: g(U, {
42
+ maxViewNum: f.maxViewNum
42
43
  }, null)
43
- }, o = p([V.value]), D = N(() => o.value.map((t) => ({
44
+ }, s = p([V.value]), I = N(() => s.value.map((t) => ({
44
45
  id: t.viewKey,
45
46
  content: g(R, {
46
47
  view: t
@@ -49,123 +50,125 @@ const fe = /* @__PURE__ */ M({
49
50
  getSearchFormValues: k,
50
51
  setSearchFormValues: A,
51
52
  submit: B,
52
- reset: F,
53
- ...c.saveDataSource
53
+ reset: G,
54
+ ...f.saveDataSource
54
55
  }, e = {
55
56
  ...L.value,
56
- ...c.viewCacheOption
57
+ ...f.viewCacheOption
57
58
  }, _ = () => {
58
- const t = o.value.find((s) => s.isDefault);
59
+ const t = s.value.find((a) => a.isDefault);
59
60
  return (t == null ? void 0 : t.viewKey) ?? y;
60
- }, m = {
61
+ }, c = {
61
62
  getViewList: async (t) => {
62
- var s;
63
+ var a;
63
64
  try {
64
65
  const {
65
- tableKey: a
66
- } = t, l = await ((s = e == null ? void 0 : e.getViewList) == null ? void 0 : s.call(e, {
67
- tableKey: a
66
+ tableKey: o
67
+ } = t, i = await ((a = e == null ? void 0 : e.getViewList) == null ? void 0 : a.call(e, {
68
+ tableKey: o
68
69
  }));
69
- return o.value = [V.value, ...l ?? []], r.value = _(), o.value;
70
+ return s.value = [V.value, ...i ?? []], r.value = _(), s.value;
70
71
  } catch {
71
- return o.value = [V.value], r.value = y, o.value;
72
+ return s.value = [V.value], r.value = y, s.value;
72
73
  }
73
74
  },
74
75
  addView: async (t) => {
75
76
  var u;
76
77
  const {
77
- tableKey: s,
78
- viewKey: a,
79
- viewName: l,
80
- isDefault: i,
81
- viewConfig: f
78
+ tableKey: a,
79
+ viewKey: o,
80
+ viewName: i,
81
+ isDefault: l,
82
+ viewConfig: m
82
83
  } = t;
83
84
  await ((u = e == null ? void 0 : e.addView) == null ? void 0 : u.call(e, {
84
- tableKey: s,
85
- viewKey: a,
86
- viewName: l,
87
- isDefault: i,
88
- viewConfig: f
89
- })), i && (o.value = o.value.map((v) => ({
85
+ tableKey: a,
86
+ viewKey: o,
87
+ viewName: i,
88
+ isDefault: l,
89
+ viewConfig: m
90
+ })), l && (s.value = s.value.map((v) => ({
90
91
  ...v,
91
92
  isDefault: !1
92
- }))), o.value = [...o.value, {
93
- viewKey: a,
94
- viewName: l,
95
- isDefault: i,
96
- viewConfig: f
97
- }], r.value = a;
93
+ }))), s.value = [...s.value, {
94
+ viewKey: o,
95
+ viewName: i,
96
+ isDefault: l,
97
+ viewConfig: m
98
+ }], r.value = o;
98
99
  },
99
100
  changeView: async (t) => {
100
101
  var v;
101
102
  const {
102
- tableKey: s,
103
- viewKey: a,
104
- viewName: l,
105
- isDefault: i,
106
- viewConfig: f
103
+ tableKey: a,
104
+ viewKey: o,
105
+ viewName: i,
106
+ isDefault: l,
107
+ viewConfig: m
107
108
  } = t;
108
109
  await ((v = e == null ? void 0 : e.changeView) == null ? void 0 : v.call(e, {
109
- tableKey: s,
110
- viewKey: a,
111
- viewName: l,
112
- isDefault: i,
113
- viewConfig: f
114
- })), i && (o.value = o.value.map((b) => ({
110
+ tableKey: a,
111
+ viewKey: o,
112
+ viewName: i,
113
+ isDefault: l,
114
+ viewConfig: m
115
+ })), l && (s.value = s.value.map((b) => ({
115
116
  ...b,
116
117
  isDefault: !1
117
118
  })));
118
- const u = o.value.find((b) => b.viewKey === a);
119
- u && (u.viewName = l, u.isDefault = i, u.viewConfig = f), r.value = a;
119
+ const u = s.value.find((b) => b.viewKey === o);
120
+ u && (u.viewName = i, u.isDefault = l, u.viewConfig = m), r.value = o;
120
121
  },
121
122
  removeView: async (t) => {
122
- var l;
123
+ var i;
123
124
  const {
124
- tableKey: s,
125
- viewKey: a
125
+ tableKey: a,
126
+ viewKey: o
126
127
  } = t;
127
- await ((l = e == null ? void 0 : e.removeView) == null ? void 0 : l.call(e, {
128
- tableKey: s,
129
- viewKey: a
130
- })), o.value = o.value.filter((i) => i.viewKey !== a), a === r.value && (r.value = _());
128
+ await ((i = e == null ? void 0 : e.removeView) == null ? void 0 : i.call(e, {
129
+ tableKey: a,
130
+ viewKey: o
131
+ })), s.value = s.value.filter((l) => l.viewKey !== o), o === r.value && (r.value = _());
131
132
  }
132
- }, I = {
133
- tableKey: c.tableKey,
133
+ }, S = {
134
+ tableKey: f.tableKey,
134
135
  currentViewKey: r,
135
- popoverOpen: G,
136
+ popoverOpen: P,
136
137
  menuOpen: K,
137
- viewList: o,
138
- viewListCRUD: m,
138
+ viewList: s,
139
+ viewListCRUD: c,
139
140
  saveDataSource: n
140
141
  };
141
- return S(r, (t) => {
142
- const s = o.value.find((a) => a.viewKey === t);
143
- s && setTimeout(() => {
144
- var a, l, i;
145
- s.viewKey === y ? (a = n.reset) == null || a.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, s.viewConfig ?? {}), (i = n.submit) == null || i.call(n));
142
+ return x(r, (t) => {
143
+ const a = s.value.find((o) => o.viewKey === t);
144
+ a && setTimeout(() => {
145
+ var o, i, l, m;
146
+ a.viewKey === y ? (o = n.reset) == null || o.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, ((i = a.viewConfig) == null ? void 0 : i.searchForm) ?? {}), (m = n.submit) == null || m.call(n));
146
147
  });
147
- }), J(I), Y(() => {
148
- var t;
149
- (t = m == null ? void 0 : m.getViewList) == null || t.call(m, {
150
- tableKey: c.tableKey
151
- });
152
- }), (t, s) => (j(), $(w(H), {
148
+ }), H(S), x(() => f.tableKey, (t) => {
149
+ var a;
150
+ Q(t) && ((a = c == null ? void 0 : c.getViewList) == null || a.call(c, {
151
+ tableKey: t
152
+ }));
153
+ }, {
154
+ immediate: !0
155
+ }), (t, a) => (j(), $(w(q), {
153
156
  open: K.value,
154
- "onUpdate:open": s[0] || (s[0] = (a) => K.value = a),
155
- class: x([w(d)()]),
156
- "button-props": P,
157
- "menu-list": D.value,
157
+ "onUpdate:open": a[0] || (a[0] = (o) => K.value = o),
158
+ class: E([w(d)()]),
159
+ "button-props": D,
160
+ "menu-list": I.value,
158
161
  "overlay-class-name": [w(d)("overlay")],
159
162
  trigger: "click",
160
163
  placement: "bottom"
161
164
  }, {
162
- icon: z(() => [W("div", {
163
- class: x([w(d)("icon")])
164
- }, [g(q)], 2)]),
165
+ icon: z(() => [M("div", {
166
+ class: E([w(d)("icon")])
167
+ }, [g(W)], 2)]),
165
168
  _: 1
166
169
  }, 8, ["open", "class", "menu-list", "overlay-class-name"]));
167
170
  }
168
171
  });
169
172
  export {
170
- fe as default
173
+ ve as default
171
174
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as $, ref as I, computed as T, watch as Y, createBlock as D, openBlock as E, unref as e, withCtx as t, createElementVNode as u, normalizeClass as m, createVNode as a, createSlots as K, toDisplayString as p, createTextVNode as v } from "vue";
2
- import { Popover as j, Tooltip as q, Space as N, Checkbox as B } from "@aplus-frontend/antdv";
1
+ import { defineComponent as $, ref as I, computed as T, watch as Y, createBlock as D, openBlock as E, unref as e, withCtx as t, createElementVNode as c, normalizeClass as m, createVNode as a, createSlots as K, toDisplayString as p, createTextVNode as v } from "vue";
2
+ import { Popover as j, Tooltip as q, Space as x, Checkbox as B } from "@aplus-frontend/antdv";
3
3
  import "../../../config-provider/index.mjs";
4
4
  import L from "../icons/line-eye.vue.mjs";
5
5
  import "../../../ap-form/ap-form.vue.mjs";
@@ -11,28 +11,30 @@ import { generateUniqueKey as A } from "../utils/uuid.mjs";
11
11
  import { useLocale as P } from "../../../config-provider/hooks/use-locale.mjs";
12
12
  import { useNamespace as R } from "../../../config-provider/hooks/use-namespace.mjs";
13
13
  import w from "../../../ap-form/ap-form.vue2.mjs";
14
- import h from "../../../ap-button/ap-button.vue.mjs";
14
+ import N from "../../../ap-button/ap-button.vue.mjs";
15
15
  const le = /* @__PURE__ */ $({
16
16
  __name: "main-button-content",
17
17
  props: {
18
18
  maxViewNum: {}
19
19
  },
20
20
  setup(b) {
21
- const c = b, { t: o } = P(), { b: n } = R("ap-view"), _ = I(), { tableKey: k, popoverOpen: r, viewList: f, saveDataSource: s, viewListCRUD: V } = S(), y = T({
22
- get: () => r.value && f.value.length < c.maxViewNum + 1,
21
+ const u = b, { t: o } = P(), { b: n } = R("ap-view"), _ = I(), { tableKey: F, popoverOpen: r, viewList: f, saveDataSource: s, viewListCRUD: V } = S(), y = T({
22
+ get: () => r.value && f.value.length < u.maxViewNum + 1,
23
23
  set: (l) => {
24
- f.value.length < c.maxViewNum + 1 && (r.value = l);
24
+ f.value.length < u.maxViewNum + 1 && (r.value = l);
25
25
  }
26
26
  });
27
27
  Y(r, (l) => {
28
28
  var i;
29
29
  l && ((i = _.value) == null || i.resetFields());
30
30
  });
31
- const F = async (l) => {
32
- var g, x;
33
- const { viewName: i, isDefault: d } = l, C = A(), z = ((g = s == null ? void 0 : s.getSearchFormValues) == null ? void 0 : g.call(s, !0)) ?? {};
34
- await ((x = V.addView) == null ? void 0 : x.call(V, {
35
- tableKey: k,
31
+ const k = async (l) => {
32
+ var g, h;
33
+ const { viewName: i, isDefault: d } = l, C = A(), z = {
34
+ searchForm: ((g = s == null ? void 0 : s.getSearchFormValues) == null ? void 0 : g.call(s)) ?? {}
35
+ };
36
+ await ((h = V.addView) == null ? void 0 : h.call(V, {
37
+ tableKey: F,
36
38
  viewKey: C,
37
39
  viewName: i,
38
40
  isDefault: d,
@@ -50,7 +52,7 @@ const le = /* @__PURE__ */ $({
50
52
  }
51
53
  }, {
52
54
  content: t(() => [
53
- u("div", {
55
+ c("div", {
54
56
  class: m([e(n)("main-content-popover")])
55
57
  }, [
56
58
  a(w, {
@@ -61,13 +63,13 @@ const le = /* @__PURE__ */ $({
61
63
  isDefault: !0,
62
64
  viewName: `${e(o)("ap.apView.newView")} ${e(O)().format("YYYY-MM-DD").toString()}`
63
65
  },
64
- onFinish: F
66
+ onFinish: k
65
67
  }, {
66
68
  default: t(() => [
67
- u("div", {
69
+ c("div", {
68
70
  class: m([e(n)("main-content-popover-title-content")])
69
71
  }, [
70
- u("div", {
72
+ c("div", {
71
73
  class: m([e(n)("main-content-popover-title-content-title")])
72
74
  }, p(e(o)("ap.apView.saveNewView")), 3),
73
75
  a(w.FormItem, {
@@ -103,9 +105,9 @@ const le = /* @__PURE__ */ $({
103
105
  class: m([e(n)("main-content-popover-btn")])
104
106
  }, {
105
107
  default: t(() => [
106
- a(e(N), { size: 8 }, {
108
+ a(e(x), { size: 8 }, {
107
109
  default: t(() => [
108
- a(e(h), {
110
+ a(e(N), {
109
111
  size: "small",
110
112
  onClick: i[0] || (i[0] = (d) => r.value = !1)
111
113
  }, {
@@ -114,7 +116,7 @@ const le = /* @__PURE__ */ $({
114
116
  ]),
115
117
  _: 1
116
118
  }),
117
- a(e(h), {
119
+ a(e(N), {
118
120
  type: "primary",
119
121
  size: "small",
120
122
  "html-type": "submit"
@@ -136,27 +138,27 @@ const le = /* @__PURE__ */ $({
136
138
  ], 2)
137
139
  ]),
138
140
  default: t(() => [
139
- u("div", {
141
+ c("div", {
140
142
  class: m({
141
143
  [e(n)("main-content")]: !0,
142
- [e(n)("main-content-disabled")]: e(f).length >= c.maxViewNum + 1
144
+ [e(n)("main-content-disabled")]: e(f).length >= u.maxViewNum + 1
143
145
  })
144
146
  }, [
145
147
  a(e(q), { placement: "bottom" }, K({
146
148
  default: t(() => [
147
- a(e(N), { size: 4 }, {
149
+ a(e(x), { size: 4 }, {
148
150
  default: t(() => [
149
151
  a(L, {
150
152
  class: m([e(n)("icon")])
151
153
  }, null, 8, ["class"]),
152
- u("div", null, p(e(o)("ap.apView.saveView")), 1)
154
+ c("div", null, p(e(o)("ap.apView.saveView")), 1)
153
155
  ]),
154
156
  _: 1
155
157
  })
156
158
  ]),
157
159
  _: 2
158
160
  }, [
159
- e(f).length >= c.maxViewNum + 1 ? {
161
+ e(f).length >= u.maxViewNum + 1 ? {
160
162
  name: "title",
161
163
  fn: t(() => [
162
164
  v(p(e(o)("ap.apView.maxTip")), 1)
@@ -1,8 +1,8 @@
1
- import { defineComponent as A, ref as g, watch as G, createElementBlock as u, openBlock as v, normalizeClass as E, unref as e, createElementVNode as s, createCommentVNode as y, toDisplayString as p, createVNode as a, withModifiers as O, withCtx as f } from "vue";
1
+ import { defineComponent as A, ref as E, watch as G, createElementBlock as u, openBlock as p, normalizeClass as M, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as v, createVNode as a, withModifiers as O, withCtx as f } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import { useViewInject as P } from "../hooks/use-view-provide.mjs";
4
- import { SYSTEM_VIEW_KEY as M } from "../utils/enum.mjs";
5
- import { Space as b, Popconfirm as W } from "@aplus-frontend/antdv";
4
+ import { SYSTEM_VIEW_KEY as b } from "../utils/enum.mjs";
5
+ import { Space as z, Popconfirm as W } from "@aplus-frontend/antdv";
6
6
  import q from "../icons/line-delete.vue.mjs";
7
7
  import "../../../ap-tag/index.mjs";
8
8
  import "../../../ap-form/ap-form.vue.mjs";
@@ -11,7 +11,7 @@ import { useNamespace as J } from "../../../config-provider/hooks/use-namespace.
11
11
  import { useLocale as Q } from "../../../config-provider/hooks/use-locale.mjs";
12
12
  import { useGlobalConfig as X } from "../../../config-provider/hooks/use-global-config.mjs";
13
13
  import Z from "../../../ap-tag/ap-tag.vue.mjs";
14
- import z from "../../../ap-form/ap-form.vue2.mjs";
14
+ import C from "../../../ap-form/ap-form.vue2.mjs";
15
15
  const D = { class: "menu-list-content-name" }, R = ["title"], L = {
16
16
  key: 0,
17
17
  class: "menu-list-content-default"
@@ -20,80 +20,80 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
20
20
  props: {
21
21
  view: {}
22
22
  },
23
- setup(C) {
24
- const { b: d } = J("ap-view"), { t: l } = Q(), i = C, $ = {
23
+ setup($) {
24
+ const { b: d } = J("ap-view"), { t: l } = Q(), i = $, I = {
25
25
  aplus: "#2ed1a3",
26
26
  admin: "#34b77c"
27
- }, I = X("uiMode"), { currentViewKey: w, viewListCRUD: t, tableKey: _, menuOpen: T } = P(), c = g(!1), V = g(), B = () => {
28
- w.value !== i.view.viewKey && (w.value = i.view.viewKey);
27
+ }, T = X("uiMode"), { currentViewKey: y, viewListCRUD: t, tableKey: w, menuOpen: V } = P(), c = E(!1), x = E(), B = () => {
28
+ y.value = i.view.viewKey, V.value = !1;
29
29
  }, F = () => {
30
30
  var n;
31
31
  (n = t == null ? void 0 : t.changeView) == null || n.call(t, {
32
32
  ...i.view,
33
- tableKey: _,
33
+ tableKey: w,
34
34
  isDefault: !0
35
35
  });
36
36
  }, Y = () => {
37
37
  var n;
38
38
  (n = t == null ? void 0 : t.removeView) == null || n.call(t, {
39
- tableKey: _,
39
+ tableKey: w,
40
40
  viewKey: i.view.viewKey
41
41
  });
42
42
  }, j = async () => {
43
43
  var o, m, r;
44
- const n = await ((m = (o = V.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
44
+ const n = await ((m = (o = x.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
45
45
  (r = t == null ? void 0 : t.changeView) == null || r.call(t, {
46
46
  ...i.view,
47
- tableKey: _,
47
+ tableKey: w,
48
48
  viewName: (n == null ? void 0 : n.viewName) || i.view.viewName
49
49
  }), c.value = !1;
50
50
  };
51
51
  return G(
52
- () => T.value,
52
+ () => V.value,
53
53
  (n) => {
54
54
  n && (c.value = !1);
55
55
  }
56
56
  ), (n, o) => {
57
- var m, r, x, N, h, K, S;
58
- return c.value === !1 ? (v(), u("div", {
57
+ var m, r, N, h, K, S, g;
58
+ return c.value === !1 ? (p(), u("div", {
59
59
  key: 0,
60
- class: E({
60
+ class: M({
61
61
  [e(d)("menu-list-content")]: !0,
62
- [e(d)("menu-list-content-active")]: ((m = i.view) == null ? void 0 : m.viewKey) === e(w)
62
+ [e(d)("menu-list-content-active")]: ((m = i.view) == null ? void 0 : m.viewKey) === e(y)
63
63
  }),
64
64
  onClick: B
65
65
  }, [
66
66
  s("div", D, [
67
67
  s("span", {
68
68
  title: (r = i.view) == null ? void 0 : r.viewName
69
- }, p((x = i.view) == null ? void 0 : x.viewName), 9, R)
69
+ }, v((N = i.view) == null ? void 0 : N.viewName), 9, R)
70
70
  ]),
71
- ((N = i.view) == null ? void 0 : N.viewKey) !== e(M) && ((h = i.view) != null && h.isDefault) ? (v(), u("div", L, [
71
+ ((h = i.view) == null ? void 0 : h.viewKey) !== e(b) && ((K = i.view) != null && K.isDefault) ? (p(), u("div", L, [
72
72
  a(e(Z), {
73
73
  text: e(l)("ap.apView.default"),
74
74
  size: "small",
75
- color: $[e(I) ?? "aplus"]
75
+ color: I[e(T) ?? "aplus"]
76
76
  }, null, 8, ["text", "color"])
77
- ])) : y("", !0),
78
- ((K = i.view) == null ? void 0 : K.viewKey) !== e(M) ? (v(), u("div", {
77
+ ])) : k("", !0),
78
+ ((S = i.view) == null ? void 0 : S.viewKey) !== e(b) ? (p(), u("div", {
79
79
  key: 1,
80
80
  class: "menu-list-content-action",
81
81
  onClick: o[1] || (o[1] = O(() => {
82
82
  }, ["stop"]))
83
83
  }, [
84
- a(e(b), { size: 8 }, {
84
+ a(e(z), { size: 8 }, {
85
85
  default: f(() => {
86
- var k;
86
+ var _;
87
87
  return [
88
88
  s("div", {
89
89
  class: "menu-list-content-action-text",
90
90
  onClick: o[0] || (o[0] = (te) => c.value = !0)
91
- }, p(e(l)("ap.apView.rename")), 1),
92
- (k = i.view) != null && k.isDefault ? y("", !0) : (v(), u("div", {
91
+ }, v(e(l)("ap.apView.rename")), 1),
92
+ (_ = i.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
93
93
  key: 0,
94
94
  class: "menu-list-content-action-text",
95
95
  onClick: F
96
- }, p(e(l)("ap.apView.setDefault")), 1)),
96
+ }, v(e(l)("ap.apView.setDefault")), 1)),
97
97
  s("div", U, [
98
98
  a(e(W), {
99
99
  title: e(l)("ap.apView.deleteTip"),
@@ -110,23 +110,23 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
110
110
  }),
111
111
  _: 1
112
112
  })
113
- ])) : y("", !0)
114
- ], 2)) : (v(), u("div", {
113
+ ])) : k("", !0)
114
+ ], 2)) : (p(), u("div", {
115
115
  key: 1,
116
- class: E([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
116
+ class: M([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
117
117
  }, [
118
- a(z, {
118
+ a(C, {
119
119
  ref_key: "formRef",
120
- ref: V,
120
+ ref: x,
121
121
  "initial-values": {
122
- viewName: (S = i.view) == null ? void 0 : S.viewName
122
+ viewName: (g = i.view) == null ? void 0 : g.viewName
123
123
  }
124
124
  }, {
125
125
  default: f(() => [
126
126
  s("div", ee, [
127
- a(e(b), { size: 8 }, {
127
+ a(e(z), { size: 8 }, {
128
128
  default: f(() => [
129
- a(z.FormItem, { name: "viewName" }, {
129
+ a(C.FormItem, { name: "viewName" }, {
130
130
  default: f(() => [
131
131
  a(e(H).Text, { maxlength: 20 })
132
132
  ]),
@@ -135,11 +135,11 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
135
135
  s("div", {
136
136
  class: "menu-list-content-action-text",
137
137
  onClick: j
138
- }, p(e(l)("ap.apView.save")), 1),
138
+ }, v(e(l)("ap.apView.save")), 1),
139
139
  s("div", {
140
140
  class: "menu-list-content-action-text",
141
- onClick: o[2] || (o[2] = (k) => c.value = !1)
142
- }, p(e(l)("ap.apView.cancel")), 1)
141
+ onClick: o[2] || (o[2] = (_) => c.value = !1)
142
+ }, v(e(l)("ap.apView.cancel")), 1)
143
143
  ]),
144
144
  _: 1
145
145
  })
@@ -47,6 +47,7 @@ const q = /* @__PURE__ */ b({
47
47
  initialValue: {},
48
48
  _signal: {},
49
49
  transform: {},
50
+ description: {},
50
51
  field: { default: () => ({}) },
51
52
  disabled: { type: Boolean, default: void 0 },
52
53
  placeholer: {},
@@ -75,7 +75,7 @@ const K = ["src"], oe = /* @__PURE__ */ I({
75
75
  const e = o(n);
76
76
  return {
77
77
  ...e.style || {},
78
- "--check-card-indicator-size": `${e.indicatorSize || 16}px`
78
+ "--check-card-indicator-size": `${e.indicatorSize || 14}px`
79
79
  };
80
80
  }), h = d(() => {
81
81
  const e = a.title;
@@ -1,5 +1,11 @@
1
1
  const o = {
2
- borderRadius: 4
2
+ borderRadius: 4,
3
+ fontSize: 12,
4
+ sizeStep: 4,
5
+ lineHeight: 1.5,
6
+ lineHeightSM: 1.6,
7
+ wireframe: !1,
8
+ sizeUnit: 3
3
9
  }, r = {
4
10
  ...o,
5
11
  // 主色
@@ -33,7 +39,7 @@ const o = {
33
39
  controlItemBgActive: "#F5F9FF",
34
40
  controlItemBgActiveHover: "#EAF2FF",
35
41
  colorBorderSecondary: "#E9EDF3"
36
- }, c = {
42
+ }, e = {
37
43
  ...o,
38
44
  // 主色
39
45
  colorPrimary: "#34B77C",
@@ -69,6 +75,6 @@ const o = {
69
75
  colorBorderSecondary: "#E9E9E9"
70
76
  };
71
77
  export {
72
- c as adminToken,
78
+ e as adminToken,
73
79
  r as aplusToken
74
80
  };
@@ -23,7 +23,7 @@ const we = /* @__PURE__ */ O({
23
23
  default: void 0
24
24
  },
25
25
  size: {
26
- default: "middle"
26
+ default: "small"
27
27
  },
28
28
  bordered: {
29
29
  type: Boolean,