nbb-component-ui 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/MyButton.vue +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbb-component-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build": "vite build"
package/src/MyButton.vue CHANGED
@@ -15,7 +15,10 @@ const props = defineProps({
15
15
  })
16
16
  // 定义事件
17
17
  const emit = defineEmits(['click'])
18
- const handleClick = () => emit('click')
18
+ const handleClick = () => {
19
+ console.log('我被点击了')
20
+ emit('click')
21
+ }
19
22
  </script>
20
23
 
21
24
  <style scoped>