vft 0.0.483 → 0.0.485
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/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/button/index.d.ts +9 -9
- package/es/components/carousel/use-carousel.js +1 -1
- package/es/components/input/input.vue2.js +4 -4
- package/es/components/input-tag/composables/use-input-tag.js +1 -1
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/super-form/super-form-action.vue2.js +55 -55
- package/es/components/super-form/super-form-item.vue2.js +1 -1
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/es/utils/vue/vnode.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/input/input.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
63
63
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
64
64
|
readonly effect?: "light" | "dark" | undefined;
|
|
65
|
+
readonly visible?: boolean | null | undefined;
|
|
65
66
|
readonly teleported?: boolean | undefined;
|
|
66
67
|
readonly open?: boolean | undefined;
|
|
67
|
-
readonly visible?: boolean | null | undefined;
|
|
68
68
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
69
69
|
readonly arrowOffset?: number | undefined;
|
|
70
70
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
480
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
481
481
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
482
482
|
readonly effect?: "light" | "dark" | undefined;
|
|
483
|
+
readonly visible?: boolean | null | undefined;
|
|
483
484
|
readonly teleported?: boolean | undefined;
|
|
484
485
|
readonly open?: boolean | undefined;
|
|
485
|
-
readonly visible?: boolean | null | undefined;
|
|
486
486
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
487
487
|
readonly arrowOffset?: number | undefined;
|
|
488
488
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -85,9 +85,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
85
85
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
86
86
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
87
87
|
readonly effect?: "light" | "dark" | undefined;
|
|
88
|
+
readonly visible?: boolean | null | undefined;
|
|
88
89
|
readonly teleported?: boolean | undefined;
|
|
89
90
|
readonly open?: boolean | undefined;
|
|
90
|
-
readonly visible?: boolean | null | undefined;
|
|
91
91
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
92
92
|
readonly arrowOffset?: number | undefined;
|
|
93
93
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -503,9 +503,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
503
503
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
504
504
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
505
505
|
readonly effect?: "light" | "dark" | undefined;
|
|
506
|
+
readonly visible?: boolean | null | undefined;
|
|
506
507
|
readonly teleported?: boolean | undefined;
|
|
507
508
|
readonly open?: boolean | undefined;
|
|
508
|
-
readonly visible?: boolean | null | undefined;
|
|
509
509
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
510
510
|
readonly arrowOffset?: number | undefined;
|
|
511
511
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1006,9 +1006,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1006
1006
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1007
1007
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1008
1008
|
readonly effect?: "light" | "dark" | undefined;
|
|
1009
|
+
readonly visible?: boolean | null | undefined;
|
|
1009
1010
|
readonly teleported?: boolean | undefined;
|
|
1010
1011
|
readonly open?: boolean | undefined;
|
|
1011
|
-
readonly visible?: boolean | null | undefined;
|
|
1012
1012
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1013
1013
|
readonly arrowOffset?: number | undefined;
|
|
1014
1014
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1424,9 +1424,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1424
1424
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1425
1425
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1426
1426
|
readonly effect?: "light" | "dark" | undefined;
|
|
1427
|
+
readonly visible?: boolean | null | undefined;
|
|
1427
1428
|
readonly teleported?: boolean | undefined;
|
|
1428
1429
|
readonly open?: boolean | undefined;
|
|
1429
|
-
readonly visible?: boolean | null | undefined;
|
|
1430
1430
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1431
1431
|
readonly arrowOffset?: number | undefined;
|
|
1432
1432
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1916,9 +1916,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1916
1916
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1917
1917
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1918
1918
|
readonly effect?: "light" | "dark" | undefined;
|
|
1919
|
+
readonly visible?: boolean | null | undefined;
|
|
1919
1920
|
readonly teleported?: boolean | undefined;
|
|
1920
1921
|
readonly open?: boolean | undefined;
|
|
1921
|
-
readonly visible?: boolean | null | undefined;
|
|
1922
1922
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1923
1923
|
readonly arrowOffset?: number | undefined;
|
|
1924
1924
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -2334,9 +2334,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
2334
2334
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
2335
2335
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
2336
2336
|
readonly effect?: "light" | "dark" | undefined;
|
|
2337
|
+
readonly visible?: boolean | null | undefined;
|
|
2337
2338
|
readonly teleported?: boolean | undefined;
|
|
2338
2339
|
readonly open?: boolean | undefined;
|
|
2339
|
-
readonly visible?: boolean | null | undefined;
|
|
2340
2340
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
2341
2341
|
readonly arrowOffset?: number | undefined;
|
|
2342
2342
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
24
24
|
autofocus: {
|
|
25
25
|
type: import("vue").PropType<boolean>;
|
|
26
26
|
};
|
|
27
|
-
dark: {
|
|
28
|
-
type: import("vue").PropType<boolean>;
|
|
29
|
-
};
|
|
30
27
|
icon: {
|
|
31
28
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
32
29
|
};
|
|
30
|
+
dark: {
|
|
31
|
+
type: import("vue").PropType<boolean>;
|
|
32
|
+
};
|
|
33
33
|
loading: {
|
|
34
34
|
type: import("vue").PropType<boolean>;
|
|
35
35
|
};
|
|
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
114
114
|
autofocus: {
|
|
115
115
|
type: import("vue").PropType<boolean>;
|
|
116
116
|
};
|
|
117
|
-
dark: {
|
|
118
|
-
type: import("vue").PropType<boolean>;
|
|
119
|
-
};
|
|
120
117
|
icon: {
|
|
121
118
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
122
119
|
};
|
|
120
|
+
dark: {
|
|
121
|
+
type: import("vue").PropType<boolean>;
|
|
122
|
+
};
|
|
123
123
|
loading: {
|
|
124
124
|
type: import("vue").PropType<boolean>;
|
|
125
125
|
};
|
|
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
autofocus: {
|
|
200
200
|
type: import("vue").PropType<boolean>;
|
|
201
201
|
};
|
|
202
|
-
dark: {
|
|
203
|
-
type: import("vue").PropType<boolean>;
|
|
204
|
-
};
|
|
205
202
|
icon: {
|
|
206
203
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
207
204
|
};
|
|
205
|
+
dark: {
|
|
206
|
+
type: import("vue").PropType<boolean>;
|
|
207
|
+
};
|
|
208
208
|
loading: {
|
|
209
209
|
type: import("vue").PropType<boolean>;
|
|
210
210
|
};
|
|
@@ -11,7 +11,7 @@ import "../../hooks/use-model-toggle/index.js";
|
|
|
11
11
|
import { useOrderedChildren as ge } from "../../hooks/use-ordered-children/index.js";
|
|
12
12
|
import "@popperjs/core";
|
|
13
13
|
import "../../hooks/use-z-index/index.js";
|
|
14
|
-
import {
|
|
14
|
+
import { CAROUSEL_ITEM_NAME as H, carouselContextKey as Se } from "./constants.js";
|
|
15
15
|
const L = 300, ze = (t, O, M) => {
|
|
16
16
|
const {
|
|
17
17
|
children: o,
|
|
@@ -13,8 +13,8 @@ import "../../hooks/use-z-index/index.js";
|
|
|
13
13
|
import { UPDATE_MODEL_EVENT as Q } from "@vft/constants";
|
|
14
14
|
import { useAttrs as Ze, useCursor as _e } from "@vft/use";
|
|
15
15
|
import { calcTextareaHeight as he } from "./utils.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { useFormSize as et, useFormDisabled as tt } from "../form/hooks/use-form-common-props.js";
|
|
17
|
+
import { useFormItem as at, useFormItemInputId as nt } from "../form/hooks/use-form-item.js";
|
|
18
18
|
const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"], st = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"], It = /* @__PURE__ */ Oe({
|
|
19
19
|
__name: "input",
|
|
20
20
|
props: {
|
|
@@ -85,9 +85,9 @@ const ot = ["role"], lt = ["id", "type", "disabled", "formatter", "parser", "rea
|
|
|
85
85
|
n.is("focus", v.value)
|
|
86
86
|
]), d = Ze({
|
|
87
87
|
excludeKeys: l(() => Object.keys(X.value))
|
|
88
|
-
}), { form: Ce, formItem: F } =
|
|
88
|
+
}), { form: Ce, formItem: F } = at(), { inputId: Y } = nt(we.props, {
|
|
89
89
|
formItemContext: F
|
|
90
|
-
}), ke =
|
|
90
|
+
}), ke = et(), x = tt(), n = ye("input"), Z = ye("textarea"), M = H(), p = H(), v = S(!1), N = S(!1), C = S(!1), K = S(!1), _ = S(), O = H(e.inputStyle), k = l(() => M.value || p.value), T = l(() => G(e.prefixIcon, "icon", { size: 16 })), ee = l(() => G(e.suffixIcon, "icon", { size: 16 })), Ie = l(() => G(e.clearIcon, "icon", {
|
|
91
91
|
icon: "icon-circle-close",
|
|
92
92
|
size: 16
|
|
93
93
|
})), te = l(() => Ce?.statusIcon ?? !1), I = l(() => F?.validateState || ""), ae = l(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
|
|
2
2
|
import { EVENT_CODE as g } from "../../../constants/aria.js";
|
|
3
|
-
import { CHANGE_EVENT as i,
|
|
3
|
+
import { CHANGE_EVENT as i, INPUT_EVENT as H, UPDATE_MODEL_EVENT as d } from "../../../constants/event.js";
|
|
4
4
|
import "@vueuse/core";
|
|
5
5
|
import { isUndefined as K } from "@vft/utils";
|
|
6
6
|
import { debugWarn as C } from "../../../utils/error.js";
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
teleported: {
|
|
11
|
-
type: import("vue").PropType<boolean>;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
10
|
icon: {
|
|
15
11
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
12
|
default: string;
|
|
17
13
|
};
|
|
14
|
+
teleported: {
|
|
15
|
+
type: import("vue").PropType<boolean>;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
teleported: boolean;
|
|
56
55
|
icon: string | import("vft/es/vft").IconProps;
|
|
56
|
+
teleported: boolean;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
teleported: {
|
|
78
|
-
type: import("vue").PropType<boolean>;
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
77
|
icon: {
|
|
82
78
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
79
|
default: string;
|
|
84
80
|
};
|
|
81
|
+
teleported: {
|
|
82
|
+
type: import("vue").PropType<boolean>;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
teleported: boolean;
|
|
120
119
|
icon: string | import("vft/es/vft").IconProps;
|
|
120
|
+
teleported: boolean;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
teleported: {
|
|
139
|
-
type: import("vue").PropType<boolean>;
|
|
140
|
-
default: boolean;
|
|
141
|
-
};
|
|
142
138
|
icon: {
|
|
143
139
|
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
140
|
default: string;
|
|
145
141
|
};
|
|
142
|
+
teleported: {
|
|
143
|
+
type: import("vue").PropType<boolean>;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
teleported: boolean;
|
|
184
183
|
icon: string | import("vft/es/vft").IconProps;
|
|
184
|
+
teleported: boolean;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
teleported: boolean;
|
|
47
46
|
icon: string | IconProps;
|
|
47
|
+
teleported: boolean;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -259,9 +259,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
259
259
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
260
260
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
261
261
|
readonly effect?: "light" | "dark" | undefined;
|
|
262
|
+
readonly visible?: boolean | null | undefined;
|
|
262
263
|
readonly teleported?: boolean | undefined;
|
|
263
264
|
readonly open?: boolean | undefined;
|
|
264
|
-
readonly visible?: boolean | null | undefined;
|
|
265
265
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
266
266
|
readonly arrowOffset?: number | undefined;
|
|
267
267
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -677,9 +677,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
677
677
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
678
678
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
679
679
|
readonly effect?: "light" | "dark" | undefined;
|
|
680
|
+
readonly visible?: boolean | null | undefined;
|
|
680
681
|
readonly teleported?: boolean | undefined;
|
|
681
682
|
readonly open?: boolean | undefined;
|
|
682
|
-
readonly visible?: boolean | null | undefined;
|
|
683
683
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
684
684
|
readonly arrowOffset?: number | undefined;
|
|
685
685
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1096,9 +1096,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1096
1096
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1097
1097
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1098
1098
|
readonly effect?: "light" | "dark" | undefined;
|
|
1099
|
+
readonly visible?: boolean | null | undefined;
|
|
1099
1100
|
readonly teleported?: boolean | undefined;
|
|
1100
1101
|
readonly open?: boolean | undefined;
|
|
1101
|
-
readonly visible?: boolean | null | undefined;
|
|
1102
1102
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1103
1103
|
readonly arrowOffset?: number | undefined;
|
|
1104
1104
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1514,9 +1514,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1514
1514
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1515
1515
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1516
1516
|
readonly effect?: "light" | "dark" | undefined;
|
|
1517
|
+
readonly visible?: boolean | null | undefined;
|
|
1517
1518
|
readonly teleported?: boolean | undefined;
|
|
1518
1519
|
readonly open?: boolean | undefined;
|
|
1519
|
-
readonly visible?: boolean | null | undefined;
|
|
1520
1520
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1521
1521
|
readonly arrowOffset?: number | undefined;
|
|
1522
1522
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -255,9 +255,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
255
255
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
256
256
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
257
257
|
readonly effect?: "light" | "dark" | undefined;
|
|
258
|
+
readonly visible?: boolean | null | undefined;
|
|
258
259
|
readonly teleported?: boolean | undefined;
|
|
259
260
|
readonly open?: boolean | undefined;
|
|
260
|
-
readonly visible?: boolean | null | undefined;
|
|
261
261
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
262
262
|
readonly arrowOffset?: number | undefined;
|
|
263
263
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -673,9 +673,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
673
673
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
674
674
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
675
675
|
readonly effect?: "light" | "dark" | undefined;
|
|
676
|
+
readonly visible?: boolean | null | undefined;
|
|
676
677
|
readonly teleported?: boolean | undefined;
|
|
677
678
|
readonly open?: boolean | undefined;
|
|
678
|
-
readonly visible?: boolean | null | undefined;
|
|
679
679
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
680
680
|
readonly arrowOffset?: number | undefined;
|
|
681
681
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1092,9 +1092,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1092
1092
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1093
1093
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1094
1094
|
readonly effect?: "light" | "dark" | undefined;
|
|
1095
|
+
readonly visible?: boolean | null | undefined;
|
|
1095
1096
|
readonly teleported?: boolean | undefined;
|
|
1096
1097
|
readonly open?: boolean | undefined;
|
|
1097
|
-
readonly visible?: boolean | null | undefined;
|
|
1098
1098
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1099
1099
|
readonly arrowOffset?: number | undefined;
|
|
1100
1100
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1510,9 +1510,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1510
1510
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1511
1511
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1512
1512
|
readonly effect?: "light" | "dark" | undefined;
|
|
1513
|
+
readonly visible?: boolean | null | undefined;
|
|
1513
1514
|
readonly teleported?: boolean | undefined;
|
|
1514
1515
|
readonly open?: boolean | undefined;
|
|
1515
|
-
readonly visible?: boolean | null | undefined;
|
|
1516
1516
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1517
1517
|
readonly arrowOffset?: number | undefined;
|
|
1518
1518
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -103,9 +103,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
103
103
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
104
104
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
105
105
|
readonly effect?: "light" | "dark" | undefined;
|
|
106
|
+
readonly visible?: boolean | null | undefined;
|
|
106
107
|
readonly teleported?: boolean | undefined;
|
|
107
108
|
readonly open?: boolean | undefined;
|
|
108
|
-
readonly visible?: boolean | null | undefined;
|
|
109
109
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
110
110
|
readonly arrowOffset?: number | undefined;
|
|
111
111
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -521,9 +521,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
521
521
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
522
522
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
523
523
|
readonly effect?: "light" | "dark" | undefined;
|
|
524
|
+
readonly visible?: boolean | null | undefined;
|
|
524
525
|
readonly teleported?: boolean | undefined;
|
|
525
526
|
readonly open?: boolean | undefined;
|
|
526
|
-
readonly visible?: boolean | null | undefined;
|
|
527
527
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
528
528
|
readonly arrowOffset?: number | undefined;
|
|
529
529
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -940,9 +940,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
940
940
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
941
941
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
942
942
|
readonly effect?: "light" | "dark" | undefined;
|
|
943
|
+
readonly visible?: boolean | null | undefined;
|
|
943
944
|
readonly teleported?: boolean | undefined;
|
|
944
945
|
readonly open?: boolean | undefined;
|
|
945
|
-
readonly visible?: boolean | null | undefined;
|
|
946
946
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
947
947
|
readonly arrowOffset?: number | undefined;
|
|
948
948
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1358,9 +1358,9 @@ declare const useSelect: (props: SelectV2Props, emit: any) => {
|
|
|
1358
1358
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1359
1359
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1360
1360
|
readonly effect?: "light" | "dark" | undefined;
|
|
1361
|
+
readonly visible?: boolean | null | undefined;
|
|
1361
1362
|
readonly teleported?: boolean | undefined;
|
|
1362
1363
|
readonly open?: boolean | undefined;
|
|
1363
|
-
readonly visible?: boolean | null | undefined;
|
|
1364
1364
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
1365
1365
|
readonly arrowOffset?: number | undefined;
|
|
1366
1366
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as g, computed as
|
|
2
|
-
import { VftButton as
|
|
3
|
-
import { VftFormItem as
|
|
4
|
-
import { VftRow as
|
|
1
|
+
import { defineComponent as g, computed as i, createBlock as l, createCommentVNode as c, openBlock as r, unref as o, normalizeProps as x, mergeProps as p, withCtx as u, createVNode as R, normalizeClass as T, renderSlot as b, createTextVNode as B, toDisplayString as f } from "vue";
|
|
2
|
+
import { VftButton as v } from "../button/index.js";
|
|
3
|
+
import { VftFormItem as N } from "../form/index.js";
|
|
4
|
+
import { VftRow as V } from "../row/index.js";
|
|
5
5
|
import "@vueuse/core";
|
|
6
6
|
import "@vft/utils";
|
|
7
7
|
import "../config-provider/hooks/use-global-config.js";
|
|
8
8
|
import "lodash-es";
|
|
9
|
-
import { useNamespace as
|
|
9
|
+
import { useNamespace as S } from "../../hooks/use-namespace/index.js";
|
|
10
10
|
import "../../hooks/use-model-toggle/index.js";
|
|
11
11
|
import "@popperjs/core";
|
|
12
12
|
import "../../hooks/use-z-index/index.js";
|
|
13
|
-
import { useFormContext as
|
|
14
|
-
const
|
|
13
|
+
import { useFormContext as j } from "./use/use-form-context.js";
|
|
14
|
+
const M = /* @__PURE__ */ g({
|
|
15
15
|
__name: "super-form-action",
|
|
16
16
|
props: {
|
|
17
17
|
showResetButton: { type: Boolean },
|
|
@@ -23,86 +23,86 @@ const Q = /* @__PURE__ */ g({
|
|
|
23
23
|
actionRowOptions: {},
|
|
24
24
|
submitResetReverse: { type: Boolean }
|
|
25
25
|
},
|
|
26
|
-
setup(
|
|
27
|
-
const m =
|
|
26
|
+
setup(t) {
|
|
27
|
+
const m = S("form-action"), { resetAction: d, submitAction: h, commonAction: C } = j(), k = i(() => ({
|
|
28
28
|
justify: "end",
|
|
29
|
-
...
|
|
30
|
-
})),
|
|
31
|
-
() => Object.assign({ btnText: "重置" },
|
|
32
|
-
),
|
|
33
|
-
() => Object.assign({ btnText: "确认" },
|
|
34
|
-
),
|
|
35
|
-
() => Object.assign({ btnText: "取消" },
|
|
29
|
+
...t.actionRowOptions
|
|
30
|
+
})), O = i(
|
|
31
|
+
() => Object.assign({ btnText: "重置" }, t.resetButtonOptions)
|
|
32
|
+
), w = i(
|
|
33
|
+
() => Object.assign({ btnText: "确认" }, t.submitButtonOptions)
|
|
34
|
+
), a = i(
|
|
35
|
+
() => Object.assign({ btnText: "取消" }, t.commonButtonOptions)
|
|
36
36
|
), y = (e) => ({
|
|
37
37
|
type: e ? "warning" : "primary",
|
|
38
|
-
options: e ?
|
|
39
|
-
action: e ?
|
|
38
|
+
options: e ? O.value : w.value,
|
|
39
|
+
action: e ? d : h,
|
|
40
40
|
className: e ? m.e("reset") : m.e("submit"),
|
|
41
|
-
show: e ?
|
|
42
|
-
}),
|
|
43
|
-
() => y(!
|
|
44
|
-
),
|
|
45
|
-
() => y(
|
|
41
|
+
show: e ? t.showResetButton : t.showSubmitButton
|
|
42
|
+
}), n = i(
|
|
43
|
+
() => y(!t.submitResetReverse)
|
|
44
|
+
), s = i(
|
|
45
|
+
() => y(t.submitResetReverse)
|
|
46
46
|
);
|
|
47
|
-
return (e,
|
|
47
|
+
return (e, A) => t.showCommonButton || n.value.show || s.value.show ? (r(), l(o(V), x(p({ key: 0 }, k.value)), {
|
|
48
48
|
default: u(() => [
|
|
49
|
-
|
|
50
|
-
class:
|
|
49
|
+
R(o(N), {
|
|
50
|
+
class: T([{ "submit-block": w.value.block }, o(m).b()])
|
|
51
51
|
}, {
|
|
52
52
|
default: u(() => [
|
|
53
|
-
|
|
54
|
-
class:
|
|
55
|
-
onClick:
|
|
53
|
+
t.showCommonButton && !a.value.isBehind ? (r(), l(o(v), p({ key: 0 }, a.value, {
|
|
54
|
+
class: o(m).e("common"),
|
|
55
|
+
onClick: o(C)
|
|
56
56
|
}), {
|
|
57
57
|
default: u(() => [
|
|
58
|
-
B(f(
|
|
58
|
+
B(f(a.value.btnText), 1)
|
|
59
59
|
]),
|
|
60
60
|
_: 1
|
|
61
|
-
}, 16, ["class", "onClick"])) :
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
}, 16, ["class", "onClick"])) : c("", !0),
|
|
62
|
+
b(e.$slots, "resetBefore"),
|
|
63
|
+
n.value.show ? (r(), l(o(v), p({
|
|
64
64
|
key: 1,
|
|
65
|
-
type:
|
|
66
|
-
},
|
|
67
|
-
onClick:
|
|
68
|
-
class:
|
|
65
|
+
type: n.value.type
|
|
66
|
+
}, n.value.options, {
|
|
67
|
+
onClick: n.value.action,
|
|
68
|
+
class: n.value.className
|
|
69
69
|
}), {
|
|
70
70
|
default: u(() => [
|
|
71
|
-
B(f(
|
|
71
|
+
B(f(n.value.options.btnText), 1)
|
|
72
72
|
]),
|
|
73
73
|
_: 1
|
|
74
|
-
}, 16, ["type", "onClick", "class"])) :
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
}, 16, ["type", "onClick", "class"])) : c("", !0),
|
|
75
|
+
b(e.$slots, "submitBefore"),
|
|
76
|
+
s.value.show ? (r(), l(o(v), p({
|
|
77
77
|
key: 2,
|
|
78
|
-
type:
|
|
79
|
-
},
|
|
80
|
-
onClick:
|
|
81
|
-
class:
|
|
78
|
+
type: s.value.type
|
|
79
|
+
}, s.value.options, {
|
|
80
|
+
onClick: s.value.action,
|
|
81
|
+
class: s.value.className
|
|
82
82
|
}), {
|
|
83
83
|
default: u(() => [
|
|
84
|
-
B(f(
|
|
84
|
+
B(f(s.value.options.btnText), 1)
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
|
-
}, 16, ["type", "onClick", "class"])) :
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
class:
|
|
91
|
-
onClick:
|
|
87
|
+
}, 16, ["type", "onClick", "class"])) : c("", !0),
|
|
88
|
+
b(e.$slots, "submitAfter"),
|
|
89
|
+
t.showCommonButton && a.value.isBehind ? (r(), l(o(v), p({ key: 3 }, a.value, {
|
|
90
|
+
class: o(m).e("common"),
|
|
91
|
+
onClick: o(C)
|
|
92
92
|
}), {
|
|
93
93
|
default: u(() => [
|
|
94
|
-
B(f(
|
|
94
|
+
B(f(a.value.btnText), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
|
-
}, 16, ["class", "onClick"])) :
|
|
97
|
+
}, 16, ["class", "onClick"])) : c("", !0)
|
|
98
98
|
]),
|
|
99
99
|
_: 3
|
|
100
100
|
}, 8, ["class"])
|
|
101
101
|
]),
|
|
102
102
|
_: 3
|
|
103
|
-
}, 16));
|
|
103
|
+
}, 16)) : c("", !0);
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
M as default
|
|
108
108
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as X, computed as j, ref as re, unref as c, useSlots as oe, createVNode as a, mergeProps as q, withDirectives as ie, vShow as ne,
|
|
1
|
+
import { defineComponent as X, computed as j, ref as re, unref as c, useSlots as oe, createVNode as a, mergeProps as q, withDirectives as ie, vShow as ne, isVNode as le, createTextVNode as O, resolveComponent as N } from "vue";
|
|
2
2
|
import "../alert/index.js";
|
|
3
3
|
import "../avatar/index.js";
|
|
4
4
|
import "../avatar-stack/index.js";
|
package/es/package.json.d.ts
CHANGED
package/es/package.json.js
CHANGED
package/es/utils/vue/vnode.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isArray as E, hasOwn as m, camelize as N } from "@vft/utils";
|
|
2
2
|
import { isVNode as o, Fragment as S, Comment as A, Text as s, createCommentVNode as L, createBlock as _, openBlock as C } from "vue";
|
|
3
3
|
import { debugWarn as O } from "../error.js";
|
|
4
4
|
const R = "utils/vue/vnode";
|
|
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
63
63
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
64
64
|
readonly effect?: "light" | "dark" | undefined;
|
|
65
|
+
readonly visible?: boolean | null | undefined;
|
|
65
66
|
readonly teleported?: boolean | undefined;
|
|
66
67
|
readonly open?: boolean | undefined;
|
|
67
|
-
readonly visible?: boolean | null | undefined;
|
|
68
68
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
69
69
|
readonly arrowOffset?: number | undefined;
|
|
70
70
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
480
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
481
481
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
482
482
|
readonly effect?: "light" | "dark" | undefined;
|
|
483
|
+
readonly visible?: boolean | null | undefined;
|
|
483
484
|
readonly teleported?: boolean | undefined;
|
|
484
485
|
readonly open?: boolean | undefined;
|
|
485
|
-
readonly visible?: boolean | null | undefined;
|
|
486
486
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
487
487
|
readonly arrowOffset?: number | undefined;
|
|
488
488
|
readonly gpuAcceleration?: boolean | undefined;
|