@aplus-frontend/ui 0.0.19 → 0.0.21
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/ap-form-item.vue.d.ts +2 -8
- package/es/src/ap-form/constant.d.ts +4 -0
- package/es/src/ap-form/constant.mjs +4 -3
- package/es/src/ap-form/hooks/use-watch.d.ts +2 -2
- package/es/src/ap-form/interface.d.ts +10 -0
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
- package/es/src/ap-form/items/checkbox/index.vue.mjs +20 -13
- package/es/src/ap-form/items/date/index.vue.d.ts +26 -14
- package/es/src/ap-form/items/date/index.vue.mjs +26 -18
- package/es/src/ap-form/items/date-range/index.vue.d.ts +24 -13
- package/es/src/ap-form/items/date-range/index.vue.mjs +27 -19
- package/es/src/ap-form/items/number/index.vue.d.ts +16 -9
- package/es/src/ap-form/items/number/index.vue.mjs +30 -22
- package/es/src/ap-form/items/radio/index.vue.d.ts +9 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +21 -14
- package/es/src/ap-form/items/select/index.vue.d.ts +28 -15
- package/es/src/ap-form/items/select/index.vue.mjs +30 -22
- package/es/src/ap-form/items/switch/index.vue.d.ts +10 -6
- package/es/src/ap-form/items/switch/index.vue.mjs +25 -17
- package/es/src/ap-form/items/text/index.vue.d.ts +14 -8
- package/es/src/ap-form/items/text/index.vue2.mjs +32 -24
- package/es/src/ap-form/items/text/password.vue.d.ts +16 -9
- package/es/src/ap-form/items/text/password.vue.mjs +29 -21
- package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +24 -17
- package/es/src/ap-list/interface.d.ts +67 -0
- package/es/src/ap-list/style/index.css +6 -0
- package/es/src/ap-table/ap-table.vue.mjs +131 -123
- package/es/src/ap-table/constants.d.ts +2692 -1453
- package/es/src/ap-table/interface.d.ts +6 -4
- package/es/src/ap-table/style/ap-table.css +19 -0
- package/es/src/ap-table/utils.d.ts +826 -670
- package/es/src/editable-table/hooks/use-get-columns.d.ts +3 -25
- package/es/src/editable-table/hooks/use-get-columns.mjs +47 -45
- package/es/src/editable-table/interface.d.ts +6 -1
- package/es/src/editable-table/style/index.css +3 -0
- package/es/src/theme/ap-list/index.css +6 -0
- package/es/src/theme/ap-table/ap-table.css +19 -0
- package/es/src/theme/editable-table/index.css +3 -0
- package/lib/src/ap-form/ap-form-item.vue.d.ts +2 -8
- package/lib/src/ap-form/constant.d.ts +4 -0
- package/lib/src/ap-form/constant.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.d.ts +2 -2
- package/lib/src/ap-form/interface.d.ts +10 -0
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +9 -2
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +26 -14
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +24 -13
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +16 -9
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +9 -2
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +28 -15
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +10 -6
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +14 -8
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +16 -9
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -2
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +67 -0
- package/lib/src/ap-list/style/index.css +6 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2692 -1453
- package/lib/src/ap-table/interface.d.ts +6 -4
- package/lib/src/ap-table/style/ap-table.css +19 -0
- package/lib/src/ap-table/utils.d.ts +826 -670
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +3 -25
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/interface.d.ts +6 -1
- package/lib/src/editable-table/style/index.css +3 -0
- package/lib/src/theme/ap-list/index.css +6 -0
- package/lib/src/theme/ap-table/ap-table.css +19 -0
- package/lib/src/theme/editable-table/index.css +3 -0
- package/package.json +3 -3
|
@@ -1,28 +1,6 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
1
2
|
import { EditableTableFormItemProps, EditableTableProps } from '../interface';
|
|
2
|
-
import {
|
|
3
|
-
import { TableColumnType } from 'ant-design-vue';
|
|
4
|
-
import { ValueEnum } from '../..';
|
|
3
|
+
import { ColumnType } from 'ant-design-vue/es/table';
|
|
5
4
|
|
|
6
|
-
declare const useGetColumns: (props: EditableTableProps | EditableTableFormItemProps) => ComputedRef<
|
|
7
|
-
children?: (Omit< TableColumnType<any>, "children" | "customRender"> & any) | undefined;
|
|
8
|
-
tooltip?: string | undefined;
|
|
9
|
-
copyable?: boolean | undefined;
|
|
10
|
-
editable?: boolean | ((text: any, record: any, index: number) => boolean) | undefined;
|
|
11
|
-
valueEnum?: ValueEnum | undefined;
|
|
12
|
-
customRenderFormItem?: ((config: Omit< TableColumnType<any>, "children" | "customRender"> & any) => any) | undefined;
|
|
13
|
-
valueType?: any;
|
|
14
|
-
fieldProps?: any;
|
|
15
|
-
customRender?: ((opt: {
|
|
16
|
-
value: any;
|
|
17
|
-
text: any;
|
|
18
|
-
record: any;
|
|
19
|
-
index: number;
|
|
20
|
-
renderIndex: number;
|
|
21
|
-
column: TableColumnType<any>;
|
|
22
|
-
editable?: boolean | undefined;
|
|
23
|
-
originalNode?: VNode<RendererNode, RendererElement, {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}> | undefined;
|
|
26
|
-
}) => any) | undefined;
|
|
27
|
-
})[]>;
|
|
5
|
+
declare const useGetColumns: (props: EditableTableProps | EditableTableFormItemProps) => ComputedRef<ColumnType<any>[]>;
|
|
28
6
|
export default useGetColumns;
|
|
@@ -1,78 +1,80 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { isFunction as C } from "lodash-unified";
|
|
3
|
-
import { getEditableComponent as
|
|
4
|
-
import { updateFormProps as
|
|
1
|
+
import { computed as y, createVNode as i, mergeProps as x } from "vue";
|
|
2
|
+
import { omit as h, isFunction as C, isBoolean as F } from "lodash-unified";
|
|
3
|
+
import { getEditableComponent as R } from "../utils.mjs";
|
|
4
|
+
import { updateFormProps as T, getFieldProps as I, getPlaceholder as N, getTableRenderProps as L } from "../../ap-table/utils.mjs";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { apTableRenderItemMap as
|
|
7
|
-
import { Typography as
|
|
8
|
-
import { useLocale as
|
|
9
|
-
const
|
|
6
|
+
import { apTableRenderItemMap as M, noRenderAsFormItemValueList as V } from "../../ap-table/constants.mjs";
|
|
7
|
+
import { Typography as w } from "ant-design-vue";
|
|
8
|
+
import { useLocale as A } from "../../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
const q = (t) => {
|
|
10
10
|
const {
|
|
11
|
-
t:
|
|
12
|
-
} =
|
|
13
|
-
let o =
|
|
11
|
+
t: u
|
|
12
|
+
} = A(), f = y(() => {
|
|
13
|
+
let o = t.columns;
|
|
14
14
|
return o ? (o = o.map((e) => ({
|
|
15
|
-
...e,
|
|
15
|
+
...h(e, ["ellipsis"]),
|
|
16
16
|
customRender({
|
|
17
|
-
value:
|
|
18
|
-
...
|
|
17
|
+
value: n,
|
|
18
|
+
...a
|
|
19
19
|
}) {
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
24
|
-
value:
|
|
25
|
-
...
|
|
26
|
-
})),
|
|
27
|
-
|
|
20
|
+
const c = C(e.editable) ? e.editable(a.text, a.record, a.index) : !!e.editable;
|
|
21
|
+
let r;
|
|
22
|
+
if (c) {
|
|
23
|
+
const d = R(e.valueType), l = T(e, I(e.fieldProps, {
|
|
24
|
+
value: n,
|
|
25
|
+
...a
|
|
26
|
+
})), s = {};
|
|
27
|
+
t.onFieldChange && (s[`onUpdate:${l.valuePropName || "value"}`] = (g) => {
|
|
28
28
|
var p;
|
|
29
|
-
return (p =
|
|
29
|
+
return (p = t.onFieldChange) == null ? void 0 : p.call(t, a.index, e.dataIndex, g);
|
|
30
30
|
});
|
|
31
31
|
const b = {
|
|
32
|
-
name: [
|
|
33
|
-
...
|
|
32
|
+
name: [t.name, a.index, e.dataIndex],
|
|
33
|
+
...l || {},
|
|
34
34
|
// 格式化placeholder
|
|
35
|
-
placeholder:
|
|
35
|
+
placeholder: N(u, e.valueType, l == null ? void 0 : l.placeholder),
|
|
36
36
|
field: {
|
|
37
37
|
style: "width: 100%",
|
|
38
|
-
...(
|
|
39
|
-
...
|
|
38
|
+
...(l == null ? void 0 : l.field) || {},
|
|
39
|
+
...s
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
r = i(d, b, null);
|
|
43
43
|
} else {
|
|
44
|
-
const
|
|
45
|
-
value:
|
|
46
|
-
...
|
|
44
|
+
const d = M[e.valueType], l = L(e, {
|
|
45
|
+
value: n,
|
|
46
|
+
...a
|
|
47
47
|
});
|
|
48
|
-
|
|
48
|
+
r = m(e, n, i(d, x(l, {
|
|
49
49
|
mode: "read"
|
|
50
50
|
}), null));
|
|
51
51
|
}
|
|
52
52
|
return e.customRender ? e.customRender({
|
|
53
|
-
value:
|
|
54
|
-
...
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}) : d;
|
|
53
|
+
value: n,
|
|
54
|
+
...a,
|
|
55
|
+
editable: c,
|
|
56
|
+
originalNode: r
|
|
57
|
+
}) : r;
|
|
59
58
|
}
|
|
60
59
|
})), o) : [];
|
|
61
60
|
});
|
|
62
|
-
function m(o, e,
|
|
63
|
-
return
|
|
61
|
+
function m(o, e, n) {
|
|
62
|
+
return V.includes(o.valueType) ? n : o.copyable || o.ellipsis ? i(w.Paragraph, {
|
|
64
63
|
copyable: o.copyable ? {
|
|
65
64
|
text: e,
|
|
66
65
|
tooltip: !1
|
|
67
66
|
} : !1,
|
|
68
|
-
ellipsis: o.ellipsis ? {
|
|
67
|
+
ellipsis: o.ellipsis ? F(o.ellipsis) ? {
|
|
68
|
+
tooltip: e
|
|
69
|
+
} : {
|
|
70
|
+
...o.ellipsis,
|
|
69
71
|
tooltip: e
|
|
70
72
|
} : !1,
|
|
71
|
-
content:
|
|
72
|
-
}, null) :
|
|
73
|
+
content: o.ellipsis ? e : n
|
|
74
|
+
}, null) : n;
|
|
73
75
|
}
|
|
74
76
|
return f;
|
|
75
77
|
};
|
|
76
78
|
export {
|
|
77
|
-
|
|
79
|
+
q as default
|
|
78
80
|
};
|
|
@@ -4,8 +4,9 @@ import { NamePath, ValidateOptions } from 'ant-design-vue/es/form/interface';
|
|
|
4
4
|
import { DataIndex } from 'ant-design-vue/es/vc-table/interface';
|
|
5
5
|
import { FormItemProps } from 'ant-design-vue';
|
|
6
6
|
import { VNode } from 'vue';
|
|
7
|
+
import { EllipsisConfig } from 'ant-design-vue/es/typography/Base';
|
|
7
8
|
|
|
8
|
-
export type EditableColumnType<RecordType = any, ValueType extends ApTableValueTypes = ApTableValueTypes> = ValueType extends ApTableValueTypes ? Omit<ColumnType<RecordType>, 'children' | 'customRender'> & {
|
|
9
|
+
export type EditableColumnType<RecordType = any, ValueType extends ApTableValueTypes = ApTableValueTypes> = ValueType extends ApTableValueTypes ? Omit<ColumnType<RecordType>, 'children' | 'customRender' | 'ellipsis'> & {
|
|
9
10
|
children?: EditableColumnType<RecordType, ValueType>;
|
|
10
11
|
/**
|
|
11
12
|
* 在title之后展示一个icon并触发tooltip
|
|
@@ -15,6 +16,10 @@ export type EditableColumnType<RecordType = any, ValueType extends ApTableValueT
|
|
|
15
16
|
* 是否可以复制(不可编辑模式下可用)
|
|
16
17
|
*/
|
|
17
18
|
copyable?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 是否省略自动溢出,自动溢出省略,为对象时可设置省略行数、是否可展开、添加后缀等
|
|
21
|
+
*/
|
|
22
|
+
ellipsis?: boolean | EllipsisConfig;
|
|
18
23
|
/**
|
|
19
24
|
* 是否可编辑
|
|
20
25
|
*/
|
|
@@ -85,3 +85,22 @@
|
|
|
85
85
|
.aplus-ap-table .ant-table-small .ant-table-placeholder .ant-table-cell {
|
|
86
86
|
padding: 0 !important;
|
|
87
87
|
}
|
|
88
|
+
.aplus-ap-table .ant-table-column-sorters {
|
|
89
|
+
justify-content: unset;
|
|
90
|
+
}
|
|
91
|
+
.aplus-ap-table .ant-table-column-sorters .ant-table-column-title {
|
|
92
|
+
flex: unset;
|
|
93
|
+
}
|
|
94
|
+
.aplus-ap-table .ant-table-filter-column {
|
|
95
|
+
justify-content: unset;
|
|
96
|
+
}
|
|
97
|
+
.aplus-ap-table .ant-table-filter-column .ant-table-column-title {
|
|
98
|
+
flex: unset;
|
|
99
|
+
}
|
|
100
|
+
.aplus-ap-table .ant-table-filter-column .ant-table-filter-trigger {
|
|
101
|
+
margin-left: 2px;
|
|
102
|
+
padding-left: 2px;
|
|
103
|
+
}
|
|
104
|
+
.aplus-ap-table .ant-table-cell .ant-typography {
|
|
105
|
+
margin-bottom: 0;
|
|
106
|
+
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import { ApFormItemProps } from './interface';
|
|
2
|
-
import {
|
|
1
|
+
import { ApFormItemProps, ApFormItemSlots } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
type ApFormItemSlots = {
|
|
5
|
-
help: any;
|
|
6
|
-
label: any;
|
|
7
|
-
extra: any;
|
|
8
|
-
default(): VNode[];
|
|
9
|
-
};
|
|
10
4
|
declare function onFieldBlur(): void;
|
|
11
5
|
declare function onFieldChange(): void;
|
|
12
6
|
declare function clearValidate(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["flex","lg","md","offset","order","pull","push","sm","span","xl","xs","xxl"];exports.apFormItemColPropKeys=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["flex","lg","md","offset","order","pull","push","sm","span","xl","xs","xxl"],o=["extra","help","label"];exports.apFormItemColPropKeys=e;exports.apFormItemSlotNames=o;
|
|
@@ -2,6 +2,6 @@ import { NamePath } from 'ant-design-vue/es/form/interface';
|
|
|
2
2
|
import { ApFormExpose } from '../interface';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
|
|
5
|
-
type ApFormIns = ApFormExpose
|
|
6
|
-
declare const useWatch: <ValueType = any>(name: NamePath, form?: Ref<ApFormIns | undefined>) => Ref<ValueType | undefined>;
|
|
5
|
+
type ApFormIns<T> = ApFormExpose<T>;
|
|
6
|
+
declare const useWatch: <ValueType = any>(name: NamePath, form?: Ref<ApFormIns<ValueType> | undefined> | undefined) => Ref<ValueType | undefined>;
|
|
7
7
|
export default useWatch;
|
|
@@ -2,6 +2,7 @@ import { ButtonProps, ColProps, FormItemProps, FormProps, ModalProps, RowProps }
|
|
|
2
2
|
import { FormItemExpose } from 'ant-design-vue/es/form/FormItem';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions } from 'ant-design-vue/es/form/interface';
|
|
4
4
|
import { Recordable } from '../type';
|
|
5
|
+
import { VNode } from 'vue';
|
|
5
6
|
|
|
6
7
|
export type ApFormColProps = Omit<ColProps, 'prefixCls'>;
|
|
7
8
|
export type ApFormItemProps = FormItemProps & Partial<ApFormColProps> & {
|
|
@@ -78,3 +79,12 @@ export type ApFormModalFormProps = Omit<ApFormProps, 'onFinish'> & {
|
|
|
78
79
|
showCancel?: boolean;
|
|
79
80
|
};
|
|
80
81
|
export type ApFormModalFormExpose = ApFormExpose;
|
|
82
|
+
/**
|
|
83
|
+
* ApFormItem支持的插槽
|
|
84
|
+
*/
|
|
85
|
+
export type ApFormItemSlots = {
|
|
86
|
+
help: any;
|
|
87
|
+
label: any;
|
|
88
|
+
extra: any;
|
|
89
|
+
default(): VNode[];
|
|
90
|
+
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ApFormItemCheckboxProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldCheckboxProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
type ApFormItemCheckboxSlots = Omit<ApFormItemSlots, 'default'>;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
|
|
6
8
|
hasFeedback: boolean;
|
|
7
9
|
colon: undefined;
|
|
8
10
|
autoLink: boolean;
|
|
@@ -26,7 +28,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
26
28
|
hasFeedback: boolean;
|
|
27
29
|
autoLink: boolean;
|
|
28
30
|
validateFirst: boolean;
|
|
29
|
-
}, {}>;
|
|
31
|
+
}, {}>, Readonly<ApFormItemCheckboxSlots> & ApFormItemCheckboxSlots>;
|
|
30
32
|
export default _default;
|
|
31
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
34
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -45,3 +47,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
45
47
|
type __VLS_Prettify<T> = {
|
|
46
48
|
[K in keyof T]: T[K];
|
|
47
49
|
} & {};
|
|
50
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
51
|
+
new (): {
|
|
52
|
+
$slots: S;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const a=require("lodash-unified"),d=require("../../ap-form-item.vue.js"),i=require("../../../ap-field/checkbox/index.vue.js"),n=e.defineComponent({name:"ApFormItemCheckbox",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},valuePropName:{},field:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(o){const r=o,s=e.useSlots();return(t,p)=>(e.openBlock(),e.createBlock(d.default,e.normalizeProps(e.guardReactiveProps(e.unref(a.omit)(r,["field","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(i.default),e.mergeProps({disabled:t.disabled},t.field),null,16,["disabled"])]),_:2},[e.renderList(e.unref(a.omit)(s,"default"),(f,l)=>({name:l,fn:e.withCtx(u=>[e.renderSlot(t.$slots,l,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040))}});exports.default=n;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
1
|
import { ApFormItemDateProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldDateProps } from '../../..';
|
|
4
5
|
|
|
5
|
-
type ApFormItemDateSlots = {
|
|
6
|
-
dateRender: any;
|
|
7
|
-
suffixIcon?: any;
|
|
8
|
-
prevIcon?: any;
|
|
9
|
-
nextIcon?: any;
|
|
10
|
-
superPrevIcon?: any;
|
|
11
|
-
superNextIcon?: any;
|
|
12
|
-
renderExtraFooter?: any;
|
|
13
|
-
monthCellRender?: any;
|
|
14
|
-
monthCellContentRender?: any;
|
|
15
|
-
clearIcon?: any;
|
|
16
|
-
default?: any;
|
|
17
|
-
};
|
|
18
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemDateProps>, {
|
|
19
7
|
hasFeedback: boolean;
|
|
20
8
|
colon: undefined;
|
|
@@ -39,7 +27,31 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
39
27
|
hasFeedback: boolean;
|
|
40
28
|
autoLink: boolean;
|
|
41
29
|
validateFirst: boolean;
|
|
42
|
-
}, {}>, Readonly<
|
|
30
|
+
}, {}>, Readonly<{
|
|
31
|
+
dateRender: any;
|
|
32
|
+
suffixIcon?: any;
|
|
33
|
+
prevIcon?: any;
|
|
34
|
+
nextIcon?: any;
|
|
35
|
+
superPrevIcon?: any;
|
|
36
|
+
superNextIcon?: any;
|
|
37
|
+
renderExtraFooter?: any;
|
|
38
|
+
monthCellRender?: any;
|
|
39
|
+
monthCellContentRender?: any;
|
|
40
|
+
clearIcon?: any;
|
|
41
|
+
default?: any;
|
|
42
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
43
|
+
dateRender: any;
|
|
44
|
+
suffixIcon?: any;
|
|
45
|
+
prevIcon?: any;
|
|
46
|
+
nextIcon?: any;
|
|
47
|
+
superPrevIcon?: any;
|
|
48
|
+
superNextIcon?: any;
|
|
49
|
+
renderExtraFooter?: any;
|
|
50
|
+
monthCellRender?: any;
|
|
51
|
+
monthCellContentRender?: any;
|
|
52
|
+
clearIcon?: any;
|
|
53
|
+
default?: any;
|
|
54
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
43
55
|
export default _default;
|
|
44
56
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
45
57
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/date/index.vue2.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/date/index.vue2.js");const l=require("lodash-unified"),s=require("../../constant.js"),p=require("../../ap-form-item.vue.js"),f=require("../../../ap-field/date/index.vue.js"),c=e.defineComponent({name:"ApFormItemDate",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},field:{default:()=>({})},placeholder:{},disabled:{type:Boolean,default:!1}},setup(n){const r=n,d=e.useSlots(),i=e.computed(()=>{var t;return{placeholder:r.placeholder,disabled:r.disabled,...r.field,bordered:r.bordered?!1:l.isUndefined((t=r.field)==null?void 0:t.bordered)?!0:r.field.bordered}});return(t,m)=>(e.openBlock(),e.createBlock(p.default,e.normalizeProps(e.guardReactiveProps(e.unref(l.omit)(r,["field","placeholder","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(f.default,e.normalizeProps(e.guardReactiveProps(i.value)),e.createSlots({_:2},[e.renderList(e.unref(l.omit)(d,e.unref(s.apFormItemSlotNames)),(u,o)=>({name:o,fn:e.withCtx(a=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(l.pick)(d,e.unref(s.apFormItemSlotNames)),(u,o)=>({name:o,fn:e.withCtx(a=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(a||{})))])}))]),1040))}});exports.default=c;
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { ApFormItemDateRangeProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldDateRangeProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
type ApFormItemDateRangeSlots = {
|
|
6
|
-
suffixIcon?: any;
|
|
7
|
-
prevIcon?: any;
|
|
8
|
-
nextIcon?: any;
|
|
9
|
-
superPrevIcon?: any;
|
|
10
|
-
superNextIcon?: any;
|
|
11
|
-
dateRender?: any;
|
|
12
|
-
renderExtraFooter?: any;
|
|
13
|
-
default?: any;
|
|
14
|
-
separator?: any;
|
|
15
|
-
clearIcon?: any;
|
|
16
|
-
};
|
|
17
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemDateRangeProps>, {
|
|
18
7
|
hasFeedback: boolean;
|
|
19
8
|
colon: undefined;
|
|
@@ -38,7 +27,29 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
38
27
|
hasFeedback: boolean;
|
|
39
28
|
autoLink: boolean;
|
|
40
29
|
validateFirst: boolean;
|
|
41
|
-
}, {}>, Readonly<
|
|
30
|
+
}, {}>, Readonly<{
|
|
31
|
+
suffixIcon?: any;
|
|
32
|
+
prevIcon?: any;
|
|
33
|
+
nextIcon?: any;
|
|
34
|
+
superPrevIcon?: any;
|
|
35
|
+
superNextIcon?: any;
|
|
36
|
+
dateRender?: any;
|
|
37
|
+
renderExtraFooter?: any;
|
|
38
|
+
default?: any;
|
|
39
|
+
separator?: any;
|
|
40
|
+
clearIcon?: any;
|
|
41
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
42
|
+
suffixIcon?: any;
|
|
43
|
+
prevIcon?: any;
|
|
44
|
+
nextIcon?: any;
|
|
45
|
+
superPrevIcon?: any;
|
|
46
|
+
superNextIcon?: any;
|
|
47
|
+
dateRender?: any;
|
|
48
|
+
renderExtraFooter?: any;
|
|
49
|
+
default?: any;
|
|
50
|
+
separator?: any;
|
|
51
|
+
clearIcon?: any;
|
|
52
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
42
53
|
export default _default;
|
|
43
54
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
55
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const l=require("lodash-unified"),s=require("../../constant.js"),f=require("../../ap-form-item.vue.js"),c=require("../../../ap-field/date-range/index.vue.js"),m=e.defineComponent({name:"ApFormItemDateRange",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},field:{default:()=>({})},placeholder:{},disabled:{type:Boolean,default:!1}},setup(u){const r=u,n=e.useSlots(),i=e.computed(()=>{var t,a;return{placeholder:r.placeholder,disabled:r.disabled,...r.field,bordered:r.bordered?!1:l.isUndefined((t=r.field)==null?void 0:t.bordered)?!0:(a=r.field)==null?void 0:a.bordered}});return(t,a)=>(e.openBlock(),e.createBlock(f.default,e.normalizeProps(e.guardReactiveProps(e.unref(l.omit)(r,["field","placeholder","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(c.default),e.normalizeProps(e.guardReactiveProps(i.value)),e.createSlots({_:2},[e.renderList(e.unref(l.omit)(n,e.unref(s.apFormItemSlotNames)),(p,o)=>({name:o,fn:e.withCtx(d=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(d||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(l.pick)(n,e.unref(s.apFormItemSlotNames)),(p,o)=>({name:o,fn:e.withCtx(d=>[e.renderSlot(t.$slots,o,e.normalizeProps(e.guardReactiveProps(d||{})))])}))]),1040))}});exports.default=m;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { ApFormItemNumberProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldNumberProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
type ApFormItemNumberSlots = {
|
|
6
|
-
addonBefore?: any;
|
|
7
|
-
addonAfter?: any;
|
|
8
|
-
prefix?: any;
|
|
9
|
-
default?: any;
|
|
10
|
-
upIcon?: any;
|
|
11
|
-
downIcon?: any;
|
|
12
|
-
};
|
|
13
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemNumberProps>, {
|
|
14
7
|
hasFeedback: boolean;
|
|
15
8
|
colon: undefined;
|
|
@@ -37,7 +30,21 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
37
30
|
hasFeedback: boolean;
|
|
38
31
|
autoLink: boolean;
|
|
39
32
|
validateFirst: boolean;
|
|
40
|
-
}, {}>, Readonly<
|
|
33
|
+
}, {}>, Readonly<{
|
|
34
|
+
addonBefore?: any;
|
|
35
|
+
addonAfter?: any;
|
|
36
|
+
prefix?: any;
|
|
37
|
+
default?: any;
|
|
38
|
+
upIcon?: any;
|
|
39
|
+
downIcon?: any;
|
|
40
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
41
|
+
addonBefore?: any;
|
|
42
|
+
addonAfter?: any;
|
|
43
|
+
prefix?: any;
|
|
44
|
+
default?: any;
|
|
45
|
+
upIcon?: any;
|
|
46
|
+
downIcon?: any;
|
|
47
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
41
48
|
export default _default;
|
|
42
49
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
50
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/number/index.vue2.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/number/index.vue2.js");const a=require("lodash-unified"),u=require("../../constant.js"),f=require("../../ap-form-item.vue.js"),c=require("../../../ap-field/number/index.vue.js"),m=e.defineComponent({name:"ApFormItemNumber",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},field:{default:()=>({})},placeholder:{},disabled:{type:Boolean,default:!1}},setup(n,{expose:d}){const i=n,s=e.useSlots(),l=e.ref();return d({focus:()=>{var r;(r=l.value)==null||r.focus()},blur:()=>{var r;(r=l.value)==null||r.blur()}}),(r,v)=>(e.openBlock(),e.createBlock(f.default,e.normalizeProps(e.guardReactiveProps(e.unref(a.omit)(i,["field","placeholder","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(c.default,e.mergeProps({ref_key:"inputNumberRef",ref:l,placeholder:r.placeholder,disabled:r.disabled},r.field),e.createSlots({_:2},[e.renderList(e.unref(a.omit)(s,e.unref(u.apFormItemSlotNames)),(p,o)=>({name:o,fn:e.withCtx(t=>[e.renderSlot(r.$slots,o,e.normalizeProps(e.guardReactiveProps(t||{})))])}))]),1040,["placeholder","disabled"])]),_:2},[e.renderList(e.unref(a.pick)(s,e.unref(u.apFormItemSlotNames)),(p,o)=>({name:o,fn:e.withCtx(t=>[e.renderSlot(r.$slots,o,e.normalizeProps(e.guardReactiveProps(t||{})))])}))]),1040))}});exports.default=m;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ApFormItemRadioProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldRadioProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
type ApFormItemRadioSlots = Omit<ApFormItemSlots, 'default'>;
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemRadioProps>, {
|
|
6
8
|
hasFeedback: boolean;
|
|
7
9
|
colon: undefined;
|
|
8
10
|
autoLink: boolean;
|
|
@@ -29,7 +31,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
29
31
|
hasFeedback: boolean;
|
|
30
32
|
autoLink: boolean;
|
|
31
33
|
validateFirst: boolean;
|
|
32
|
-
}, {}>;
|
|
34
|
+
}, {}>, Readonly<ApFormItemRadioSlots> & ApFormItemRadioSlots>;
|
|
33
35
|
export default _default;
|
|
34
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
37
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -48,3 +50,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
48
50
|
type __VLS_Prettify<T> = {
|
|
49
51
|
[K in keyof T]: T[K];
|
|
50
52
|
} & {};
|
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const i=require("lodash-unified"),n=require("../../ap-form-item.vue.js"),p=require("../../../ap-field/radio/index.vue.js"),f=e.defineComponent({name:"ApFormItemRadio",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},valuePropName:{},field:{default:()=>({})},disabled:{type:Boolean,default:!1}},setup(r,{expose:a}){const s=r,u=e.useSlots(),o=e.ref();return a({focus:()=>{var l;(l=o.value)==null||l.focus()},blur:()=>{var l;(l=o.value)==null||l.blur()}}),(l,m)=>(e.openBlock(),e.createBlock(n.default,e.normalizeProps(e.guardReactiveProps(e.unref(i.omit)(s,["field","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(p.default),e.mergeProps({ref_key:"radioRef",ref:o,disabled:l.disabled},l.field),null,16,["disabled"])]),_:2},[e.renderList(u,(v,t)=>({name:t,fn:e.withCtx(d=>[e.renderSlot(l.$slots,t,e.normalizeProps(e.guardReactiveProps(d||{})))])}))]),1040))}});exports.default=f;
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
import { ApFormItemSelectProps } from '../interface';
|
|
2
|
+
import { ApFormItemSlots } from '../../interface';
|
|
2
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
4
|
import { ApFieldSelectProps } from '../../../ap-field';
|
|
4
5
|
|
|
5
|
-
type ApFormItemSelectSlots = {
|
|
6
|
-
notFoundContent: any;
|
|
7
|
-
suffixIcon: any;
|
|
8
|
-
itemIcon: any;
|
|
9
|
-
removeIcon: any;
|
|
10
|
-
clearIcon: any;
|
|
11
|
-
dropdownRender: any;
|
|
12
|
-
option: any;
|
|
13
|
-
placeholder: any;
|
|
14
|
-
tagRender: any;
|
|
15
|
-
maxTagPlaceholder: any;
|
|
16
|
-
optionLabel: any;
|
|
17
|
-
default: any;
|
|
18
|
-
};
|
|
19
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemSelectProps>, {
|
|
20
7
|
hasFeedback: boolean;
|
|
21
8
|
colon: undefined;
|
|
@@ -43,7 +30,33 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
43
30
|
hasFeedback: boolean;
|
|
44
31
|
autoLink: boolean;
|
|
45
32
|
validateFirst: boolean;
|
|
46
|
-
}, {}>, Readonly<
|
|
33
|
+
}, {}>, Readonly<{
|
|
34
|
+
notFoundContent: any;
|
|
35
|
+
suffixIcon: any;
|
|
36
|
+
itemIcon: any;
|
|
37
|
+
removeIcon: any;
|
|
38
|
+
clearIcon: any;
|
|
39
|
+
dropdownRender: any;
|
|
40
|
+
option: any;
|
|
41
|
+
placeholder: any;
|
|
42
|
+
tagRender: any;
|
|
43
|
+
maxTagPlaceholder: any;
|
|
44
|
+
optionLabel: any;
|
|
45
|
+
default: any;
|
|
46
|
+
} & Omit<ApFormItemSlots, "default">> & {
|
|
47
|
+
notFoundContent: any;
|
|
48
|
+
suffixIcon: any;
|
|
49
|
+
itemIcon: any;
|
|
50
|
+
removeIcon: any;
|
|
51
|
+
clearIcon: any;
|
|
52
|
+
dropdownRender: any;
|
|
53
|
+
option: any;
|
|
54
|
+
placeholder: any;
|
|
55
|
+
tagRender: any;
|
|
56
|
+
maxTagPlaceholder: any;
|
|
57
|
+
optionLabel: any;
|
|
58
|
+
default: any;
|
|
59
|
+
} & Omit<ApFormItemSlots, "default">>;
|
|
47
60
|
export default _default;
|
|
48
61
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
62
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-form-item.vue2.js");require("../../../ap-field/index.js");const l=require("lodash-unified"),u=require("../../constant.js"),m=require("../../ap-form-item.vue.js"),_=require("../../../ap-field/select/index.vue.js"),v=e.defineComponent({name:"ApFormItemSelect",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},field:{default:()=>({})},placeholder:{},disabled:{type:Boolean,default:!1}},setup(i,{expose:p}){const t=i,d=e.ref();p({focus:()=>{var r;(r=d.value)==null||r.focus()},blur:()=>{var r;(r=d.value)==null||r.blur()}});const n=e.useSlots(),c=e.computed(()=>{var r,a;return{placeholder:t.placeholder,disabled:t.disabled,...t.field||{},bordered:t.bordered?!1:l.isUndefined((r=t.field)==null?void 0:r.bordered)?!0:(a=t.field)==null?void 0:a.bordered}});return(r,a)=>(e.openBlock(),e.createBlock(m.default,e.normalizeProps(e.guardReactiveProps(e.unref(l.omit)(t,["field","placeholder","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(_.default),e.normalizeProps(e.guardReactiveProps(c.value)),e.createSlots({_:2},[e.renderList(e.unref(l.omit)(n,e.unref(u.apFormItemSlotNames)),(f,o)=>({name:o,fn:e.withCtx(s=>[e.renderSlot(r.$slots,o,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(l.pick)(n,e.unref(u.apFormItemSlotNames)),(f,o)=>({name:o,fn:e.withCtx(s=>[e.renderSlot(r.$slots,o,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040))}});exports.default=v;
|