@yh-ui/hooks 1.0.37 → 1.0.39
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/dayjs.cjs +5 -4
- package/dist/dayjs.mjs +5 -2
- package/dist/use-config/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/dayjs.cjs
CHANGED
|
@@ -4,8 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
var _dayjs = _interopRequireDefault(require("dayjs"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
const dayjs = typeof _dayjs.default === "function" ? _dayjs.default :
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11
|
+
_dayjs.default.default || _dayjs.default;
|
|
11
12
|
module.exports = dayjs;
|
package/dist/dayjs.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
const dayjs = "
|
|
1
|
+
import dayjsObject from "dayjs";
|
|
2
|
+
const dayjs = typeof dayjsObject === "function" ? dayjsObject : (
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
dayjsObject.default || dayjsObject
|
|
5
|
+
);
|
|
3
6
|
export default dayjs;
|
|
@@ -16,7 +16,7 @@ export declare const configProviderContextKey: InjectionKey<ComputedRef<ConfigPr
|
|
|
16
16
|
*/
|
|
17
17
|
export declare const useConfig: () => {
|
|
18
18
|
config: ComputedRef<ConfigProviderContext> | null;
|
|
19
|
-
globalSize: ComputedRef<"
|
|
19
|
+
globalSize: ComputedRef<"small" | "default" | "large">;
|
|
20
20
|
globalZIndex: ComputedRef<number>;
|
|
21
21
|
globalLocale: ComputedRef<Language | undefined>;
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yh-ui/hooks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
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.39",
|
|
36
|
+
"@yh-ui/utils": "^1.0.39",
|
|
37
37
|
"dayjs": "^1.11.19"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|