@varlet/cli 3.3.12 → 3.3.13-alpha.1723094901591
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.
|
@@ -8,7 +8,7 @@ export function defineConfig(config) {
|
|
|
8
8
|
return config;
|
|
9
9
|
}
|
|
10
10
|
export function mergeStrategy(_, srcValue, key) {
|
|
11
|
-
const keys = ['features', 'members'];
|
|
11
|
+
const keys = ['features', 'members', 'versions', 'themes', '_cf'];
|
|
12
12
|
if (keys.includes(key) && isArray(srcValue)) {
|
|
13
13
|
return srcValue;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/cli",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.13-alpha.1723094901591",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "cli of varlet",
|
|
6
6
|
"bin": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"vite": "5.0.10",
|
|
64
64
|
"vitest": "1.1.0",
|
|
65
65
|
"vue": "3.4.21",
|
|
66
|
-
"@varlet/shared": "3.3.
|
|
67
|
-
"@varlet/vite-plugins": "3.3.
|
|
66
|
+
"@varlet/shared": "3.3.13-alpha.1723094901591",
|
|
67
|
+
"@varlet/vite-plugins": "3.3.13-alpha.1723094901591"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/babel__core": "^7.20.1",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"@types/semver": "^7.3.9",
|
|
80
80
|
"@types/sharp": "0.31.1",
|
|
81
81
|
"rimraf": "^5.0.1",
|
|
82
|
-
"@varlet/
|
|
83
|
-
"@varlet/
|
|
84
|
-
"@varlet/icons": "3.3.
|
|
82
|
+
"@varlet/ui": "3.3.13-alpha.1723094901591",
|
|
83
|
+
"@varlet/touch-emulator": "3.3.13-alpha.1723094901591",
|
|
84
|
+
"@varlet/icons": "3.3.13-alpha.1723094901591"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
"@vitest/coverage-istanbul": "1.1.0",
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"lodash-es": "^4.17.21",
|
|
94
94
|
"vue": "3.4.21",
|
|
95
95
|
"vue-router": "4.2.0",
|
|
96
|
-
"@varlet/
|
|
97
|
-
"@varlet/
|
|
98
|
-
"@varlet/icons": "3.3.
|
|
96
|
+
"@varlet/touch-emulator": "3.3.13-alpha.1723094901591",
|
|
97
|
+
"@varlet/ui": "3.3.13-alpha.1723094901591",
|
|
98
|
+
"@varlet/icons": "3.3.13-alpha.1723094901591"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"dev": "tsc --watch",
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ref } from 'vue'
|
|
2
2
|
import type { Ref } from 'vue'
|
|
3
3
|
import zhCN from './zh-CN'
|
|
4
|
-
import { hasOwn } from '@varlet/shared'
|
|
5
4
|
|
|
6
5
|
export type Message = {
|
|
7
6
|
// Button component
|
|
@@ -14,6 +13,10 @@ export type Message = {
|
|
|
14
13
|
|
|
15
14
|
type ValueOf<T> = T[keyof T]
|
|
16
15
|
|
|
16
|
+
const { hasOwnProperty } = Object.prototype
|
|
17
|
+
|
|
18
|
+
const hasOwn = <T extends object>(val: T, key: PropertyKey): key is keyof T => hasOwnProperty.call(val, key)
|
|
19
|
+
|
|
17
20
|
function useLocale<T = Message>() {
|
|
18
21
|
const messages: Record<string, Partial<T>> = {}
|
|
19
22
|
const currentMessage: Ref<Partial<T>> = ref({})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ref } from 'vue'
|
|
2
2
|
import type { Ref } from 'vue'
|
|
3
3
|
import zhCN from './zh-CN'
|
|
4
|
-
import { hasOwn } from '@varlet/shared'
|
|
5
4
|
|
|
6
5
|
export type Message = {
|
|
7
6
|
// Button component
|
|
@@ -14,6 +13,10 @@ export type Message = {
|
|
|
14
13
|
|
|
15
14
|
type ValueOf<T> = T[keyof T]
|
|
16
15
|
|
|
16
|
+
const { hasOwnProperty } = Object.prototype
|
|
17
|
+
|
|
18
|
+
const hasOwn = <T extends object>(val: T, key: PropertyKey): key is keyof T => hasOwnProperty.call(val, key)
|
|
19
|
+
|
|
17
20
|
function useLocale<T = Message>() {
|
|
18
21
|
const messages: Record<string, Partial<T>> = {}
|
|
19
22
|
const currentMessage: Ref<Partial<T>> = ref({})
|