@vunk/form 0.0.1-alpha.51 → 0.0.1-alpha.52

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.
@@ -17,6 +17,10 @@
17
17
  min-width: 100px;
18
18
  }
19
19
 
20
+ .vkf-upload.is-limit .el-upload{
21
+ display: none;
22
+ }
23
+
20
24
 
21
25
  .el-upload-list__item-status-label{
22
26
  z-index: 1;
@@ -544,7 +544,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
544
544
  createVNode(_component_ElUpload, mergeProps({
545
545
  class: ["vkf-upload", {
546
546
  "is-readonly": _ctx.readonly,
547
- "is-empty": _ctx.fileList?.length === 0
547
+ "is-empty": _ctx.fileList?.length === 0,
548
+ "is-limit": _ctx.limit && _ctx.fileList?.length >= _ctx.limit
548
549
  }]
549
550
  }, _ctx.coreBindProps, {
550
551
  fileList: _ctx.fileList ?? [],
package/index.css CHANGED
@@ -139,6 +139,10 @@
139
139
  min-width: 100px;
140
140
  }
141
141
 
142
+ .vkf-upload.is-limit .el-upload{
143
+ display: none;
144
+ }
145
+
142
146
 
143
147
  .el-upload-list__item-status-label{
144
148
  z-index: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.51",
3
+ "version": "0.0.1-alpha.52",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {