@creatorsn/vfluent3 0.3.62 → 0.3.63
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.
|
@@ -2,6 +2,8 @@ import "./style";
|
|
|
2
2
|
export declare const FvListView: import("../../types/plugins/component-plugin").ComponentPlugin<{
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
4
4
|
move: (...args: any[]) => any;
|
|
5
|
+
focus: (...args: any[]) => any;
|
|
6
|
+
blur: (...args: any[]) => any;
|
|
5
7
|
$props: {
|
|
6
8
|
readonly theme?: string | undefined;
|
|
7
9
|
readonly disabled?: boolean | undefined;
|
|
@@ -52,6 +54,7 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
52
54
|
outSideClickInit(): void;
|
|
53
55
|
outSideClickEvent(event: any): void;
|
|
54
56
|
keyDownEventInit(): void;
|
|
57
|
+
keyDownEvent(event: any): void;
|
|
55
58
|
valueTrigger(val: any): any;
|
|
56
59
|
handlerClick($event: any, cur: any): void;
|
|
57
60
|
onChoosen($event: any, cur: any): 0 | undefined;
|
|
@@ -65,6 +68,7 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
65
68
|
dragOver(event: any, item: any): void;
|
|
66
69
|
dragLeave(event: any, item: any): void;
|
|
67
70
|
dropItem(event: any, item: any): void;
|
|
71
|
+
blur(): void;
|
|
68
72
|
inspectItemAPI(cur: any): 0 | undefined;
|
|
69
73
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
|
|
70
74
|
P: {};
|
|
@@ -75,6 +79,8 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
75
79
|
Defaults: {};
|
|
76
80
|
}, Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
77
81
|
move: (...args: any[]) => any;
|
|
82
|
+
focus: (...args: any[]) => any;
|
|
83
|
+
blur: (...args: any[]) => any;
|
|
78
84
|
$props: {
|
|
79
85
|
readonly theme?: string | undefined;
|
|
80
86
|
readonly disabled?: boolean | undefined;
|
|
@@ -125,6 +131,7 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
125
131
|
outSideClickInit(): void;
|
|
126
132
|
outSideClickEvent(event: any): void;
|
|
127
133
|
keyDownEventInit(): void;
|
|
134
|
+
keyDownEvent(event: any): void;
|
|
128
135
|
valueTrigger(val: any): any;
|
|
129
136
|
handlerClick($event: any, cur: any): void;
|
|
130
137
|
onChoosen($event: any, cur: any): 0 | undefined;
|
|
@@ -138,6 +145,7 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
138
145
|
dragOver(event: any, item: any): void;
|
|
139
146
|
dragLeave(event: any, item: any): void;
|
|
140
147
|
dropItem(event: any, item: any): void;
|
|
148
|
+
blur(): void;
|
|
141
149
|
inspectItemAPI(cur: any): 0 | undefined;
|
|
142
150
|
}, {}>;
|
|
143
151
|
__isFragment?: undefined;
|
|
@@ -145,6 +153,8 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
145
153
|
__isSuspense?: undefined;
|
|
146
154
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
147
155
|
move: (...args: any[]) => any;
|
|
156
|
+
focus: (...args: any[]) => any;
|
|
157
|
+
blur: (...args: any[]) => any;
|
|
148
158
|
$props: {
|
|
149
159
|
readonly theme?: string | undefined;
|
|
150
160
|
readonly disabled?: boolean | undefined;
|
|
@@ -195,6 +205,7 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
195
205
|
outSideClickInit(): void;
|
|
196
206
|
outSideClickEvent(event: any): void;
|
|
197
207
|
keyDownEventInit(): void;
|
|
208
|
+
keyDownEvent(event: any): void;
|
|
198
209
|
valueTrigger(val: any): any;
|
|
199
210
|
handlerClick($event: any, cur: any): void;
|
|
200
211
|
onChoosen($event: any, cur: any): 0 | undefined;
|
|
@@ -208,6 +219,7 @@ export declare const FvListView: import("../../types/plugins/component-plugin").
|
|
|
208
219
|
dragOver(event: any, item: any): void;
|
|
209
220
|
dragLeave(event: any, item: any): void;
|
|
210
221
|
dropItem(event: any, item: any): void;
|
|
222
|
+
blur(): void;
|
|
211
223
|
inspectItemAPI(cur: any): 0 | undefined;
|
|
212
224
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
213
225
|
$slots: {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
3
3
|
move: (...args: any[]) => any;
|
|
4
|
+
focus: (...args: any[]) => any;
|
|
5
|
+
blur: (...args: any[]) => any;
|
|
4
6
|
$props: {
|
|
5
7
|
readonly theme?: string | undefined;
|
|
6
8
|
readonly disabled?: boolean | undefined;
|
|
@@ -51,6 +53,7 @@ declare const _default: {
|
|
|
51
53
|
outSideClickInit(): void;
|
|
52
54
|
outSideClickEvent(event: any): void;
|
|
53
55
|
keyDownEventInit(): void;
|
|
56
|
+
keyDownEvent(event: any): void;
|
|
54
57
|
valueTrigger(val: any): any;
|
|
55
58
|
handlerClick($event: any, cur: any): void;
|
|
56
59
|
onChoosen($event: any, cur: any): 0 | undefined;
|
|
@@ -64,6 +67,7 @@ declare const _default: {
|
|
|
64
67
|
dragOver(event: any, item: any): void;
|
|
65
68
|
dragLeave(event: any, item: any): void;
|
|
66
69
|
dropItem(event: any, item: any): void;
|
|
70
|
+
blur(): void;
|
|
67
71
|
inspectItemAPI(cur: any): 0 | undefined;
|
|
68
72
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
|
|
69
73
|
P: {};
|
|
@@ -74,6 +78,8 @@ declare const _default: {
|
|
|
74
78
|
Defaults: {};
|
|
75
79
|
}, Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
76
80
|
move: (...args: any[]) => any;
|
|
81
|
+
focus: (...args: any[]) => any;
|
|
82
|
+
blur: (...args: any[]) => any;
|
|
77
83
|
$props: {
|
|
78
84
|
readonly theme?: string | undefined;
|
|
79
85
|
readonly disabled?: boolean | undefined;
|
|
@@ -124,6 +130,7 @@ declare const _default: {
|
|
|
124
130
|
outSideClickInit(): void;
|
|
125
131
|
outSideClickEvent(event: any): void;
|
|
126
132
|
keyDownEventInit(): void;
|
|
133
|
+
keyDownEvent(event: any): void;
|
|
127
134
|
valueTrigger(val: any): any;
|
|
128
135
|
handlerClick($event: any, cur: any): void;
|
|
129
136
|
onChoosen($event: any, cur: any): 0 | undefined;
|
|
@@ -137,6 +144,7 @@ declare const _default: {
|
|
|
137
144
|
dragOver(event: any, item: any): void;
|
|
138
145
|
dragLeave(event: any, item: any): void;
|
|
139
146
|
dropItem(event: any, item: any): void;
|
|
147
|
+
blur(): void;
|
|
140
148
|
inspectItemAPI(cur: any): 0 | undefined;
|
|
141
149
|
}, {}>;
|
|
142
150
|
__isFragment?: undefined;
|
|
@@ -144,6 +152,8 @@ declare const _default: {
|
|
|
144
152
|
__isSuspense?: undefined;
|
|
145
153
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, {
|
|
146
154
|
move: (...args: any[]) => any;
|
|
155
|
+
focus: (...args: any[]) => any;
|
|
156
|
+
blur: (...args: any[]) => any;
|
|
147
157
|
$props: {
|
|
148
158
|
readonly theme?: string | undefined;
|
|
149
159
|
readonly disabled?: boolean | undefined;
|
|
@@ -194,6 +204,7 @@ declare const _default: {
|
|
|
194
204
|
outSideClickInit(): void;
|
|
195
205
|
outSideClickEvent(event: any): void;
|
|
196
206
|
keyDownEventInit(): void;
|
|
207
|
+
keyDownEvent(event: any): void;
|
|
197
208
|
valueTrigger(val: any): any;
|
|
198
209
|
handlerClick($event: any, cur: any): void;
|
|
199
210
|
onChoosen($event: any, cur: any): 0 | undefined;
|
|
@@ -207,6 +218,7 @@ declare const _default: {
|
|
|
207
218
|
dragOver(event: any, item: any): void;
|
|
208
219
|
dragLeave(event: any, item: any): void;
|
|
209
220
|
dropItem(event: any, item: any): void;
|
|
221
|
+
blur(): void;
|
|
210
222
|
inspectItemAPI(cur: any): 0 | undefined;
|
|
211
223
|
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
212
224
|
$slots: {
|
package/dist/vfluent3.js
CHANGED
|
@@ -14050,9 +14050,10 @@ const mo = /* @__PURE__ */ we(Cg, [["render", Vg]]), Tg = { class: "list-view-he
|
|
|
14050
14050
|
t || (this.focus = !1);
|
|
14051
14051
|
},
|
|
14052
14052
|
keyDownEventInit() {
|
|
14053
|
-
window.addEventListener("keydown",
|
|
14054
|
-
|
|
14055
|
-
|
|
14053
|
+
window.addEventListener("keydown", this.keyDownEvent);
|
|
14054
|
+
},
|
|
14055
|
+
keyDownEvent(e) {
|
|
14056
|
+
!this.focus || (e.keyCode === 40 ? this.move(e, 1) : e.keyCode === 38 && this.move(e, -1), e.keyCode === 13 && this.enter(e));
|
|
14056
14057
|
},
|
|
14057
14058
|
valueTrigger(e) {
|
|
14058
14059
|
return typeof e == "function" ? e() : e;
|
|
@@ -14158,6 +14159,8 @@ const mo = /* @__PURE__ */ we(Cg, [["render", Vg]]), Tg = { class: "list-view-he
|
|
|
14158
14159
|
}), this.setSliderTarget(t), this.$emit("choosen-items", this.currentChoosen);
|
|
14159
14160
|
},
|
|
14160
14161
|
scrollFormat(e) {
|
|
14162
|
+
if (!e)
|
|
14163
|
+
return;
|
|
14161
14164
|
let i = e.getBoundingClientRect(), t = this.$refs.container.getBoundingClientRect();
|
|
14162
14165
|
if (i.top < t.top) {
|
|
14163
14166
|
let s = t.top - i.top;
|
|
@@ -14215,6 +14218,12 @@ const mo = /* @__PURE__ */ we(Cg, [["render", Vg]]), Tg = { class: "list-view-he
|
|
|
14215
14218
|
root: this.thisValue
|
|
14216
14219
|
});
|
|
14217
14220
|
},
|
|
14221
|
+
focus() {
|
|
14222
|
+
this.focus = !0;
|
|
14223
|
+
},
|
|
14224
|
+
blur() {
|
|
14225
|
+
this.focus = !1;
|
|
14226
|
+
},
|
|
14218
14227
|
inspectItemAPI(e) {
|
|
14219
14228
|
let i = this.thisValue.find((n) => this.valueTrigger(n.name) === this.valueTrigger(e.name) && this.valueTrigger(n.type) === this.valueTrigger(e.type) && n.key === e.key), t = this.thisValue.indexOf(i);
|
|
14220
14229
|
if (t < 0)
|
|
@@ -14224,7 +14233,7 @@ const mo = /* @__PURE__ */ we(Cg, [["render", Vg]]), Tg = { class: "list-view-he
|
|
|
14224
14233
|
}
|
|
14225
14234
|
},
|
|
14226
14235
|
beforeUnmount() {
|
|
14227
|
-
clearInterval(this.timer.slider), window.removeEventListener("click", this.outSideClickEvent);
|
|
14236
|
+
clearInterval(this.timer.slider), window.removeEventListener("click", this.outSideClickEvent), window.removeEventListener("keydown", this.keyDownEvent);
|
|
14228
14237
|
}
|
|
14229
14238
|
}, Mg = Object.assign(Dg, {
|
|
14230
14239
|
props: {
|
|
@@ -14291,7 +14300,9 @@ const mo = /* @__PURE__ */ we(Cg, [["render", Vg]]), Tg = { class: "list-view-he
|
|
|
14291
14300
|
setup(e, { expose: i, emit: t }) {
|
|
14292
14301
|
const { proxy: s } = $i();
|
|
14293
14302
|
return i({
|
|
14294
|
-
move: (...n) => s.move(...n)
|
|
14303
|
+
move: (...n) => s.move(...n),
|
|
14304
|
+
focus: (...n) => s.focus(...n),
|
|
14305
|
+
blur: (...n) => s.blur(...n)
|
|
14295
14306
|
}), (n, r) => {
|
|
14296
14307
|
const o = j("fv-reveal-container");
|
|
14297
14308
|
return p(), w("div", {
|