@aplus-frontend/ui 0.0.18 → 0.0.19

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 (67) hide show
  1. package/es/index.mjs +26 -23
  2. package/es/src/ap-field/date/index.vue.d.ts +3 -1
  3. package/es/src/ap-field/date-range/index.vue.d.ts +3 -3
  4. package/es/src/ap-field/date-range/index.vue.mjs +1 -1
  5. package/es/src/ap-field/interface.d.ts +1 -1
  6. package/es/src/ap-form/ap-form-item.vue.mjs +61 -57
  7. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  8. package/es/src/ap-form/style/ap-form-item.css +11 -0
  9. package/es/src/ap-modal/index.d.ts +9 -0
  10. package/es/src/ap-modal/index.mjs +10 -0
  11. package/es/src/ap-modal/type.d.ts +13 -0
  12. package/es/src/ap-modal/type.mjs +1 -0
  13. package/es/src/ap-modal/utils/createModal.d.ts +3 -0
  14. package/es/src/ap-modal/utils/createModal.mjs +74 -0
  15. package/es/src/ap-modal/utils/index.d.ts +1 -0
  16. package/es/src/ap-modal/utils/index.mjs +4 -0
  17. package/es/src/ap-table/ap-table.vue.mjs +133 -120
  18. package/es/src/ap-table/constants.d.ts +25 -23
  19. package/es/src/ap-table/interface.d.ts +4 -0
  20. package/es/src/ap-table/style/ap-table.css +1 -0
  21. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
  22. package/es/src/business/expandAlert/ApExpandAlert.vue.mjs +4 -0
  23. package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +113 -0
  24. package/es/src/business/expandAlert/interface.d.ts +26 -0
  25. package/es/src/business/expandAlert/style.css +42 -0
  26. package/es/src/business/index.d.ts +161 -1
  27. package/es/src/business/index.mjs +7 -4
  28. package/es/src/index.d.ts +1 -0
  29. package/es/src/index.mjs +194 -191
  30. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
  31. package/es/src/theme/ap-form/ap-form-item.css +11 -0
  32. package/es/src/theme/ap-table/ap-table.css +1 -0
  33. package/es/src/type.d.ts +3 -1
  34. package/lib/index.js +1 -1
  35. package/lib/src/ap-field/date/index.vue.d.ts +3 -1
  36. package/lib/src/ap-field/date-range/index.vue.d.ts +3 -3
  37. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  38. package/lib/src/ap-field/interface.d.ts +1 -1
  39. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  40. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  41. package/lib/src/ap-form/style/ap-form-item.css +11 -0
  42. package/lib/src/ap-modal/index.d.ts +9 -0
  43. package/lib/src/ap-modal/index.js +1 -0
  44. package/lib/src/ap-modal/type.d.ts +13 -0
  45. package/lib/src/ap-modal/type.js +1 -0
  46. package/lib/src/ap-modal/utils/createModal.d.ts +3 -0
  47. package/lib/src/ap-modal/utils/createModal.js +1 -0
  48. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  49. package/lib/src/ap-modal/utils/index.js +1 -0
  50. package/lib/src/ap-table/ap-table.vue.js +1 -1
  51. package/lib/src/ap-table/constants.d.ts +25 -23
  52. package/lib/src/ap-table/interface.d.ts +4 -0
  53. package/lib/src/ap-table/style/ap-table.css +1 -0
  54. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
  55. package/lib/src/business/expandAlert/ApExpandAlert.vue.js +1 -0
  56. package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -0
  57. package/lib/src/business/expandAlert/interface.d.ts +26 -0
  58. package/lib/src/business/expandAlert/style.css +42 -0
  59. package/lib/src/business/index.d.ts +161 -1
  60. package/lib/src/business/index.js +1 -1
  61. package/lib/src/index.d.ts +1 -0
  62. package/lib/src/index.js +1 -1
  63. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
  64. package/lib/src/theme/ap-form/ap-form-item.css +11 -0
  65. package/lib/src/theme/ap-table/ap-table.css +1 -0
  66. package/lib/src/type.d.ts +3 -1
  67. package/package.json +3 -3
package/es/index.mjs CHANGED
@@ -9,7 +9,7 @@ import { defaultNamespace as R, namespaceContextKey as h, useGetDerivedNamespace
9
9
  import { ConfigProvider as w } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as G } from "./src/config-provider/index.mjs";
11
11
  import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
