eco-vue-js 0.10.77 → 0.10.78
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/dist/components/InfiniteList/components/InfiniteListScroll.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListScroll.vue.js +8 -11
- package/dist/components/Input/WInputAsync.vue.js +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +4 -4
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListScroll.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListScroll.vue"],"names":[],"mappings":"AAKA;
|
1
|
+
{"version":3,"file":"InfiniteListScroll.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/InfiniteList/components/InfiniteListScroll.vue"],"names":[],"mappings":"AAKA;AAgIA,iBAAS,cAAc;WA0BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;kBASnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -11,26 +11,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
const containerRef = useTemplateRef("container");
|
12
12
|
const scrollingElement = inject(wScrollingElement, null);
|
13
13
|
const element = computed(() => scrollingElement?.value ?? document);
|
14
|
-
const
|
15
|
-
if (
|
14
|
+
const checkIsScrollUp = () => {
|
15
|
+
if (!containerRef.value) return;
|
16
16
|
if (getIsScrollUp(scrollingElement?.value ?? document.scrollingElement, containerRef.value.offsetTop)) {
|
17
17
|
emit("scroll:up");
|
18
|
-
return;
|
19
|
-
}
|
20
|
-
if (getIsScrollDown(scrollingElement?.value ?? document.scrollingElement)) {
|
21
|
-
emit("scroll:down");
|
22
|
-
}
|
23
|
-
};
|
24
|
-
const checkIsScrollUp = () => {
|
25
|
-
if (getIsScrollDown(scrollingElement?.value ?? document.scrollingElement)) {
|
26
|
-
emit("scroll:down");
|
27
18
|
}
|
28
19
|
};
|
29
20
|
const checkIsScrollDown = () => {
|
21
|
+
if (!containerRef.value) return;
|
30
22
|
if (getIsScrollDown(scrollingElement?.value ?? document.scrollingElement)) {
|
31
23
|
emit("scroll:down");
|
32
24
|
}
|
33
25
|
};
|
26
|
+
const listener = (event) => {
|
27
|
+
if (event.target !== element.value || !containerRef.value) return;
|
28
|
+
checkIsScrollUp();
|
29
|
+
checkIsScrollDown();
|
30
|
+
};
|
34
31
|
watch(element, (newValue, oldValue) => {
|
35
32
|
oldValue?.removeEventListener("scroll", listener);
|
36
33
|
newValue?.addEventListener("scroll", listener);
|
@@ -167,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
167
167
|
"onKeypress:enter": handleEnterPress,
|
168
168
|
onClick: open,
|
169
169
|
onBlur: _cache[0] || (_cache[0] = ($event) => {
|
170
|
-
props.textSecure
|
170
|
+
props.textSecure ? cancel() : toggle();
|
171
171
|
focused.value = false;
|
172
172
|
}),
|
173
173
|
onFocus: _cache[1] || (_cache[1] = ($event) => focused.value = true),
|
@@ -77,7 +77,7 @@ declare function __VLS_template(): {
|
|
77
77
|
};
|
78
78
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
79
79
|
declare const __VLS_component: import('vue').DefineComponent<NavItemExpandProps, {
|
80
|
-
isActive: import('vue').
|
80
|
+
isActive: import('vue').ComputedRef<any>;
|
81
81
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NavItemExpandProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
82
82
|
component: ({
|
83
83
|
$: import('vue').ComponentInternalInstance;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"AAoFA;AA+JA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAC,KAAK,KAAK,EAAY,QAAQ,EAAwD,MAAM,KAAK,CAAA;AA2EzG,iBAAS,cAAc;WA0LT,OAAO,IAA6B;;kBAvMtC,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;kBADV,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"WNavItemExpand.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Nav/WNavItemExpand.vue"],"names":[],"mappings":"AAoFA;AA+JA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAA;AAE/C,OAAO,EAAC,KAAK,KAAK,EAAY,QAAQ,EAAwD,MAAM,KAAK,CAAA;AA2EzG,iBAAS,cAAc;WA0LT,OAAO,IAA6B;;kBAvMtC,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;kBADV,MAAM,KAAK,EAAE;eAChB,MAAM,KAAK,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAyPixS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;EA9C55S;AAqBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAwBkxS,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;kBAf35S,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
@@ -30,11 +30,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
30
30
|
const innerRef = useTemplateRef("inner");
|
31
31
|
const isDropdownOpen = ref(false);
|
32
32
|
const hasActive = ref(false);
|
33
|
-
const isActive = computed(() => componentRef.value?.isActive ?? false);
|
33
|
+
const isActive = computed(() => hasActive.value || (componentRef.value?.isActive ?? false));
|
34
34
|
const hasInnerActive = computed(() => innerRef.value?.some((item) => item.isActive) ?? false);
|
35
35
|
const updateHasActive = async () => {
|
36
36
|
await nextTick();
|
37
|
-
hasActive.value =
|
37
|
+
hasActive.value = innerRef.value?.some((item) => item.isActive) ?? false;
|
38
38
|
};
|
39
39
|
const showDropdown = () => {
|
40
40
|
isDropdownOpen.value = true;
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
52
|
isDropdownOpen.value = false;
|
53
53
|
});
|
54
54
|
__expose({
|
55
|
-
isActive
|
55
|
+
isActive
|
56
56
|
});
|
57
57
|
return (_ctx, _cache) => {
|
58
58
|
return openBlock(), createElementBlock("div", null, [
|
@@ -114,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
114
114
|
_: 3
|
115
115
|
}, 8, ["is-open", "horizontal-align"]),
|
116
116
|
createVNode(_sfc_main$3, {
|
117
|
-
"is-shown":
|
117
|
+
"is-shown": isActive.value || _ctx.even
|
118
118
|
}, {
|
119
119
|
default: withCtx(() => [
|
120
120
|
createVNode(WNavItemTransition, null, {
|