@aplus-frontend/ui 0.5.24 → 0.5.26
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/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.mjs +14 -14
- package/es/src/ap-grid/editable/index.vue.mjs +10 -10
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +34 -59
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +34 -99
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +68 -195
- package/es/src/business/ap-ladder/index.d.ts +1 -235
- package/es/src/business/ap-ladder/interface.d.ts +4 -114
- package/es/src/business/ap-ladder/utils.d.ts +5 -0
- package/es/src/business/ap-ladder/utils.mjs +38 -3
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
- package/es/src/business/ap-product-info/constans.d.ts +23 -0
- package/es/src/business/ap-product-info/index.d.ts +1 -0
- package/es/src/business/ap-product-info/interface.d.ts +11 -0
- package/es/src/editable-table/form-item.vue.mjs +83 -83
- package/es/src/editable-table/index.vue.mjs +84 -79
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -235
- package/lib/src/business/ap-ladder/interface.d.ts +4 -114
- package/lib/src/business/ap-ladder/utils.d.ts +5 -0
- package/lib/src/business/ap-ladder/utils.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
- package/lib/src/business/ap-product-info/constans.d.ts +23 -0
- package/lib/src/business/ap-product-info/index.d.ts +1 -0
- package/lib/src/business/ap-product-info/interface.d.ts +11 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-grid/index.css +4 -0
- package/theme/ap-grid/index.less +4 -0
- package/theme/ap-ladder/ap-ladder.css +14 -5
- package/theme/ap-ladder/ap-ladder.less +16 -7
- package/theme/index.css +18 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
|
|
2
|
-
import {
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip 需要的属性
|
|
5
5
|
*/
|
|
@@ -15,7 +15,7 @@ export interface ApLadderLabelValue {
|
|
|
15
15
|
/**
|
|
16
16
|
* 值
|
|
17
17
|
*/
|
|
18
|
-
value?: string | number |
|
|
18
|
+
value?: string | number | VNode | (() => VNode) | null;
|
|
19
19
|
/**
|
|
20
20
|
* 是否采用原始值
|
|
21
21
|
*/
|
|
@@ -74,64 +74,9 @@ export interface ApLadderLabelValue {
|
|
|
74
74
|
handleValueClick?: (labelValueRecord: ApLadderLabelValue[]) => void;
|
|
75
75
|
/**
|
|
76
76
|
* label 标签的文本对齐方式 仅支持健值对(labelValues)类型
|
|
77
|
-
* @default `
|
|
78
|
-
* @since v0.4.7 新增
|
|
77
|
+
* @default `left`
|
|
79
78
|
*/
|
|
80
79
|
labelAlign?: 'left' | 'right';
|
|
81
|
-
/**
|
|
82
|
-
* 健值对 - label样式
|
|
83
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
84
|
-
* @since v0.4.7 新增
|
|
85
|
-
*/
|
|
86
|
-
labelStyles?: CSSProperties;
|
|
87
|
-
/**
|
|
88
|
-
* 健值对 - value样式
|
|
89
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
90
|
-
* @since v0.4.7 新增
|
|
91
|
-
*/
|
|
92
|
-
valueStyles?: CSSProperties;
|
|
93
|
-
/**
|
|
94
|
-
* 健值对 - link样式
|
|
95
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
96
|
-
* @since v0.4.7 新增
|
|
97
|
-
*/
|
|
98
|
-
linkStyles?: CSSProperties;
|
|
99
|
-
/**
|
|
100
|
-
* 健值对 - unit样式
|
|
101
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
102
|
-
* @since v0.4.7 新增
|
|
103
|
-
*/
|
|
104
|
-
unitStyles?: CSSProperties;
|
|
105
|
-
/**
|
|
106
|
-
* Tooltip - Label style
|
|
107
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
108
|
-
* @since v0.4.7 新增
|
|
109
|
-
*/
|
|
110
|
-
tooltipLabelStyles?: CSSProperties;
|
|
111
|
-
/**
|
|
112
|
-
* Tooltip - Value style
|
|
113
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
114
|
-
* @since v0.4.7 新增
|
|
115
|
-
*/
|
|
116
|
-
tooltipValueStyles?: CSSProperties;
|
|
117
|
-
/**
|
|
118
|
-
* 帮助气泡
|
|
119
|
-
*/
|
|
120
|
-
helpMessage?: string | number | VNodeChild | VNode | null | (() => VNodeChild | VNode);
|
|
121
|
-
/**
|
|
122
|
-
* 帮助气泡 - 图标
|
|
123
|
-
* @description 'question' | 'warning' 自定义
|
|
124
|
-
* @default `question`
|
|
125
|
-
*/
|
|
126
|
-
helpMessageIcon?: 'question' | 'warning' | VNodeChild | VNode | (() => VNodeChild | VNode);
|
|
127
|
-
/**
|
|
128
|
-
* 帮助气泡 - 图标 - 样式
|
|
129
|
-
*/
|
|
130
|
-
helpMessageIconStyles?: CSSProperties;
|
|
131
|
-
/**
|
|
132
|
-
* 帮助气泡 - 扩展tooltip props
|
|
133
|
-
*/
|
|
134
|
-
helpMessageTooltipProps?: TooltipProps;
|
|
135
80
|
}
|
|
136
81
|
/**
|
|
137
82
|
* ApLadder Props 属性类型声明
|
|
@@ -153,22 +98,12 @@ export interface ApLadderProps {
|
|
|
153
98
|
* @description 请使用`majorStyles`代替
|
|
154
99
|
*/
|
|
155
100
|
majorColor?: string;
|
|
156
|
-
/**
|
|
157
|
-
* 自定义重要信息 style
|
|
158
|
-
* @since v0.4.7 新增
|
|
159
|
-
*/
|
|
160
|
-
majorStyles?: CSSProperties;
|
|
161
101
|
/**
|
|
162
102
|
* 自定义次要信息颜色
|
|
163
103
|
* @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
|
|
164
104
|
* @description 请使用`minorStyles`代替
|
|
165
105
|
*/
|
|
166
106
|
minorColor?: string;
|
|
167
|
-
/**
|
|
168
|
-
* 自定义次要信息 style
|
|
169
|
-
* @since v0.4.7 新增
|
|
170
|
-
*/
|
|
171
|
-
minorStyles?: CSSProperties;
|
|
172
107
|
/**
|
|
173
108
|
* 布局方式
|
|
174
109
|
* - `vertical` 垂直布局
|
|
@@ -176,61 +111,16 @@ export interface ApLadderProps {
|
|
|
176
111
|
* @default `vertical`
|
|
177
112
|
*/
|
|
178
113
|
layout?: 'vertical' | 'horizontal';
|
|
179
|
-
/**
|
|
180
|
-
* 是否展示气泡
|
|
181
|
-
* @description 默认展示
|
|
182
|
-
*/
|
|
183
|
-
tooltip?: boolean;
|
|
184
114
|
/**
|
|
185
115
|
* 健值对 - 数组展示
|
|
186
116
|
*/
|
|
187
117
|
labelValues?: Array<ApLadderLabelValue>;
|
|
188
118
|
/**
|
|
189
119
|
* label 标签的文本对齐方式 仅支持健值对(labelValues)类型
|
|
190
|
-
* @default `
|
|
120
|
+
* @default `left`
|
|
191
121
|
* @since v0.4.7 新增
|
|
192
122
|
*/
|
|
193
123
|
labelAlign?: 'left' | 'right';
|
|
194
|
-
/**
|
|
195
|
-
* 健值对 - label样式
|
|
196
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
197
|
-
* @since v0.4.7 新增
|
|
198
|
-
*/
|
|
199
|
-
labelStyles?: CSSProperties;
|
|
200
|
-
/**
|
|
201
|
-
* 健值对 - value样式
|
|
202
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
203
|
-
* @since v0.4.7 新增
|
|
204
|
-
*/
|
|
205
|
-
valueStyles?: CSSProperties;
|
|
206
|
-
/**
|
|
207
|
-
* 健值对 - link样式
|
|
208
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
209
|
-
* @since v0.4.7 新增
|
|
210
|
-
*/
|
|
211
|
-
linkStyles?: CSSProperties;
|
|
212
|
-
/**
|
|
213
|
-
* 健值对 - unit样式
|
|
214
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
215
|
-
* @since v0.4.7 新增
|
|
216
|
-
*/
|
|
217
|
-
unitStyles?: CSSProperties;
|
|
218
|
-
/**
|
|
219
|
-
* 扩展 Tooltip
|
|
220
|
-
*/
|
|
221
|
-
tooltipProps?: TooltipNeedProps;
|
|
222
|
-
/**
|
|
223
|
-
* Tooltip - Label style
|
|
224
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
225
|
-
* @since v0.4.7 新增
|
|
226
|
-
*/
|
|
227
|
-
tooltipLabelStyles?: CSSProperties;
|
|
228
|
-
/**
|
|
229
|
-
* Tooltip - Value style
|
|
230
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
231
|
-
* @since v0.4.7 新增
|
|
232
|
-
*/
|
|
233
|
-
tooltipValueStyles?: CSSProperties;
|
|
234
124
|
}
|
|
235
125
|
/**
|
|
236
126
|
* ApLadder Slots 类型声明
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { ConvertValueOptions } from './interface';
|
|
2
|
+
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
1
3
|
export declare const isNull: (value: any) => boolean;
|
|
2
4
|
export declare const createMemoizeKey: (value: any, options?: any) => string;
|
|
5
|
+
export declare const convertValue: (value: string | number | (() => VNode) | VNode | null | undefined, options?: ConvertValueOptions) => string | number | VNode< RendererNode, RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}> | (() => VNode) | null | undefined;
|
|
@@ -1,5 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
import { locales as n } from "./interface.mjs";
|
|
2
|
+
const o = (r) => r == null || typeof r == "string" && r.trim() === "", u = (r, e = {}) => typeof r == "string" || typeof r == "number" ? String(r) + JSON.stringify(e) : "complex-value", y = (r, e = {
|
|
3
|
+
rawValue: !0,
|
|
4
|
+
precision: 2,
|
|
5
|
+
thousand: !0,
|
|
6
|
+
thousandSeparator: ",",
|
|
7
|
+
currency: "CNY",
|
|
8
|
+
percent: !1
|
|
9
|
+
}) => {
|
|
10
|
+
if (Object.prototype.toString.call(r) === "[object Null]" || Object.prototype.toString.call(r) === "[object Undefined]" || Object.prototype.toString.call(r) === "[object Object]" || Object.prototype.toString.call(r) === "[object Function]" || r === "")
|
|
11
|
+
return "--";
|
|
12
|
+
if (e.rawValue)
|
|
13
|
+
return r;
|
|
14
|
+
if (typeof r == "number") {
|
|
15
|
+
if (e.percent)
|
|
16
|
+
return `${r.toFixed(e.precision)}%`;
|
|
17
|
+
if (e.currency)
|
|
18
|
+
return r.toLocaleString(
|
|
19
|
+
n[e.currency ? e.currency : "CNY"],
|
|
20
|
+
{
|
|
21
|
+
style: "currency",
|
|
22
|
+
currency: e.currency ? e.currency : "CNY"
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
if (e.thousand) {
|
|
26
|
+
const [t, c] = r.toFixed(e.precision ? e.precision : 2).split(".");
|
|
27
|
+
return `${t.replace(
|
|
28
|
+
/(\d)(?=(\d{3})+(?!\d))/g,
|
|
29
|
+
`$1${e.thousandSeparator ? e.thousandSeparator : ","}`
|
|
30
|
+
)}.${c}`;
|
|
31
|
+
}
|
|
32
|
+
return r.toFixed(e.precision ? e.precision : 2);
|
|
33
|
+
}
|
|
34
|
+
return r;
|
|
35
|
+
};
|
|
2
36
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
37
|
+
y as convertValue,
|
|
38
|
+
u as createMemoizeKey,
|
|
39
|
+
o as isNull
|
|
5
40
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ApProductInfoProps } from './interface';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
imgSrc: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
asku: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
asin: {
|
|
15
|
+
type: PropType< ApProductInfoProps["asin"]>;
|
|
16
|
+
};
|
|
17
|
+
msku: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
onTitleClick: {
|
|
21
|
+
type: PropType< ApProductInfoProps["onTitleClick"]>;
|
|
22
|
+
};
|
|
23
|
+
}>, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
24
|
+
imgSrc: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
asku: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
asin: {
|
|
35
|
+
type: PropType< ApProductInfoProps["asin"]>;
|
|
36
|
+
};
|
|
37
|
+
msku: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
onTitleClick: {
|
|
41
|
+
type: PropType< ApProductInfoProps["onTitleClick"]>;
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{}>, {
|
|
44
|
+
imgSrc: string;
|
|
45
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ApProductInfoProps as _ApProductInfoProps } from './interface';
|
|
3
|
+
export declare const ApAttachmentProps: () => {
|
|
4
|
+
imgSrc: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
asku: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
asin: {
|
|
15
|
+
type: PropType<_ApProductInfoProps["asin"]>;
|
|
16
|
+
};
|
|
17
|
+
msku: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
onTitleClick: {
|
|
21
|
+
type: PropType<_ApProductInfoProps["onTitleClick"]>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interface';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Table as
|
|
3
|
-
import { ApForm as
|
|
4
|
-
import { isArray as
|
|
1
|
+
import { defineComponent as O, ref as c, unref as s, useSlots as K, toRef as G, watch as H, nextTick as U, createBlock as W, openBlock as $, mergeProps as h, withCtx as x, createVNode as q, createSlots as J, renderList as Q, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
|
+
import { Table as I } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApForm as g } from "../ap-form/index.mjs";
|
|
4
|
+
import { isArray as M, isUndefined as ee, isNumber as m, cloneDeep as oe, omit as w } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
-
import { useInjectForm as
|
|
7
|
-
import { isDef as
|
|
8
|
-
import
|
|
9
|
-
import { scrollToRowIndex as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
const
|
|
6
|
+
import { useInjectForm as te } from "../ap-form/context.mjs";
|
|
7
|
+
import { isDef as b } from "../utils/index.mjs";
|
|
8
|
+
import ae from "./hooks/use-get-columns.mjs";
|
|
9
|
+
import { scrollToRowIndex as le } from "./utils.mjs";
|
|
10
|
+
import { useNamespace as ne } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useGlobalConfig as ue } from "../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
const we = /* @__PURE__ */ O({
|
|
13
13
|
name: "EditableTableInner",
|
|
14
14
|
__name: "form-item",
|
|
15
15
|
props: {
|
|
@@ -109,111 +109,111 @@ const he = /* @__PURE__ */ K({
|
|
|
109
109
|
default: () => ({})
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
|
-
setup(
|
|
113
|
-
expose:
|
|
112
|
+
setup(y, {
|
|
113
|
+
expose: C
|
|
114
114
|
}) {
|
|
115
|
-
const l =
|
|
116
|
-
function
|
|
117
|
-
return
|
|
115
|
+
const l = y;
|
|
116
|
+
function R(e, t) {
|
|
117
|
+
return M(t) ? t.reduce((n, o) => n == null ? void 0 : n[o], e) : e == null ? void 0 : e[t];
|
|
118
118
|
}
|
|
119
119
|
const {
|
|
120
|
-
internalInstance:
|
|
121
|
-
model:
|
|
122
|
-
} =
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const T = C.useWatch(c);
|
|
127
|
-
g(() => T.value, (e) => {
|
|
128
|
-
var o;
|
|
129
|
-
r.value = e, (o = l.onChange) == null || o.call(l, e);
|
|
120
|
+
internalInstance: a,
|
|
121
|
+
model: B
|
|
122
|
+
} = te(), d = c(R(s(B), l.name) || []), F = K(), T = G(l, "name"), D = g.useWatch(T);
|
|
123
|
+
H(() => D.value, async (e) => {
|
|
124
|
+
var t;
|
|
125
|
+
await U(), d.value = e, (t = l.onChange) == null || t.call(l, e);
|
|
130
126
|
}, {
|
|
131
127
|
deep: !0
|
|
132
128
|
});
|
|
133
129
|
const {
|
|
134
|
-
b:
|
|
135
|
-
} =
|
|
136
|
-
function
|
|
137
|
-
var
|
|
138
|
-
const
|
|
139
|
-
if (
|
|
130
|
+
b: L
|
|
131
|
+
} = ne("editable-table"), p = c(), V = ue("valueTypeMap"), N = ae(l, V);
|
|
132
|
+
function S(e, t) {
|
|
133
|
+
var u;
|
|
134
|
+
const n = ((u = s(d)) == null ? void 0 : u.length) || 0;
|
|
135
|
+
if (b(l.maxLength) && n >= l.maxLength)
|
|
140
136
|
return;
|
|
141
|
-
const
|
|
142
|
-
i(o) ? a.splice(o, 0, {
|
|
137
|
+
const o = {
|
|
143
138
|
...e || {}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
};
|
|
140
|
+
a == null || a.setFieldValue(l.name, o, !0, (f, r) => {
|
|
141
|
+
f[r] || (f[r] = [o]), ee(t) ? f[r].push(o) : f[r].splice(t, 0, o);
|
|
142
|
+
});
|
|
147
143
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
const
|
|
151
|
-
if (
|
|
144
|
+
function k(e, t = "suffix") {
|
|
145
|
+
var f;
|
|
146
|
+
const n = ((f = s(d)) == null ? void 0 : f.length) || 0, o = m(e) ? e : e.length;
|
|
147
|
+
if (b(l.maxLength) && n + o > l.maxLength)
|
|
152
148
|
return;
|
|
153
|
-
const
|
|
154
|
-
|
|
149
|
+
const u = m(e) ? new Array(e).fill(0).map(() => ({})) : oe(e);
|
|
150
|
+
a == null || a.setFieldValue(l.name, u, !0, (r, i) => {
|
|
151
|
+
r[i] || (r[i] = [...u]), t === "suffix" ? r[i].push(...u) : r[i].unshift(...u);
|
|
152
|
+
});
|
|
155
153
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
154
|
+
function v(e) {
|
|
155
|
+
const t = new Set(m(e) ? [e] : e);
|
|
156
|
+
a == null || a.setFieldValue(l.name, void 0, !0, (n, o) => {
|
|
157
|
+
n[o] = n[o].filter((u, f) => !t.has(f));
|
|
158
|
+
});
|
|
160
159
|
}
|
|
161
|
-
function
|
|
162
|
-
return
|
|
160
|
+
function E() {
|
|
161
|
+
return s(d);
|
|
163
162
|
}
|
|
164
|
-
function
|
|
165
|
-
var
|
|
166
|
-
return (
|
|
163
|
+
function _(e) {
|
|
164
|
+
var t;
|
|
165
|
+
return (t = s(d)) == null ? void 0 : t[e];
|
|
167
166
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
function j(e, t, n = !0) {
|
|
168
|
+
a == null || a.setFieldValue(l.name, void 0, !0, (o, u) => {
|
|
169
|
+
!o[u] || !o[u][e] || (o[u][e] = {
|
|
170
|
+
...n ? o[u][e] : {},
|
|
171
|
+
...t
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
174
|
}
|
|
175
175
|
function P(e) {
|
|
176
|
-
|
|
176
|
+
a == null || a.setFieldValue(l.name, e);
|
|
177
177
|
}
|
|
178
|
-
function z(e,
|
|
179
|
-
var
|
|
180
|
-
const
|
|
181
|
-
|
|
178
|
+
function z(e, t) {
|
|
179
|
+
var o;
|
|
180
|
+
const n = e === "end" ? d.value.length - 1 : e;
|
|
181
|
+
le(n, (o = p.value) == null ? void 0 : o.$el, t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function A() {
|
|
184
184
|
var e;
|
|
185
|
-
(e =
|
|
185
|
+
(e = a == null ? void 0 : a.setFieldValue) == null || e.call(a, l.name, []);
|
|
186
186
|
}
|
|
187
|
-
return
|
|
188
|
-
add:
|
|
189
|
-
remove:
|
|
190
|
-
getRowData:
|
|
191
|
-
getRowsData:
|
|
192
|
-
setRowData:
|
|
193
|
-
addMultiple:
|
|
187
|
+
return C({
|
|
188
|
+
add: S,
|
|
189
|
+
remove: v,
|
|
190
|
+
getRowData: _,
|
|
191
|
+
getRowsData: E,
|
|
192
|
+
setRowData: j,
|
|
193
|
+
addMultiple: k,
|
|
194
194
|
scrollTo: z,
|
|
195
195
|
setTableData: P,
|
|
196
|
-
clear:
|
|
197
|
-
}), (e,
|
|
196
|
+
clear: A
|
|
197
|
+
}), (e, t) => ($(), W(s(g).FormItem, h(e.formItem, {
|
|
198
198
|
name: e.name,
|
|
199
199
|
label: e.label
|
|
200
200
|
}), {
|
|
201
|
-
default:
|
|
201
|
+
default: x(() => [q(s(I), h(s(w)(l, ["name", "maxLength", "onChange"]), {
|
|
202
202
|
ref_key: "tableRef",
|
|
203
203
|
ref: p,
|
|
204
|
-
class:
|
|
205
|
-
columns:
|
|
206
|
-
"data-source":
|
|
207
|
-
}),
|
|
204
|
+
class: s(L)(),
|
|
205
|
+
columns: s(N),
|
|
206
|
+
"data-source": d.value
|
|
207
|
+
}), J({
|
|
208
208
|
_: 2
|
|
209
|
-
}, [
|
|
210
|
-
name:
|
|
211
|
-
fn:
|
|
209
|
+
}, [Q(s(w)(F, ["headerCell"]), (n, o) => ({
|
|
210
|
+
name: o,
|
|
211
|
+
fn: x((u) => [X(e.$slots, o, Y(Z(u || {})))])
|
|
212
212
|
}))]), 1040, ["class", "columns", "data-source"])]),
|
|
213
213
|
_: 3
|
|
214
214
|
}, 16, ["name", "label"]));
|
|
215
215
|
}
|
|
216
216
|
});
|
|
217
217
|
export {
|
|
218
|
-
|
|
218
|
+
we as default
|
|
219
219
|
};
|