@aplus-frontend/ui 7.15.8 → 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 (95) hide show
  1. package/es/index.mjs +285 -281
  2. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +56 -41
  3. package/es/src/ag-grid/context.d.ts +8 -0
  4. package/es/src/ag-grid/context.mjs +18 -7
  5. package/es/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
  6. package/es/src/ag-grid/hooks/use-columns-def.mjs +64 -61
  7. package/es/src/ag-grid/hooks/use-columns.mjs +39 -30
  8. package/es/src/ag-grid/index.vue.mjs +270 -255
  9. package/es/src/ag-grid/interface.d.ts +20 -1
  10. package/es/src/ag-grid/style/custom-header.mjs +22 -13
  11. package/es/src/ap-field/cascader/index.vue.d.ts +60 -0
  12. package/es/src/ap-field/cascader/index.vue.mjs +217 -0
  13. package/es/src/ap-field/cascader/index.vue2.mjs +4 -0
  14. package/es/src/ap-field/cascader/read.vue.d.ts +8 -0
  15. package/es/src/ap-field/cascader/read.vue.mjs +4 -0
  16. package/es/src/ap-field/cascader/read.vue2.mjs +159 -0
  17. package/es/src/ap-field/cascader/use-options.d.ts +25 -0
  18. package/es/src/ap-field/cascader/use-options.mjs +66 -0
  19. package/es/src/ap-field/hooks/use-default-placeholder.d.ts +3 -1
  20. package/es/src/ap-field/hooks/use-default-placeholder.mjs +13 -8
  21. package/es/src/ap-field/index.d.ts +8 -2
  22. package/es/src/ap-field/index.mjs +72 -65
  23. package/es/src/ap-field/interface.d.ts +27 -1
  24. package/es/src/ap-field/tree-select/index.vue.mjs +43 -39
  25. package/es/src/ap-field/tree-select/use-request.mjs +22 -19
  26. package/es/src/ap-form/items/cascader/index.vue.d.ts +435 -0
  27. package/es/src/ap-form/items/cascader/index.vue.mjs +102 -0
  28. package/es/src/ap-form/items/cascader/index.vue2.mjs +4 -0
  29. package/es/src/ap-form/items/index.d.ts +2 -1
  30. package/es/src/ap-form/items/index.mjs +3 -2
  31. package/es/src/ap-form/items/interface.d.ts +6 -1
  32. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +86 -65
  33. package/es/src/ap-table/constants.d.ts +269 -4
  34. package/es/src/ap-table/constants.mjs +29 -26
  35. package/es/src/ap-table/interface.d.ts +5 -1
  36. package/es/src/ap-table/style/setting.mjs +30 -27
  37. package/es/src/ap-table/utils.d.ts +1 -1
  38. package/es/src/business/ag-grid-modal/interface.d.ts +4 -0
  39. package/es/src/business/ag-grid-modal/modal-layout/index.vue.d.ts +1 -0
  40. package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +25 -21
  41. package/es/src/business/ag-grid-modal/style/index.mjs +1 -1
  42. package/es/src/business/ag-grid-modal/utils.d.ts +1 -0
  43. package/es/src/index.mjs +250 -246
  44. package/es/src/locale/lang/en.mjs +1 -0
  45. package/es/src/locale/lang/zh-cn.mjs +1 -0
  46. package/es/src/version.d.ts +1 -1
  47. package/es/src/version.mjs +1 -1
  48. package/lib/index.js +1 -1
  49. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
  50. package/lib/src/ag-grid/context.d.ts +8 -0
  51. package/lib/src/ag-grid/context.js +1 -1
  52. package/lib/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
  53. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  54. package/lib/src/ag-grid/hooks/use-columns.js +1 -1
  55. package/lib/src/ag-grid/index.vue.js +1 -1
  56. package/lib/src/ag-grid/interface.d.ts +20 -1
  57. package/lib/src/ag-grid/style/custom-header.js +1 -1
  58. package/lib/src/ap-field/cascader/index.vue.d.ts +60 -0
  59. package/lib/src/ap-field/cascader/index.vue.js +1 -0
  60. package/lib/src/ap-field/cascader/index.vue2.js +1 -0
  61. package/lib/src/ap-field/cascader/read.vue.d.ts +8 -0
  62. package/lib/src/ap-field/cascader/read.vue.js +1 -0
  63. package/lib/src/ap-field/cascader/read.vue2.js +1 -0
  64. package/lib/src/ap-field/cascader/use-options.d.ts +25 -0
  65. package/lib/src/ap-field/cascader/use-options.js +1 -0
  66. package/lib/src/ap-field/hooks/use-default-placeholder.d.ts +3 -1
  67. package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
  68. package/lib/src/ap-field/index.d.ts +8 -2
  69. package/lib/src/ap-field/index.js +1 -1
  70. package/lib/src/ap-field/interface.d.ts +27 -1
  71. package/lib/src/ap-field/tree-select/index.vue.js +1 -1
  72. package/lib/src/ap-field/tree-select/use-request.js +1 -1
  73. package/lib/src/ap-form/items/cascader/index.vue.d.ts +435 -0
  74. package/lib/src/ap-form/items/cascader/index.vue.js +1 -0
  75. package/lib/src/ap-form/items/cascader/index.vue2.js +1 -0
  76. package/lib/src/ap-form/items/index.d.ts +2 -1
  77. package/lib/src/ap-form/items/index.js +1 -1
  78. package/lib/src/ap-form/items/interface.d.ts +6 -1
  79. package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
  80. package/lib/src/ap-table/constants.d.ts +269 -4
  81. package/lib/src/ap-table/constants.js +1 -1
  82. package/lib/src/ap-table/interface.d.ts +5 -1
  83. package/lib/src/ap-table/style/setting.js +1 -1
  84. package/lib/src/ap-table/utils.d.ts +1 -1
  85. package/lib/src/business/ag-grid-modal/interface.d.ts +4 -0
  86. package/lib/src/business/ag-grid-modal/modal-layout/index.vue.d.ts +1 -0
  87. package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
  88. package/lib/src/business/ag-grid-modal/style/index.js +1 -1
  89. package/lib/src/business/ag-grid-modal/utils.d.ts +1 -0
  90. package/lib/src/index.js +1 -1
  91. package/lib/src/locale/lang/en.js +1 -1
  92. package/lib/src/locale/lang/zh-cn.js +1 -1
  93. package/lib/src/version.d.ts +1 -1
  94. package/lib/src/version.js +1 -1
  95. package/package.json +4 -4
