@aplus-frontend/ui 7.16.0 → 7.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/es/index.mjs +285 -281
  2. package/es/src/ap-field/cascader/index.vue.d.ts +60 -0
  3. package/es/src/ap-field/cascader/index.vue.mjs +217 -0
  4. package/es/src/ap-field/cascader/index.vue2.mjs +4 -0
  5. package/es/src/ap-field/cascader/read.vue.d.ts +8 -0
  6. package/es/src/ap-field/cascader/read.vue.mjs +4 -0
  7. package/es/src/ap-field/cascader/read.vue2.mjs +159 -0
  8. package/es/src/ap-field/cascader/use-options.d.ts +25 -0
  9. package/es/src/ap-field/cascader/use-options.mjs +66 -0
  10. package/es/src/ap-field/hooks/use-default-placeholder.d.ts +3 -1
  11. package/es/src/ap-field/hooks/use-default-placeholder.mjs +13 -8
  12. package/es/src/ap-field/index.d.ts +8 -2
  13. package/es/src/ap-field/index.mjs +72 -65
  14. package/es/src/ap-field/interface.d.ts +27 -1
  15. package/es/src/ap-field/tree-select/index.vue.mjs +43 -39
  16. package/es/src/ap-field/tree-select/use-request.mjs +22 -19
  17. package/es/src/ap-form/items/cascader/index.vue.d.ts +435 -0
  18. package/es/src/ap-form/items/cascader/index.vue.mjs +102 -0
  19. package/es/src/ap-form/items/cascader/index.vue2.mjs +4 -0
  20. package/es/src/ap-form/items/index.d.ts +2 -1
  21. package/es/src/ap-form/items/index.mjs +3 -2
  22. package/es/src/ap-form/items/interface.d.ts +6 -1
  23. package/es/src/ap-table/constants.d.ts +269 -4
  24. package/es/src/ap-table/constants.mjs +29 -26
  25. package/es/src/ap-table/interface.d.ts +5 -1
  26. package/es/src/ap-table/utils.d.ts +1 -1
  27. package/es/src/business/ag-grid-modal/interface.d.ts +4 -0
  28. package/es/src/business/ag-grid-modal/modal-layout/index.vue.d.ts +1 -0
  29. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +25 -21
  30. package/es/src/business/ag-grid-modal/style/index.mjs +1 -1
  31. package/es/src/business/ag-grid-modal/utils.d.ts +1 -0
  32. package/es/src/index.mjs +250 -246
  33. package/es/src/version.d.ts +1 -1
  34. package/es/src/version.mjs +1 -1
  35. package/lib/index.js +1 -1
  36. package/lib/src/ap-field/cascader/index.vue.d.ts +60 -0
  37. package/lib/src/ap-field/cascader/index.vue.js +1 -0
  38. package/lib/src/ap-field/cascader/index.vue2.js +1 -0
  39. package/lib/src/ap-field/cascader/read.vue.d.ts +8 -0
  40. package/lib/src/ap-field/cascader/read.vue.js +1 -0
  41. package/lib/src/ap-field/cascader/read.vue2.js +1 -0
  42. package/lib/src/ap-field/cascader/use-options.d.ts +25 -0
  43. package/lib/src/ap-field/cascader/use-options.js +1 -0
  44. package/lib/src/ap-field/hooks/use-default-placeholder.d.ts +3 -1
  45. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  46. package/lib/src/ap-field/index.d.ts +8 -2
  47. package/lib/src/ap-field/index.js +1 -1
  48. package/lib/src/ap-field/interface.d.ts +27 -1
  49. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  50. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  51. package/lib/src/ap-form/items/cascader/index.vue.d.ts +435 -0
  52. package/lib/src/ap-form/items/cascader/index.vue.js +1 -0
  53. package/lib/src/ap-form/items/cascader/index.vue2.js +1 -0
  54. package/lib/src/ap-form/items/index.d.ts +2 -1
  55. package/lib/src/ap-form/items/index.js +1 -1
  56. package/lib/src/ap-form/items/interface.d.ts +6 -1
  57. package/lib/src/ap-table/constants.d.ts +269 -4
  58. package/lib/src/ap-table/constants.js +1 -1
  59. package/lib/src/ap-table/interface.d.ts +5 -1
  60. package/lib/src/ap-table/utils.d.ts +1 -1
  61. package/lib/src/business/ag-grid-modal/interface.d.ts +4 -0
  62. package/lib/src/business/ag-grid-modal/modal-layout/index.vue.d.ts +1 -0
  63. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  64. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  65. package/lib/src/business/ag-grid-modal/utils.d.ts +1 -0
  66. package/lib/src/index.js +1 -1
  67. package/lib/src/version.d.ts +1 -1
  68. package/lib/src/version.js +1 -1
  69. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  import { ApTableValueFields } from './interface';
