@hoci/core 0.5.8 → 0.5.9
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 +5 -8
- package/dist/index.d.cts +12 -19
- package/dist/index.d.mts +12 -19
- package/dist/index.d.ts +12 -19
- package/dist/index.mjs +5 -8
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -34,9 +34,9 @@ const affixProps = shared.defineHookProps(
|
|
|
34
34
|
type: [String, Object, Function]
|
|
35
35
|
},
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
* @zh z-index 值
|
|
38
|
+
* @en Z index value
|
|
39
|
+
*/
|
|
40
40
|
zIndex: {
|
|
41
41
|
type: Number,
|
|
42
42
|
default: 998
|
|
@@ -343,9 +343,6 @@ const itemProps = shared.defineHookProps({
|
|
|
343
343
|
type: Boolean,
|
|
344
344
|
default: () => true
|
|
345
345
|
},
|
|
346
|
-
key: {
|
|
347
|
-
type: [String, Number, Symbol]
|
|
348
|
-
},
|
|
349
346
|
activateEvent: {
|
|
350
347
|
type: String
|
|
351
348
|
},
|
|
@@ -370,7 +367,7 @@ const useSelectionItem = shared.defineHookComponent({
|
|
|
370
367
|
};
|
|
371
368
|
const label = vue.computed(() => {
|
|
372
369
|
let label2 = props.label ?? context.label;
|
|
373
|
-
if (label2 && typeof label2
|
|
370
|
+
if (label2 && typeof label2 === "function") {
|
|
374
371
|
label2 = label2(props.value);
|
|
375
372
|
}
|
|
376
373
|
return Array.isArray(label2) ? label2 : [label2];
|
|
@@ -391,7 +388,7 @@ const useSelectionItem = shared.defineHookComponent({
|
|
|
391
388
|
remove();
|
|
392
389
|
remove = init({
|
|
393
390
|
id: Math.random().toString(16).slice(2),
|
|
394
|
-
label: typeof props.label
|
|
391
|
+
label: typeof props.label === "string" ? props.label : void 0,
|
|
395
392
|
value,
|
|
396
393
|
render
|
|
397
394
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -33,9 +33,9 @@ declare const affixProps: {
|
|
|
33
33
|
type: PropType<string | HTMLElement>;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
* @zh z-index 值
|
|
37
|
+
* @en Z index value
|
|
38
|
+
*/
|
|
39
39
|
zIndex: {
|
|
40
40
|
type: NumberConstructor;
|
|
41
41
|
default: number;
|
|
@@ -80,9 +80,9 @@ declare const useAffix: _hoci_shared.HookComponent<{
|
|
|
80
80
|
type: PropType<string | HTMLElement>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* @zh z-index 值
|
|
84
|
+
* @en Z index value
|
|
85
|
+
*/
|
|
86
86
|
zIndex: {
|
|
87
87
|
type: NumberConstructor;
|
|
88
88
|
default: number;
|
|
@@ -115,9 +115,9 @@ declare const useAffix: _hoci_shared.HookComponent<{
|
|
|
115
115
|
type: PropType<string | HTMLElement>;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
* @zh z-index 值
|
|
119
|
+
* @en Z index value
|
|
120
|
+
*/
|
|
121
121
|
zIndex: {
|
|
122
122
|
type: NumberConstructor;
|
|
123
123
|
default: number;
|
|
@@ -351,9 +351,6 @@ declare const itemProps: {
|
|
|
351
351
|
type: BooleanConstructor;
|
|
352
352
|
default: () => true;
|
|
353
353
|
};
|
|
354
|
-
key: {
|
|
355
|
-
type: PropType<string | number | symbol>;
|
|
356
|
-
};
|
|
357
354
|
activateEvent: {
|
|
358
355
|
type: PropType<ActivateEvent>;
|
|
359
356
|
};
|
|
@@ -370,7 +367,9 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
370
367
|
isDisabled: vue.ComputedRef<boolean>;
|
|
371
368
|
className: vue.ComputedRef<string>;
|
|
372
369
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
|
373
|
-
label: vue.ComputedRef<ElementLike[] | (string |
|
|
370
|
+
label: vue.ComputedRef<ElementLike[] | (string | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
}> | null | undefined)[]>;
|
|
374
373
|
}, "reject"[], {
|
|
375
374
|
value: {
|
|
376
375
|
type: PropType<any>;
|
|
@@ -383,9 +382,6 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
383
382
|
type: BooleanConstructor;
|
|
384
383
|
default: () => true;
|
|
385
384
|
};
|
|
386
|
-
key: {
|
|
387
|
-
type: PropType<string | number | symbol>;
|
|
388
|
-
};
|
|
389
385
|
activateEvent: {
|
|
390
386
|
type: PropType<ActivateEvent>;
|
|
391
387
|
};
|
|
@@ -405,9 +401,6 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
405
401
|
type: BooleanConstructor;
|
|
406
402
|
default: () => true;
|
|
407
403
|
};
|
|
408
|
-
key: {
|
|
409
|
-
type: PropType<string | number | symbol>;
|
|
410
|
-
};
|
|
411
404
|
activateEvent: {
|
|
412
405
|
type: PropType<ActivateEvent>;
|
|
413
406
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -33,9 +33,9 @@ declare const affixProps: {
|
|
|
33
33
|
type: PropType<string | HTMLElement>;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
* @zh z-index 值
|
|
37
|
+
* @en Z index value
|
|
38
|
+
*/
|
|
39
39
|
zIndex: {
|
|
40
40
|
type: NumberConstructor;
|
|
41
41
|
default: number;
|
|
@@ -80,9 +80,9 @@ declare const useAffix: _hoci_shared.HookComponent<{
|
|
|
80
80
|
type: PropType<string | HTMLElement>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* @zh z-index 值
|
|
84
|
+
* @en Z index value
|
|
85
|
+
*/
|
|
86
86
|
zIndex: {
|
|
87
87
|
type: NumberConstructor;
|
|
88
88
|
default: number;
|
|
@@ -115,9 +115,9 @@ declare const useAffix: _hoci_shared.HookComponent<{
|
|
|
115
115
|
type: PropType<string | HTMLElement>;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
* @zh z-index 值
|
|
119
|
+
* @en Z index value
|
|
120
|
+
*/
|
|
121
121
|
zIndex: {
|
|
122
122
|
type: NumberConstructor;
|
|
123
123
|
default: number;
|
|
@@ -351,9 +351,6 @@ declare const itemProps: {
|
|
|
351
351
|
type: BooleanConstructor;
|
|
352
352
|
default: () => true;
|
|
353
353
|
};
|
|
354
|
-
key: {
|
|
355
|
-
type: PropType<string | number | symbol>;
|
|
356
|
-
};
|
|
357
354
|
activateEvent: {
|
|
358
355
|
type: PropType<ActivateEvent>;
|
|
359
356
|
};
|
|
@@ -370,7 +367,9 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
370
367
|
isDisabled: vue.ComputedRef<boolean>;
|
|
371
368
|
className: vue.ComputedRef<string>;
|
|
372
369
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
|
373
|
-
label: vue.ComputedRef<ElementLike[] | (string |
|
|
370
|
+
label: vue.ComputedRef<ElementLike[] | (string | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
}> | null | undefined)[]>;
|
|
374
373
|
}, "reject"[], {
|
|
375
374
|
value: {
|
|
376
375
|
type: PropType<any>;
|
|
@@ -383,9 +382,6 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
383
382
|
type: BooleanConstructor;
|
|
384
383
|
default: () => true;
|
|
385
384
|
};
|
|
386
|
-
key: {
|
|
387
|
-
type: PropType<string | number | symbol>;
|
|
388
|
-
};
|
|
389
385
|
activateEvent: {
|
|
390
386
|
type: PropType<ActivateEvent>;
|
|
391
387
|
};
|
|
@@ -405,9 +401,6 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
405
401
|
type: BooleanConstructor;
|
|
406
402
|
default: () => true;
|
|
407
403
|
};
|
|
408
|
-
key: {
|
|
409
|
-
type: PropType<string | number | symbol>;
|
|
410
|
-
};
|
|
411
404
|
activateEvent: {
|
|
412
405
|
type: PropType<ActivateEvent>;
|
|
413
406
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ declare const affixProps: {
|
|
|
33
33
|
type: PropType<string | HTMLElement>;
|
|
34
34
|
};
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
* @zh z-index 值
|
|
37
|
+
* @en Z index value
|
|
38
|
+
*/
|
|
39
39
|
zIndex: {
|
|
40
40
|
type: NumberConstructor;
|
|
41
41
|
default: number;
|
|
@@ -80,9 +80,9 @@ declare const useAffix: _hoci_shared.HookComponent<{
|
|
|
80
80
|
type: PropType<string | HTMLElement>;
|
|
81
81
|
};
|
|
82
82
|
/**
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
* @zh z-index 值
|
|
84
|
+
* @en Z index value
|
|
85
|
+
*/
|
|
86
86
|
zIndex: {
|
|
87
87
|
type: NumberConstructor;
|
|
88
88
|
default: number;
|
|
@@ -115,9 +115,9 @@ declare const useAffix: _hoci_shared.HookComponent<{
|
|
|
115
115
|
type: PropType<string | HTMLElement>;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
* @zh z-index 值
|
|
119
|
+
* @en Z index value
|
|
120
|
+
*/
|
|
121
121
|
zIndex: {
|
|
122
122
|
type: NumberConstructor;
|
|
123
123
|
default: number;
|
|
@@ -351,9 +351,6 @@ declare const itemProps: {
|
|
|
351
351
|
type: BooleanConstructor;
|
|
352
352
|
default: () => true;
|
|
353
353
|
};
|
|
354
|
-
key: {
|
|
355
|
-
type: PropType<string | number | symbol>;
|
|
356
|
-
};
|
|
357
354
|
activateEvent: {
|
|
358
355
|
type: PropType<ActivateEvent>;
|
|
359
356
|
};
|
|
@@ -370,7 +367,9 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
370
367
|
isDisabled: vue.ComputedRef<boolean>;
|
|
371
368
|
className: vue.ComputedRef<string>;
|
|
372
369
|
activateEvent: vue.ComputedRef<ActivateEvent>;
|
|
373
|
-
label: vue.ComputedRef<ElementLike[] | (string |
|
|
370
|
+
label: vue.ComputedRef<ElementLike[] | (string | vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
371
|
+
[key: string]: any;
|
|
372
|
+
}> | null | undefined)[]>;
|
|
374
373
|
}, "reject"[], {
|
|
375
374
|
value: {
|
|
376
375
|
type: PropType<any>;
|
|
@@ -383,9 +382,6 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
383
382
|
type: BooleanConstructor;
|
|
384
383
|
default: () => true;
|
|
385
384
|
};
|
|
386
|
-
key: {
|
|
387
|
-
type: PropType<string | number | symbol>;
|
|
388
|
-
};
|
|
389
385
|
activateEvent: {
|
|
390
386
|
type: PropType<ActivateEvent>;
|
|
391
387
|
};
|
|
@@ -405,9 +401,6 @@ declare const useSelectionItem: _hoci_shared.HookComponent<{
|
|
|
405
401
|
type: BooleanConstructor;
|
|
406
402
|
default: () => true;
|
|
407
403
|
};
|
|
408
|
-
key: {
|
|
409
|
-
type: PropType<string | number | symbol>;
|
|
410
|
-
};
|
|
411
404
|
activateEvent: {
|
|
412
405
|
type: PropType<ActivateEvent>;
|
|
413
406
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -33,9 +33,9 @@ const affixProps = defineHookProps(
|
|
|
33
33
|
type: [String, Object, Function]
|
|
34
34
|
},
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
* @zh z-index 值
|
|
37
|
+
* @en Z index value
|
|
38
|
+
*/
|
|
39
39
|
zIndex: {
|
|
40
40
|
type: Number,
|
|
41
41
|
default: 998
|
|
@@ -342,9 +342,6 @@ const itemProps = defineHookProps({
|
|
|
342
342
|
type: Boolean,
|
|
343
343
|
default: () => true
|
|
344
344
|
},
|
|
345
|
-
key: {
|
|
346
|
-
type: [String, Number, Symbol]
|
|
347
|
-
},
|
|
348
345
|
activateEvent: {
|
|
349
346
|
type: String
|
|
350
347
|
},
|
|
@@ -369,7 +366,7 @@ const useSelectionItem = defineHookComponent({
|
|
|
369
366
|
};
|
|
370
367
|
const label = computed(() => {
|
|
371
368
|
let label2 = props.label ?? context.label;
|
|
372
|
-
if (label2 && typeof label2
|
|
369
|
+
if (label2 && typeof label2 === "function") {
|
|
373
370
|
label2 = label2(props.value);
|
|
374
371
|
}
|
|
375
372
|
return Array.isArray(label2) ? label2 : [label2];
|
|
@@ -390,7 +387,7 @@ const useSelectionItem = defineHookComponent({
|
|
|
390
387
|
remove();
|
|
391
388
|
remove = init({
|
|
392
389
|
id: Math.random().toString(16).slice(2),
|
|
393
|
-
label: typeof props.label
|
|
390
|
+
label: typeof props.label === "string" ? props.label : void 0,
|
|
394
391
|
value,
|
|
395
392
|
render
|
|
396
393
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoci/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Chizuki <chizukicn@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
17
|
},
|
|
18
18
|
"./*": "./dist/*"
|
|
19
19
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@vueuse/core": "9.0.0",
|
|
31
31
|
"maybe-types": "^0.2.0",
|
|
32
32
|
"tslx": "^0.1.1",
|
|
33
|
-
"@hoci/shared": "0.5.
|
|
33
|
+
"@hoci/shared": "0.5.9"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "unbuild",
|