@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.
- package/es/index.mjs +285 -281
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +56 -41
- package/es/src/ag-grid/context.d.ts +8 -0
- package/es/src/ag-grid/context.mjs +18 -7
- package/es/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
- package/es/src/ag-grid/hooks/use-columns-def.mjs +64 -61
- package/es/src/ag-grid/hooks/use-columns.mjs +39 -30
- package/es/src/ag-grid/index.vue.mjs +270 -255
- package/es/src/ag-grid/interface.d.ts +20 -1
- package/es/src/ag-grid/style/custom-header.mjs +22 -13
- package/es/src/ap-field/cascader/index.vue.d.ts +60 -0
- package/es/src/ap-field/cascader/index.vue.mjs +217 -0
- package/es/src/ap-field/cascader/index.vue2.mjs +4 -0
- package/es/src/ap-field/cascader/read.vue.d.ts +8 -0
- package/es/src/ap-field/cascader/read.vue.mjs +4 -0
- package/es/src/ap-field/cascader/read.vue2.mjs +159 -0
- package/es/src/ap-field/cascader/use-options.d.ts +25 -0
- package/es/src/ap-field/cascader/use-options.mjs +66 -0
- package/es/src/ap-field/hooks/use-default-placeholder.d.ts +3 -1
- package/es/src/ap-field/hooks/use-default-placeholder.mjs +13 -8
- package/es/src/ap-field/index.d.ts +8 -2
- package/es/src/ap-field/index.mjs +72 -65
- package/es/src/ap-field/interface.d.ts +27 -1
- package/es/src/ap-field/tree-select/index.vue.mjs +43 -39
- package/es/src/ap-field/tree-select/use-request.mjs +22 -19
- package/es/src/ap-form/items/cascader/index.vue.d.ts +435 -0
- package/es/src/ap-form/items/cascader/index.vue.mjs +102 -0
- package/es/src/ap-form/items/cascader/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +3 -2
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +86 -65
- package/es/src/ap-table/constants.d.ts +269 -4
- package/es/src/ap-table/constants.mjs +29 -26
- package/es/src/ap-table/interface.d.ts +5 -1
- package/es/src/ap-table/style/setting.mjs +30 -27
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/business/ag-grid-modal/interface.d.ts +4 -0
- package/es/src/business/ag-grid-modal/modal-layout/index.vue.d.ts +1 -0
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +25 -21
- package/es/src/business/ag-grid-modal/style/index.mjs +1 -1
- package/es/src/business/ag-grid-modal/utils.d.ts +1 -0
- package/es/src/index.mjs +250 -246
- package/es/src/locale/lang/en.mjs +1 -0
- package/es/src/locale/lang/zh-cn.mjs +1 -0
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/context.d.ts +8 -0
- package/lib/src/ag-grid/context.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +20 -1
- package/lib/src/ag-grid/style/custom-header.js +1 -1
- package/lib/src/ap-field/cascader/index.vue.d.ts +60 -0
- package/lib/src/ap-field/cascader/index.vue.js +1 -0
- package/lib/src/ap-field/cascader/index.vue2.js +1 -0
- package/lib/src/ap-field/cascader/read.vue.d.ts +8 -0
- package/lib/src/ap-field/cascader/read.vue.js +1 -0
- package/lib/src/ap-field/cascader/read.vue2.js +1 -0
- package/lib/src/ap-field/cascader/use-options.d.ts +25 -0
- package/lib/src/ap-field/cascader/use-options.js +1 -0
- package/lib/src/ap-field/hooks/use-default-placeholder.d.ts +3 -1
- package/lib/src/ap-field/hooks/use-default-placeholder.js +1 -1
- package/lib/src/ap-field/index.d.ts +8 -2
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +27 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/use-request.js +1 -1
- package/lib/src/ap-form/items/cascader/index.vue.d.ts +435 -0
- package/lib/src/ap-form/items/cascader/index.vue.js +1 -0
- package/lib/src/ap-form/items/cascader/index.vue2.js +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +269 -4
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/interface.d.ts +5 -1
- package/lib/src/ap-table/style/setting.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/business/ag-grid-modal/interface.d.ts +4 -0
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue.d.ts +1 -0
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/style/index.js +1 -1
- package/lib/src/business/ag-grid-modal/utils.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +4 -4
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { HolderOutlined as
|
|
3
|
-
import { Space as
|
|
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
|
|
6
|
-
import
|
|
7
|
-
import { useInjectSorterMethods as
|
|
8
|
-
import { getLabelRenderNode as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
import { useLocale as
|
|
11
|
-
const
|
|
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(
|
|
21
|
-
const o =
|
|
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
|
|
32
|
+
function _() {
|
|
33
|
+
if (n.value)
|
|
34
|
+
return;
|
|
27
35
|
const l = h("left");
|
|
28
|
-
|
|
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
|
-
|
|
48
|
+
F(l);
|
|
37
49
|
}
|
|
38
|
-
function
|
|
39
|
-
|
|
50
|
+
function B() {
|
|
51
|
+
T("update:open", !o.open);
|
|
40
52
|
}
|
|
41
|
-
function
|
|
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) => (
|
|
46
|
-
class:
|
|
57
|
+
return (l, i) => (s(), k("div", {
|
|
58
|
+
class: a(e(t)())
|
|
47
59
|
}, [
|
|
48
|
-
|
|
49
|
-
class:
|
|
60
|
+
f("span", {
|
|
61
|
+
class: a(e(t)("left"))
|
|
50
62
|
}, [
|
|
51
|
-
|
|
52
|
-
class:
|
|
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
|
-
|
|
56
|
-
class:
|
|
57
|
-
onClick:
|
|
67
|
+
f("span", {
|
|
68
|
+
class: a(e(v)("left", "indicator")),
|
|
69
|
+
onClick: B
|
|
58
70
|
}, [
|
|
59
|
-
l.value.children?.length ? (
|
|
71
|
+
l.value.children?.length ? (s(), k("img", {
|
|
60
72
|
key: 0,
|
|
61
|
-
src: o.open ? e(
|
|
62
|
-
}, null, 8,
|
|
73
|
+
src: o.open ? e(H) : e(U)
|
|
74
|
+
}, null, 8, P)) : u("", !0)
|
|
63
75
|
], 2),
|
|
64
|
-
|
|
65
|
-
class:
|
|
76
|
+
f("span", {
|
|
77
|
+
class: a([e(v)("left", "label-wrapper"), e(y)("level2", o.level === 2)])
|
|
66
78
|
}, [
|
|
67
|
-
(
|
|
79
|
+
(s(), d(A(e(G)(l.value.label))))
|
|
68
80
|
], 2)
|
|
69
81
|
], 2),
|
|
70
|
-
|
|
71
|
-
class:
|
|
82
|
+
f("span", {
|
|
83
|
+
class: a(e(t)("right"))
|
|
72
84
|
}, [
|
|
73
|
-
|
|
74
|
-
default:
|
|
75
|
-
o.level !== 2 && l.value.fixed !== "left" ? (
|
|
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(
|
|
89
|
+
title: n.value ? e(c)("ap.apTable.setting.lockFixed") : e(c)("ap.apTable.setting.fixToLeft")
|
|
78
90
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
91
|
+
default: p(() => [
|
|
92
|
+
r(e(b), {
|
|
81
93
|
rotate: 270,
|
|
82
|
-
class:
|
|
83
|
-
|
|
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"])) :
|
|
88
|
-
o.level !== 2 && l.value.fixed ? (
|
|
102
|
+
}, 8, ["title"])) : u("", !0),
|
|
103
|
+
o.level !== 2 && l.value.fixed ? (s(), d(e(m), {
|
|
89
104
|
key: 1,
|
|
90
|
-
title: e(
|
|
105
|
+
title: n.value ? e(c)("ap.apTable.setting.lockFixed") : e(c)("ap.apTable.setting.unFixed")
|
|
91
106
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
class:
|
|
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"])) :
|
|
100
|
-
o.level !== 2 && l.value.fixed !== "right" ? (
|
|
117
|
+
}, 8, ["title"])) : u("", !0),
|
|
118
|
+
o.level !== 2 && l.value.fixed !== "right" ? (s(), d(e(m), {
|
|
101
119
|
key: 2,
|
|
102
|
-
title: e(
|
|
120
|
+
title: n.value ? e(c)("ap.apTable.setting.lockFixed") : e(c)("ap.apTable.setting.fixToRight")
|
|
103
121
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
|
|
122
|
+
default: p(() => [
|
|
123
|
+
r(e(b), {
|
|
106
124
|
rotate: 90,
|
|
107
|
-
class:
|
|
108
|
-
|
|
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"])) :
|
|
113
|
-
l.value.disabled ?
|
|
133
|
+
}, 8, ["title"])) : u("", !0),
|
|
134
|
+
l.value.disabled ? u("", !0) : (s(), d(e(m), {
|
|
114
135
|
key: 3,
|
|
115
|
-
title: e(
|
|
136
|
+
title: e(c)("ap.apTable.setting.delete")
|
|
116
137
|
}, {
|
|
117
|
-
default:
|
|
118
|
-
|
|
119
|
-
class:
|
|
120
|
-
onClick:
|
|
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
|
-
|
|
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
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
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
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
const
|
|
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:
|
|
23
|
-
radio:
|
|
24
|
-
select:
|
|
25
|
-
switch:
|
|
23
|
+
number: f,
|
|
24
|
+
radio: s,
|
|
25
|
+
select: c,
|
|
26
|
+
switch: i,
|
|
26
27
|
text: t,
|
|
27
|
-
textArea:
|
|
28
|
-
checkbox:
|
|
28
|
+
textArea: a,
|
|
29
|
+
checkbox: o,
|
|
29
30
|
password: t.Password,
|
|
30
|
-
treeSelect: m
|
|
31
|
-
|
|
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:
|
|
42
|
-
index:
|
|
43
|
-
status:
|
|
43
|
+
action: x,
|
|
44
|
+
index: d,
|
|
45
|
+
status: _,
|
|
44
46
|
password: e.Password,
|
|
45
|
-
treeSelect: e.TreeSelect
|
|
46
|
-
|
|
47
|
+
treeSelect: e.TreeSelect,
|
|
48
|
+
cascader: e.Cascader
|
|
49
|
+
}, j = [
|
|
47
50
|
"action",
|
|
48
51
|
"index"
|
|
49
52
|
];
|
|
50
53
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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>;
|