@@ -1,14 +1,15 @@
1
- import { defineComponent as B, createElementBlock as v, openBlock as n, normalizeClass as t, unref as e, createElementVNode as p, createVNode as s, createCommentVNode as c, createBlock as r, resolveDynamicComponent as E, withCtx as u } from "vue";
2
- import { HolderOutlined as I, VerticalAlignTopOutlined as g, VerticalAlignMiddleOutlined as O, DeleteOutlined as D } from "@ant-design/icons-vue";
3
- import { Space as z, Tooltip as f } from "@aplus-frontend/antdv";
1
+ import { defineComponent as E, computed as O, createElementBlock as k, openBlock as s, normalizeClass as a, unref as e, createElementVNode as f, createVNode as r, createCommentVNode as u, createBlock as d, resolveDynamicComponent as A, withCtx as p } from "vue";
2
+ import { HolderOutlined as D, VerticalAlignTopOutlined as b, VerticalAlignMiddleOutlined as j, DeleteOutlined as z } from "@ant-design/icons-vue";
3
+ import { Space as M, Tooltip as m } from "@aplus-frontend/antdv";
4
+ import { useInjectApTable as S } from "../../../context.mjs";
4
5
  import "../../../../config-provider/index.mjs";
5
- import A from "../images/icon_carst_down.svg.mjs";
6
- import M from "../images/icon_fill_right.svg.mjs";
7
- import { useInjectSorterMethods as S } from "../sorter/context.mjs";
8
- import { getLabelRenderNode as U } from "../utils.mjs";
9
- import { useNamespace as j } from "../../../../config-provider/hooks/use-namespace.mjs";
10
- import { useLocale as H } from "../../../../config-provider/hooks/use-locale.mjs";
11
- const q = ["src"], ee = /* @__PURE__ */ B({
6
+ import U from "../images/icon_carst_down.svg.mjs";
7
+ import H from "../images/icon_fill_right.svg.mjs";
8
+ import { useInjectSorterMethods as q } from "../sorter/context.mjs";
9
+ import { getLabelRenderNode as G } from "../utils.mjs";
10
+ import { useNamespace as J } from "../../../../config-provider/hooks/use-namespace.mjs";
11
+ import { useLocale as K } from "../../../../config-provider/hooks/use-locale.mjs";
12
+ const P = ["src"], ne = /* @__PURE__ */ E({
12
13
  __name: "item",
13
14
  props: {
14
15
  value: {},
@@ -17,107 +18,127 @@ const q = ["src"], ee = /* @__PURE__ */ B({
17
18
  open: { type: Boolean }
18
19
  },
19
20
  emits: ["update:open", "update:value"],
20
- setup(k, { emit: b }) {
21
- const o = k, x = b, { b: a, be: m, is: C } = j("ap-column-setting-sortable-item-meta"), { fixedToLeft: T, fixedToRight: w, unFixed: V } = S(), { t: d } = H();
21
+ setup(g, { emit: x }) {
22
+ const o = g, T = x, { b: t, be: v, is: y } = J("ap-column-setting-sortable-item-meta"), { fixedToLeft: C, fixedToRight: w, unFixed: F } = q(), { columnsBackup: V } = S(), { t: c } = K(), n = O(() => {
23
+ const l = V?.value.find(
24
+ (i) => o.value.key === i.key
25
+ );
26
+ return l ? l.lockFixed ?? !1 : !1;
27
+ });
22
28
  function h(l) {
23
29
  const i = o.value;
24
30
  return i.fixed = l, i.children?.forEach((N) => N.fixed = l), i;
25
31
  }
26
- function y() {
32
+ function _() {
33
+ if (n.value)
34
+ return;
27
35
  const l = h("left");
28
- T(l);
36
+ C(l);
29
37
  }
30
- function _() {
38
+ function L() {
39
+ if (n.value)
40
+ return;
31
41
  const l = h("right");
32
42
  w(l);
33
43
  }
34
44
  function R() {
45
+ if (n.value)
46
+ return;
35
47
  const l = h(void 0);
36
- V(l);
48
+ F(l);
37
49
  }
38
- function F() {
39
- x("update:open", !o.open);
50
+ function B() {
51
+ T("update:open", !o.open);
40
52
  }
41
- function L() {
53
+ function I() {
42
54
  const l = o.value;
43
55
  l.show = !1, l.children?.forEach((i) => i.show = !1);
44
56
  }
45
- return (l, i) => (n(), v("div", {
46
- class: t(e(a)())
57
+ return (l, i) => (s(), k("div", {
58
+ class: a(e(t)())
47
59
  }, [
48
- p("span", {
49
- class: t(e(a)("left"))
60
+ f("span", {
61
+ class: a(e(t)("left"))
50
62
  }, [
51
- s(e(I), {
52
- class: t(e(m)("left", "holder")),
63
+ r(e(D), {
64
+ class: a(e(v)("left", "holder")),
53
65
  style: { "font-size": "16px", color: "#abb7cc" }
54
66
  }, null, 8, ["class"]),
55
- p("span", {
56
- class: t(e(m)("left", "indicator")),
57
- onClick: F
67
+ f("span", {
68
+ class: a(e(v)("left", "indicator")),
69
+ onClick: B
58
70
  }, [
59
- l.value.children?.length ? (n(), v("img", {
71
+ l.value.children?.length ? (s(), k("img", {
60
72
  key: 0,
61
- src: o.open ? e(M) : e(A)
62
- }, null, 8, q)) : c("", !0)
73
+ src: o.open ? e(H) : e(U)
74
+ }, null, 8, P)) : u("", !0)
63
75
  ], 2),
64
- p("span", {
65
- class: t([e(m)("left", "label-wrapper"), e(C)("level2", o.level === 2)])
76
+ f("span", {
77
+ class: a([e(v)("left", "label-wrapper"), e(y)("level2", o.level === 2)])
66
78
  }, [
67
- (n(), r(E(e(U)(l.value.label))))
79
+ (s(), d(A(e(G)(l.value.label))))
68
80
  ], 2)
69
81
  ], 2),
70
- p("span", {
71
- class: t(e(a)("right"))
82
+ f("span", {
83
+ class: a(e(t)("right"))
72
84
  }, [
73
- s(e(z), null, {
74
- default: u(() => [
75
- o.level !== 2 && l.value.fixed !== "left" ? (n(), r(e(f), {
85
+ r(e(M), null, {
86
+ default: p(() => [
87
+ o.level !== 2 && l.value.fixed !== "left" ? (s(), d(e(m), {
76
88
  key: 0,
77
- title: e(d)("ap.apTable.setting.fixToLeft")
89
+ title: n.value ? e(c)("ap.apTable.setting.lockFixed") : e(c)("ap.apTable.setting.fixToLeft")
78
90
  }, {
79
- default: u(() => [
80
- s(e(g), {
91
+ default: p(() => [
92
+ r(e(b), {
81
93
  rotate: 270,
82
- class: t(e(a)("action-icon")),
83
- onClick: y
94
+ class: a([
95
+ e(t)("action-icon"),
96
+ { [e(t)("action-icon-disabled")]: n.value }
97
+ ]),
98
+ onClick: _
84
99
  }, null, 8, ["class"])
85
100
  ]),
86
101
  _: 1
87
- }, 8, ["title"])) : c("", !0),
88
- o.level !== 2 && l.value.fixed ? (n(), r(e(f), {
102
+ }, 8, ["title"])) : u("", !0),
103
+ o.level !== 2 && l.value.fixed ? (s(), d(e(m), {
89
104
  key: 1,
90
- title: e(d)("ap.apTable.setting.unFixed")
105
+ title: n.value ? e(c)("ap.apTable.setting.lockFixed") : e(c)("ap.apTable.setting.unFixed")
91
106
  }, {
92
- default: u(() => [
93
- s(e(O), {
94
- class: t(e(a)("action-icon")),
107
+ default: p(() => [
108
+ r(e(j), {
109
+ class: a([
110
+ e(t)("action-icon"),
111
+ { [e(t)("action-icon-disabled")]: n.value }
112
+ ]),
95
113
  onClick: R
96
114
  }, null, 8, ["class"])
97
115
  ]),
98
116
  _: 1
99
- }, 8, ["title"])) : c("", !0),
100
- o.level !== 2 && l.value.fixed !== "right" ? (n(), r(e(f), {
117
+ }, 8, ["title"])) : u("", !0),
118
+ o.level !== 2 && l.value.fixed !== "right" ? (s(), d(e(m), {
101
119
  key: 2,
102
- title: e(d)("ap.apTable.setting.fixToRight")
120
+ title: n.value ? e(c)("ap.apTable.setting.lockFixed") : e(c)("ap.apTable.setting.fixToRight")
103
121
  }, {
104
- default: u(() => [
105
- s(e(g), {
122
+ default: p(() => [
123
+ r(e(b), {
106
124
  rotate: 90,
107
- class: t(e(a)("action-icon")),
108
- onClick: _
125
+ class: a([
126
+ e(t)("action-icon"),
127
+ { [e(t)("action-icon-disabled")]: n.value }
128
+ ]),
129
+ onClick: L
109
130
  }, null, 8, ["class"])
110
131
  ]),
111
132
  _: 1
112
- }, 8, ["title"])) : c("", !0),
113
- l.value.disabled ? c("", !0) : (n(), r(e(f), {
133
+ }, 8, ["title"])) : u("", !0),
134
+ l.value.disabled ? u("", !0) : (s(), d(e(m), {
114
135
  key: 3,
115
- title: e(d)("ap.apTable.setting.delete")
136
+ title: e(c)("ap.apTable.setting.delete")
116
137
  }, {
117
- default: u(() => [
118
- s(e(D), {
119
- class: t(e(a)("action-icon")),
120
- onClick: L
138
+ default: p(() => [
139
+ r(e(z), {
140
+ class: a(e(t)("action-icon")),
141
+ onClick: I
121
142
  }, null, 8, ["class"])
122
143
  ]),
123
144
  _: 1
@@ -130,5 +151,5 @@ const q = ["src"], ee = /* @__PURE__ */ B({
130
151
  }
131
152
  });
132
153
  export {
133
- ee as default
154
+ ne as default
134
155
  };
@@ -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>;