12
- import { CollapseContainer as E, ScrollContainer as X } from "./src/container/index.mjs";
12
+ import { CollapseContainer as L, ScrollContainer as X } from "./src/container/index.mjs";
13
13
  import { IconPicker as Y } from "./src/icon-picker/index.mjs";
14
14
  import { default as H } from "./src/locale/lang/zh-cn.mjs";
15
15
  import { default as z } from "./src/locale/lang/en.mjs";
@@ -28,7 +28,7 @@ import { default as Me } from "./src/pro-form/components/api-select.vue.mjs";
28
28
  import { default as we } from "./src/pro-form/components/api-transfer.vue.mjs";
29
29
  import { default as Ge } from "./src/pro-form/components/api-tree.vue.mjs";
30
30
  import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
31
- import { default as Ee } from "./src/pro-form/pro-form.vue.mjs";
31
+ import { default as Le } from "./src/pro-form/pro-form.vue.mjs";
32
32
  import { default as Ke } from "./src/pro-form/components/api-tree-select.vue.mjs";
33
33
  import { default as Oe } from "./src/pro-form/table-form.vue.mjs";
34
34
  import { default as We } from "./src/pro-form/table-form-inner.vue.mjs";
@@ -53,7 +53,7 @@ import { default as Mo } from "./src/ap-form/items/text-area/index.vue.mjs";
53
53
  import { default as wo } from "./src/ap-form/items/number/index.vue.mjs";
54
54
  import { default as Go } from "./src/ap-form/items/date/index.vue.mjs";
55
55
  import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
56
- import { default as Eo } from "./src/ap-form/items/radio/index.vue.mjs";
56
+ import { default as Lo } from "./src/ap-form/items/radio/index.vue.mjs";
57
57
  import { default as Ko } from "./src/ap-form/items/select/index.vue.mjs";
58
58
  import { default as Oo } from "./src/ap-form/items/switch/index.vue.mjs";
59
59
  import { default as Wo } from "./src/ap-form/items/checkbox/index.vue.mjs";
@@ -79,7 +79,7 @@ import { default as hr } from "./src/ap-field/slider/index.vue.mjs";
79
79
  import { default as Mr } from "./src/ap-field/segmented/index.vue.mjs";
80
80
  import { default as wr } from "./src/ap-field/rate/index.vue.mjs";
81
81
  import { adminToken as Gr, aplusToken as Nr } from "./src/design-token/index.mjs";
82
- import { ApActionItem as Lr } from "./src/ap-action/index.mjs";
82
+ import { ApActionItem as Er } from "./src/ap-action/index.mjs";
83
83
  import { default as Xr } from "./src/ap-action/item-modal/index.vue.mjs";
84
84
  import { default as Yr } from "./src/ap-action/item-popconfirm/index.vue.mjs";
85
85
  import { default as Hr } from "./src/ap-action/item-dropdown/index.vue.mjs";
@@ -99,13 +99,14 @@ import { default as ut } from "./src/ap-upload/apUpload.vue.mjs";
99
99
  import { default as ct } from "./src/ap-download/ap-download.vue.mjs";
100
100
  import { CheckCard as Tt } from "./src/check-card/index.mjs";
101
101
  import { default as St } from "./src/check-card/group.vue.mjs";