2
2
  import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentInternalInstance, CSSProperties, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, VNode, RendererNode, RendererElement, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
3
- import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextProps, ApFormItemTextAreaProps, ApFormItemCheckboxProps, ApFormItemTextPasswordProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
4
- import { ApFieldDateProps, FieldMode, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldSwitchConfirmConfig, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, ApFieldTreeSelectProps } from '../ap-field';
3
+ import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextProps, ApFormItemTextAreaProps, ApFormItemCheckboxProps, ApFormItemTextPasswordProps, ApFormItemTreeSelectProps, ApFormItemCascaderProps } from '../ap-form/items/interface';
4
+ import { ApFieldDateProps, FieldMode, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldSwitchConfirmConfig, ApFieldTextProps, ApFieldTextAreaProps, ApFieldCheckboxProps, ApFieldTextPasswordProps, ApFieldTreeSelectProps, ApFieldCascaderProps } from '../ap-field';
5
5
  import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
6
6
  import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler, ChangeEventHandler, CompositionEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
7
7
  import { Dayjs } from 'dayjs';
@@ -23,10 +23,10 @@ import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniD
23
23
  import { VueTypeValidableDef, VueTypeDef } from '../../node_modules/vue-types';
24
24
  import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
25
25
  import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
26
- import { RadioChangeEvent, CheckboxOptionType, TreeSelectProps } from '@aplus-frontend/antdv';
26
+ import { RadioChangeEvent, CheckboxOptionType, TreeSelectProps, CascaderProps } from '@aplus-frontend/antdv';
27
27
  import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
28
28
  import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
