@varlet/cli 2.7.3-alpha.1675236177820 → 2.7.3-alpha.1675238644507

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "2.7.3-alpha.1675236177820",
3
+ "version": "2.7.3-alpha.1675238644507",
4
4
  "type": "module",
5
5
  "description": "cli of varlet",
6
6
  "bin": {
@@ -68,8 +68,8 @@
68
68
  "vite": "4.0.4",
69
69
  "vue": "3.2.25",
70
70
  "vue-jest": "^5.0.0-alpha.8",
71
- "@varlet/vite-plugins": "2.7.3-alpha.1675236177820",
72
- "@varlet/shared": "2.7.3-alpha.1675236177820"
71
+ "@varlet/vite-plugins": "2.7.3-alpha.1675238644507",
72
+ "@varlet/shared": "2.7.3-alpha.1675238644507"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/babel__core": "^7.1.12",
@@ -82,8 +82,8 @@
82
82
  "@types/semver": "^7.3.9",
83
83
  "@types/inquirer": "^9.0.2",
84
84
  "@types/sharp": "0.31.1",
85
- "@varlet/touch-emulator": "2.7.3-alpha.1675236177820",
86
- "@varlet/icons": "2.7.3-alpha.1675236177820"
85
+ "@varlet/icons": "2.7.3-alpha.1675238644507",
86
+ "@varlet/touch-emulator": "2.7.3-alpha.1675238644507"
87
87
  },
88
88
  "peerDependencies": {
89
89
  "@vue/runtime-core": "3.2.16",
@@ -93,8 +93,8 @@
93
93
  "lodash-es": "^4.17.21",
94
94
  "vue": "3.2.25",
95
95
  "vue-router": "4.0.12",
96
- "@varlet/icons": "2.7.3-alpha.1675236177820",
97
- "@varlet/touch-emulator": "2.7.3-alpha.1675236177820"
96
+ "@varlet/icons": "2.7.3-alpha.1675238644507",
97
+ "@varlet/touch-emulator": "2.7.3-alpha.1675238644507"
98
98
  },
99
99
  "scripts": {
100
100
  "dev": "tsc --watch",
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button class="var-button" :style="{ background: color }">
2
+ <button class="var-button" :style="{ background: color }" @click="handleClick">
3
3
  <slot />
4
4
  </button>
5
5
  </template>
@@ -18,7 +18,10 @@ export default defineComponent({
18
18
  },
19
19
  },
20
20
  setup(props) {
21
- const handleClick = (e: Event) => props.onClick?.(e)
21
+ const handleClick = (e: Event) => {
22
+ props.onClick?.(e)
23
+ }
24
+
22
25
  return {
23
26
  handleClick,
24
27
  }
@@ -18,11 +18,9 @@ export default defineComponent({
18
18
  const { color } = props
19
19
 
20
20
  return (
21
- <>
22
- <button class="var-button" style={{ background: color }} onClick={handleClick}>
23
- {slots.default?.()}
24
- </button>
25
- </>
21
+ <button class="var-button" style={{ background: color }} onClick={handleClick}>
22
+ {slots.default?.()}
23
+ </button>
26
24
  )
27
25
  }
28
26
  },
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <button class="var-button" :style="{ background: color }">
2
+ <button class="var-button" :style="{ background: color }" @click="handleClick">
3
3
  {{ pack.button }}
4
4
  <slot />
5
5
  </button>
@@ -22,7 +22,9 @@ export default defineComponent({
22
22
  },
23
23
  },
24
24
  setup(props) {
25
- const handleClick = (e: Event) => props.onClick?.(e)
25
+ const handleClick = (e: Event) => {
26
+ props.onClick?.(e)
27
+ }
26
28
 
27
29
  return {
28
30
  pack,
@@ -15,7 +15,9 @@ export default defineComponent({
15
15
  },
16
16
  },
17
17
  setup(props, { slots }) {
18
- const handleClick = (e: Event) => props.onClick?.(e)
18
+ const handleClick = (e: Event) => {
19
+ props.onClick?.(e)
20
+ }
19
21
 
20
22
  return () => {
21
23
  const { color } = props