@hoci/core 0.5.5 → 0.5.6
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/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -55,7 +55,7 @@ const useAffix = shared.defineHookComponent({
|
|
|
55
55
|
props: affixProps,
|
|
56
56
|
setup(props, { emit }) {
|
|
57
57
|
const wrapperRef = vue.ref(null);
|
|
58
|
-
const wrapperRect =
|
|
58
|
+
const wrapperRect = shared.toReactive(core.useElementBounding(wrapperRef));
|
|
59
59
|
const parentRef = vue.inject(AFFIX_TARGET_KEY, void 0);
|
|
60
60
|
const targetRef = shared.useElement(props.target, parentRef);
|
|
61
61
|
const isFixed = vue.ref(false);
|
|
@@ -281,7 +281,7 @@ const useSelectionList = shared.defineHookComponent({
|
|
|
281
281
|
return remove;
|
|
282
282
|
};
|
|
283
283
|
const sharedConfig = shared.useSharedConfig();
|
|
284
|
-
vue.provide(HiSelectionContextSymbol,
|
|
284
|
+
vue.provide(HiSelectionContextSymbol, shared.toReactive({
|
|
285
285
|
activeClass: vue.computed(() => tslx.cls(props.activeClass)),
|
|
286
286
|
unactiveClass: vue.computed(() => tslx.cls(props.unactiveClass)),
|
|
287
287
|
disabledClass: vue.computed(() => tslx.cls(props.disabledClass)),
|
package/dist/index.d.cts
CHANGED
|
@@ -447,7 +447,7 @@ type HiSwitchProps = typeof switchProps;
|
|
|
447
447
|
declare const switchEmits: ("change" | "update:modelValue")[];
|
|
448
448
|
declare const useSwitch: _hoci_shared.HookComponent<{
|
|
449
449
|
toggle: (value?: any) => void;
|
|
450
|
-
modelValue: vue.Ref<boolean>;
|
|
450
|
+
modelValue: vue.Ref<boolean> | vue.WritableComputedRef<boolean>;
|
|
451
451
|
className: vue.ComputedRef<string>;
|
|
452
452
|
isDisabled: vue.ComputedRef<boolean>;
|
|
453
453
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
package/dist/index.d.mts
CHANGED
|
@@ -447,7 +447,7 @@ type HiSwitchProps = typeof switchProps;
|
|
|
447
447
|
declare const switchEmits: ("change" | "update:modelValue")[];
|
|
448
448
|
declare const useSwitch: _hoci_shared.HookComponent<{
|
|
449
449
|
toggle: (value?: any) => void;
|
|
450
|
-
modelValue: vue.Ref<boolean>;
|
|
450
|
+
modelValue: vue.Ref<boolean> | vue.WritableComputedRef<boolean>;
|
|
451
451
|
className: vue.ComputedRef<string>;
|
|
452
452
|
isDisabled: vue.ComputedRef<boolean>;
|
|
453
453
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
package/dist/index.d.ts
CHANGED
|
@@ -447,7 +447,7 @@ type HiSwitchProps = typeof switchProps;
|
|
|
447
447
|
declare const switchEmits: ("change" | "update:modelValue")[];
|
|
448
448
|
declare const useSwitch: _hoci_shared.HookComponent<{
|
|
449
449
|
toggle: (value?: any) => void;
|
|
450
|
-
modelValue: vue.Ref<boolean>;
|
|
450
|
+
modelValue: vue.Ref<boolean> | vue.WritableComputedRef<boolean>;
|
|
451
451
|
className: vue.ComputedRef<string>;
|
|
452
452
|
isDisabled: vue.ComputedRef<boolean>;
|
|
453
453
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref, inject, computed, watchPostEffect, provide, reactive, renderSlot, watch, nextTick } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import { defineHookProps, defineHookEmits, defineHookComponent, useElement, throttleByRaf, isWindow, valuePropType, classPropType, labelPropType, useSharedConfig, getFirstChilld } from '@hoci/shared';
|
|
2
|
+
import { useElementBounding, useElementVisibility, useEventListener, syncRef, isDefined, tryOnScopeDispose, useVModel, onClickOutside } from '@vueuse/core';
|
|
3
|
+
import { defineHookProps, defineHookEmits, defineHookComponent, toReactive, useElement, throttleByRaf, isWindow, valuePropType, classPropType, labelPropType, useSharedConfig, getFirstChilld } from '@hoci/shared';
|
|
4
4
|
export * from '@hoci/shared';
|
|
5
5
|
import { px, cls, createUnitFormat } from 'tslx';
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoci/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Chizuki <chizukicn@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"vue": "^3.0.0-0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@vueuse/core": "
|
|
31
|
-
"maybe-types": "^0.
|
|
30
|
+
"@vueuse/core": "9.0.0",
|
|
31
|
+
"maybe-types": "^0.2.0",
|
|
32
32
|
"tslx": "^0.1.1",
|
|
33
|
-
"@hoci/shared": "0.5.
|
|
33
|
+
"@hoci/shared": "0.5.6"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "unbuild",
|