29
- import { RenderDOMFunc, CustomTagProps, DropdownRender, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
29
+ import { RenderDOMFunc, CustomTagProps, DropdownRender, DisplayValueType, Placement } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
30
30
  import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
31
31
  import { InputFocusOptions } from '@aplus-frontend/antdv/es/vc-input/utils/commonUtils';
32
32
  import { ShowCountProps } from '@aplus-frontend/antdv/es/vc-input/inputProps';
@@ -36,6 +36,9 @@ import { LegacyDataNode, FieldNames, Key } from '@aplus-frontend/antdv/es/vc-tre
36
36
  import { ChangeEventExtra, FieldNames, DefaultOptionType, BaseOptionType, SimpleModeConfig, LegacyDataNode } from '@aplus-frontend/antdv/es/vc-tree-select/TreeSelect';
37
37
  import { CheckedStrategy } from '@aplus-frontend/antdv/es/vc-tree-select/utils/strategyUtil';
38
38
  import { ExpandAction } from '@aplus-frontend/antdv/es/vc-tree/props';
39
+ import { DefaultOptionType, FieldNames, ShowSearchType } from '@aplus-frontend/antdv/es/vc-cascader';
40
+ import { ValueType, ShowCheckedStrategy } from '@aplus-frontend/antdv/es/vc-cascader/Cascader';
41
+ import { CascaderOptionType } from '@aplus-frontend/antdv/es/cascader';
39
42
  import { Trigger } from '@aplus-frontend/antdv/es/dropdown/props';
40
43
  import { ApTableIndexProps, ApTableStatusProps } from './components/interface';
41
44
  /**
@@ -5203,6 +5206,264 @@ export declare const apTableFormItemMap: {
5203
5206
  suffixIcon?: any;
5204
5207
  } & Omit< ApFormItemSlots, "default">;
5205
5208
  });
5209
+ cascader: {
5210
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemCascaderProps> & Readonly<{}>, {
5211
+ focus: () => void;
5212
+ blur: () => void;
5213
+ request: (selectOptions?: DefaultOptionType[], clear?: boolean) => void;
5214
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
5215
+ disabled: boolean;
5216
+ required: boolean;
5217
+ colon: boolean;
5218
+ hasFeedback: boolean;
5219
+ autoLink: boolean;
5220
+ validateFirst: boolean;
5221
+ field: Omit< ApFieldCascaderProps, "value" | "onUpdate:value">;
5222
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
5223
+ cascaderRef: ({
5224
+ $: ComponentInternalInstance;
5225
+ $data: {};
5226
+ $props: {
5227
+ readonly mode?: FieldMode | undefined;
5228
+ readonly class?: unknown;
5229
+ readonly style?: unknown;
5230
+ readonly size?: ButtonSize;
5231
+ readonly onBlur?: ((e: FocusEvent) => void) | undefined;
5232
+ readonly onChange?: ((value: ValueType, selectOptions: DefaultOptionType[] | DefaultOptionType[][]) => void) | undefined;
5233
+ readonly onClick?: ((e: MouseEvent) => void) | undefined;
5234
+ readonly onFocus?: ((e: FocusEvent) => void) | undefined;
5235
+ readonly onKeydown?: ((e: KeyboardEvent) => void) | undefined;
5236
+ readonly onKeyup?: ((e: KeyboardEvent) => void) | undefined;
5237
+ readonly onMousedown?: ((e: MouseEvent) => void) | undefined;
5238
+ readonly onMouseenter?: ((e: MouseEvent) => void) | undefined;
5239
+ readonly onMouseleave?: ((e: MouseEvent) => void) | undefined;
5240
+ readonly placement?: "topLeft" | "bottomLeft" | "bottomRight" | "topRight" | undefined;
5241
+ readonly value?: ValueType | undefined;
5242
+ readonly open?: boolean | undefined;
5243
+ readonly multiple?: boolean | undefined;
5244
+ readonly disabled?: boolean | undefined;
5245
+ readonly direction?: "ltr" | "rtl" | undefined;
5246
+ readonly animation?: string | undefined;
5247
+ readonly children?: VueNode[] | undefined;
5248
+ readonly placeholder?: any;
5249
+ readonly id?: string | undefined;
5250
+ readonly getPopupContainer?: RenderDOMFunc | undefined;
5251
+ readonly prefixCls?: string | undefined;
5252
+ readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
5253
+ readonly dropdownMatchSelectWidth?: number | boolean | undefined;
5254
+ readonly autofocus?: boolean | undefined;
5255
+ readonly loading?: boolean | undefined;
5256
+ readonly bordered?: boolean | undefined;
5257
+ readonly 'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
5258
+ readonly status?: "" | "error" | "warning" | undefined;
5259
+ readonly defaultValue?: ValueType | undefined;
5260
+ readonly prefix?: any;
5261
+ readonly clearIcon?: any;
5262
+ readonly allowClear?: boolean | undefined;
5263
+ readonly notFoundContent?: any;
5264
+ readonly suffixIcon?: any;
5265
+ readonly maxCount?: number | undefined;
5266
+ readonly transitionName?: string | undefined;
5267
+ readonly choiceTransitionName?: string | undefined;
5268
+ readonly popupClassName?: string | undefined;
5269
+ readonly dropdownClassName?: string | undefined;
5270
+ readonly tabindex?: number | undefined;
5271
+ readonly fieldNames?: FieldNames | undefined;
5272
+ readonly searchValue?: string | undefined;
5273
+ readonly onSearch?: ((value: string) => void) | undefined;
5274
+ readonly options?: CascaderOptionType[] | undefined;
5275
+ readonly showSearch?: boolean | ShowSearchType<DefaultOptionType> | undefined;
5276
+ readonly tagRender?: ((props: CustomTagProps) => any) | undefined;
5277
+ readonly optionLabelRender?: ((option: Record<string, any>) => any) | undefined;
5278
+ readonly onClear?: (() => void) | undefined;
5279
+ readonly defaultOpen?: boolean | undefined;
5280
+ readonly onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
5281
+ readonly maxTagTextLength?: number | undefined;
5282
+ readonly maxTagCount?: number | "responsive" | undefined;
5283
+ readonly maxTagPlaceholder?: any;
5284
+ readonly removeIcon?: any;
5285
+ readonly dropdownStyle?: CSSProperties | undefined;
5286
+ readonly dropdownRender?: DropdownRender | undefined;
5287
+ readonly dropdownAlign?: AlignType | undefined;
5288
+ readonly showAction?: ("click" | "focus")[] | undefined;
5289
+ readonly onPopupScroll?: ((e: UIEvent) => void) | undefined;
5290
+ readonly onInputKeyDown?: ((e: KeyboardEvent) => void) | undefined;
5291
+ readonly expandIcon?: any;
5292
+ readonly getInputElement?: (() => any) | undefined;
5293
+ readonly getRawInputElement?: (() => any) | undefined;
5294
+ readonly onPopupVisibleChange?: ((open: boolean) => void) | undefined;
5295
+ readonly popupStyle?: CSSProperties | undefined;
5296
+ readonly popupPlacement?: Placement | undefined;
5297
+ readonly popupVisible?: boolean | undefined;
5298
+ readonly changeOnSelect?: boolean | undefined;
5299
+ readonly displayRender?: ((opt: {
5300
+ labels: string[];
5301
+ selectedOptions?: DefaultOptionType[];
5302
+ }) => any) | undefined;
5303
+ readonly showCheckedStrategy?: ShowCheckedStrategy | undefined;
5304
+ readonly expandTrigger?: "click" | "hover" | undefined;
5305
+ readonly dropdownPrefixCls?: string | undefined;
5306
+ readonly dropdownMenuColumnStyle?: CSSProperties | undefined;
5307
+ readonly loadingIcon?: any;
5308
+ readonly emptyText?: string | undefined;
5309
+ readonly request?: ((selectOptions?: DefaultOptionType[], extraParams?: Recordable) => Promise< CascaderProps["options"]>) | undefined;
5310
+ readonly lazy?: boolean | undefined;
5311
+ readonly params?: Recordable | undefined;
5312
+ readonly loadData?: boolean | undefined;
5313
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
5314
+ $attrs: {
5315
+ [x: string]: unknown;
5316
+ };
5317
+ $refs: {
5318
+ [x: string]: unknown;
5319
+ };
5320
+ $slots: Readonly<{
5321
+ [name: string]: Slot<any> | undefined;
5322
+ }>;
5323
+ $root: ComponentPublicInstance | null;
5324
+ $parent: ComponentPublicInstance | null;
5325
+ $host: Element | null;
5326
+ $emit: (event: "update:value", ...args: any[]) => void;
5327
+ $el: any;
5328
+ $options: ComponentOptionsBase<Readonly< ApFieldCascaderProps> & Readonly<{
5329
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
5330
+ }>, {
5331
+ blur: () => void;
5332
+ focus: () => void;
5333
+ request: (selectOptions?: DefaultOptionType[] | undefined, clear?: boolean) => Promise<void>;
5334
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
5335
+ "update:value": (...args: any[]) => void;
5336
+ }, string, {
5337
+ mode: FieldMode;
5338
+ open: boolean;
5339
+ multiple: boolean;
5340
+ bordered: boolean;
5341
+ allowClear: boolean;
5342
+ showSearch: boolean | ShowSearchType<DefaultOptionType>;
5343
+ defaultOpen: boolean;
5344
+ emptyText: string;
5345
+ popupVisible: boolean;
5346
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
5347
+ beforeCreate?: (() => void) | (() => void)[];
5348
+ created?: (() => void) | (() => void)[];
5349
+ beforeMount?: (() => void) | (() => void)[];
5350
+ mounted?: (() => void) | (() => void)[];
5351
+ beforeUpdate?: (() => void) | (() => void)[];
5352
+ updated?: (() => void) | (() => void)[];
5353
+ activated?: (() => void) | (() => void)[];
5354
+ deactivated?: (() => void) | (() => void)[];
5355
+ beforeDestroy?: (() => void) | (() => void)[];
5356
+ beforeUnmount?: (() => void) | (() => void)[];
5357
+ destroyed?: (() => void) | (() => void)[];
5358
+ unmounted?: (() => void) | (() => void)[];
5359
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
5360
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
5361
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
5362
+ };
5363
+ $forceUpdate: () => void;
5364
+ $nextTick: nextTick;
5365
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
5366
+ } & Readonly<{
5367
+ mode: FieldMode;
5368
+ open: boolean;
5369
+ multiple: boolean;
5370
+ bordered: boolean;
5371
+ allowClear: boolean;
5372
+ showSearch: boolean | ShowSearchType<DefaultOptionType>;
5373
+ defaultOpen: boolean;
5374
+ emptyText: string;
5375
+ popupVisible: boolean;
5376
+ }> & Omit<Readonly< ApFieldCascaderProps> & Readonly<{
5377
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
5378
+ }>, "blur" | "focus" | "request" | ("mode" | "open" | "multiple" | "bordered" | "allowClear" | "showSearch" | "defaultOpen" | "emptyText" | "popupVisible")> & ShallowUnwrapRef<{
5379
+ blur: () => void;
5380
+ focus: () => void;
5381
+ request: (selectOptions?: DefaultOptionType[] | undefined, clear?: boolean) => Promise<void>;
5382
+ }> & {} & ComponentCustomProperties & {} & {
5383
+ $slots: Readonly<{
5384
+ displayRender?: any;
5385
+ notFoundContent?: any;
5386
+ expandIcon?: any;
5387
+ suffixIcon?: any;
5388
+ clearIcon?: any;
5389
+ menuItemSelectedIcon?: any;
5390
+ tagRender?: any;
5391
+ maxTagPlaceholder?: any;
5392
+ default?: any;
5393
+ optionRender?: any;
5394
+ }> & {
5395
+ displayRender?: any;
5396
+ notFoundContent?: any;
5397
+ expandIcon?: any;
5398
+ suffixIcon?: any;
5399
+ clearIcon?: any;
5400
+ menuItemSelectedIcon?: any;
5401
+ tagRender?: any;
5402
+ maxTagPlaceholder?: any;
5403
+ default?: any;
5404
+ optionRender?: any;
5405
+ };
5406
+ }) | null;
5407
+ }, any, ComponentProvideOptions, {
5408
+ P: {};
5409
+ B: {};
5410
+ D: {};
5411
+ C: {};
5412
+ M: {};
5413
+ Defaults: {};
5414
+ }, Readonly< ApFormItemCascaderProps> & Readonly<{}>, {
5415
+ focus: () => void;
5416
+ blur: () => void;
5417
+ request: (selectOptions?: DefaultOptionType[], clear?: boolean) => void;
5418
+ }, {}, {}, {}, {
5419
+ disabled: boolean;
5420
+ required: boolean;
5421
+ colon: boolean;
5422
+ hasFeedback: boolean;
5423
+ autoLink: boolean;
5424
+ validateFirst: boolean;
5425
+ field: Omit< ApFieldCascaderProps, "value" | "onUpdate:value">;
5426
+ }>;
5427
+ __isFragment?: never;
5428
+ __isTeleport?: never;
5429
+ __isSuspense?: never;
5430
+ } & ComponentOptionsBase<Readonly< ApFormItemCascaderProps> & Readonly<{}>, {
5431
+ focus: () => void;
5432
+ blur: () => void;
5433
+ request: (selectOptions?: DefaultOptionType[], clear?: boolean) => void;
5434
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
5435
+ disabled: boolean;
5436
+ required: boolean;
5437
+ colon: boolean;
5438
+ hasFeedback: boolean;
5439
+ autoLink: boolean;
5440
+ validateFirst: boolean;
5441
+ field: Omit< ApFieldCascaderProps, "value" | "onUpdate:value">;
5442
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
5443
+ $slots: Readonly<{
5444
+ displayRender?: any;
5445
+ notFoundContent?: any;
5446
+ expandIcon?: any;
5447
+ suffixIcon?: any;
5448
+ clearIcon?: any;
5449
+ menuItemSelectedIcon?: any;
5450
+ tagRender?: any;
5451
+ maxTagPlaceholder?: any;
5452
+ default?: any;
5453
+ optionRender?: any;
5454
+ } & Omit< ApFormItemSlots, "default">> & {
5455
+ displayRender?: any;
5456
+ notFoundContent?: any;
5457
+ expandIcon?: any;
5458
+ suffixIcon?: any;
5459
+ clearIcon?: any;
5460
+ menuItemSelectedIcon?: any;
5461
+ tagRender?: any;
5462
+ maxTagPlaceholder?: any;
5463
+ default?: any;
5464
+ optionRender?: any;
5465
+ } & Omit< ApFormItemSlots, "default">;
5466
+ });
5206
5467
  };
5207
5468
  /**
5208
5469
  * 表格自定义渲染
@@ -5314,6 +5575,10 @@ export declare const apTableRenderItemMap: {
5314
5575
  mode: FieldMode;
5315
5576
  emptyText: string;
5316
5577
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5578
+ cascader: DefineComponent<ApFieldCascaderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldCascaderProps> & Readonly<{}>, {
5579
+ mode: FieldMode;
5580
+ emptyText: string;
5581
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
5317
5582
  };
5318
5583
  /**
5319
5584
  * 不需要渲染到Form表单的valueType字段
@@ -3,32 +3,34 @@ import "../ap-action/index.mjs";
3
3
  import "../ap-form/index.mjs";
4
4
  import "./components/index/index.vue.mjs";
5
5
  import "./components/status/index.vue.mjs";
6
+ import r from "../ap-form/items/cascader/index.vue.mjs";
6
7
  import m from "../ap-form/items/tree-select/index.vue.mjs";
7
8
  import { ApFormItemText as t } from "../ap-form/items/text/index.mjs";
8
- import r from "../ap-form/items/checkbox/index.vue.mjs";
9
- import o from "../ap-form/items/text-area/index.vue.mjs";
10
- import a from "../ap-form/items/switch/index.vue.mjs";
11
- import i from "../ap-form/items/select/index.vue.mjs";
12
- import c from "../ap-form/items/radio/index.vue.mjs";
13
- import s from "../ap-form/items/number/index.vue.mjs";
9
+ import o from "../ap-form/items/checkbox/index.vue.mjs";
10
+ import a from "../ap-form/items/text-area/index.vue.mjs";
11
+ import i from "../ap-form/items/switch/index.vue.mjs";
12
+ import c from "../ap-form/items/select/index.vue.mjs";
13
+ import s from "../ap-form/items/radio/index.vue.mjs";
14
+ import f from "../ap-form/items/number/index.vue.mjs";
14
15
  import n from "../ap-form/items/date-range/index.vue.mjs";
15
16
  import p from "../ap-form/items/date/index.vue.mjs";
16
- import f from "./components/status/index.vue2.mjs";
17
- import _ from "./components/index/index.vue2.mjs";
18
- import d from "../ap-action/group/index.vue.mjs";
19
- const C = {
17
+ import _ from "./components/status/index.vue2.mjs";
18
+ import d from "./components/index/index.vue2.mjs";
19
+ import x from "../ap-action/group/index.vue.mjs";
20
+ const N = {
20
21
  date: p,
21
22
  dateRange: n,
22
- number: s,
23
- radio: c,
24
- select: i,
25
- switch: a,
23
+ number: f,
24
+ radio: s,
25
+ select: c,
26
+ switch: i,
26
27
  text: t,
27
- textArea: o,
28
- checkbox: r,
28
+ textArea: a,
29
+ checkbox: o,
29
30
  password: t.Password,
30
- treeSelect: m
31
- }, L = {
31
+ treeSelect: m,
32
+ cascader: r
33
+ }, V = {
32
34
  date: e.Date,
33
35
  dateRange: e.DateRange,
34
36
  number: e.Number,
@@ -38,17 +40,18 @@ const C = {
38
40
  text: e.Text,
39
41
  textArea: e.TextArea,
40
42
  checkbox: e.Checkbox,
41
- action: d,
42
- index: _,
43
- status: f,
43
+ action: x,
44
+ index: d,
45
+ status: _,
44
46
  password: e.Password,
45
- treeSelect: e.TreeSelect
46
- }, N = [
47
+ treeSelect: e.TreeSelect,
48
+ cascader: e.Cascader
49
+ }, j = [
47
50
  "action",
48
51
  "index"
49
52
  ];
50
53
  export {
51
- C as apTableFormItemMap,
52
- L as apTableRenderItemMap,
53
- N as noRenderAsFormItemValueList
54
+ N as apTableFormItemMap,
55
+ V as apTableRenderItemMap,
56
+ j as noRenderAsFormItemValueList
54
57
  };
@@ -5,7 +5,7 @@ import { EllipsisConfig } from '@aplus-frontend/antdv/es/typography/Base';
5
5
  import { ComputedRef, CSSProperties, VNode } from 'vue';
6
6
  import { ApActionGroupProps } from '../ap-action';
7
7
  import { ApFormItemProps, ApFormSearchFormPopoverSorterItem, ApFormSearchFormProps } from '../ap-form';
8
- import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
8
+ import { ApFormItemCascaderProps, ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
9
9
  import { Recordable } from '../type';
10
10
  import { ApTableIndexProps } from './components/interface';
11
11
  import { InternalPagingType } from './hooks/use-table-paging-ng';
@@ -60,6 +60,10 @@ export type ApTableValueFields = {
60
60
  * 树选择
61
61
  */
62
62
  treeSelect: ApFormItemTreeSelectProps;
63
+ /**
64
+ * 级联选择
65
+ */
66
+ cascader: ApFormItemCascaderProps;
63
67
  };
