@a2simcode/ui 0.0.187 → 0.0.189

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.
@@ -41,5 +41,22 @@ const buttonList = ref([
41
41
  ElMessage.warning('点击了删除按钮')
42
42
  },
43
43
  },
44
+ {
45
+ id: 'upload',
46
+ label: '上传',
47
+ config: {
48
+ action: 'upload',
49
+ type: 'primary',
50
+ icon: 'material-symbols-light:upload-file',
51
+ uploadAccept: 'image/*',
52
+ uploadCallback: (data: any) => {
53
+ console.log(data)
54
+ return true; // 上传的网络请求返回 true 表示上传成功
55
+ },
56
+ uploadSuccess: () => {
57
+ console.log('上传成功')
58
+ },
59
+ },
60
+ },
44
61
  ])
45
62
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a2simcode/ui",
3
- "version": "0.0.187",
3
+ "version": "0.0.189",
4
4
  "description": "A Vue 3 UI Component Library",
5
5
  "type": "module",
6
6
  "main": "./dist/simcode-ui.umd.js",