@aplus-frontend/ui 0.0.1-beta.39 → 0.0.1-beta.40
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 +104 -98
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-custom-column/column-select.vue.mjs +19 -19
- package/es/src/ap-field/select/index.vue.d.ts +235 -0
- package/es/src/ap-form/interface.d.ts +1 -0
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
- package/es/src/ap-form/items/checkbox/index.vue.mjs +61 -0
- package/es/src/ap-form/items/checkbox/index.vue2.mjs +4 -0
- package/es/src/ap-form/items/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +1 -0
- package/es/src/ap-form/items/interface.d.ts +5 -1
- package/es/src/ap-form/modal-form/index.vue.d.ts +378 -0
- package/es/src/ap-form/search-form/index.vue.mjs +48 -44
- package/es/src/ap-table/ap-table.vue.d.ts +184 -0
- package/es/src/ap-table/ap-table.vue.mjs +258 -0
- package/es/src/ap-table/ap-table.vue2.mjs +4 -0
- package/es/src/ap-table/components/index/index.vue.d.ts +28 -0
- package/es/src/ap-table/components/index/index.vue.mjs +4 -0
- package/es/src/ap-table/components/index/index.vue2.mjs +21 -0
- package/es/src/ap-table/components/interface.d.ts +10 -0
- package/es/src/ap-table/components/style/index.css +12 -0
- package/es/src/ap-table/constants.d.ts +11075 -0
- package/es/src/ap-table/constants.mjs +55 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +5 -1
- package/es/src/ap-table/hooks/use-table-paging.mjs +142 -0
- package/es/src/ap-table/index.d.ts +5 -0
- package/es/src/ap-table/index.mjs +6 -0
- package/es/src/ap-table/interface.d.ts +41 -14
- package/es/src/ap-table/interface.mjs +1 -0
- package/es/src/ap-table/style/ap-table.css +26 -0
- package/es/src/ap-table/utils.mjs +35 -0
- package/es/src/config-provider/config-provider-props.d.ts +152 -0
- package/es/src/config-provider/config-provider.d.ts +323 -0
- package/es/src/config-provider/config-provider.mjs +26 -34
- package/es/src/config-provider/hooks/use-global-config.d.ts +154 -0
- package/es/src/config-provider/index.d.ts +691 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +206 -199
- package/es/src/modal/basic.vue.d.ts +464 -0
- package/es/src/modal/components/modal-footer.vue.d.ts +457 -0
- package/es/src/modal/components/modal.d.ts +443 -0
- package/es/src/modal/index.d.ts +963 -0
- package/es/src/modal/props.d.ts +283 -0
- package/es/src/pro-form/hooks/use-label-width.d.ts +312 -0
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +82 -2
- package/es/src/theme/ap-table/ap-table-index.css +12 -0
- package/es/src/theme/ap-table/ap-table.css +26 -0
- package/es/src/theme/work-order-modal/index.css +2 -2
- package/es/src/work-order-modal/style/index.css +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +35 -25
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-custom-column/column-select.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +235 -0
- package/lib/src/ap-form/interface.d.ts +1 -0
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +47 -0
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -0
- package/lib/src/ap-form/items/checkbox/index.vue2.js +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +5 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +378 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +184 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -0
- package/lib/src/ap-table/components/index/index.vue.d.ts +28 -0
- package/lib/src/ap-table/components/index/index.vue.js +1 -0
- package/lib/src/ap-table/components/index/index.vue2.js +1 -0
- package/lib/src/ap-table/components/interface.d.ts +10 -0
- package/lib/src/ap-table/components/style/index.css +12 -0
- package/lib/src/ap-table/constants.d.ts +11075 -0
- package/lib/src/ap-table/constants.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +5 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -0
- package/lib/src/ap-table/index.d.ts +5 -0
- package/lib/src/ap-table/index.js +1 -0
- package/lib/src/ap-table/interface.d.ts +41 -14
- package/lib/src/ap-table/interface.js +1 -0
- package/lib/src/ap-table/style/ap-table.css +26 -0
- package/lib/src/ap-table/utils.js +1 -0
- package/lib/src/config-provider/config-provider-props.d.ts +152 -0
- package/lib/src/config-provider/config-provider.d.ts +323 -0
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +154 -0
- package/lib/src/config-provider/index.d.ts +691 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +464 -0
- package/lib/src/modal/components/modal-footer.vue.d.ts +457 -0
- package/lib/src/modal/components/modal.d.ts +443 -0
- package/lib/src/modal/index.d.ts +963 -0
- package/lib/src/modal/props.d.ts +283 -0
- package/lib/src/pro-form/hooks/use-label-width.d.ts +312 -0
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +82 -2
- package/lib/src/theme/ap-table/ap-table-index.css +12 -0
- package/lib/src/theme/ap-table/ap-table.css +26 -0
- package/lib/src/theme/work-order-modal/index.css +2 -2
- package/lib/src/work-order-modal/style/index.css +2 -2
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as w, ref as i, watch as m, computed as
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { defineComponent as w, ref as i, watch as m, computed as V, openBlock as A, createBlock as B, unref as a, normalizeClass as c, withCtx as r, createElementVNode as p, createVNode as d, createTextVNode as D, toDisplayString as h } from "vue";
|
|
2
|
+
import { Flex as f, Checkbox as G, Divider as M, CheckboxGroup as S } from "ant-design-vue";
|
|
3
3
|
import "../config-provider/index.mjs";
|
|
4
4
|
import "./styles/column-select.css";
|
|
5
5
|
import { useGlobalConfig as U } from "../config-provider/hooks/use-global-config.mjs";
|
|
@@ -10,10 +10,10 @@ const H = /* @__PURE__ */ w({
|
|
|
10
10
|
columns: {}
|
|
11
11
|
},
|
|
12
12
|
emits: ["updateColumns"],
|
|
13
|
-
setup(
|
|
14
|
-
const u = i(!1), v = i(!1), t = i([]),
|
|
15
|
-
|
|
16
|
-
), { columns: n } =
|
|
13
|
+
setup(g, { emit: x }) {
|
|
14
|
+
const u = i(!1), v = i(!1), t = i([]), C = U("uiMode"), { b: k, e: o } = j(
|
|
15
|
+
C.value === "aplus" ? "column-select" : "column-select-admin"
|
|
16
|
+
), { columns: n } = g, b = x, _ = (e) => {
|
|
17
17
|
const s = e.target.checked;
|
|
18
18
|
t.value = s ? n.map((l) => l.dataIndex) : n.filter((l) => l.disabled && l.selected).map((l) => l.dataIndex);
|
|
19
19
|
}, I = (e) => {
|
|
@@ -28,7 +28,7 @@ const H = /* @__PURE__ */ w({
|
|
|
28
28
|
), m(
|
|
29
29
|
t,
|
|
30
30
|
() => {
|
|
31
|
-
v.value = t.value.length > 0 && t.value.length !== n.length,
|
|
31
|
+
v.value = t.value.length > 0 && t.value.length !== n.length, u.value = t.value.length === n.length;
|
|
32
32
|
},
|
|
33
33
|
{ deep: !0, immediate: !0 }
|
|
34
34
|
), m(
|
|
@@ -42,28 +42,28 @@ const H = /* @__PURE__ */ w({
|
|
|
42
42
|
},
|
|
43
43
|
{ deep: !0 }
|
|
44
44
|
);
|
|
45
|
-
const y =
|
|
45
|
+
const y = V(() => n.map((e) => ({
|
|
46
46
|
label: e.title,
|
|
47
47
|
value: e.dataIndex,
|
|
48
48
|
disabled: e.disabled
|
|
49
49
|
})));
|
|
50
|
-
return (e, s) => (
|
|
50
|
+
return (e, s) => (A(), B(a(f), {
|
|
51
51
|
vertical: "",
|
|
52
|
-
class:
|
|
52
|
+
class: c(a(k)())
|
|
53
53
|
}, {
|
|
54
54
|
default: r(() => [
|
|
55
55
|
p("p", {
|
|
56
|
-
class:
|
|
56
|
+
class: c(a(o)("des"))
|
|
57
57
|
}, "请选择需要展示在表格的字段", 2),
|
|
58
|
-
d(a(
|
|
59
|
-
class:
|
|
58
|
+
d(a(f), {
|
|
59
|
+
class: c(a(o)("all")),
|
|
60
60
|
justify: "space-between",
|
|
61
61
|
align: "center"
|
|
62
62
|
}, {
|
|
63
63
|
default: r(() => {
|
|
64
64
|
var l;
|
|
65
65
|
return [
|
|
66
|
-
d(a(
|
|
66
|
+
d(a(G), {
|
|
67
67
|
style: { padding: "0 6px;" },
|
|
68
68
|
checked: u.value,
|
|
69
69
|
"onUpdate:checked": s[0] || (s[0] = (N) => u.value = N),
|
|
@@ -71,20 +71,20 @@ const H = /* @__PURE__ */ w({
|
|
|
71
71
|
onChange: _
|
|
72
72
|
}, {
|
|
73
73
|
default: r(() => [
|
|
74
|
-
|
|
74
|
+
D("全选")
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["checked", "indeterminate"]),
|
|
78
78
|
p("span", {
|
|
79
|
-
class:
|
|
80
|
-
},
|
|
79
|
+
class: c(a(o)("statistics"))
|
|
80
|
+
}, h((l = t.value) == null ? void 0 : l.length) + "/" + h(e.columns.length), 3)
|
|
81
81
|
];
|
|
82
82
|
}),
|
|
83
83
|
_: 1
|
|
84
84
|
}, 8, ["class"]),
|
|
85
|
-
d(a(
|
|
85
|
+
d(a(M), { style: { margin: "12px 0 4px 0" } }),
|
|
86
86
|
p("div", {
|
|
87
|
-
class:
|
|
87
|
+
class: c(a(o)("content"))
|
|
88
88
|
}, [
|
|
89
89
|
d(a(S), {
|
|
90
90
|
value: t.value,
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { DefaultOptionType, SelectValue, LabeledValue } from 'ant-design-vue/es/select';
|
|
2
|
+
import { ApFieldSelectProps, FieldMode } from '../interface';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
4
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
|
+
import { ButtonSize } from 'ant-design-vue/es/button';
|
|
6
|
+
import { VueNode } from 'ant-design-vue/es/_util/type';
|
|
7
|
+
import { SelectHandler, FieldNames, FilterFunc } from 'ant-design-vue/es/vc-select/Select';
|
|
8
|
+
import { RenderDOMFunc, DropdownRender, CustomTagProps } from 'ant-design-vue/es/vc-select/BaseSelect';
|
|
9
|
+
import { AlignType } from 'ant-design-vue/es/vc-trigger/interface';
|
|
10
|
+
|
|
11
|
+
type ApFieldSelectSlots = {
|
|
12
|
+
notFoundContent: any;
|
|
13
|
+
suffixIcon: any;
|
|
14
|
+
itemIcon: any;
|
|
15
|
+
removeIcon: any;
|
|
16
|
+
clearIcon: any;
|
|
17
|
+
dropdownRender: any;
|
|
18
|
+
option: any;
|
|
19
|
+
placeholder: any;
|
|
20
|
+
tagRender: any;
|
|
21
|
+
maxTagPlaceholder: any;
|
|
22
|
+
optionLabel: any;
|
|
23
|
+
default: any;
|
|
24
|
+
};
|
|
25
|
+
declare function focus(): void;
|
|
26
|
+
declare function blur(): void;
|
|
27
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldSelectProps>, {
|
|
28
|
+
fieldProps: () => {};
|
|
29
|
+
emptyText: string;
|
|
30
|
+
mode: string;
|
|
31
|
+
}>, {
|
|
32
|
+
focus: typeof focus;
|
|
33
|
+
blur: typeof blur;
|
|
34
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
35
|
+
"update:value": (...args: any[]) => void;
|
|
36
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFieldSelectProps>, {
|
|
37
|
+
fieldProps: () => {};
|
|
38
|
+
emptyText: string;
|
|
39
|
+
mode: string;
|
|
40
|
+
}>>> & {
|
|
41
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
mode: FieldMode;
|
|
44
|
+
emptyText: string;
|
|
45
|
+
fieldProps: Omit<Partial< ExtractPropTypes<{
|
|
46
|
+
value: {
|
|
47
|
+
type: PropType<SelectValue>;
|
|
48
|
+
default: SelectValue;
|
|
49
|
+
};
|
|
50
|
+
defaultValue: {
|
|
51
|
+
type: PropType<SelectValue>;
|
|
52
|
+
default: SelectValue;
|
|
53
|
+
};
|
|
54
|
+
notFoundContent: VueTypeValidableDef<any>;
|
|
55
|
+
suffixIcon: VueTypeValidableDef<any>;
|
|
56
|
+
itemIcon: VueTypeValidableDef<any>;
|
|
57
|
+
size: {
|
|
58
|
+
type: PropType<ButtonSize>;
|
|
59
|
+
default: ButtonSize;
|
|
60
|
+
};
|
|
61
|
+
mode: {
|
|
62
|
+
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
63
|
+
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
64
|
+
};
|
|
65
|
+
bordered: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
transitionName: StringConstructor;
|
|
70
|
+
choiceTransitionName: {
|
|
71
|
+
type: PropType<"">;
|
|
72
|
+
default: "";
|
|
73
|
+
};
|
|
74
|
+
popupClassName: StringConstructor;
|
|
75
|
+
dropdownClassName: StringConstructor;
|
|
76
|
+
placement: {
|
|
77
|
+
type: PropType<"bottomLeft" | "bottomRight" | "topLeft" | "topRight">;
|
|
78
|
+
default: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
|
|
79
|
+
};
|
|
80
|
+
status: {
|
|
81
|
+
type: PropType<"" | "error" | "warning">;
|
|
82
|
+
default: "" | "error" | "warning";
|
|
83
|
+
};
|
|
84
|
+
'onUpdate:value': {
|
|
85
|
+
type: PropType<(val: SelectValue) => void>;
|
|
86
|
+
default: (val: SelectValue) => void;
|
|
87
|
+
};
|
|
88
|
+
children: PropType< VueNode[]>;
|
|
89
|
+
listHeight: NumberConstructor;
|
|
90
|
+
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
91
|
+
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
92
|
+
tabindex: NumberConstructor;
|
|
93
|
+
onClick: PropType<(e: MouseEvent) => void>;
|
|
94
|
+
onFocus: {
|
|
95
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
96
|
+
};
|
|
97
|
+
onBlur: {
|
|
98
|
+
type: PropType<(e: FocusEvent) => void>;
|
|
99
|
+
};
|
|
100
|
+
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
101
|
+
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
102
|
+
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
103
|
+
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
104
|
+
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
105
|
+
open: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: any;
|
|
108
|
+
};
|
|
109
|
+
animation: StringConstructor;
|
|
110
|
+
direction: {
|
|
111
|
+
type: PropType<"ltr" | "rtl">;
|
|
112
|
+
};
|
|
113
|
+
disabled: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: any;
|
|
116
|
+
};
|
|
117
|
+
prefixCls: StringConstructor;
|
|
118
|
+
id: StringConstructor;
|
|
119
|
+
autofocus: BooleanConstructor;
|
|
120
|
+
getPopupContainer: {
|
|
121
|
+
type: PropType<RenderDOMFunc>;
|
|
122
|
+
};
|
|
123
|
+
virtual: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: any;
|
|
126
|
+
};
|
|
127
|
+
dropdownMatchSelectWidth: {
|
|
128
|
+
type: PropType<number | boolean>;
|
|
129
|
+
default: any;
|
|
130
|
+
};
|
|
131
|
+
options: PropType<DefaultOptionType[]>;
|
|
132
|
+
showAction: {
|
|
133
|
+
type: PropType<("click" | "focus")[]>;
|
|
134
|
+
};
|
|
135
|
+
placeholder: VueTypeValidableDef<any>;
|
|
136
|
+
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
137
|
+
loading: {
|
|
138
|
+
type: BooleanConstructor;
|
|
139
|
+
default: any;
|
|
140
|
+
};
|
|
141
|
+
clearIcon: VueTypeValidableDef<any>;
|
|
142
|
+
allowClear: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: any;
|
|
145
|
+
};
|
|
146
|
+
onSearch: PropType<(value: string) => void>;
|
|
147
|
+
fieldNames: PropType<FieldNames>;
|
|
148
|
+
dropdownStyle: {
|
|
149
|
+
type: PropType<CSSProperties>;
|
|
150
|
+
};
|
|
151
|
+
dropdownRender: {
|
|
152
|
+
type: PropType<DropdownRender>;
|
|
153
|
+
};
|
|
154
|
+
dropdownAlign: PropType<AlignType>;
|
|
155
|
+
showSearch: {
|
|
156
|
+
type: BooleanConstructor;
|
|
157
|
+
default: any;
|
|
158
|
+
};
|
|
159
|
+
searchValue: StringConstructor;
|
|
160
|
+
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
161
|
+
removeIcon: VueTypeValidableDef<any>;
|
|
162
|
+
maxTagCount: {
|
|
163
|
+
type: PropType<number | "responsive">;
|
|
164
|
+
};
|
|
165
|
+
maxTagTextLength: NumberConstructor;
|
|
166
|
+
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
167
|
+
tokenSeparators: {
|
|
168
|
+
type: PropType<string[]>;
|
|
169
|
+
};
|
|
170
|
+
tagRender: {
|
|
171
|
+
type: PropType<(props: CustomTagProps) => any>;
|
|
172
|
+
};
|
|
173
|
+
optionLabelRender: {
|
|
174
|
+
type: PropType<(option: Record<string, any>) => any>;
|
|
175
|
+
};
|
|
176
|
+
onClear: PropType<() => void>;
|
|
177
|
+
defaultOpen: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: any;
|
|
180
|
+
};
|
|
181
|
+
onDropdownVisibleChange: {
|
|
182
|
+
type: PropType<(open: boolean) => void>;
|
|
183
|
+
};
|
|
184
|
+
showArrow: {
|
|
185
|
+
type: BooleanConstructor;
|
|
186
|
+
default: any;
|
|
187
|
+
};
|
|
188
|
+
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
189
|
+
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
190
|
+
listItemHeight: NumberConstructor;
|
|
191
|
+
inputValue: StringConstructor;
|
|
192
|
+
autoClearSearchValue: {
|
|
193
|
+
type: BooleanConstructor;
|
|
194
|
+
default: any;
|
|
195
|
+
};
|
|
196
|
+
filterOption: {
|
|
197
|
+
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
198
|
+
default: any;
|
|
199
|
+
};
|
|
200
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
201
|
+
optionFilterProp: StringConstructor;
|
|
202
|
+
optionLabelProp: StringConstructor;
|
|
203
|
+
defaultActiveFirstOption: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: any;
|
|
206
|
+
};
|
|
207
|
+
labelInValue: {
|
|
208
|
+
type: BooleanConstructor;
|
|
209
|
+
default: any;
|
|
210
|
+
};
|
|
211
|
+
}>>, "mode" | "value" | "onUpdate:value" | "onSearch">;
|
|
212
|
+
}, {}>, Readonly<ApFieldSelectSlots> & ApFieldSelectSlots>;
|
|
213
|
+
export default _default;
|
|
214
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
215
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
216
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
217
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
218
|
+
} : {
|
|
219
|
+
type: PropType<T[K]>;
|
|
220
|
+
required: true;
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
type __VLS_WithDefaults<P, D> = {
|
|
224
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
225
|
+
default: D[K];
|
|
226
|
+
}> : P[K];
|
|
227
|
+
};
|
|
228
|
+
type __VLS_Prettify<T> = {
|
|
229
|
+
[K in keyof T]: T[K];
|
|
230
|
+
} & {};
|
|
231
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
232
|
+
new (): {
|
|
233
|
+
$slots: S;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ApFormItemCheckboxProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { ApFieldCheckboxProps } from '../../../ap-field';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
|
|
6
|
+
hasFeedback: boolean;
|
|
7
|
+
colon: undefined;
|
|
8
|
+
autoLink: boolean;
|
|
9
|
+
required: undefined;
|
|
10
|
+
validateFirst: undefined;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
field: () => {};
|
|
13
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormItemCheckboxProps>, {
|
|
14
|
+
hasFeedback: boolean;
|
|
15
|
+
colon: undefined;
|
|
16
|
+
autoLink: boolean;
|
|
17
|
+
required: undefined;
|
|
18
|
+
validateFirst: undefined;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
field: () => {};
|
|
21
|
+
}>>>, {
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
required: boolean;
|
|
24
|
+
field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
|
|
25
|
+
colon: boolean;
|
|
26
|
+
hasFeedback: boolean;
|
|
27
|
+
autoLink: boolean;
|
|
28
|
+
validateFirst: boolean;
|
|
29
|
+
}, {}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
33
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
34
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
35
|
+
} : {
|
|
36
|
+
type: PropType<T[K]>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { defineComponent as t, openBlock as r, createBlock as d, normalizeProps as i, guardReactiveProps as p, unref as o, withCtx as n, createVNode as s, mergeProps as f } from "vue";
|
|
2
|
+
import "../../ap-form-item.vue2.mjs";
|
|
3
|
+
import "../../../ap-field/index.mjs";
|
|
4
|
+
import { omit as m } from "lodash-unified";
|
|
5
|
+
import u from "../../ap-form-item.vue.mjs";
|
|
6
|
+
import c from "../../../ap-field/checkbox/index.vue.mjs";
|
|
7
|
+
const g = /* @__PURE__ */ t({
|
|
8
|
+
name: "ApFormItemCheckbox",
|
|
9
|
+
__name: "index",
|
|
10
|
+
props: {
|
|
11
|
+
htmlFor: {},
|
|
12
|
+
prefixCls: {},
|
|
13
|
+
label: {},
|
|
14
|
+
help: {},
|
|
15
|
+
extra: {},
|
|
16
|
+
labelCol: {},
|
|
17
|
+
wrapperCol: {},
|
|
18
|
+
hasFeedback: { type: Boolean, default: !1 },
|
|
19
|
+
colon: { type: Boolean, default: void 0 },
|
|
20
|
+
labelAlign: {},
|
|
21
|
+
prop: {},
|
|
22
|
+
name: {},
|
|
23
|
+
rules: {},
|
|
24
|
+
autoLink: { type: Boolean, default: !0 },
|
|
25
|
+
required: { type: Boolean, default: void 0 },
|
|
26
|
+
validateFirst: { type: Boolean, default: void 0 },
|
|
27
|
+
validateStatus: {},
|
|
28
|
+
validateTrigger: {},
|
|
29
|
+
messageVariables: {},
|
|
30
|
+
hidden: { type: Boolean },
|
|
31
|
+
noStyle: { type: Boolean },
|
|
32
|
+
tooltip: {},
|
|
33
|
+
span: {},
|
|
34
|
+
order: {},
|
|
35
|
+
offset: {},
|
|
36
|
+
push: {},
|
|
37
|
+
pull: {},
|
|
38
|
+
xs: {},
|
|
39
|
+
sm: {},
|
|
40
|
+
md: {},
|
|
41
|
+
lg: {},
|
|
42
|
+
xl: {},
|
|
43
|
+
xxl: {},
|
|
44
|
+
flex: {},
|
|
45
|
+
valuePropName: {},
|
|
46
|
+
field: { default: () => ({}) },
|
|
47
|
+
disabled: { type: Boolean, default: !1 }
|
|
48
|
+
},
|
|
49
|
+
setup(l) {
|
|
50
|
+
const a = l;
|
|
51
|
+
return (e, b) => (r(), d(u, i(p(o(m)(a, ["field", "disabled"]))), {
|
|
52
|
+
default: n(() => [
|
|
53
|
+
s(o(c), f({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 16));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export {
|
|
60
|
+
g as default
|
|
61
|
+
};
|
|
@@ -6,5 +6,6 @@ import { default as ApFormItemDateRange } from './date-range/index.vue';
|
|
|
6
6
|
import { default as ApFormItemRadio } from './radio/index.vue';
|
|
7
7
|
import { default as ApFormItemSelect } from './select/index.vue';
|
|
8
8
|
import { default as ApFormItemSwitch } from './switch/index.vue';
|
|
9
|
+
import { default as ApFormItemCheckbox } from './checkbox/index.vue';
|
|
9
10
|
|
|
10
|
-
export { ApFormItemText, ApFormItemTextArea, ApFormItemNumber, ApFormItemDate, ApFormItemDateRange, ApFormItemRadio, ApFormItemSelect, ApFormItemSwitch };
|
|
11
|
+
export { ApFormItemText, ApFormItemTextArea, ApFormItemNumber, ApFormItemDate, ApFormItemDateRange, ApFormItemRadio, ApFormItemSelect, ApFormItemSwitch, ApFormItemCheckbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextProps } from '
|
|
1
|
+
import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
|
|
2
2
|
import { ApFormItemProps } from '../interface';
|
|
3
3
|
|
|
4
4
|
export type ApFormItemTextProps = ApFormItemProps & {
|
|
@@ -39,3 +39,7 @@ export type ApFormItemSwitchProps = Omit<ApFormItemProps, 'bordered'> & {
|
|
|
39
39
|
field?: Omit<ApFieldSwitchProps, 'checked' | 'onUpdate:checked'>;
|
|
40
40
|
disabled?: boolean;
|
|
41
41
|
};
|
|
42
|
+
export type ApFormItemCheckboxProps = Omit<ApFormItemProps, 'bordered'> & {
|
|
43
|
+
field?: Omit<ApFieldCheckboxProps, 'value' | 'onUpdate:value'>;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
};
|