@aplus-frontend/ui 0.0.30 → 0.0.32
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-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +8 -8
- package/es/src/ap-field/date-range/index.vue.d.ts +6 -6
- package/es/src/ap-field/date-range/index.vue.mjs +15 -15
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +3 -3
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.mjs +11 -10
- package/es/src/ap-form/ap-form.vue.d.ts +2 -2
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +11 -10
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.mjs +6 -5
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.mjs +7 -6
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.mjs +7 -6
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.mjs +4 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.mjs +8 -7
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/switch/index.vue.mjs +7 -6
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue2.mjs +6 -5
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.mjs +4 -3
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/search-form/index.vue.mjs +82 -79
- package/es/src/ap-form/search-form/utils.d.ts +5 -0
- package/es/src/ap-form/search-form/utils.mjs +35 -0
- package/es/src/ap-list/hooks/use-offline-list.d.ts +1 -1
- package/es/src/ap-list/index.vue.d.ts +15 -15
- package/es/src/ap-table/ap-table.vue.d.ts +60 -60
- package/es/src/ap-table/ap-table.vue.mjs +84 -81
- package/es/src/ap-table/constants.d.ts +2914 -2782
- package/es/src/ap-table/utils.d.ts +2 -8474
- package/es/src/ap-upload/styles/multiple-file.css +4 -0
- package/es/src/ap-upload/styles/picture.css +1 -1
- package/es/src/base-button/index.d.ts +17 -17
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/business/index.d.ts +40 -40
- package/es/src/button/index.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +3 -0
- package/es/src/check-card/group.vue.mjs +17 -16
- package/es/src/check-card/index.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +1 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +4 -3
- package/es/src/container/collapse/header.vue.d.ts +1 -1
- package/es/src/container/collapse/index.vue.d.ts +1 -1
- package/es/src/container/index.d.ts +5 -5
- package/es/src/count-down/index.d.ts +2 -2
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/index.d.ts +34 -34
- package/es/src/description/index.d.ts +2 -2
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +23 -23
- package/es/src/editable-table/hooks/use-get-columns.mjs +26 -25
- package/es/src/editable-table/index.vue.d.ts +27 -27
- package/es/src/editable-table/style/index.css +7 -1
- package/es/src/editable-table/utils.d.ts +1 -0
- package/es/src/editable-table/utils.mjs +31 -22
- package/es/src/icon/index.d.ts +2 -2
- package/es/src/icon-picker/index.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +1 -1
- package/es/src/pro-form/component-map.d.ts +2 -2
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-transfer.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-advanced.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form-values.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +27 -27
- package/es/src/pro-form/pro-form.vue.d.ts +4 -4
- package/es/src/pro-table/component-map.d.ts +2 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-action.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-footer.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-image.vue.d.ts +1 -1
- package/es/src/pro-table/hooks/use-data-source.d.ts +5 -5
- package/es/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-footer.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-header.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +12 -12
- package/es/src/prompt/utils.d.ts +2 -2
- package/es/src/scroll-bar/index.d.ts +21 -21
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
- package/es/src/strength-meter/index.d.ts +1 -1
- package/es/src/theme/ap-upload/multiple-file.css +4 -0
- package/es/src/theme/ap-upload/picture.css +1 -1
- package/es/src/theme/editable-table/index.css +7 -1
- package/es/src/transition/create-transition.d.ts +1 -1
- package/es/src/transition/create-transition.mjs +34 -34
- package/es/src/transition/index.d.ts +11 -11
- package/es/src/work-order-modal/interfaces.d.ts +2 -2
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +8 -8
- package/lib/src/ap-field/date-range/index.vue.d.ts +6 -6
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +3 -3
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -2
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/utils.d.ts +5 -0
- package/lib/src/ap-form/search-form/utils.js +1 -0
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +15 -15
- package/lib/src/ap-table/ap-table.vue.d.ts +60 -60
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2914 -2782
- package/lib/src/ap-table/utils.d.ts +2 -8474
- package/lib/src/ap-upload/styles/multiple-file.css +4 -0
- package/lib/src/ap-upload/styles/picture.css +1 -1
- package/lib/src/base-button/index.d.ts +17 -17
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/business/index.d.ts +40 -40
- package/lib/src/button/index.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +3 -0
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +4 -3
- package/lib/src/container/collapse/header.vue.d.ts +1 -1
- package/lib/src/container/collapse/index.vue.d.ts +1 -1
- package/lib/src/container/index.d.ts +5 -5
- package/lib/src/count-down/index.d.ts +2 -2
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +34 -34
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +23 -23
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +27 -27
- package/lib/src/editable-table/style/index.css +7 -1
- package/lib/src/editable-table/utils.d.ts +1 -0
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/icon/index.d.ts +2 -2
- package/lib/src/icon-picker/index.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +1 -1
- package/lib/src/pro-form/component-map.d.ts +2 -2
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-advanced.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form-values.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +27 -27
- package/lib/src/pro-form/pro-form.vue.d.ts +4 -4
- package/lib/src/pro-table/component-map.d.ts +2 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-action.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-footer.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-image.vue.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +5 -5
- package/lib/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-header.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +12 -12
- package/lib/src/prompt/utils.d.ts +2 -2
- package/lib/src/scroll-bar/index.d.ts +21 -21
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
- package/lib/src/strength-meter/index.d.ts +1 -1
- package/lib/src/theme/ap-upload/multiple-file.css +4 -0
- package/lib/src/theme/ap-upload/picture.css +1 -1
- package/lib/src/theme/editable-table/index.css +7 -1
- package/lib/src/transition/create-transition.d.ts +1 -1
- package/lib/src/transition/create-transition.js +1 -1
- package/lib/src/transition/index.d.ts +11 -11
- package/lib/src/work-order-modal/interfaces.d.ts +2 -2
- package/package.json +2 -2
|
@@ -15,8 +15,8 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
15
15
|
}>>>, {
|
|
16
16
|
trigger: Trigger | Trigger[];
|
|
17
17
|
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "topCenter" | "bottomCenter";
|
|
18
|
-
actions: GroupActionTypes[];
|
|
19
18
|
count: number;
|
|
19
|
+
actions: GroupActionTypes[];
|
|
20
20
|
}, {}>;
|
|
21
21
|
export default _default;
|
|
22
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,8 +2,8 @@ import { default as dayjs } from 'dayjs';
|
|
|
2
2
|
import { ApFieldDateProps, FieldMode } from '../interface';
|
|
3
3
|
import { ApFormatPresetType } from './interface';
|
|
4
4
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
|
|
5
|
-
import { LiteralUnion } from '../../type';
|
|
6
5
|
import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
|
|
6
|
+
import { LiteralUnion } from 'src/type';
|
|
7
7
|
|
|
8
8
|
type ApFieldDataSlots = {
|
|
9
9
|
dateRender: any;
|
|
@@ -69,6 +69,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
69
69
|
open: boolean;
|
|
70
70
|
autofocus: boolean;
|
|
71
71
|
mode: FieldMode;
|
|
72
|
+
bordered: boolean;
|
|
73
|
+
showToday: boolean;
|
|
74
|
+
showTime: boolean | SharedTimeProps<dayjs.Dayjs>;
|
|
75
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
76
|
+
allowClear: boolean;
|
|
77
|
+
defaultOpen: boolean;
|
|
78
|
+
inputReadOnly: boolean;
|
|
72
79
|
suffixIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
73
80
|
[key: string]: any;
|
|
74
81
|
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
@@ -76,7 +83,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
76
83
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
77
84
|
[key: string]: any;
|
|
78
85
|
}> | null;
|
|
79
|
-
bordered: boolean;
|
|
80
86
|
clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
81
87
|
[key: string]: any;
|
|
82
88
|
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
@@ -84,12 +90,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
84
90
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
85
91
|
[key: string]: any;
|
|
86
92
|
}> | null;
|
|
87
|
-
allowClear: boolean;
|
|
88
|
-
defaultOpen: boolean;
|
|
89
|
-
format: LiteralUnion<ApFormatPresetType, string>;
|
|
90
|
-
inputReadOnly: boolean;
|
|
91
|
-
showToday: boolean;
|
|
92
|
-
showTime: boolean | SharedTimeProps<dayjs.Dayjs>;
|
|
93
93
|
emptyText: string;
|
|
94
94
|
}, {}>, Readonly<ApFieldDataSlots> & ApFieldDataSlots>;
|
|
95
95
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFieldDateRangeProps, FieldMode } from '../interface';
|
|
2
2
|
import { ApFormatPresetType } from '../date/interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, VNode, RendererNode, RendererElement, PropType } from 'vue';
|
|
4
|
-
import { LiteralUnion } from '
|
|
4
|
+
import { LiteralUnion } from 'src/type';
|
|
5
5
|
|
|
6
6
|
type ApFieldDateRangeSlots = {
|
|
7
7
|
suffixIcon?: any;
|
|
@@ -72,6 +72,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
72
72
|
open: boolean;
|
|
73
73
|
autofocus: boolean;
|
|
74
74
|
mode: FieldMode;
|
|
75
|
+
bordered: boolean;
|
|
76
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
77
|
+
allowClear: boolean;
|
|
78
|
+
defaultOpen: boolean;
|
|
79
|
+
inputReadOnly: boolean;
|
|
75
80
|
suffixIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
76
81
|
[key: string]: any;
|
|
77
82
|
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
@@ -79,7 +84,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
79
84
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
80
85
|
[key: string]: any;
|
|
81
86
|
}> | null;
|
|
82
|
-
bordered: boolean;
|
|
83
87
|
clearIcon: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
84
88
|
[key: string]: any;
|
|
85
89
|
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
@@ -87,8 +91,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
87
91
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
88
92
|
[key: string]: any;
|
|
89
93
|
}> | null;
|
|
90
|
-
allowClear: boolean;
|
|
91
|
-
defaultOpen: boolean;
|
|
92
94
|
separator: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
93
95
|
[key: string]: any;
|
|
94
96
|
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
@@ -96,8 +98,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
96
98
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
97
99
|
[key: string]: any;
|
|
98
100
|
}> | null;
|
|
99
|
-
format: LiteralUnion<ApFormatPresetType, string>;
|
|
100
|
-
inputReadOnly: boolean;
|
|
101
101
|
emptyText: string;
|
|
102
102
|
}, {}>, Readonly<ApFieldDateRangeSlots> & ApFieldDateRangeSlots>;
|
|
103
103
|
export default _default;
|
|
@@ -101,8 +101,8 @@ const fe = /* @__PURE__ */ x({
|
|
|
101
101
|
const e = t(p);
|
|
102
102
|
if (S(e) || !(e != null && e.length))
|
|
103
103
|
return e;
|
|
104
|
-
const
|
|
105
|
-
return
|
|
104
|
+
const n = o.timezone ? M(t(p)[0], o.timezone) : (l = t(p)) == null ? void 0 : l[0], a = o.timezone ? M(t(p)[1], o.timezone) : (d = t(p)) == null ? void 0 : d[1];
|
|
105
|
+
return [u(n), u(a)];
|
|
106
106
|
}), A = c(() => t(i) ? o.picker ?? Z[o.format] : o.picker), F = c(() => {
|
|
107
107
|
const e = t(i) ? q[o.format] : {};
|
|
108
108
|
return {
|
|
@@ -124,31 +124,31 @@ const fe = /* @__PURE__ */ x({
|
|
|
124
124
|
h(e);
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
128
|
-
|
|
129
|
-
m(
|
|
130
|
-
m(
|
|
131
|
-
]) : h([D(
|
|
127
|
+
let n = f(e[0]) ? u(e[0]) : e[0], a = f(e[1]) ? u(e[1]) : e[1];
|
|
128
|
+
t(i) ? h([
|
|
129
|
+
m(n, t(r)),
|
|
130
|
+
m(a, t(r), !1)
|
|
131
|
+
]) : h([D(n), D(a)]);
|
|
132
132
|
}
|
|
133
133
|
function E(e) {
|
|
134
134
|
var s;
|
|
135
|
-
const
|
|
135
|
+
const n = f(e[0]) ? u(e[0]) : e[0], a = f(e[1]) ? u(e[1]) : e[1], l = e[0] ? t(i) ? m(n, t(r)) : n.valueOf() : null, d = e[1] ? t(i) ? m(a, t(r), !1) : a.valueOf() : null;
|
|
136
136
|
(s = o.onOk) == null || s.call(o, [l, d]);
|
|
137
137
|
}
|
|
138
|
-
function N(e,
|
|
138
|
+
function N(e, n) {
|
|
139
139
|
var y, P;
|
|
140
140
|
if (S(e)) {
|
|
141
|
-
(y = o.onChange) == null || y.call(o, e,
|
|
141
|
+
(y = o.onChange) == null || y.call(o, e, n);
|
|
142
142
|
return;
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
(P = o.onChange) == null || P.call(o, [d, s],
|
|
144
|
+
const a = f(e[0]) ? u(e[0]) : e[0], l = f(e[1]) ? u(e[1]) : e[1], d = e[0] ? t(i) ? m(a, t(r)) : a.valueOf() : null, s = e[1] ? t(i) ? m(l, t(r), !1) : l.valueOf() : null;
|
|
145
|
+
(P = o.onChange) == null || P.call(o, [d, s], n);
|
|
146
146
|
}
|
|
147
|
-
return (e,
|
|
148
|
-
var
|
|
147
|
+
return (e, n) => {
|
|
148
|
+
var a, l;
|
|
149
149
|
return e.mode === "read" ? (g(), k(B, { key: 0 }, [
|
|
150
150
|
v.value ? (g(), k(B, { key: 0 }, [
|
|
151
|
-
O(C((
|
|
151
|
+
O(C((a = v.value[0]) == null ? void 0 : a.format(r.value)) + " ", 1),
|
|
152
152
|
T(e.$slots, "readModeSeparator", {}, () => [
|
|
153
153
|
V(t(Q))
|
|
154
154
|
]),
|
|
@@ -32,8 +32,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
32
32
|
mode: FieldMode;
|
|
33
33
|
allowClear: boolean;
|
|
34
34
|
count: number;
|
|
35
|
-
allowHalf: boolean;
|
|
36
35
|
character: any;
|
|
36
|
+
allowHalf: boolean;
|
|
37
37
|
}, {}>, Readonly<{
|
|
38
38
|
character: any;
|
|
39
39
|
}> & {
|
|
@@ -68,9 +68,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
68
68
|
multiple: boolean;
|
|
69
69
|
mode: FieldMode;
|
|
70
70
|
virtual: boolean;
|
|
71
|
+
showSearch: boolean;
|
|
71
72
|
bordered: boolean;
|
|
72
73
|
allowClear: boolean;
|
|
73
|
-
showSearch: boolean;
|
|
74
74
|
defaultOpen: boolean;
|
|
75
75
|
showArrow: boolean;
|
|
76
76
|
autoClearSearchValue: boolean;
|
|
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
34
34
|
}>>> & {
|
|
35
35
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "
|
|
37
|
+
type: "number" | "text" | "color" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "image" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
38
38
|
mode: FieldMode;
|
|
39
39
|
bordered: boolean;
|
|
40
40
|
allowClear: boolean;
|
|
@@ -40,14 +40,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
40
40
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
}, {
|
|
42
42
|
visible: boolean;
|
|
43
|
-
type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "
|
|
43
|
+
type: "number" | "text" | "color" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "image" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
44
44
|
mode: FieldMode;
|
|
45
45
|
bordered: boolean;
|
|
46
46
|
allowClear: boolean;
|
|
47
|
-
lazy: boolean;
|
|
48
47
|
action: string;
|
|
49
|
-
|
|
48
|
+
lazy: boolean;
|
|
50
49
|
emptyText: string;
|
|
50
|
+
visibilityToggle: boolean;
|
|
51
51
|
}, {}>, Readonly<ApFieldTextPasswordSlots> & ApFieldTextPasswordSlots>;
|
|
52
52
|
export default _default;
|
|
53
53
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
25
25
|
}>>> & {
|
|
26
26
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "
|
|
28
|
+
type: "number" | "text" | "color" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "image" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password" | "tel";
|
|
29
29
|
mode: FieldMode;
|
|
30
30
|
bordered: boolean;
|
|
31
31
|
allowClear: boolean;
|
|
@@ -12,8 +12,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
12
12
|
gutter: number;
|
|
13
13
|
wrap: undefined;
|
|
14
14
|
}>>>, {
|
|
15
|
-
wrap: boolean;
|
|
16
15
|
gutter: number | Partial<Record< Breakpoint, number>> | [ Gutter, Gutter];
|
|
16
|
+
wrap: boolean;
|
|
17
17
|
countPerRow: number;
|
|
18
18
|
}, {}>, Readonly<{
|
|
19
19
|
default(): any[];
|
|
@@ -31,8 +31,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
31
31
|
}>>>, {
|
|
32
32
|
required: boolean;
|
|
33
33
|
bordered: boolean;
|
|
34
|
-
colon: boolean;
|
|
35
34
|
hasFeedback: boolean;
|
|
35
|
+
colon: boolean;
|
|
36
36
|
autoLink: boolean;
|
|
37
37
|
validateFirst: boolean;
|
|
38
38
|
valuePropName: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, useSlots as D, ref as f, onMounted as E, computed as
|
|
1
|
+
import { defineComponent as q, useSlots as D, ref as f, onMounted as E, computed as g, unref as t, watch as K, cloneVNode as O, openBlock as h, createBlock as C, mergeProps as Q, createSlots as U, withCtx as i, resolveDynamicComponent as w, createCommentVNode as G, createElementVNode as H, normalizeClass as J, createVNode as V, normalizeStyle as M, renderList as W, renderSlot as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
2
|
import { Form as ee, Tooltip as oe } from "ant-design-vue";
|
|
3
3
|
import { useToken as te } from "ant-design-vue/es/theme/internal";
|
|
4
4
|
import { isArray as le, omit as k } from "lodash-unified";
|
|
@@ -48,7 +48,8 @@ const be = /* @__PURE__ */ q({
|
|
|
48
48
|
flex: {},
|
|
49
49
|
bordered: { type: Boolean, default: !1 },
|
|
50
50
|
valuePropName: { default: "value" },
|
|
51
|
-
initialValue: {}
|
|
51
|
+
initialValue: {},
|
|
52
|
+
_signal: {}
|
|
52
53
|
},
|
|
53
54
|
setup(N, { expose: P }) {
|
|
54
55
|
var F, b;
|
|
@@ -59,7 +60,7 @@ const be = /* @__PURE__ */ q({
|
|
|
59
60
|
initialValue: o.initialValue
|
|
60
61
|
});
|
|
61
62
|
});
|
|
62
|
-
const c =
|
|
63
|
+
const c = g(() => o.name ? le(o.name) ? o.name.reduce((e, a) => e == null ? void 0 : e[a], t(u)) : u == null ? void 0 : u.value[o.name] : null), v = f((b = (F = l.default) == null ? void 0 : F.call(l)) == null ? void 0 : b[0]);
|
|
63
64
|
K(
|
|
64
65
|
() => {
|
|
65
66
|
var e;
|
|
@@ -69,25 +70,25 @@ const be = /* @__PURE__ */ q({
|
|
|
69
70
|
v.value = e == null ? void 0 : e[0];
|
|
70
71
|
}
|
|
71
72
|
);
|
|
72
|
-
function
|
|
73
|
+
function _(e) {
|
|
73
74
|
d == null || d(o.name, e);
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function I() {
|
|
76
77
|
m.value = !0;
|
|
77
78
|
}
|
|
78
79
|
function z() {
|
|
79
80
|
m.value = !1;
|
|
80
81
|
}
|
|
81
|
-
const y =
|
|
82
|
+
const y = g(() => {
|
|
82
83
|
var a, n;
|
|
83
84
|
if (!o.name)
|
|
84
85
|
return (a = l.default()) == null ? void 0 : a[0];
|
|
85
86
|
const e = t(v);
|
|
86
87
|
return e ? O(e, {
|
|
87
88
|
[o.valuePropName]: t(c),
|
|
88
|
-
[`onUpdate:${o.valuePropName}`]:
|
|
89
|
+
[`onUpdate:${o.valuePropName}`]: _,
|
|
89
90
|
bordered: o.bordered ? !1 : (n = e == null ? void 0 : e.props) == null ? void 0 : n.bordered,
|
|
90
|
-
onFocus:
|
|
91
|
+
onFocus: I,
|
|
91
92
|
onBlur: z
|
|
92
93
|
}) : null;
|
|
93
94
|
});
|
|
@@ -116,7 +117,7 @@ const be = /* @__PURE__ */ q({
|
|
|
116
117
|
clearValidate: T,
|
|
117
118
|
resetField: L,
|
|
118
119
|
getFieldValue: $
|
|
119
|
-
}), (e, a) => (
|
|
120
|
+
}), (e, a) => (h(), C(t(ee).Item, Q({
|
|
120
121
|
ref_key: "formItemRef",
|
|
121
122
|
ref: r
|
|
122
123
|
}, t(k)(o, [...t(re), "tooltip"]), {
|
|
@@ -128,7 +129,7 @@ const be = /* @__PURE__ */ q({
|
|
|
128
129
|
colon: e.bordered ? !1 : o.colon
|
|
129
130
|
}), U({
|
|
130
131
|
default: i(() => [
|
|
131
|
-
y.value ? (
|
|
132
|
+
y.value ? (h(), C(w(y.value), { key: 0 })) : G("", !0)
|
|
132
133
|
]),
|
|
133
134
|
_: 2
|
|
134
135
|
}, [
|
|
@@ -47,10 +47,10 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
47
47
|
validateOnRuleChange: boolean;
|
|
48
48
|
validateTrigger: string;
|
|
49
49
|
}>>>, {
|
|
50
|
-
layout: string;
|
|
51
|
-
validateTrigger: string | string[];
|
|
52
50
|
colon: boolean;
|
|
53
51
|
labelAlign: FormLabelAlign;
|
|
52
|
+
validateTrigger: string | string[];
|
|
53
|
+
layout: string;
|
|
54
54
|
hideRequiredMark: boolean;
|
|
55
55
|
validateOnRuleChange: boolean;
|
|
56
56
|
}, {}>, {
|
|
@@ -3,5 +3,5 @@ import { ApFormExpose } from '../interface';
|
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
|
|
5
5
|
type ApFormIns<T> = ApFormExpose<T>;
|
|
6
|
-
declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath, form?: Ref<ApFormIns<StoreType> | undefined>
|
|
6
|
+
declare const useWatch: <ValueType = any, StoreType = any>(name: NamePath, form?: Ref<ApFormIns<StoreType> | undefined>) => Ref<ValueType | undefined>;
|
|
7
7
|
export default useWatch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemCheckboxProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { ApFieldCheckboxProps } from '
|
|
4
|
+
import { ApFieldCheckboxProps } from 'src/ap-field/interface';
|
|
5
5
|
|
|
6
6
|
type ApFormItemCheckboxSlots = Omit<ApFormItemSlots, 'default'>;
|
|
7
7
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
|
|
@@ -23,11 +23,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
23
23
|
}>>>, {
|
|
24
24
|
disabled: boolean;
|
|
25
25
|
required: boolean;
|
|
26
|
-
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
27
|
-
colon: boolean;
|
|
28
26
|
hasFeedback: boolean;
|
|
27
|
+
colon: boolean;
|
|
29
28
|
autoLink: boolean;
|
|
30
29
|
validateFirst: boolean;
|
|
30
|
+
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
31
31
|
}, {}>, Readonly<ApFormItemCheckboxSlots> & ApFormItemCheckboxSlots>;
|
|
32
32
|
export default _default;
|
|
33
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as
|
|
1
|
+
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as x, renderSlot as y } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { omit as i } from "lodash-unified";
|
|
5
|
+
import g from "../../ap-form-item.vue.mjs";
|
|
6
|
+
import h from "../../../ap-field/checkbox/index.vue.mjs";
|
|
7
7
|
const w = /* @__PURE__ */ f({
|
|
8
8
|
name: "ApFormItemCheckbox",
|
|
9
9
|
__name: "index",
|
|
@@ -44,21 +44,22 @@ const w = /* @__PURE__ */ f({
|
|
|
44
44
|
flex: {},
|
|
45
45
|
valuePropName: {},
|
|
46
46
|
initialValue: {},
|
|
47
|
+
_signal: {},
|
|
47
48
|
field: { default: () => ({}) },
|
|
48
49
|
disabled: { type: Boolean, default: !1 }
|
|
49
50
|
},
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
return (e,
|
|
51
|
+
setup(s) {
|
|
52
|
+
const d = s, n = m();
|
|
53
|
+
return (e, v) => (u(), c(g, a(t(l(i)(d, ["field", "disabled"]))), b({
|
|
53
54
|
default: r(() => [
|
|
54
|
-
B(l(
|
|
55
|
+
B(l(h), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
55
56
|
]),
|
|
56
57
|
_: 2
|
|
57
58
|
}, [
|
|
58
|
-
|
|
59
|
+
x(l(i)(n, "default"), (C, o) => ({
|
|
59
60
|
name: o,
|
|
60
61
|
fn: r((p) => [
|
|
61
|
-
|
|
62
|
+
y(e.$slots, o, a(t(p || {})))
|
|
62
63
|
])
|
|
63
64
|
}))
|
|
64
65
|
]), 1040));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemDateProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { ApFieldDateProps } from '
|
|
4
|
+
import { ApFieldDateProps } from 'src';
|
|
5
5
|
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemDateProps>, {
|
|
7
7
|
hasFeedback: boolean;
|
|
@@ -22,11 +22,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
22
22
|
}>>>, {
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
required: boolean;
|
|
25
|
-
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
|
|
26
|
-
colon: boolean;
|
|
27
25
|
hasFeedback: boolean;
|
|
26
|
+
colon: boolean;
|
|
28
27
|
autoLink: boolean;
|
|
29
28
|
validateFirst: boolean;
|
|
29
|
+
field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
|
|
30
30
|
}, {}>, Readonly<{
|
|
31
31
|
dateRender: any;
|
|
32
32
|
suffixIcon?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as s, withCtx as i, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -46,6 +46,7 @@ const L = /* @__PURE__ */ h({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
@@ -60,10 +61,10 @@ const L = /* @__PURE__ */ h({
|
|
|
60
61
|
bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
|
|
61
62
|
};
|
|
62
63
|
});
|
|
63
|
-
return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))),
|
|
64
|
+
return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), s({
|
|
64
65
|
default: i(() => [
|
|
65
|
-
g(C, r(t(b.value)),
|
|
66
|
-
|
|
66
|
+
g(C, r(t(b.value)), s({ _: 2 }, [
|
|
67
|
+
p(a(m)(n, a(u)), (_, l) => ({
|
|
67
68
|
name: l,
|
|
68
69
|
fn: i((d) => [
|
|
69
70
|
f(o.$slots, l, r(t(d || {})))
|
|
@@ -73,7 +74,7 @@ const L = /* @__PURE__ */ h({
|
|
|
73
74
|
]),
|
|
74
75
|
_: 2
|
|
75
76
|
}, [
|
|
76
|
-
|
|
77
|
+
p(a(S)(n, a(u)), (_, l) => ({
|
|
77
78
|
name: l,
|
|
78
79
|
fn: i((d) => [
|
|
79
80
|
f(o.$slots, l, r(t(d || {})))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemDateRangeProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { ApFieldDateRangeProps } from '
|
|
4
|
+
import { ApFieldDateRangeProps } from 'src/ap-field/interface';
|
|
5
5
|
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemDateRangeProps>, {
|
|
7
7
|
hasFeedback: boolean;
|
|
@@ -22,11 +22,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
22
22
|
}>>>, {
|
|
23
23
|
disabled: boolean;
|
|
24
24
|
required: boolean;
|
|
25
|
-
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
|
|
26
|
-
colon: boolean;
|
|
27
25
|
hasFeedback: boolean;
|
|
26
|
+
colon: boolean;
|
|
28
27
|
autoLink: boolean;
|
|
29
28
|
validateFirst: boolean;
|
|
29
|
+
field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
|
|
30
30
|
}, {}>, Readonly<{
|
|
31
31
|
suffixIcon?: any;
|
|
32
32
|
prevIcon?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as
|
|
1
|
+
import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as i, createVNode as F, renderList as f, renderSlot as m } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
|
|
@@ -46,12 +46,13 @@ const I = /* @__PURE__ */ B({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
52
53
|
},
|
|
53
54
|
setup(b) {
|
|
54
|
-
const e = b,
|
|
55
|
+
const e = b, s = g(), _ = y(() => {
|
|
55
56
|
var l, d;
|
|
56
57
|
return {
|
|
57
58
|
placeholder: e.placeholder,
|
|
@@ -60,10 +61,10 @@ const I = /* @__PURE__ */ B({
|
|
|
60
61
|
bordered: e.bordered ? !1 : S((l = e.field) == null ? void 0 : l.bordered) ? !0 : (d = e.field) == null ? void 0 : d.bordered
|
|
61
62
|
};
|
|
62
63
|
});
|
|
63
|
-
return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))),
|
|
64
|
+
return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
|
|
64
65
|
default: i(() => [
|
|
65
|
-
F(o(P), r(t(_.value)),
|
|
66
|
-
f(o(u)(
|
|
66
|
+
F(o(P), r(t(_.value)), p({ _: 2 }, [
|
|
67
|
+
f(o(u)(s, o(c)), (h, a) => ({
|
|
67
68
|
name: a,
|
|
68
69
|
fn: i((n) => [
|
|
69
70
|
m(l.$slots, a, r(t(n || {})))
|
|
@@ -73,7 +74,7 @@ const I = /* @__PURE__ */ B({
|
|
|
73
74
|
]),
|
|
74
75
|
_: 2
|
|
75
76
|
}, [
|
|
76
|
-
f(o(k)(
|
|
77
|
+
f(o(k)(s, o(c)), (h, a) => ({
|
|
77
78
|
name: a,
|
|
78
79
|
fn: i((n) => [
|
|
79
80
|
m(l.$slots, a, r(t(n || {})))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemNumberProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { ApFieldNumberProps } from '
|
|
4
|
+
import { ApFieldNumberProps } from 'src/ap-field/interface';
|
|
5
5
|
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemNumberProps>, {
|
|
7
7
|
hasFeedback: boolean;
|
|
@@ -25,11 +25,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
25
25
|
}>>>, {
|
|
26
26
|
disabled: boolean;
|
|
27
27
|
required: boolean;
|
|
28
|
-
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
|
|
29
|
-
colon: boolean;
|
|
30
28
|
hasFeedback: boolean;
|
|
29
|
+
colon: boolean;
|
|
31
30
|
autoLink: boolean;
|
|
32
31
|
validateFirst: boolean;
|
|
32
|
+
field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
|
|
33
33
|
}, {}>, Readonly<{
|
|
34
34
|
addonBefore?: any;
|
|
35
35
|
addonAfter?: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as p, createVNode as k, mergeProps as N, renderList as i, renderSlot as u } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
4
|
import { omit as f, pick as S } from "lodash-unified";
|
|
@@ -46,12 +46,13 @@ const T = /* @__PURE__ */ B({
|
|
|
46
46
|
bordered: { type: Boolean },
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
|
+
_signal: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
placeholder: {},
|
|
51
52
|
disabled: { type: Boolean, default: !1 }
|
|
52
53
|
},
|
|
53
54
|
setup(c, { expose: b }) {
|
|
54
|
-
const h = c,
|
|
55
|
+
const h = c, n = _(), a = v();
|
|
55
56
|
return b({
|
|
56
57
|
focus: () => {
|
|
57
58
|
var e;
|
|
@@ -61,15 +62,15 @@ const T = /* @__PURE__ */ B({
|
|
|
61
62
|
var e;
|
|
62
63
|
(e = a.value) == null || e.blur();
|
|
63
64
|
}
|
|
64
|
-
}), (e, R) => (g(), x(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))),
|
|
65
|
+
}), (e, R) => (g(), x(C, t(s(l(f)(h, ["field", "placeholder", "disabled"]))), d({
|
|
65
66
|
default: p(() => [
|
|
66
67
|
k(F, N({
|
|
67
68
|
ref_key: "inputNumberRef",
|
|
68
69
|
ref: a,
|
|
69
70
|
placeholder: e.placeholder,
|
|
70
71
|
disabled: e.disabled
|
|
71
|
-
}, e.field),
|
|
72
|
-
i(l(f)(
|
|
72
|
+
}, e.field), d({ _: 2 }, [
|
|
73
|
+
i(l(f)(n, l(m)), (y, o) => ({
|
|
73
74
|
name: o,
|
|
74
75
|
fn: p((r) => [
|
|
75
76
|
u(e.$slots, o, t(s(r || {})))
|
|
@@ -79,7 +80,7 @@ const T = /* @__PURE__ */ B({
|
|
|
79
80
|
]),
|
|
80
81
|
_: 2
|
|
81
82
|
}, [
|
|
82
|
-
i(l(S)(
|
|
83
|
+
i(l(S)(n, l(m)), (y, o) => ({
|
|
83
84
|
name: o,
|
|
84
85
|
fn: p((r) => [
|
|
85
86
|
u(e.$slots, o, t(s(r || {})))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormItemRadioProps } from '../interface';
|
|
2
2
|
import { ApFormItemSlots } from '../../interface';
|
|
3
3
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
-
import { ApFieldRadioProps } from '
|
|
4
|
+
import { ApFieldRadioProps } from 'src/ap-field/interface';
|
|
5
5
|
|
|
6
6
|
type ApFormItemRadioSlots = Omit<ApFormItemSlots, 'default'>;
|
|
7
7
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemRadioProps>, {
|
|
@@ -26,11 +26,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
26
26
|
}>>>, {
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
required: boolean;
|
|
29
|
-
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
30
|
-
colon: boolean;
|
|
31
29
|
hasFeedback: boolean;
|
|
30
|
+
colon: boolean;
|
|
32
31
|
autoLink: boolean;
|
|
33
32
|
validateFirst: boolean;
|
|
33
|
+
field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
|
|
34
34
|
}, {}>, Readonly<ApFormItemRadioSlots> & ApFormItemRadioSlots>;
|
|
35
35
|
export default _default;
|
|
36
36
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|