@a2simcode/ui 0.0.198 → 0.0.200

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.
@@ -16,13 +16,11 @@
16
16
  </template>
17
17
 
18
18
  <script setup lang="ts">
19
- import { ref, reactive } from 'vue';
20
- import type { EditConfigType } from '@/packages/components/input-cards/src/interface';
21
-
19
+ import { ref, reactive } from 'vue'
22
20
  const cardData = ref([
23
21
  { i: '1', name: '产品A', price: 100, stock: 10 },
24
22
  { i: '2', name: '产品B', price: 200, stock: 20 },
25
- ]);
23
+ ])
26
24
 
27
25
  const cardColumns = ref<any[]>([
28
26
  {
@@ -54,23 +52,22 @@ const cardColumns = ref<any[]>([
54
52
  min: 0,
55
53
  },
56
54
  },
57
- ]);
55
+ ])
58
56
 
59
- const editConfig = reactive<EditConfigType>({
57
+ const editConfig = reactive({
60
58
  isAddBtn: true,
61
59
  isRemoveBtn: true,
62
60
  addBtnText: '添加新卡片',
63
61
  readonly: false,
64
- // drag: false, // InputCards 暂不支持拖拽
65
- });
62
+ })
66
63
 
67
64
  const handleChange = (data: any) => {
68
- console.log('变更事件:', data);
69
- };
65
+ console.log('变更事件:', data)
66
+ }
70
67
 
71
68
  const handleRowChange = (data: any) => {
72
- console.log('行变更事件:', data);
73
- };
69
+ console.log('行变更事件:', data)
70
+ }
74
71
  </script>
75
72
 
76
73
  <style scoped>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2simcode/ui",
3
- "version": "0.0.198",
3
+ "version": "0.0.200",
4
4
  "description": "A Vue 3 UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/simcode-ui.umd.js",