@aplus-frontend/ui 0.0.32 → 0.0.34
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 +217 -215
- package/es/src/ap-field/select/index.vue.mjs +36 -32
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +30 -31
- package/es/src/ap-form/ap-form.vue2.mjs +11 -11
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -1
- package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
- package/es/src/ap-form/search-form/index.vue.mjs +79 -78
- package/es/src/ap-modal/utils/createModal.mjs +34 -31
- package/es/src/ap-table/ap-table.vue.d.ts +54 -11
- package/es/src/ap-table/ap-table.vue.mjs +171 -148
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/es/src/ap-table/hooks/use-table-paging.mjs +47 -46
- package/es/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/es/src/ap-table/hooks/use-table-row-selection.mjs +62 -0
- package/es/src/ap-table/interface.d.ts +14 -2
- package/es/src/ap-table/style/ap-table.css +2 -0
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
- package/es/src/ap-tag/interface.d.ts +24 -0
- package/es/src/ap-tag/style/ap-tag-group.css +8 -0
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/es/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/es/src/business/ap-select-layout/index.css +117 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -0
- package/es/src/business/ap-select-layout/interface.d.ts +9 -0
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/es/src/business/ap-select-layout/select-layout.vue.mjs +4 -0
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +145 -0
- package/es/src/business/index.d.ts +76 -1
- package/es/src/business/index.mjs +9 -6
- package/es/src/config-provider/config-provider.d.ts +144 -1
- package/es/src/config-provider/config-provider.mjs +35 -29
- package/es/src/config-provider/index.mjs +22 -20
- package/es/src/design-token/index.mjs +6 -2
- package/es/src/editable-table/form-item.vue.d.ts +7 -7
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +7 -7
- package/es/src/editable-table/index.vue.mjs +10 -10
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/index.mjs +188 -186
- package/es/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/es/src/theme/ap-table/ap-table.css +2 -0
- package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +54 -11
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/hooks/use-table-row-selection.d.ts +60 -0
- package/lib/src/ap-table/hooks/use-table-row-selection.js +1 -0
- package/lib/src/ap-table/interface.d.ts +14 -2
- package/lib/src/ap-table/style/ap-table.css +2 -0
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +24 -0
- package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -3
- package/lib/src/ap-upload/hooks/useOss.d.ts +3 -3
- package/lib/src/business/ap-select-layout/index.css +117 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -0
- package/lib/src/business/ap-select-layout/interface.d.ts +9 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +76 -0
- package/lib/src/business/ap-select-layout/select-layout.vue.js +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -0
- package/lib/src/business/index.d.ts +76 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +144 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +7 -7
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +7 -7
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-select-layout/ap-select-layout.css +117 -0
- package/lib/src/theme/ap-table/ap-table.css +2 -0
- package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { EditableColumnType } from './interface';
|
|
|
2
2
|
import { ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, CSSProperties, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef } from 'vue';
|
|
3
3
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
4
4
|
import { VueTypeValidableDef, VueTypeDef } from '../../node_modules/vue-types';
|
|
5
|
-
import { GetPopupContainer,
|
|
5
|
+
import { GetPopupContainer, TableLocale, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
6
6
|
import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, GetRowKey, TableSticky, DataIndex, RowClassName, GetComponentProps, ColumnType, Key, ExpandedRowRender } from 'ant-design-vue/es/vc-table/interface';
|
|
7
7
|
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
8
8
|
import { TablePaginationConfig, TableColumnType } from 'ant-design-vue';
|
|
@@ -39,7 +39,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
39
39
|
footer?: PanelRender<RecordType> | undefined;
|
|
40
40
|
direction?: "ltr" | "rtl" | undefined;
|
|
41
41
|
size?: ButtonSize;
|
|
42
|
-
onChange?: ((
|
|
42
|
+
onChange?: ((value: RecordType[]) => void) | undefined;
|
|
43
43
|
scroll?: ({
|
|
44
44
|
x?: string | number | true | undefined;
|
|
45
45
|
y?: string | number | undefined;
|
|
@@ -149,6 +149,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
149
149
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
150
150
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
151
151
|
}>> | undefined;
|
|
152
|
+
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
152
153
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
153
154
|
showHeader?: boolean | undefined;
|
|
154
155
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -168,7 +169,6 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
168
169
|
childrenColumnName?: string | undefined;
|
|
169
170
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
170
171
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
171
|
-
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
172
172
|
formItem?: Partial<Omit<Partial< ExtractPropTypes<{
|
|
173
173
|
htmlFor: StringConstructor;
|
|
174
174
|
prefixCls: StringConstructor;
|
|
@@ -347,7 +347,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
347
347
|
footer?: PanelRender<RecordType> | undefined;
|
|
348
348
|
direction?: "ltr" | "rtl" | undefined;
|
|
349
349
|
size?: ButtonSize;
|
|
350
|
-
onChange?: ((
|
|
350
|
+
onChange?: ((value: RecordType[]) => void) | undefined;
|
|
351
351
|
scroll?: ({
|
|
352
352
|
x?: string | number | true | undefined;
|
|
353
353
|
y?: string | number | undefined;
|
|
@@ -457,6 +457,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
457
457
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
458
458
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
459
459
|
}>> | undefined;
|
|
460
|
+
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
460
461
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
461
462
|
showHeader?: boolean | undefined;
|
|
462
463
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -476,7 +477,6 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
476
477
|
childrenColumnName?: string | undefined;
|
|
477
478
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
478
479
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
479
|
-
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
480
480
|
formItem?: Partial<Omit<Partial< ExtractPropTypes<{
|
|
481
481
|
htmlFor: StringConstructor;
|
|
482
482
|
prefixCls: StringConstructor;
|
|
@@ -659,7 +659,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
659
659
|
footer?: PanelRender<RecordType> | undefined;
|
|
660
660
|
direction?: "ltr" | "rtl" | undefined;
|
|
661
661
|
size?: ButtonSize;
|
|
662
|
-
onChange?: ((
|
|
662
|
+
onChange?: ((value: RecordType[]) => void) | undefined;
|
|
663
663
|
scroll?: ({
|
|
664
664
|
x?: string | number | true | undefined;
|
|
665
665
|
y?: string | number | undefined;
|
|
@@ -769,6 +769,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
769
769
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
770
770
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
771
771
|
}>> | undefined;
|
|
772
|
+
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
772
773
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
773
774
|
showHeader?: boolean | undefined;
|
|
774
775
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -788,7 +789,6 @@ declare const _default: <RecordType = any>(__VLS_props: {
|
|
|
788
789
|
childrenColumnName?: string | undefined;
|
|
789
790
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
790
791
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
791
|
-
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
792
792
|
formItem?: Partial<Omit<Partial< ExtractPropTypes<{
|
|
793
793
|
htmlFor: StringConstructor;
|
|
794
794
|
prefixCls: StringConstructor;
|
|
@@ -31,7 +31,6 @@ const ge = /* @__PURE__ */ P({
|
|
|
31
31
|
default: !1
|
|
32
32
|
},
|
|
33
33
|
locale: {},
|
|
34
|
-
onChange: {},
|
|
35
34
|
onResizeColumn: {},
|
|
36
35
|
rowSelection: {},
|
|
37
36
|
getPopupContainer: {},
|
|
@@ -102,6 +101,7 @@ const ge = /* @__PURE__ */ P({
|
|
|
102
101
|
value: {},
|
|
103
102
|
defaultValue: {},
|
|
104
103
|
"onUpdate:value": {},
|
|
104
|
+
onChange: {},
|
|
105
105
|
maxLength: {},
|
|
106
106
|
onFieldChange: {},
|
|
107
107
|
label: {},
|
|
@@ -176,7 +176,7 @@ const ge = /* @__PURE__ */ P({
|
|
|
176
176
|
name: e.name,
|
|
177
177
|
label: e.label
|
|
178
178
|
}), {
|
|
179
|
-
default: m(() => [K(o(X), C(o(Y)(a, ["name", "maxLength"]), {
|
|
179
|
+
default: m(() => [K(o(X), C(o(Y)(a, ["name", "maxLength", "onChange"]), {
|
|
180
180
|
class: [o(p)(), o(L) === "admin" ? o(p)("admin") : null],
|
|
181
181
|
columns: o(v),
|
|
182
182
|
"data-source": r.value
|
|
@@ -4,7 +4,7 @@ import { Recordable } from '../type';
|
|
|
4
4
|
import { ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, CSSProperties, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef } from 'vue';
|
|
5
5
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
6
6
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
7
|
-
import { GetPopupContainer,
|
|
7
|
+
import { GetPopupContainer, TableLocale, SortOrder, TableRowSelection } from 'ant-design-vue/es/table/interface';
|
|
8
8
|
import { RenderExpandIcon, PanelRender, TableComponents, TransformCellText, TableLayout, GetRowKey, TableSticky, DataIndex, RowClassName, GetComponentProps, ColumnType, Key, ExpandedRowRender } from 'ant-design-vue/es/vc-table/interface';
|
|
9
9
|
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
10
10
|
import { TablePaginationConfig, TableColumnType } from 'ant-design-vue';
|
|
@@ -38,7 +38,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
38
38
|
footer?: PanelRender<RecordType> | undefined;
|
|
39
39
|
direction?: "ltr" | "rtl" | undefined;
|
|
40
40
|
size?: ButtonSize;
|
|
41
|
-
onChange?: ((
|
|
41
|
+
onChange?: ((value: RecordType[]) => void) | undefined;
|
|
42
42
|
scroll?: ({
|
|
43
43
|
x?: string | number | true | undefined;
|
|
44
44
|
y?: string | number | undefined;
|
|
@@ -147,6 +147,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
147
147
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
148
148
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
149
149
|
}>> | undefined;
|
|
150
|
+
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
150
151
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
151
152
|
showHeader?: boolean | undefined;
|
|
152
153
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -166,7 +167,6 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
166
167
|
childrenColumnName?: string | undefined;
|
|
167
168
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
168
169
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
169
|
-
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
170
170
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, __VLS_ctx?: {
|
|
171
171
|
attrs: any;
|
|
172
172
|
slots: Readonly<{
|
|
@@ -232,7 +232,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
232
232
|
footer?: PanelRender<RecordType> | undefined;
|
|
233
233
|
direction?: "ltr" | "rtl" | undefined;
|
|
234
234
|
size?: ButtonSize;
|
|
235
|
-
onChange?: ((
|
|
235
|
+
onChange?: ((value: RecordType[]) => void) | undefined;
|
|
236
236
|
scroll?: ({
|
|
237
237
|
x?: string | number | true | undefined;
|
|
238
238
|
y?: string | number | undefined;
|
|
@@ -341,6 +341,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
341
341
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
342
342
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
343
343
|
}>> | undefined;
|
|
344
|
+
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
344
345
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
345
346
|
showHeader?: boolean | undefined;
|
|
346
347
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -360,7 +361,6 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
360
361
|
childrenColumnName?: string | undefined;
|
|
361
362
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
362
363
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
363
|
-
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
364
364
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
365
365
|
expose(exposed: ShallowUnwrapRef<{
|
|
366
366
|
resetFields: () => void;
|
|
@@ -430,7 +430,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
430
430
|
footer?: PanelRender<RecordType> | undefined;
|
|
431
431
|
direction?: "ltr" | "rtl" | undefined;
|
|
432
432
|
size?: ButtonSize;
|
|
433
|
-
onChange?: ((
|
|
433
|
+
onChange?: ((value: RecordType[]) => void) | undefined;
|
|
434
434
|
scroll?: ({
|
|
435
435
|
x?: string | number | true | undefined;
|
|
436
436
|
y?: string | number | undefined;
|
|
@@ -539,6 +539,7 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
539
539
|
onOpenChange: PropType<(vis: boolean) => void>;
|
|
540
540
|
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
541
541
|
}>> | undefined;
|
|
542
|
+
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
542
543
|
rowClassName?: string | RowClassName<RecordType> | undefined;
|
|
543
544
|
showHeader?: boolean | undefined;
|
|
544
545
|
customRow?: GetComponentProps<RecordType> | undefined;
|
|
@@ -558,7 +559,6 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: {
|
|
|
558
559
|
childrenColumnName?: string | undefined;
|
|
559
560
|
rowExpandable?: ((record: RecordType) => boolean) | undefined;
|
|
560
561
|
onResizeColumn?: ((w: number, col: TableColumnType<any>) => void) | undefined;
|
|
561
|
-
rowSelection?: TableRowSelection<RecordType> | undefined;
|
|
562
562
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
563
563
|
expose(exposed: ShallowUnwrapRef<{
|
|
564
564
|
resetFields: () => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as T, useSlots as K, ref as M, watch as q, unref as a, openBlock as w, createBlock as G, withCtx as c, createVNode as y, mergeProps as H, createSlots as U, createElementBlock as W, Fragment as $, createElementVNode as v, normalizeClass as J, toDisplayString as Q, createCommentVNode as X, renderList as Y, renderSlot as Z, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
2
|
import { Table as ae } from "ant-design-vue";
|
|
3
3
|
import { ApForm as f } from "../ap-form/index.mjs";
|
|
4
|
-
import { isNumber as p, cloneDeep as
|
|
4
|
+
import { isNumber as p, cloneDeep as h, omit as ne } from "lodash-unified";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
6
|
import "../hooks/index.mjs";
|
|
7
|
-
import { isDef as
|
|
7
|
+
import { isDef as x } from "../utils/index.mjs";
|
|
8
8
|
import { getColumnIsRequired as oe } from "./utils.mjs";
|
|
9
9
|
import le from "./hooks/use-get-columns.mjs";
|
|
10
10
|
import "./style/index.css";
|
|
@@ -32,7 +32,6 @@ const be = /* @__PURE__ */ T({
|
|
|
32
32
|
default: !1
|
|
33
33
|
},
|
|
34
34
|
locale: {},
|
|
35
|
-
onChange: {},
|
|
36
35
|
onResizeColumn: {},
|
|
37
36
|
rowSelection: {},
|
|
38
37
|
getPopupContainer: {},
|
|
@@ -103,6 +102,7 @@ const be = /* @__PURE__ */ T({
|
|
|
103
102
|
value: {},
|
|
104
103
|
defaultValue: {},
|
|
105
104
|
"onUpdate:value": {},
|
|
105
|
+
onChange: {},
|
|
106
106
|
maxLength: {},
|
|
107
107
|
name: {
|
|
108
108
|
default: "ap-editable-table-inner-name"
|
|
@@ -138,10 +138,10 @@ const be = /* @__PURE__ */ T({
|
|
|
138
138
|
function z(e, n) {
|
|
139
139
|
var r, d, i;
|
|
140
140
|
const o = ((r = a(s)) == null ? void 0 : r.length) || 0;
|
|
141
|
-
if (
|
|
141
|
+
if (x(l.maxLength) && o >= l.maxLength)
|
|
142
142
|
return;
|
|
143
143
|
const t = [...a(s) || []];
|
|
144
|
-
|
|
144
|
+
x(n) ? t.splice(n, 0, {
|
|
145
145
|
...e || {}
|
|
146
146
|
}) : t.push({
|
|
147
147
|
...e || {}
|
|
@@ -150,14 +150,14 @@ const be = /* @__PURE__ */ T({
|
|
|
150
150
|
function P(e, n = "suffix") {
|
|
151
151
|
var i, m, C;
|
|
152
152
|
const o = ((i = a(s)) == null ? void 0 : i.length) || 0, t = p(e) ? e : e.length;
|
|
153
|
-
if (
|
|
153
|
+
if (x(l.maxLength) && o + t > l.maxLength)
|
|
154
154
|
return;
|
|
155
|
-
const r = [...a(s) || []], d = p(e) ? new Array(e).fill({}) :
|
|
155
|
+
const r = [...a(s) || []], d = p(e) ? new Array(e).fill({}) : h(e);
|
|
156
156
|
n === "suffix" ? r.push(...d) : r.unshift(...d), (C = (m = u.value) == null ? void 0 : m.setFieldValue) == null || C.call(m, l.name, r);
|
|
157
157
|
}
|
|
158
158
|
function j(e) {
|
|
159
159
|
var t, r;
|
|
160
|
-
let n =
|
|
160
|
+
let n = h(a(s) || []);
|
|
161
161
|
const o = p(e) ? [e] : e;
|
|
162
162
|
n = n.filter((d, i) => !o.includes(i)), (r = (t = u.value) == null ? void 0 : t.setFieldValue) == null || r.call(t, l.name, n);
|
|
163
163
|
}
|
|
@@ -170,7 +170,7 @@ const be = /* @__PURE__ */ T({
|
|
|
170
170
|
}
|
|
171
171
|
function O(e, n) {
|
|
172
172
|
var t, r;
|
|
173
|
-
const o =
|
|
173
|
+
const o = h(a(s));
|
|
174
174
|
o[e] && (o[e] = {
|
|
175
175
|
...o[e],
|
|
176
176
|
...n
|
|
@@ -196,7 +196,7 @@ const be = /* @__PURE__ */ T({
|
|
|
196
196
|
name: e.name,
|
|
197
197
|
"no-style": ""
|
|
198
198
|
}, {
|
|
199
|
-
default: c(() => [y(a(ae), H(a(ne)(l, ["name", "value", "onUpdate:value", "maxLength"]), {
|
|
199
|
+
default: c(() => [y(a(ae), H(a(ne)(l, ["name", "value", "onUpdate:value", "maxLength", "onChange"]), {
|
|
200
200
|
class: [a(g)(), a(D) === "admin" ? a(g)("admin") : null],
|
|
201
201
|
columns: a(N),
|
|
202
202
|
"data-source": a(s)
|
|
@@ -64,7 +64,7 @@ export type EditableColumnType<RecordType = any, ValueType extends ApTableValueT
|
|
|
64
64
|
originalNode?: VNode;
|
|
65
65
|
}) => any;
|
|
66
66
|
} : never;
|
|
67
|
-
export type EditableTableProps<RecordType = any> = Omit<TableProps<RecordType>, 'columns' | 'dataSource'> & {
|
|
67
|
+
export type EditableTableProps<RecordType = any> = Omit<TableProps<RecordType>, 'columns' | 'dataSource' | 'onChange'> & {
|
|
68
68
|
/**
|
|
69
69
|
* 列配置
|
|
70
70
|
*/
|