64
68
  export type ApTableValueTypes = keyof ApTableValueFields;
65
69
  export type ValueEnum = Record<string, ValueEnumType>;
@@ -60,7 +60,7 @@ export declare function getFieldProps<RecordType = any>(fieldProps: ApColumnType
60
60
  * @param item
61
61
  * @returns
62
62
  */
63
- export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "treeSelect" | "textArea" | "status" | "password" | "switch" | "index" | "action" | "dateRange";
63
+ export declare function getTableRenderType(item: ApColumnType | EditableColumnType): "number" | "select" | "date" | "checkbox" | "radio" | "text" | "cascader" | "treeSelect" | "textArea" | "status" | "password" | "switch" | "index" | "action" | "dateRange";
64
64
  export declare function getTableCellRenderNode(renderType: keyof typeof apTableRenderItemMap, renderProps: any, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): any;
65
65
  /**
66
66
  * 获取查询表单最终渲染的节点
@@ -123,6 +123,10 @@ export interface ModalLayoutProps {
123
123
  dividerOffset?: number;
124
124
  /** 是否有边框 */
125
125
  bordered?: boolean;
126
+ /** 选择数据顺序是否反转
127
+ * @default true
128
+ */
129
+ isReverse?: boolean;
126
130
  }
127
131
  /** modal-layout配置 */
