@vunk/form 0.0.1-alpha.32 → 0.0.1-alpha.33

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.
@@ -1,9 +1,18 @@
1
1
 
2
+ .vkf-upload-empty-tip{
3
+ display: none;
4
+ }
5
+ .vkf-upload-empty-tip.is-readonly{
6
+ display: block;
7
+ }
2
8
 
3
9
  .vkf-upload.is-readonly .el-upload,
4
10
  .vkf-upload.is-readonly .el-upload{
5
11
  display: none;
6
12
  }
13
+ .vkf-upload.is-readonly.is-empty {
14
+ display: none;
15
+ }
7
16
  .vkf-upload .el-upload-list{
8
17
  min-width: 100px;
9
18
  }
@@ -441,7 +441,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
441
441
  return [
442
442
  createVNode(_component_ElUpload, mergeProps({
443
443
  class: ["vkf-upload", {
444
- "is-readonly": _ctx.readonly
444
+ "is-readonly": _ctx.readonly,
445
+ "is-empty": _ctx.fileList.length === 0
445
446
  }]
446
447
  }, _ctx.coreBindProps, {
447
448
  fileList: (_a = _ctx.fileList) != null ? _a : [],
@@ -475,7 +476,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
475
476
  createElementVNode("div", _hoisted_2, toDisplayString(_ctx.tip), 1)
476
477
  ])
477
478
  } : void 0
478
- ]), 1040, ["class", "fileList", "disabled"])
479
+ ]), 1040, ["class", "fileList", "disabled"]),
480
+ createElementVNode("span", {
481
+ class: normalizeClass(["vkf-upload-empty-tip", {
482
+ "is-readonly": _ctx.readonly
483
+ }])
484
+ }, "\u6682\u65E0", 2)
479
485
  ];
480
486
  }),
481
487
  _: 3
package/index.css CHANGED
@@ -123,11 +123,20 @@
123
123
  }
124
124
 
125
125
 
126
+ .vkf-upload-empty-tip{
127
+ display: none;
128
+ }
129
+ .vkf-upload-empty-tip.is-readonly{
130
+ display: block;
131
+ }
126
132
 
127
133
  .vkf-upload.is-readonly .el-upload,
128
134
  .vkf-upload.is-readonly .el-upload{
129
135
  display: none;
130
136
  }
137
+ .vkf-upload.is-readonly.is-empty {
138
+ display: none;
139
+ }
131
140
  .vkf-upload .el-upload-list{
132
141
  min-width: 100px;
133
142
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.32",
3
+ "version": "0.0.1-alpha.33",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {