@yh-ui/hooks 1.0.49 → 1.0.51
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/use-id/index.cjs +2 -1
- package/dist/use-id/index.d.ts +1 -0
- package/dist/use-id/index.mjs +1 -0
- package/package.json +3 -3
package/dist/use-id/index.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useIdInjection = exports.useId = exports.idInjectionKey = void 0;
|
|
6
|
+
exports.useYhId = exports.useIdInjection = exports.useId = exports.idInjectionKey = void 0;
|
|
7
7
|
var _vue = require("vue");
|
|
8
8
|
const idInjectionKey = exports.idInjectionKey = Symbol("idInjectionKey");
|
|
9
9
|
const useId = idOverrides => {
|
|
@@ -19,6 +19,7 @@ const useId = idOverrides => {
|
|
|
19
19
|
return id;
|
|
20
20
|
};
|
|
21
21
|
exports.useId = useId;
|
|
22
|
+
const useYhId = exports.useYhId = useId;
|
|
22
23
|
const useIdInjection = () => {
|
|
23
24
|
return {
|
|
24
25
|
prefix: (0, _vue.computed)(() => `yh-${Date.now()}`),
|
package/dist/use-id/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const idInjectionKey: InjectionKey<Ref<string | undefined>>;
|
|
|
10
10
|
* const customId = useId(ref('custom')) // 'custom'
|
|
11
11
|
*/
|
|
12
12
|
export declare const useId: (idOverrides?: Ref<string | undefined>) => Ref<string>;
|
|
13
|
+
export declare const useYhId: (idOverrides?: Ref<string | undefined>) => Ref<string>;
|
|
13
14
|
/**
|
|
14
15
|
* useIdInjection - ID 注入工具
|
|
15
16
|
* @description 用于组件内部生成关联 ID
|
package/dist/use-id/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yh-ui/hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"description": "YH-UI composition hooks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"lint": "eslint ."
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@yh-ui/locale": "^1.0.
|
|
36
|
-
"@yh-ui/utils": "^1.0.
|
|
35
|
+
"@yh-ui/locale": "^1.0.51",
|
|
36
|
+
"@yh-ui/utils": "^1.0.51",
|
|
37
37
|
"dayjs": "^1.11.19"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|