128
132
  export interface ModalLayoutConfig<T = any> extends ModalLayoutProps {
@@ -34,6 +34,7 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
34
34
  [key: string]: any;
35
35
  }> | null;
36
36
  layoutType: "two-column";
37
+ isReverse: boolean;
37
38
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
38
39
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
40
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, computed as O, createElementBlock as m, renderSlot as a, openBlock as n, normalizeStyle as g, normalizeClass as o, unref as e, createElementVNode as s, createBlock as v, createCommentVNode as h, withCtx as i, resolveDynamicComponent as V, h as w, Fragment as b, createVNode as p, createTextVNode as S, toDisplayString as T, renderList as L } from "vue";
1
+ import { defineComponent as L, computed as M, createElementBlock as p, renderSlot as a, openBlock as n, normalizeStyle as g, normalizeClass as o, unref as e, createElementVNode as s, createBlock as v, createCommentVNode as h, withCtx as i, resolveDynamicComponent as O, h as V, Fragment as b, createVNode as f, createTextVNode as S, toDisplayString as T, renderList as R } from "vue";
2
2
  import { Button as j, Empty as k } from "@aplus-frontend/antdv";
3
3
  import { ApTitle as C } from "../../ap-title/index.mjs";
4
4
  import "../../../config-provider/index.mjs";