102
- import { ApLabel as bt, ApTitle as gt } from "./src/business/index.mjs";
103
- import { useTablePaging as Dt } from "./src/ap-table/hooks/use-table-paging.mjs";
104
- import { default as ht } from "./src/ap-table/ap-table.vue.mjs";
105
- import { default as Mt } from "./src/editable-table/index.vue.mjs";
106
- import { default as wt } from "./src/editable-table/form-item.vue.mjs";
107
- import { useMessage as Gt } from "./src/hooks/useMessage.mjs";
108
- import { useControllableValue as yt } from "./src/hooks/useControllableValue.mjs";
102
+ import { ApModal as bt } from "./src/ap-modal/index.mjs";
103
+ import { ApExpandAlert as Pt, ApLabel as Dt, ApTitle as Rt } from "./src/business/index.mjs";
104
+ import { useTablePaging as vt } from "./src/ap-table/hooks/use-table-paging.mjs";
105
+ import { default as kt } from "./src/ap-table/ap-table.vue.mjs";
106
+ import { default as Bt } from "./src/editable-table/index.vue.mjs";
107
+ import { default as Nt } from "./src/editable-table/form-item.vue.mjs";
108
+ import { useMessage as Et } from "./src/hooks/useMessage.mjs";
109
+ import { useControllableValue as Xt } from "./src/hooks/useControllableValue.mjs";
109
110
  const p = {
110
111
  install: (r) => {
111
112
  for (const t in o) {
@@ -117,13 +118,14 @@ const p = {
117
118
  export {
118
119
  G as APConfigProvider,
119
120
  zr as ApActionGroup,
120
- Lr as ApActionItem,
121
+ Er as ApActionItem,
121
122
  Hr as ApActionItemDropdown,
122
123
  Xr as ApActionItemModal,
123
124
  Yr as ApActionItemPopconfirm,
124
125
  Jr as ApCustomColumn,
125
126
  Zr as ApCustomSelect,
126
127
  ct as ApDownload,
128
+ Pt as ApExpandAlert,
127
129
  pr as ApField,
128
130
  sr as ApFieldCheckbox,
129
131
  xr as ApFieldDate,
@@ -145,7 +147,7 @@ export {
145
147
  yo as ApFormItemDateRange,
146
148
  Qo as ApFormItemGroup,
147
149
  wo as ApFormItemNumber,
148
- Eo as ApFormItemRadio,
150
+ Lo as ApFormItemRadio,
149
151
  Ko as ApFormItemSelect,
150
152
  Oo as ApFormItemSwitch,
151
153
  ho as ApFormItemText,
@@ -155,11 +157,12 @@ export {
155
157
  tr as ApFormModalForm,
156
158
  or as ApFormSearchForm,
157
159
  dt as ApInfoLayout,
158
- bt as ApLabel,
159
- ht as ApTable,
160
+ Dt as ApLabel,
161
+ bt as ApModal,
162
+ kt as ApTable,
160
163
  ft as ApTag,
161
164
  lt as ApTagGroup,
162
- gt as ApTitle,
165
+ Rt as ApTitle,
163
166
  ut as ApUpload,
164
167
  De as ApiCascader,
165
168
  he as ApiRadioGroup,
@@ -174,7 +177,7 @@ export {
174
177
  j as BasicTitle,
175
178
  Tt as CheckCard,
176
179
  St as CheckCardGroup,
177
- E as CollapseContainer,
180
+ L as CollapseContainer,
178
181
  J as CollapseTransition,
179
182
  w as ConfigProvider,
180
183
  so as CountdownButton,
@@ -185,8 +188,8 @@ export {
185
188
  et as DictCode,
186
189
  Ao as Dropdown,
187
190
  Io as EditTableHeaderIcon,
188
- Mt as EditableTable,
189
- wt as EditableTableFormItem,
191
+ Bt as EditableTable,
192
+ Nt as EditableTableFormItem,
190
193
  Z as ExpandTransition,
191
194
  _ as ExpandXTransition,
192
195
  ee as FadeTransition,
@@ -196,7 +199,7 @@ export {
196
199
  Ue as ModalButton,
197
200
  it as NeedNameKeyDefault,
198
201
  $e as PopConfirmButton,
199
- Ee as ProForm,
202
+ Le as ProForm,
200
203
  Fo as ProTable,
201
204
  Oe as ProTableForm,
202
205
  We as ProTableFormInner,
@@ -240,18 +243,18 @@ export {
240
243
  g as translate,
241
244
  jr as useCacheColumnSetting,
242
245
  ce as useComponentRegister,
243
- yt as useControllableValue,
246
+ Xt as useControllableValue,
244
247
  ie as useDescription,
245
248
  Te as useForm,
246
249
  v as useGetDerivedNamespace,
247
250
  T as useGlobalConfig,
248
251
  P as useLocale,
249
- Gt as useMessage,
252
+ Et as useMessage,
250
253
  oo as useModal,
251
254
  _e as useModalContext,
252
255
  ro as useModalInner,
253
256
  M as useNamespace,
254
257
  Do as useTable,
255
- Dt as useTablePaging,
258
+ vt as useTablePaging,
256
259
  H as zhCn
257
260
  };
@@ -1,6 +1,8 @@
1
1
  import { default as dayjs } from 'dayjs';
2
2
  import { ApFieldDateProps, FieldMode } from '../interface';
3
+ import { ApFormatPresetType } from './interface';
3
4
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
5
+ import { LiteralUnion } from '../../type';
4
6
  import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
5
7
 
6
8
  type ApFieldDataSlots = {
@@ -84,7 +86,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
84
86
  }> | null;
85
87
  allowClear: boolean;
86
88
  defaultOpen: boolean;
87
- format: string;
89
+ format: LiteralUnion<ApFormatPresetType, string>;
88
90
  inputReadOnly: boolean;
89
91
  showToday: boolean;
90
92
  showTime: boolean | SharedTimeProps<dayjs.Dayjs>;
@@ -1,7 +1,7 @@
1
1
  import { ApFieldDateRangeProps, FieldMode } from '../interface';
2
- import { default as dayjs } from 'dayjs';
2
+ import { ApFormatPresetType } from '../date/interface';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
4
- import { CustomFormat } from 'ant-design-vue/es/vc-picker/interface';
4
+ import { LiteralUnion } from '../../type';
5
5
 
6
6
  type ApFieldDateRangeSlots = {
7
7
  suffixIcon?: any;
@@ -96,7 +96,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
96
96
  }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
97
97
  [key: string]: any;
98
98
  }> | null;
99
- format: (string | CustomFormat<dayjs.Dayjs> | (string | CustomFormat<dayjs.Dayjs>)[]) & string;
99
+ format: LiteralUnion<ApFormatPresetType, string>;
100
100
  inputReadOnly: boolean;
101
101
  emptyText: string;
102
102
  }, {}>, Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots>;
@@ -47,7 +47,6 @@ const fe = /* @__PURE__ */ x({
47
47
  open: { type: Boolean, default: void 0 },
48
48
  defaultOpen: { type: Boolean, default: void 0 },
49
49
  inputReadOnly: { type: Boolean, default: void 0 },
50
- format: { default: "Y-D" },
51
50
  suffixIcon: { type: [Object, String, Number, Boolean, null, Array], default: void 0 },
52
51
  clearIcon: { type: [Object, String, Number, Boolean, null, Array], default: void 0 },
53
52
  getPopupContainer: {},
@@ -85,6 +84,7 @@ const fe = /* @__PURE__ */ x({
85
84
  defaultValue: {},
86
85
  onChange: {},
87
86
  onOk: {},
87
+ format: { default: "Y-D" },
88
88
  timezone: {}
89
89
  },
90
90
  emits: ["update:value"],
@@ -82,7 +82,7 @@ export type ApFieldTextAreaExpose = {
82
82
  blur: () => void;
83
83
  resizableTextArea: any;
84
84
  };
85
- export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'value' | 'onChange' | 'onPanelChange' | 'defaultValue' | 'onOk' | 'renderExtraFooter' | 'onUpdate:value' | 'mode'>> & {
85
+ export type ApFieldDateRangeProps = BasicApFieldProps<Omit<RangePickerProps, 'value' | 'onChange' | 'onPanelChange' | 'defaultValue' | 'onOk' | 'renderExtraFooter' | 'onUpdate:value' | 'mode' | 'format'>> & {
86
86
  emptyText?: string;
87
87
  value?: RangeValue<number> | null;
88
88
  defaultValue?: RangeValue<number>;
@@ -1,14 +1,14 @@
1
- import { defineComponent as $, useSlots as j, ref as m, computed as b, unref as t, watch as q, cloneVNode as D, openBlock as h, createBlock as C, mergeProps as E, createSlots as K, withCtx as i, resolveDynamicComponent as O, createCommentVNode as Q, createElementVNode as U, normalizeClass as w, createVNode as g, normalizeStyle as G, renderList as H, renderSlot as J, normalizeProps as W, guardReactiveProps as X } from "vue";
2
- import { Form as Y, Tooltip as Z } from "ant-design-vue";
3
- import { useToken as M } from "ant-design-vue/es/theme/internal";
4
- import { isArray as ee, omit as k } from "lodash-unified";
5
- import { apFormItemColPropKeys as oe } from "./constant.mjs";
6
- import { QuestionCircleOutlined as te } from "@ant-design/icons-vue";
1
+ import { defineComponent as j, useSlots as q, ref as m, computed as B, unref as o, watch as D, cloneVNode as E, openBlock as h, createBlock as C, mergeProps as K, createSlots as O, withCtx as i, resolveDynamicComponent as Q, createCommentVNode as U, createElementVNode as w, normalizeClass as G, createVNode as g, normalizeStyle as H, renderList as J, renderSlot as W, normalizeProps as X, guardReactiveProps as Y } from "vue";
2
+ import { Form as Z, Tooltip as M } from "ant-design-vue";
3
+ import { useToken as ee } from "ant-design-vue/es/theme/internal";
4
+ import { isArray as oe, omit as k } from "lodash-unified";
5
+ import { apFormItemColPropKeys as te } from "./constant.mjs";
6
+ import { QuestionCircleOutlined as re } from "@ant-design/icons-vue";
7
7
  import "../config-provider/index.mjs";
8
8
  import { useInjectForm as le } from "./context.mjs";
9
9
  import "./style/ap-form-item.css";
10
- import { useNamespace as re } from "../config-provider/hooks/use-namespace.mjs";
11
- const ve = /* @__PURE__ */ $({
10
+ import { useNamespace as ae } from "../config-provider/hooks/use-namespace.mjs";
11
+ const ye = /* @__PURE__ */ j({
12
12
  name: "ApFormItem",
13
13
  __name: "ap-form-item",
14
14
  props: {
@@ -51,87 +51,91 @@ const ve = /* @__PURE__ */ $({
51
51
  },
52
52
  setup(N, { expose: P }) {
53
53
  var y, F;
54
- const o = N, l = j(), { model: u, updateModel: d } = le(), { m: f } = re("ap-form-item"), s = m(!1), r = m(), [, x] = M(), p = b(() => o.name ? ee(o.name) ? o.name.reduce((e, a) => e == null ? void 0 : e[a], t(u)) : u == null ? void 0 : u.value[o.name] : null), c = m((F = (y = l.default) == null ? void 0 : y.call(l)) == null ? void 0 : F[0]);
55
- q(
54
+ const t = N, r = q(), { model: u, updateModel: d } = le(), { m: f, b: x } = ae("ap-form-item"), s = m(!1), l = m(), [, V] = ee(), p = B(() => t.name ? oe(t.name) ? t.name.reduce((e, a) => e == null ? void 0 : e[a], o(u)) : u == null ? void 0 : u.value[t.name] : null), c = m((F = (y = r.default) == null ? void 0 : y.call(r)) == null ? void 0 : F[0]);
55
+ D(
56
56
  () => {
57
57
  var e;
58
- return (e = l.default) == null ? void 0 : e.call(l);
58
+ return (e = r.default) == null ? void 0 : e.call(r);
59
59
  },
60
60
  (e) => {
61
61
  c.value = e == null ? void 0 : e[0];
62
62
  }
63
63
  );
64
- function V(e) {
65
- d == null || d(o.name, e);
64
+ function I(e) {
65
+ d == null || d(t.name, e);
66
66
  }
67
- function I() {
67
+ function S() {
68
68
  s.value = !0;
69
69
  }
70
- function S() {
70
+ function _() {
71
71
  s.value = !1;
72
72
  }
73
- const v = b(() => {
73
+ const v = B(() => {
74
74
  var a, n;
75
- if (!o.name)
76
- return (a = l.default()) == null ? void 0 : a[0];
77
- const e = t(c);
78
- return e ? D(e, {
79
- [o.valuePropName]: t(p),
80
- [`onUpdate:${o.valuePropName}`]: V,
81
- bordered: o.bordered ? !1 : (n = e == null ? void 0 : e.props) == null ? void 0 : n.bordered,
82
- onFocus: I,
83
- onBlur: S
75
+ if (!t.name)
76
+ return (a = r.default()) == null ? void 0 : a[0];
77
+ const e = o(c);
78
+ return e ? E(e, {
79
+ [t.valuePropName]: o(p),
80
+ [`onUpdate:${t.valuePropName}`]: I,
81
+ bordered: t.bordered ? !1 : (n = e == null ? void 0 : e.props) == null ? void 0 : n.bordered,
82
+ onFocus: S,
83
+ onBlur: _
84
84
  }) : null;
85
85
  });
86
- function _() {
87
- var e;
88
- (e = r.value) == null || e.onFieldBlur();
89
- }
90
86
  function z() {
91
87
  var e;
92
- (e = r.value) == null || e.onFieldChange();
88
+ (e = l.value) == null || e.onFieldBlur();
93
89
  }
94
90
  function A() {
95
91
  var e;
96
- (e = r.value) == null || e.clearValidate();
92
+ (e = l.value) == null || e.onFieldChange();
97
93
  }
98
94
  function R() {
99
95
  var e;
100
- (e = r.value) == null || e.resetField();
96
+ (e = l.value) == null || e.clearValidate();
101
97
  }
102
98
  function T() {
103
- return t(p);
99
+ var e;
100
+ (e = l.value) == null || e.resetField();
101
+ }
102
+ function L() {
103
+ return o(p);
104
104
  }
105
105
  return P({
106
- onFieldBlur: _,
107
- onFieldChange: z,
108
- clearValidate: A,
109
- resetField: R,
110
- getFieldValue: T
111
- }), (e, a) => (h(), C(t(Y).Item, E({
106
+ onFieldBlur: z,
107
+ onFieldChange: A,
108
+ clearValidate: R,
109
+ resetField: T,
110
+ getFieldValue: L
111
+ }), (e, a) => (h(), C(o(Z).Item, K({
112
112
  ref_key: "formItemRef",
113
- ref: r
114
- }, t(k)(o, [...t(oe), "tooltip"]), {
115
- class: { [t(f)("bordered")]: e.bordered, [t(f)("focused")]: e.bordered && s.value },
116
- colon: e.bordered ? !1 : o.colon
117
- }), K({
113
+ ref: l
114
+ }, o(k)(t, [...o(te), "tooltip"]), {
115
+ class: {
116
+ [o(f)("bordered")]: e.bordered,
117
+ [o(f)("focused")]: e.bordered && s.value,
118
+ [o(x)()]: !0
119
+ },
120
+ colon: e.bordered ? !1 : t.colon
121
+ }), O({
118
122
  default: i(() => [
119
- v.value ? (h(), C(O(v.value), { key: 0 })) : Q("", !0)
123
+ v.value ? (h(), C(Q(v.value), { key: 0 })) : U("", !0)
120
124
  ]),
121
125
  _: 2
122
126
  }, [
123
- o.tooltip ? {
127
+ t.tooltip ? {
124
128
  name: "tooltip",
125
129
  fn: i(({ class: n }) => [
126
- U("span", {
127
- class: w(n)
130
+ w("span", {
131
+ class: G(n)
128
132
  }, [
129
- g(t(Z), {
130
- title: o.tooltip
133
+ g(o(M), {
134
+ title: t.tooltip
131
135
  }, {
132
136
  default: i(() => [
133
- g(t(te), {
134
- style: G({ color: t(x).colorPrimary })
137
+ g(o(re), {
138
+ style: H({ color: o(V).colorPrimary })
135
139
  }, null, 8, ["style"])
136
140
  ]),
137
141
  _: 1
@@ -140,15 +144,15 @@ const ve = /* @__PURE__ */ $({
140
144
  ]),
141
145
  key: "0"
142
146
  } : void 0,
143
- H(t(k)(l, "default"), (n, B) => ({
144
- name: B,
145
- fn: i((L) => [
146
- J(e.$slots, B, W(X(L || {})))
147
+ J(o(k)(r, "default"), (n, b) => ({
148
+ name: b,
149
+ fn: i(($) => [
150
+ W(e.$slots, b, X(Y($ || {})))
147
151
  ])
148
152
  }))
149
153
  ]), 1040, ["class", "colon"]));
150
154
  }
151
155
  });
152
156
  export {
153
- ve as default
157
+ ye as default
154
158
  };
@@ -147,7 +147,7 @@ const s = 24, Pe = /* @__PURE__ */ K({
147
147
  const v = p.props;
148
148
  return _ += v.span || r, Y(p, {
149
149
  span: v.span || r,
150
- key: `ApFormSearchFormItem-${c}`,
150
+ key: `ApFormSearchFormItem-${c}-${Date.now()}`,
151
151
  hidden: !t.forceExpand && o(u) && _ > x
152
152
  });
153
153
  }), H = s - Math.min(x, _) - r;
@@ -48,3 +48,14 @@
48
48
  border-color: #66a9ff;
49
49
  box-shadow: 0 0 0 2px rgba(5, 155, 255, 0.1);
50
50
  }
51
+ .aplus-ap-form-item .ant-form-show-help .ant-form-item-explain-error {
52
+ font-size: 12px;
53
+ line-height: 18px;
54
+ margin-top: 2px;
55
+ }
56
+ .aplus-ap-form-item .ant-col .ant-form-item-extra {
57
+ line-height: 22px;
58
+ min-height: unset;
59
+ margin-top: 4px;
60
+ margin-bottom: 12px;
61
+ }
@@ -0,0 +1,9 @@
1
+ import { Modal as _Modal } from 'ant-design-vue';
2
+ import { CreateModalFunc } from './type';
3
+
4
+ export * from './type';
5
+ type ApModalMixedProps = typeof _Modal & {
6
+ createModal: CreateModalFunc;
7
+ };
8
+ declare const ApModal: ApModalMixedProps;
9
+ export { ApModal };
@@ -0,0 +1,10 @@
1
+ import { Modal as r } from "ant-design-vue";
2
+ import "./utils/index.mjs";
3
+ import "./type.mjs";
4
+ import { createModal as a } from "./utils/createModal.mjs";
5
+ const o = r;
6
+ o.createModal = a;
7
+ o.name = "ApModal";
8
+ export {
9
+ o as ApModal
10
+ };
@@ -0,0 +1,13 @@
1
+ import { ModalProps } from 'ant-design-vue';
2
+
3
+ export type CreateModalFuncProps = Omit<ModalProps, 'open' | 'onUpdate:open' | 'destroyOnClose' | 'onCancel' | 'onOk' | 'getContainer'> & Partial<{
4
+ onCancel: (e: MouseEvent) => void | Promise<unknown>;
5
+ onOk: (e: MouseEvent) => void | Promise<unknown>;
6
+ getContainer: HTMLElement;
7
+ content: any;
8
+ }>;
9
+ export type CreateModalFuncReturn = {
10
+ destroy: () => void;
11
+ update: (newConfig: CreateModalFuncProps) => void;
12
+ };
13
+ export type CreateModalFunc = (props: CreateModalFuncProps) => CreateModalFuncReturn;
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,3 @@
1
+ import { CreateModalFunc } from '../type';
2
+
3
+ export declare const createModal: CreateModalFunc;
@@ -0,0 +1,74 @@
1
+ import { render as d, defineComponent as h, createVNode as m, mergeProps as f, h as u } from "vue";
2
+ import { Modal as C } from "ant-design-vue";
3
+ const k = (a) => {
4
+ let r, t;
5
+ function s() {
6
+ r && r(!1), setTimeout(() => {
7
+ d(null, o), i.removeChild(o);
8
+ }, 500);
9
+ }
10
+ function c(e) {
11
+ t && t(e);
12
+ }
13
+ const l = /* @__PURE__ */ h({
14
+ data() {
15
+ return {
16
+ open: !0,
17
+ props: a
18
+ };
19
+ },
20
+ methods: {
21
+ async handleCancel(e) {
22
+ var n, p;
23
+ (n = this.props) != null && n.onCancel && await ((p = this.props) == null ? void 0 : p.onCancel(e)), s();
24
+ },
25
+ async handleOk(e) {
26
+ var n;
27
+ try {
28
+ t({
29
+ confirmLoading: !0
30
+ }), (n = this.props) != null && n.onOk && await this.props.onOk(e), t({
31
+ confirmLoading: !1
32
+ }), s();
33
+ } catch {
34
+ t({
35
+ confirmLoading: !1
36
+ });
37
+ }
38
+ }
39
+ },
40
+ created() {
41
+ r = (e) => {
42
+ this.open = e;
43
+ }, t = (e) => {
44
+ this.props = {
45
+ ...this.props,
46
+ ...e
47
+ };
48
+ };
49
+ },
50
+ render() {
51
+ const {
52
+ ...e
53
+ } = this.props;
54
+ return delete e.onCancel, delete e.onOk, m(C, f({
55
+ open: this.open,
56
+ destroyOnClose: !0,
57
+ onCancel: this.handleCancel,
58
+ onOk: this.handleOk
59
+ }, e), {
60
+ default: () => {
61
+ var n;
62
+ return [(n = this.props) == null ? void 0 : n.content];
63
+ }
64
+ });
65
+ }
66
+ }), i = a.getContainer || document.body, o = document.createElement("div");
67
+ return i.appendChild(o), d(u(l), o), {
68
+ destroy: s,
69
+ update: c
70
+ };
71
+ };
72
+ export {
73
+ k as createModal
74
+ };
@@ -0,0 +1 @@
1
+ export * from './createModal';
@@ -0,0 +1,4 @@
1
+ import { createModal as r } from "./createModal.mjs";
2
+ export {
3
+ r as createModal
4
+ };