@aplus-frontend/ui 7.12.0 → 7.12.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.
@@ -141,7 +141,7 @@ const _e = /* @__PURE__ */ A({
141
141
  } = te();
142
142
  function I(e) {
143
143
  const t = ue(o.columns || []);
144
- if (!Object.keys(t).length)
144
+ if (!Object.keys(t).length || !e?.length)
145
145
  return e;
146
146
  let a = [];
147
147
  for (const m of e)
@@ -904,7 +904,10 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
904
904
  type: BooleanConstructor;
905
905
  default: any;
906
906
  };
907
- mask: PropType<MaskType>;
907
+ mask: {
908
+ type: PropType<MaskType>;
909
+ default: MaskType;
910
+ };
908
911
  maskStyle: {
909
912
  type: PropType<CSSProperties>;
910
913
  default: CSSProperties;
@@ -42,7 +42,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
42
42
  default: string;
43
43
  };
44
44
  subTitle: {
45
- type: (StringConstructor | (() => VNode))[];
45
+ type: (StringConstructor | (() => VNode) | null)[];
46
46
  default: string;
47
47
  };
48
48
  maxCount: {
@@ -129,7 +129,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
129
129
  default: string;
130
130
  };
131
131
  subTitle: {
132
- type: (StringConstructor | (() => VNode))[];
132
+ type: (StringConstructor | (() => VNode) | null)[];
133
133
  default: string;
134
134
  };
135
135
  maxCount: {
@@ -201,7 +201,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
201
201
  acceptErrorMsg: string;
202
202
  subTitle: string | VNode< RendererNode, RendererElement, {
203
203
  [key: string]: any;
204
- }>;
204
+ }> | null;
205
205
  baseDirName: string;
206
206
  maxCountErrorMsg: string;
207
207
  showUploadErrorMsg: boolean;
@@ -46,7 +46,7 @@ const K = ["id"], me = /* @__PURE__ */ _({
46
46
  default: ""
47
47
  },
48
48
  subTitle: {
49
- type: [String, Object],
49
+ type: [String, Object, null],
50
50
  default: ""
51
51
  },
52
52
  maxCount: {
@@ -21,23 +21,24 @@ const H = /* @__PURE__ */ y({
21
21
  },
22
22
  emits: ["update:value"],
23
23
  setup(f, { emit: d }) {
24
- const o = f, v = d, { value: h, updateValue: g } = z(o, v), a = i(!1), n = i(), b = (e) => o._parent || e, { t: x } = E();
24
+ const o = f, v = d, { value: g, updateValue: h } = z(o, v), n = i(!1), l = i(), b = (e) => o._parent || e, { t: x } = E();
25
25
  function C(e) {
26
- const l = e.target.value || "";
27
- let r = L(l, `
26
+ const r = e.target.value || "";
27
+ let a = L(r, `
28
28
  ,`, `
29
29
  `, o.maxNum);
30
- if (r !== l) {
31
- const c = n.value?.$el || n.value;
32
- c && (c.value = r);
30
+ if (a = a.replace(/\\n/g, `
31
+ `), a !== r) {
32
+ const c = l.value?.$el || l.value;
33
+ c && (c.value = a);
33
34
  }
34
- g(r);
35
+ h(a);
35
36
  }
36
37
  function I(e) {
37
- o.disabled ? a.value = !1 : a.value = e, !e && o.onClose?.();
38
+ o.disabled ? n.value = !1 : n.value = e, !e && o.onClose?.();
38
39
  }
39
40
  const { b: s, e: N, em: V, bm: _ } = F("batch-input-group-popover-input");
40
- return (e, l) => (k(), A("div", {
41
+ return (e, r) => (k(), A("div", {
41
42
  class: p(t(s)())
42
43
  }, [
43
44
  u(t(P), {
@@ -45,7 +46,7 @@ const H = /* @__PURE__ */ y({
45
46
  "get-popup-container": b,
46
47
  trigger: "click",
47
48
  placement: "bottomLeft",
48
- open: a.value,
49
+ open: n.value,
49
50
  onOpenChange: I
50
51
  }, {
51
52
  content: m(() => [
@@ -54,13 +55,13 @@ const H = /* @__PURE__ */ y({
54
55
  }, [
55
56
  u(t($), {
56
57
  ref_key: "textAreaRef",
57
- ref: n,
58
+ ref: l,
58
59
  placeholder: t(x)("ap.batchInputGroup.popoverInputPlaceholder", {
59
60
  maxNum: e.maxNum + ""
60
61
  }),
61
62
  bordered: !1,
62
63
  rows: 10,
63
- value: t(h),
64
+ value: t(g),
64
65
  "allow-clear": !1,
65
66
  "auto-size": !1,
66
67
  onInput: C
@@ -12,7 +12,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
12
12
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
13
13
  import { Locale } from '@aplus-frontend/antdv/es/locale';
14
14
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
15
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
15
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
16
16
  type ApGridConfig = Pick<ApGridProps, 'rowSelection'>;
17
17
  type AgGridConfig = Pick<AgGridProps, 'rowSelection'>;
18
18
  type ApProCardConfig = {
@@ -169,6 +169,18 @@ export declare const configProviderProps: () => {
169
169
  type: PropType< PopconfirmConfig>;
170
170
  default: PopconfirmConfig;
171
171
  };
172
+ modal: {
173
+ type: PropType< ModalConfig>;
174
+ default: ModalConfig;
175
+ };
176
+ drawer: {
177
+ type: PropType< DrawerConfig>;
178
+ default: DrawerConfig;
179
+ };
180
+ image: {
181
+ type: PropType< ImageConfig>;
182
+ default: ImageConfig;
183
+ };
172
184
  apGrid: {
173
185
  type: PropType<ApGridConfig>;
174
186
  };
@@ -5,7 +5,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
5
5
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { Locale } from '@aplus-frontend/antdv/es/locale';
7
7
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
8
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
9
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
10
10
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
11
11
  import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
@@ -160,6 +160,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
160
160
  type: PropType<PopconfirmConfig>;
161
161
  default: PopconfirmConfig;
162
162
  };
163
+ modal: {
164
+ type: PropType<ModalConfig>;
165
+ default: ModalConfig;
166
+ };
167
+ drawer: {
168
+ type: PropType<DrawerConfig>;
169
+ default: DrawerConfig;
170
+ };
171
+ image: {
172
+ type: PropType<ImageConfig>;
173
+ default: ImageConfig;
174
+ };
163
175
  apGrid: {
164
176
  type: PropType<{
165
177
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -386,6 +398,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
386
398
  type: PropType<PopconfirmConfig>;
387
399
  default: PopconfirmConfig;
388
400
  };
401
+ modal: {
402
+ type: PropType<ModalConfig>;
403
+ default: ModalConfig;
404
+ };
405
+ drawer: {
406
+ type: PropType<DrawerConfig>;
407
+ default: DrawerConfig;
408
+ };
409
+ image: {
410
+ type: PropType<ImageConfig>;
411
+ default: ImageConfig;
412
+ };
389
413
  apGrid: {
390
414
  type: PropType<{
391
415
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -499,6 +523,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
499
523
  card: CardConfig;
500
524
  popover: PopoverConfig;
501
525
  popconfirm: PopconfirmConfig;
526
+ modal: ModalConfig;
527
+ drawer: DrawerConfig;
528
+ image: ImageConfig;
502
529
  searchForm: SearchFormGlobalConfig;
503
530
  apUpload: ApUploadConfig;
504
531
  apDescriptions: ApDescriptionsConfig;
@@ -6,7 +6,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
6
6
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
7
7
  import { Locale } from '@aplus-frontend/antdv/es/locale';
8
8
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
9
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
10
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
11
11
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
12
12
  import { ApFilePreviewParser } from '../../business/ap-file-preview/interface';
@@ -163,6 +163,18 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
163
163
  type: PropType<PopconfirmConfig>;
164
164
  default: PopconfirmConfig;
165
165
  };
166
+ modal: {
167
+ type: PropType<ModalConfig>;
168
+ default: ModalConfig;
169
+ };
170
+ drawer: {
171
+ type: PropType<DrawerConfig>;
172
+ default: DrawerConfig;
173
+ };
174
+ image: {
175
+ type: PropType<ImageConfig>;
176
+ default: ImageConfig;
177
+ };
166
178
  apGrid: {
167
179
  type: PropType<{
168
180
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -4,7 +4,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
4
4
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
5
5
  import { Locale } from '@aplus-frontend/antdv/es/locale';
6
6
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
7
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
7
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
8
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
9
9
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
10
10
  import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
@@ -165,6 +165,18 @@ export declare const APConfigProvider: {
165
165
  type: PropType<PopconfirmConfig>;
166
166
  default: PopconfirmConfig;
167
167
  };
168
+ modal: {
169
+ type: PropType<ModalConfig>;
170
+ default: ModalConfig;
171
+ };
172
+ drawer: {
173
+ type: PropType<DrawerConfig>;
174
+ default: DrawerConfig;
175
+ };
176
+ image: {
177
+ type: PropType<ImageConfig>;
178
+ default: ImageConfig;
179
+ };
168
180
  apGrid: {
169
181
  type: PropType<{
170
182
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -278,6 +290,9 @@ export declare const APConfigProvider: {
278
290
  card: CardConfig;
279
291
  popover: PopoverConfig;
280
292
  popconfirm: PopconfirmConfig;
293
+ modal: ModalConfig;
294
+ drawer: DrawerConfig;
295
+ image: ImageConfig;
281
296
  searchForm: SearchFormGlobalConfig;
282
297
  apUpload: ApUploadConfig;
283
298
  apDescriptions: ApDescriptionsConfig;
@@ -444,6 +459,18 @@ export declare const APConfigProvider: {
444
459
  type: PropType<PopconfirmConfig>;
445
460
  default: PopconfirmConfig;
446
461
  };
462
+ modal: {
463
+ type: PropType<ModalConfig>;
464
+ default: ModalConfig;
465
+ };
466
+ drawer: {
467
+ type: PropType<DrawerConfig>;
468
+ default: DrawerConfig;
469
+ };
470
+ image: {
471
+ type: PropType<ImageConfig>;
472
+ default: ImageConfig;
473
+ };
447
474
  apGrid: {
448
475
  type: PropType<{
449
476
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -557,6 +584,9 @@ export declare const APConfigProvider: {
557
584
  card: CardConfig;
558
585
  popover: PopoverConfig;
559
586
  popconfirm: PopconfirmConfig;
587
+ modal: ModalConfig;
588
+ drawer: DrawerConfig;
589
+ image: ImageConfig;
560
590
  searchForm: SearchFormGlobalConfig;
561
591
  apUpload: ApUploadConfig;
562
592
  apDescriptions: ApDescriptionsConfig;
@@ -720,6 +750,18 @@ export declare const APConfigProvider: {
720
750
  type: PropType<PopconfirmConfig>;
721
751
  default: PopconfirmConfig;
722
752
  };
753
+ modal: {
754
+ type: PropType<ModalConfig>;
755
+ default: ModalConfig;
756
+ };
757
+ drawer: {
758
+ type: PropType<DrawerConfig>;
759
+ default: DrawerConfig;
760
+ };
761
+ image: {
762
+ type: PropType<ImageConfig>;
763
+ default: ImageConfig;
764
+ };
723
765
  apGrid: {
724
766
  type: PropType<{
725
767
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -833,6 +875,9 @@ export declare const APConfigProvider: {
833
875
  card: CardConfig;
834
876
  popover: PopoverConfig;
835
877
  popconfirm: PopconfirmConfig;
878
+ modal: ModalConfig;
879
+ drawer: DrawerConfig;
880
+ image: ImageConfig;
836
881
  searchForm: SearchFormGlobalConfig;
837
882
  apUpload: ApUploadConfig;
838
883
  apDescriptions: ApDescriptionsConfig;
@@ -1,6 +1,6 @@
1
1
  import { ConfigProviderProps } from '@aplus-frontend/antdv';
2
2
  import { TransformCellTextProps } from '@aplus-frontend/antdv/lib/table/interface';
3
- import { InputConfig, SelectConfig, FormConfig, TableConfig, TooltipConfig, ThemeConfig, PaginationConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
3
+ import { InputConfig, SelectConfig, FormConfig, TableConfig, TooltipConfig, ThemeConfig, PaginationConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
4
4
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
5
5
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { Locale } from '@aplus-frontend/antdv/es/locale';
@@ -65,6 +65,9 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
65
65
  card?: CardConfig | undefined;
66
66
  popover?: PopoverConfig | undefined;
67
67
  popconfirm?: PopconfirmConfig | undefined;
68
+ modal?: ModalConfig | undefined;
69
+ drawer?: DrawerConfig | undefined;
70
+ image?: ImageConfig | undefined;
68
71
  iconPrefixCls?: string | undefined;
69
72
  getTargetContainer?: (() => HTMLElement | Window) | undefined;
70
73
  getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
@@ -110,6 +113,9 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
110
113
  card?: CardConfig | undefined;
111
114
  popover?: PopoverConfig | undefined;
112
115
  popconfirm?: PopconfirmConfig | undefined;
116
+ modal?: ModalConfig | undefined;
117
+ drawer?: DrawerConfig | undefined;
118
+ image?: ImageConfig | undefined;
113
119
  iconPrefixCls?: string | undefined;
114
120
  getTargetContainer?: (() => HTMLElement | Window) | undefined;
115
121
  getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.12.0";
1
+ declare const _default: "7.12.1";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.12.0";
1
+ const e = "7.12.1";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),l=require("lodash-unified"),w=require("../../ap-form/index.js"),k=require("../../ap-form/context.js"),A=require("../../ap-form/hooks/use-watch.js"),H=require("../../ap-form/utils/get.js"),K=require("../../ap-form/utils/transform.js");require("../../config-provider/index.js");const P=require("../hooks/use-editable-columns.js"),z=require("../hooks/use-editable-form-item-api.js");require("../index.vue2.js");const G=require("../style/editable.js"),L=require("../utils.js"),p=require("./utils.js"),W=require("../../config-provider/hooks/use-namespace.js"),U=require("../../config-provider/hooks/use-global-config.js"),$=require("../index.vue.js"),J=o.defineComponent({name:"EditableGrid",__name:"form-item",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},rowHoverable:{type:Boolean},rowSelection:{type:[Boolean,Object]},onLoadingChange:{},onShownColumnsChange:{},pagination:{type:[Boolean,Object],default:!1},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{default:66},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{},columns:{},defaultValue:{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{}},setup(h,{expose:y}){const b=o.useSlots(),t=h,{b:C}=W.useNamespace("editable-aggrid"),R=G.default("editable-aggrid"),u=o.ref(),{internalInstance:r}=k.useInjectForm();function v(e){const n=p.getColumnTransformOptions(t.columns||[]);if(!Object.keys(n).length)return e;let a=[];for(const d of e)a.push(K.transformValues(d,n));return a}const i=L.getShadowName(t.name);let m=[];o.onMounted(()=>{const e=t.formItem?.initialValue??H.getModelValue(r?.getInitialValues()??{},t.name);e&&(r?.updateInitialModel(i,p.arrayToObject(l.cloneDeep(e),t.rowKey)),m=l.cloneDeep(e),S(l.cloneDeep(e),"suffix",!0))});const s=o.ref([]),x=A.useWatch(t.name);o.watch(()=>x.value,e=>{l.isEqual(e,s.value)||f(e??l.cloneDeep(m))},{deep:!0,flush:"post"});const B=U.useGlobalConfig("valueTypeMap"),q=P.useGetEditableColumns(t,B,i),{add:_,addMultiple:I,__addMultiple:S,remove:T,removeByKey:E,getRowData:F,getRowsData:N,setRowData:V,clear:j,refreshRowIds:c}=z.useEditableFormItemApi(t,r,s,i);function D(){const e=u.value?._internalGridApi;if(!c.value?.length||!e)return;const n=c.value.map(a=>e.getRowNode(a)).filter(a=>!!a);e.refreshCells({rowNodes:n,force:!0}),c.value=[]}function f(e){s.value=[...e];const n=p.arrayToObject(e,t.rowKey);r?.setFieldValue(t.name,[...e]),r?.setFieldValue(i,n)}function g(e,n){const a=e==="end"?s.value.length-1:e;u.value?.scrollToRow(a,n)}function O(e,n){u.value?.scrollToColumn(e,n)}return y({add:_,addMultiple:I,remove:T,removeByKey:E,getRowData:F,getRowsData:N,setRowData:V,clear:j,setTableData:f,scrollTo:g,scrollToRow:g,scrollToColumn:O}),(e,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(w.ApForm).FormItem,{hidden:"",name:e.name,"initial-value":e.formItem?.initialValue,transform:v},null,8,["name","initial-value"]),o.createVNode(o.unref(w.ApForm).FormItem,{label:e.label},{default:o.withCtx(()=>[o.createVNode($.default,o.mergeProps(o.unref(l.omit)(t,["name","maxLength","onChange","defaultValue","formItem"]),{ref_key:"tableRef",ref:u,class:[o.unref(C)(),o.unref(R)],size:"mini",columns:o.unref(q),"data-source":s.value,"search-form":!1,onUpdate:D}),o.createSlots({_:2},[o.renderList(b,(a,d)=>({name:d,fn:o.withCtx(M=>[o.renderSlot(e.$slots,d,o.normalizeProps(o.guardReactiveProps(M||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["label"])],64))}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),l=require("lodash-unified"),h=require("../../ap-form/index.js"),k=require("../../ap-form/context.js"),A=require("../../ap-form/hooks/use-watch.js"),H=require("../../ap-form/utils/get.js"),K=require("../../ap-form/utils/transform.js");require("../../config-provider/index.js");const P=require("../hooks/use-editable-columns.js"),z=require("../hooks/use-editable-form-item-api.js");require("../index.vue2.js");const G=require("../style/editable.js"),L=require("../utils.js"),p=require("./utils.js"),W=require("../../config-provider/hooks/use-namespace.js"),U=require("../../config-provider/hooks/use-global-config.js"),$=require("../index.vue.js"),J=o.defineComponent({name:"EditableGrid",__name:"form-item",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},rowHoverable:{type:Boolean},rowSelection:{type:[Boolean,Object]},onLoadingChange:{},onShownColumnsChange:{},pagination:{type:[Boolean,Object],default:!1},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{default:66},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{},columns:{},defaultValue:{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{}},setup(w,{expose:y}){const b=o.useSlots(),t=w,{b:C}=W.useNamespace("editable-aggrid"),R=G.default("editable-aggrid"),u=o.ref(),{internalInstance:r}=k.useInjectForm();function v(e){const n=p.getColumnTransformOptions(t.columns||[]);if(!Object.keys(n).length||!e?.length)return e;let a=[];for(const d of e)a.push(K.transformValues(d,n));return a}const i=L.getShadowName(t.name);let m=[];o.onMounted(()=>{const e=t.formItem?.initialValue??H.getModelValue(r?.getInitialValues()??{},t.name);e&&(r?.updateInitialModel(i,p.arrayToObject(l.cloneDeep(e),t.rowKey)),m=l.cloneDeep(e),S(l.cloneDeep(e),"suffix",!0))});const s=o.ref([]),x=A.useWatch(t.name);o.watch(()=>x.value,e=>{l.isEqual(e,s.value)||f(e??l.cloneDeep(m))},{deep:!0,flush:"post"});const B=U.useGlobalConfig("valueTypeMap"),q=P.useGetEditableColumns(t,B,i),{add:_,addMultiple:I,__addMultiple:S,remove:T,removeByKey:E,getRowData:F,getRowsData:N,setRowData:V,clear:j,refreshRowIds:c}=z.useEditableFormItemApi(t,r,s,i);function D(){const e=u.value?._internalGridApi;if(!c.value?.length||!e)return;const n=c.value.map(a=>e.getRowNode(a)).filter(a=>!!a);e.refreshCells({rowNodes:n,force:!0}),c.value=[]}function f(e){s.value=[...e];const n=p.arrayToObject(e,t.rowKey);r?.setFieldValue(t.name,[...e]),r?.setFieldValue(i,n)}function g(e,n){const a=e==="end"?s.value.length-1:e;u.value?.scrollToRow(a,n)}function O(e,n){u.value?.scrollToColumn(e,n)}return y({add:_,addMultiple:I,remove:T,removeByKey:E,getRowData:F,getRowsData:N,setRowData:V,clear:j,setTableData:f,scrollTo:g,scrollToRow:g,scrollToColumn:O}),(e,n)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createVNode(o.unref(h.ApForm).FormItem,{hidden:"",name:e.name,"initial-value":e.formItem?.initialValue,transform:v},null,8,["name","initial-value"]),o.createVNode(o.unref(h.ApForm).FormItem,{label:e.label},{default:o.withCtx(()=>[o.createVNode($.default,o.mergeProps(o.unref(l.omit)(t,["name","maxLength","onChange","defaultValue","formItem"]),{ref_key:"tableRef",ref:u,class:[o.unref(C)(),o.unref(R)],size:"mini",columns:o.unref(q),"data-source":s.value,"search-form":!1,onUpdate:D}),o.createSlots({_:2},[o.renderList(b,(a,d)=>({name:d,fn:o.withCtx(M=>[o.renderSlot(e.$slots,d,o.normalizeProps(o.guardReactiveProps(M||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["label"])],64))}});exports.default=J;
@@ -904,7 +904,10 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
904
904
  type: BooleanConstructor;
905
905
  default: any;
906
906
  };
907
- mask: PropType<MaskType>;
907
+ mask: {
908
+ type: PropType<MaskType>;
909
+ default: MaskType;
910
+ };
908
911
  maskStyle: {
909
912
  type: PropType<CSSProperties>;
910
913
  default: CSSProperties;
@@ -42,7 +42,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
42
42
  default: string;
43
43
  };
44
44
  subTitle: {
45
- type: (StringConstructor | (() => VNode))[];
45
+ type: (StringConstructor | (() => VNode) | null)[];
46
46
  default: string;
47
47
  };
48
48
  maxCount: {
@@ -129,7 +129,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
129
129
  default: string;
130
130
  };
131
131
  subTitle: {
132
- type: (StringConstructor | (() => VNode))[];
132
+ type: (StringConstructor | (() => VNode) | null)[];
133
133
  default: string;
134
134
  };
135
135
  maxCount: {
@@ -201,7 +201,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
201
201
  acceptErrorMsg: string;
202
202
  subTitle: string | VNode< RendererNode, RendererElement, {
203
203
  [key: string]: any;
204
- }>;
204
+ }> | null;
205
205
  baseDirName: string;
206
206
  maxCountErrorMsg: string;
207
207
  showUploadErrorMsg: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");require("./components/SingleFile.vue.js");const F=require("./hooks/useOss.js"),M=require("./style/index.js"),x=require("./utils/accept.js"),N=require("../../config-provider/hooks/use-locale.js"),E=require("../../config-provider/hooks/use-namespace.js"),U=require("./components/Picture.vue2.js"),h=require("./components/MultipleFile.vue2.js"),O=require("./components/SingleFile.vue2.js"),k=require("../../config-provider/hooks/use-global-config.js"),R=["id"],j=e.defineComponent({name:"AplusFileUpload",__name:"apUpload",props:{dirName:{type:String,default:void 0},type:{type:String,default:"singleFile"},value:{type:[String,Object,Array],default:void 0},needName:{type:[Boolean,Object],default:void 0},accept:{type:String,default:void 0},maxSize:{type:Number,default:void 0},title:{type:String,default:""},subTitle:{type:[String,Object],default:""},maxCount:{type:Number,default:void 0},beforeUpload:{type:Function,default:void 0},customRequest:{type:Function,default:void 0},getOssAccess:{type:Function,default:void 0},onChange:{type:Function,default:void 0},maxSizeErrorMsg:{type:String,default:void 0},maxCountErrorMsg:{type:String,default:void 0},acceptErrorMsg:{type:String,default:void 0},onRemove:{type:Function,default:void 0},showUploadErrorMsg:{type:Boolean,default:!0},baseDirName:{type:String,default:"Frontend-Upload"},bucket:{type:String,default:void 0}},emits:["update:value"],setup(d,{expose:p,emit:c}){const{t:a,lang:v}=N.useLocale();x.injectLocaleToAccept(a),F.injectLocaleToOss(a,v);const{b:m}=E.useNamespace("ap-upload"),f=M.default("ap-upload"),u=e.ref(null),t=d,g=c,y={singleFile:O.default,multipleFile:h.default,picture:U.default},i=q.Form.useInjectFormItemContext(),_=e.computed({get(){return t.value},set(o){g("update:value",o),i?.onFieldChange(),t.onChange?.(o)}}),r=k.useGlobalConfig("apUpload");e.provide("value",_),e.provide("dirName",t.dirName??r.value?.dirName),e.provide("needName",t.needName??r.value?.needName??!1),e.provide("accept",t.accept??r.value?.accept??""),e.provide("maxSize",t.maxSize),e.provide("title",t.title),e.provide("subTitle",t.subTitle),e.provide("maxCount",t.maxCount),e.provide("beforeUpload",t.beforeUpload),e.provide("customRequest",t.customRequest),e.provide("baseDirName",t.baseDirName??"Frontend-Upload"),e.provide("getOssAccess",t.getOssAccess??r.value?.getOssAccess),e.provide("maxSizeErrorMsg",t.maxSizeErrorMsg),e.provide("maxCountErrorMsg",t.maxCountErrorMsg),e.provide("acceptErrorMsg",t.acceptErrorMsg),e.provide("onRemove",t.onRemove),e.provide("showUploadErrorMsg",t.showUploadErrorMsg),e.provide("bucket",t.bucket);const b=e.computed(()=>n.value===0),n=e.ref(0);e.provide("uploadingCount",n);function S(){s(void 0)}function s(o){u?.value?.setValue?.(o)}return p({done:b,clear:S,setValue:s}),(o,z)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i)?.id.value,class:e.normalizeClass([e.unref(m)(),e.unref(f)])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y[t.type]),e.mergeProps(o.$attrs,{ref_key:"uploadRef",ref:u}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),l=>({name:l,fn:e.withCtx(C=>[e.renderSlot(o.$slots,l,e.normalizeProps(e.guardReactiveProps(C||{})))])}))]),1040))],10,R))}});exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),q=require("@aplus-frontend/antdv");require("../../config-provider/index.js");require("./components/MultipleFile.vue.js");require("./components/Picture.vue.js");require("./components/SingleFile.vue.js");const F=require("./hooks/useOss.js"),M=require("./style/index.js"),x=require("./utils/accept.js"),N=require("../../config-provider/hooks/use-locale.js"),E=require("../../config-provider/hooks/use-namespace.js"),U=require("./components/Picture.vue2.js"),h=require("./components/MultipleFile.vue2.js"),O=require("./components/SingleFile.vue2.js"),k=require("../../config-provider/hooks/use-global-config.js"),R=["id"],j=e.defineComponent({name:"AplusFileUpload",__name:"apUpload",props:{dirName:{type:String,default:void 0},type:{type:String,default:"singleFile"},value:{type:[String,Object,Array],default:void 0},needName:{type:[Boolean,Object],default:void 0},accept:{type:String,default:void 0},maxSize:{type:Number,default:void 0},title:{type:String,default:""},subTitle:{type:[String,Object,null],default:""},maxCount:{type:Number,default:void 0},beforeUpload:{type:Function,default:void 0},customRequest:{type:Function,default:void 0},getOssAccess:{type:Function,default:void 0},onChange:{type:Function,default:void 0},maxSizeErrorMsg:{type:String,default:void 0},maxCountErrorMsg:{type:String,default:void 0},acceptErrorMsg:{type:String,default:void 0},onRemove:{type:Function,default:void 0},showUploadErrorMsg:{type:Boolean,default:!0},baseDirName:{type:String,default:"Frontend-Upload"},bucket:{type:String,default:void 0}},emits:["update:value"],setup(d,{expose:p,emit:c}){const{t:a,lang:v}=N.useLocale();x.injectLocaleToAccept(a),F.injectLocaleToOss(a,v);const{b:m}=E.useNamespace("ap-upload"),f=M.default("ap-upload"),u=e.ref(null),t=d,g=c,y={singleFile:O.default,multipleFile:h.default,picture:U.default},i=q.Form.useInjectFormItemContext(),_=e.computed({get(){return t.value},set(o){g("update:value",o),i?.onFieldChange(),t.onChange?.(o)}}),r=k.useGlobalConfig("apUpload");e.provide("value",_),e.provide("dirName",t.dirName??r.value?.dirName),e.provide("needName",t.needName??r.value?.needName??!1),e.provide("accept",t.accept??r.value?.accept??""),e.provide("maxSize",t.maxSize),e.provide("title",t.title),e.provide("subTitle",t.subTitle),e.provide("maxCount",t.maxCount),e.provide("beforeUpload",t.beforeUpload),e.provide("customRequest",t.customRequest),e.provide("baseDirName",t.baseDirName??"Frontend-Upload"),e.provide("getOssAccess",t.getOssAccess??r.value?.getOssAccess),e.provide("maxSizeErrorMsg",t.maxSizeErrorMsg),e.provide("maxCountErrorMsg",t.maxCountErrorMsg),e.provide("acceptErrorMsg",t.acceptErrorMsg),e.provide("onRemove",t.onRemove),e.provide("showUploadErrorMsg",t.showUploadErrorMsg),e.provide("bucket",t.bucket);const b=e.computed(()=>n.value===0),n=e.ref(0);e.provide("uploadingCount",n);function S(){s(void 0)}function s(o){u?.value?.setValue?.(o)}return p({done:b,clear:S,setValue:s}),(o,z)=>(e.openBlock(),e.createElementBlock("div",{id:e.unref(i)?.id.value,class:e.normalizeClass([e.unref(m)(),e.unref(f)])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y[t.type]),e.mergeProps(o.$attrs,{ref_key:"uploadRef",ref:u}),e.createSlots({_:2},[e.renderList(Object.keys(o.$slots),l=>({name:l,fn:e.withCtx(C=>[e.renderSlot(o.$slots,l,e.normalizeProps(e.guardReactiveProps(C||{})))])}))]),1040))],10,R))}});exports.default=j;
@@ -1,3 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),q=require("@aplus-frontend/icon");require("../../../config-provider/index.js");require("../../../hooks/index.js");const x=require("../utils.js"),_=require("../../../hooks/useControllableValue.js"),I=require("../../../config-provider/hooks/use-locale.js"),y=require("../../../config-provider/hooks/use-namespace.js"),A=e.defineComponent({name:"BatchInputGroupPopoverInput",inheritAttrs:!1,__name:"index",props:{_parent:{},onClose:{type:Function},disabled:{type:Boolean},maxNum:{},value:{},"onUpdate:value":{type:Function}},emits:["update:value"],setup(p,{emit:i}){const t=p,d=i,{value:f,updateValue:m}=_.useControllableValue(t,d),a=e.ref(!1),o=e.ref(),v=n=>t._parent||n,{t:b}=I.useLocale();function g(n){const r=n.target.value||"";let l=x.splitValue(r,`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),q=require("@aplus-frontend/icon");require("../../../config-provider/index.js");require("../../../hooks/index.js");const x=require("../utils.js"),_=require("../../../hooks/useControllableValue.js"),I=require("../../../config-provider/hooks/use-locale.js"),y=require("../../../config-provider/hooks/use-namespace.js"),A=e.defineComponent({name:"BatchInputGroupPopoverInput",inheritAttrs:!1,__name:"index",props:{_parent:{},onClose:{type:Function},disabled:{type:Boolean},maxNum:{},value:{},"onUpdate:value":{type:Function}},emits:["update:value"],setup(p,{emit:i}){const t=p,d=i,{value:f,updateValue:m}=_.useControllableValue(t,d),o=e.ref(!1),r=e.ref(),v=n=>t._parent||n,{t:g}=I.useLocale();function b(n){const l=n.target.value||"";let a=x.splitValue(l,`
2
2
  ,`,`
3
- `,t.maxNum);if(l!==r){const s=o.value?.$el||o.value;s&&(s.value=l)}m(l)}function h(n){t.disabled?a.value=!1:a.value=n,!n&&t.onClose?.()}const{b:u,e:C,em:N,bm:V}=y.useNamespace("batch-input-group-popover-input");return(n,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(u)())},[e.createVNode(e.unref(c.Popover),{"overlay-class-name":`${e.unref(C)("popover")} ${n.$attrs.class}`,"get-popup-container":v,trigger:"click",placement:"bottomLeft",open:a.value,onOpenChange:h},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(N)("popover","content"))},[e.createVNode(e.unref(c.Textarea),{ref_key:"textAreaRef",ref:o,placeholder:e.unref(b)("ap.batchInputGroup.popoverInputPlaceholder",{maxNum:n.maxNum+""}),bordered:!1,rows:10,value:e.unref(f),"allow-clear":!1,"auto-size":!1,onInput:g},null,8,["placeholder","value"])],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(q.IconApAdLineScreen),{class:e.normalizeClass([e.unref(u)("trigger-icon"),n.disabled?e.unref(V)("trigger-icon","disabled"):null])},null,8,["class"])]),_:1},8,["overlay-class-name","open"])],2))}});exports.default=A;
3
+ `,t.maxNum);if(a=a.replace(/\\n/g,`
4
+ `),a!==l){const s=r.value?.$el||r.value;s&&(s.value=a)}m(a)}function h(n){t.disabled?o.value=!1:o.value=n,!n&&t.onClose?.()}const{b:u,e:C,em:N,bm:V}=y.useNamespace("batch-input-group-popover-input");return(n,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(u)())},[e.createVNode(e.unref(c.Popover),{"overlay-class-name":`${e.unref(C)("popover")} ${n.$attrs.class}`,"get-popup-container":v,trigger:"click",placement:"bottomLeft",open:o.value,onOpenChange:h},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(N)("popover","content"))},[e.createVNode(e.unref(c.Textarea),{ref_key:"textAreaRef",ref:r,placeholder:e.unref(g)("ap.batchInputGroup.popoverInputPlaceholder",{maxNum:n.maxNum+""}),bordered:!1,rows:10,value:e.unref(f),"allow-clear":!1,"auto-size":!1,onInput:b},null,8,["placeholder","value"])],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(q.IconApAdLineScreen),{class:e.normalizeClass([e.unref(u)("trigger-icon"),n.disabled?e.unref(V)("trigger-icon","disabled"):null])},null,8,["class"])]),_:1},8,["overlay-class-name","open"])],2))}});exports.default=A;
@@ -12,7 +12,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
12
12
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
13
13
  import { Locale } from '@aplus-frontend/antdv/es/locale';
14
14
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
15
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
15
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
16
16
  type ApGridConfig = Pick<ApGridProps, 'rowSelection'>;
17
17
  type AgGridConfig = Pick<AgGridProps, 'rowSelection'>;
18
18
  type ApProCardConfig = {
@@ -169,6 +169,18 @@ export declare const configProviderProps: () => {
169
169
  type: PropType< PopconfirmConfig>;
170
170
  default: PopconfirmConfig;
171
171
  };
172
+ modal: {
173
+ type: PropType< ModalConfig>;
174
+ default: ModalConfig;
175
+ };
176
+ drawer: {
177
+ type: PropType< DrawerConfig>;
178
+ default: DrawerConfig;
179
+ };
180
+ image: {
181
+ type: PropType< ImageConfig>;
182
+ default: ImageConfig;
183
+ };
172
184
  apGrid: {
173
185
  type: PropType<ApGridConfig>;
174
186
  };
@@ -5,7 +5,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
5
5
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { Locale } from '@aplus-frontend/antdv/es/locale';
7
7
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
8
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
9
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
10
10
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
11
11
  import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
@@ -160,6 +160,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
160
160
  type: PropType<PopconfirmConfig>;
161
161
  default: PopconfirmConfig;
162
162
  };
163
+ modal: {
164
+ type: PropType<ModalConfig>;
165
+ default: ModalConfig;
166
+ };
167
+ drawer: {
168
+ type: PropType<DrawerConfig>;
169
+ default: DrawerConfig;
170
+ };
171
+ image: {
172
+ type: PropType<ImageConfig>;
173
+ default: ImageConfig;
174
+ };
163
175
  apGrid: {
164
176
  type: PropType<{
165
177
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -386,6 +398,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
386
398
  type: PropType<PopconfirmConfig>;
387
399
  default: PopconfirmConfig;
388
400
  };
401
+ modal: {
402
+ type: PropType<ModalConfig>;
403
+ default: ModalConfig;
404
+ };
405
+ drawer: {
406
+ type: PropType<DrawerConfig>;
407
+ default: DrawerConfig;
408
+ };
409
+ image: {
410
+ type: PropType<ImageConfig>;
411
+ default: ImageConfig;
412
+ };
389
413
  apGrid: {
390
414
  type: PropType<{
391
415
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -499,6 +523,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
499
523
  card: CardConfig;
500
524
  popover: PopoverConfig;
501
525
  popconfirm: PopconfirmConfig;
526
+ modal: ModalConfig;
527
+ drawer: DrawerConfig;
528
+ image: ImageConfig;
502
529
  searchForm: SearchFormGlobalConfig;
503
530
  apUpload: ApUploadConfig;
504
531
  apDescriptions: ApDescriptionsConfig;
@@ -6,7 +6,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
6
6
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
7
7
  import { Locale } from '@aplus-frontend/antdv/es/locale';
8
8
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
9
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
10
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
11
11
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
12
12
  import { ApFilePreviewParser } from '../../business/ap-file-preview/interface';
@@ -163,6 +163,18 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
163
163
  type: PropType<PopconfirmConfig>;
164
164
  default: PopconfirmConfig;
165
165
  };
166
+ modal: {
167
+ type: PropType<ModalConfig>;
168
+ default: ModalConfig;
169
+ };
170
+ drawer: {
171
+ type: PropType<DrawerConfig>;
172
+ default: DrawerConfig;
173
+ };
174
+ image: {
175
+ type: PropType<ImageConfig>;
176
+ default: ImageConfig;
177
+ };
166
178
  apGrid: {
167
179
  type: PropType<{
168
180
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -4,7 +4,7 @@ import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface
4
4
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
5
5
  import { Locale } from '@aplus-frontend/antdv/es/locale';
6
6
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
7
- import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
7
+ import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
8
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
9
9
  import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
10
10
  import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
@@ -165,6 +165,18 @@ export declare const APConfigProvider: {
165
165
  type: PropType<PopconfirmConfig>;
166
166
  default: PopconfirmConfig;
167
167
  };
168
+ modal: {
169
+ type: PropType<ModalConfig>;
170
+ default: ModalConfig;
171
+ };
172
+ drawer: {
173
+ type: PropType<DrawerConfig>;
174
+ default: DrawerConfig;
175
+ };
176
+ image: {
177
+ type: PropType<ImageConfig>;
178
+ default: ImageConfig;
179
+ };
168
180
  apGrid: {
169
181
  type: PropType<{
170
182
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -278,6 +290,9 @@ export declare const APConfigProvider: {
278
290
  card: CardConfig;
279
291
  popover: PopoverConfig;
280
292
  popconfirm: PopconfirmConfig;
293
+ modal: ModalConfig;
294
+ drawer: DrawerConfig;
295
+ image: ImageConfig;
281
296
  searchForm: SearchFormGlobalConfig;
282
297
  apUpload: ApUploadConfig;
283
298
  apDescriptions: ApDescriptionsConfig;
@@ -444,6 +459,18 @@ export declare const APConfigProvider: {
444
459
  type: PropType<PopconfirmConfig>;
445
460
  default: PopconfirmConfig;
446
461
  };
462
+ modal: {
463
+ type: PropType<ModalConfig>;
464
+ default: ModalConfig;
465
+ };
466
+ drawer: {
467
+ type: PropType<DrawerConfig>;
468
+ default: DrawerConfig;
469
+ };
470
+ image: {
471
+ type: PropType<ImageConfig>;
472
+ default: ImageConfig;
473
+ };
447
474
  apGrid: {
448
475
  type: PropType<{
449
476
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -557,6 +584,9 @@ export declare const APConfigProvider: {
557
584
  card: CardConfig;
558
585
  popover: PopoverConfig;
559
586
  popconfirm: PopconfirmConfig;
587
+ modal: ModalConfig;
588
+ drawer: DrawerConfig;
589
+ image: ImageConfig;
560
590
  searchForm: SearchFormGlobalConfig;
561
591
  apUpload: ApUploadConfig;
562
592
  apDescriptions: ApDescriptionsConfig;
@@ -720,6 +750,18 @@ export declare const APConfigProvider: {
720
750
  type: PropType<PopconfirmConfig>;
721
751
  default: PopconfirmConfig;
722
752
  };
753
+ modal: {
754
+ type: PropType<ModalConfig>;
755
+ default: ModalConfig;
756
+ };
757
+ drawer: {
758
+ type: PropType<DrawerConfig>;
759
+ default: DrawerConfig;
760
+ };
761
+ image: {
762
+ type: PropType<ImageConfig>;
763
+ default: ImageConfig;
764
+ };
723
765
  apGrid: {
724
766
  type: PropType<{
725
767
  rowSelection?: true | ApGridRowSelection<any> | undefined;
@@ -833,6 +875,9 @@ export declare const APConfigProvider: {
833
875
  card: CardConfig;
834
876
  popover: PopoverConfig;
835
877
  popconfirm: PopconfirmConfig;
878
+ modal: ModalConfig;
879
+ drawer: DrawerConfig;
880
+ image: ImageConfig;
836
881
  searchForm: SearchFormGlobalConfig;
837
882
  apUpload: ApUploadConfig;
838
883
  apDescriptions: ApDescriptionsConfig;
@@ -1,6 +1,6 @@
1
1
  import { ConfigProviderProps } from '@aplus-frontend/antdv';
2
2
  import { TransformCellTextProps } from '@aplus-frontend/antdv/lib/table/interface';
3
- import { InputConfig, SelectConfig, FormConfig, TableConfig, TooltipConfig, ThemeConfig, PaginationConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, PopoverConfig, PopconfirmConfig } from '@aplus-frontend/antdv/es/config-provider/context';
3
+ import { InputConfig, SelectConfig, FormConfig, TableConfig, TooltipConfig, ThemeConfig, PaginationConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
4
4
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
5
5
  import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
6
6
  import { Locale } from '@aplus-frontend/antdv/es/locale';
@@ -65,6 +65,9 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
65
65
  card?: CardConfig | undefined;
66
66
  popover?: PopoverConfig | undefined;
67
67
  popconfirm?: PopconfirmConfig | undefined;
68
+ modal?: ModalConfig | undefined;
69
+ drawer?: DrawerConfig | undefined;
70
+ image?: ImageConfig | undefined;
68
71
  iconPrefixCls?: string | undefined;
69
72
  getTargetContainer?: (() => HTMLElement | Window) | undefined;
70
73
  getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
@@ -110,6 +113,9 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
110
113
  card?: CardConfig | undefined;
111
114
  popover?: PopoverConfig | undefined;
112
115
  popconfirm?: PopconfirmConfig | undefined;
116
+ modal?: ModalConfig | undefined;
117
+ drawer?: DrawerConfig | undefined;
118
+ image?: ImageConfig | undefined;
113
119
  iconPrefixCls?: string | undefined;
114
120
  getTargetContainer?: (() => HTMLElement | Window) | undefined;
115
121
  getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.12.0";
1
+ declare const _default: "7.12.1";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.12.0";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.12.1";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "7.12.0",
3
+ "version": "7.12.1",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -44,14 +44,14 @@
44
44
  "@aplus-frontend/utils": "1.0.61"
45
45
  },
46
46
  "peerDependencies": {
47
- "@aplus-frontend/antdv": "^2.0.1",
47
+ "@aplus-frontend/antdv": "^2.0.2",
48
48
  "@aplus-frontend/icon": "^2.0.6",
49
49
  "@aplus-frontend/oss": "^2.0.1",
50
50
  "vue": "^3.5.21",
51
51
  "vxe-table": "^4.13.37"
52
52
  },
53
53
  "devDependencies": {
54
- "@aplus-frontend/antdv": "^2.0.1",
54
+ "@aplus-frontend/antdv": "^2.0.2",
55
55
  "@aplus-frontend/icon": "^2.0.6",
56
56
  "@aplus-frontend/oss": "^2.0.1",
57
57
  "@emotion/serialize": "^1.3.3",