@@ -6,29 +6,33 @@ import { useAgGridModalInject as x } from "../hooks/use-ag-grid-instance.mjs";
6
6
  import D from "../style/index.mjs";
7
7
  import { useLocale as z } from "../../../config-provider/hooks/use-locale.mjs";
8
8
  import { useNamespace as G } from "../../../config-provider/hooks/use-namespace.mjs";
9
- const U = /* @__PURE__ */ M({
9
+ const U = /* @__PURE__ */ L({
10
10
  __name: "index",
11
11
  props: {
12
12
  leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
13
13
  rightContentStyle: { type: [Boolean, null, String, Object, Array] },
14
14
  dividerOffset: {},
15
15
  bordered: { type: Boolean },
16
+ isReverse: { type: Boolean, default: !0 },
16
17
  layoutType: { default: void 0 }
17
18
  },
18
19
  setup(B) {
19
- const { t: f } = z(), d = x(), r = O(() => d?.selectedRows?.value || []), y = B, E = () => {
20
- if (y.dividerOffset != null)
20
+ const { t: y } = z(), d = x(), u = B, r = M(() => {
21
+ const t = d?.selectedRows?.value || [];
22
+ return u.isReverse ? [...t].reverse() : t;
23
+ }), E = () => {
24
+ if (u.dividerOffset != null)
21
25
  return {
22
- "--ag-grid-modal-layout-divider-offset": `${y.dividerOffset}px`
26
+ "--ag-grid-modal-layout-divider-offset": `${u.dividerOffset}px`
23
27
  };
24
28
  }, $ = () => {
25
29
  d?.clearAllSelected();
26
- }, u = (t) => {
30
+ }, c = (t) => {
27
31
  d?.removeSelected(t);
28
- }, { e: A, m: l, b: N } = G("ag-grid-modal"), I = D("ag-grid-modal");
29
- return (t, P) => t.layoutType === "two-column" ? (n(), m("div", {
32
+ }, { e: A, m: l, b: N } = G("ag-grid-modal"), w = D("ag-grid-modal");
33
+ return (t, I) => t.layoutType === "two-column" ? (n(), p("div", {
30
34
  key: 0,
31
- class: o([e(N)(), e(l)("table-layout"), t.bordered ? e(l)("bordered") : "", e(I)]),
35
+ class: o([e(N)(), e(l)("table-layout"), t.bordered ? e(l)("bordered") : "", e(w)]),
32
36
  style: g(E())
33
37
  }, [
34
38
  s("div", {
@@ -39,7 +43,7 @@ const U = /* @__PURE__ */ M({
39
43
  style: { "margin-bottom": "16px" }
40
44
  }, {
41
45
  prefix: i(() => [
42
- (n(), v(V(w(b, [t.leftTitle]))))
46
+ (n(), v(O(V(b, [t.leftTitle]))))
43
47
  ]),
44
48
  _: 1
45
49
  })) : h("", !0),
@@ -53,22 +57,22 @@ const U = /* @__PURE__ */ M({
53
57
  class: o(e(l)("table-layout-right")),
54
58
  style: g(t.rightContentStyle)
55
59
  }, [
56
- p(e(C), null, {
60
+ f(e(C), null, {
57
61
  prefix: i(() => [
58
62
  a(t.$slots, "rightTitle", {
59
63
  count: r.value.length
60
64
  }, () => [
61
- S(T(`${e(f)("ap.apTableModal.selected")} (${r.value.length})`), 1)
65
+ S(T(`${e(y)("ap.apTableModal.selected")} (${r.value.length})`), 1)
62
66
  ])
63
67
  ]),
64
68
  suffix: i(() => [
65
- p(e(j), {
69
+ f(e(j), {
66
70
  type: "link",
67
71
  style: { padding: "0px", height: "22px", "border-width": "0px" },
68
72
  onClick: $
69
73
  }, {
70
74
  default: i(() => [
71
- S(T(e(f)("ap.apTableModal.clear")), 1)
75
+ S(T(e(y)("ap.apTableModal.clear")), 1)
72
76
  ]),
73
77
  _: 1
74
78
  })
@@ -78,16 +82,16 @@ const U = /* @__PURE__ */ M({
78
82
  s("div", {
79
83
  class: o(e(l)("table-layout-right-content"))
80
84
  }, [
81
- (n(!0), m(b, null, L(r.value, (c) => a(t.$slots, "renderSelectedItem", {
82
- key: c,
83
- record: c,
84
- actions: { deleteItem: u, deleteCurrent: () => u(c) }
85
+ (n(!0), p(b, null, R(r.value, (m) => a(t.$slots, "renderSelectedItem", {
86
+ key: m,
87
+ record: m,
88
+ actions: { deleteItem: c, deleteCurrent: () => c(m) }
85
89
  })), 128)),
86
- r.value.length === 0 ? (n(), m("div", {
90
+ r.value.length === 0 ? (n(), p("div", {
87
91
  key: 0,
88
92
  class: o(e(A)("empty"))
89
93
  }, [
90
- p(e(k), {
94
+ f(e(k), {
91
95
  image: e(k).PRESENTED_IMAGE_SIMPLE
92
96
  }, null, 8, ["image"])
93
97
  ], 2)) : h("", !0)
@@ -95,7 +99,7 @@ const U = /* @__PURE__ */ M({
95
99
  s("div", null, [
96
100
  a(t.$slots, "rightBottom", {
97
101
  records: r.value,
98
- actions: { deleteItem: u }
102
+ actions: { deleteItem: c }
99
103
  })
100
104
  ])
101
105
  ], 6)
@@ -35,7 +35,7 @@ const l = (e) => {
35
35
  "&-content": {
36
36
  flexGrow: 1,
37
37
  height: 0,
38
- overflowY: "hidden",
38
+ overflowY: "auto",
39
39
  paddingTop: e.space,
40
40
  "&:hover": {
41
41
  overflowY: "auto"
@@ -18,6 +18,7 @@ export declare function getModalLayoutConfig(props?: ModalLayoutConfig): {
18
18
  readonly rightContentStyle?: StyleValue;
19
19
  readonly dividerOffset?: number;
20
20
  readonly bordered?: boolean;
21
+ readonly isReverse?: boolean;
21
22
  };
22
23
  slots: {
23
24
  renderSelectedItem: ((props: {