@varlet/ui 1.26.5 → 1.26.6
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.
- package/es/date-picker/DatePicker.js +5 -2
- package/es/date-picker/date-picker.css +1 -1
- package/es/date-picker/date-picker.less +10 -0
- package/es/date-picker/src/day-picker-panel.js +8 -4
- package/es/date-picker/src/month-picker-panel.js +8 -4
- package/es/snackbar/style/index.js +1 -1
- package/es/snackbar/style/less.js +1 -1
- package/es/style.css +1 -1
- package/es/uploader/Uploader.js +14 -1
- package/es/uploader/props.js +4 -0
- package/es/varlet.esm.js +41 -14
- package/highlight/attributes.json +4 -0
- package/highlight/tags.json +1 -0
- package/highlight/web-types.json +10 -1
- package/lib/date-picker/DatePicker.js +6 -2
- package/lib/date-picker/date-picker.css +1 -1
- package/lib/date-picker/date-picker.less +10 -0
- package/lib/date-picker/src/day-picker-panel.js +8 -4
- package/lib/date-picker/src/month-picker-panel.js +8 -4
- package/lib/style.css +1 -1
- package/lib/uploader/Uploader.js +14 -1
- package/lib/uploader/props.js +4 -0
- package/package.json +4 -4
- package/types/uploader.d.ts +1 -0
- package/umd/varlet.js +4 -4
package/lib/uploader/Uploader.js
CHANGED
|
@@ -58,7 +58,7 @@ function render(_ctx, _cache) {
|
|
|
58
58
|
|
|
59
59
|
var _directive_ripple = (0, _vue.resolveDirective)("ripple");
|
|
60
60
|
|
|
61
|
-
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [(0, _vue.createElementVNode)("div", _hoisted_2, [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.
|
|
61
|
+
return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", _hoisted_1, [(0, _vue.createElementVNode)("div", _hoisted_2, [((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, null, (0, _vue.renderList)(_ctx.files, f => {
|
|
62
62
|
return (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
|
|
63
63
|
class: (0, _vue.normalizeClass)(["var-uploader__file var-elevation--2", [f.state === 'loading' ? 'var-uploader--loading' : null]]),
|
|
64
64
|
key: f.id,
|
|
@@ -193,6 +193,18 @@ var _default = (0, _vue.defineComponent)({
|
|
|
193
193
|
// expose
|
|
194
194
|
resetValidation
|
|
195
195
|
} = (0, _components.useValidation)();
|
|
196
|
+
var files = (0, _vue.computed)(() => {
|
|
197
|
+
var {
|
|
198
|
+
modelValue,
|
|
199
|
+
hideList
|
|
200
|
+
} = props;
|
|
201
|
+
|
|
202
|
+
if (hideList) {
|
|
203
|
+
return [];
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return modelValue;
|
|
207
|
+
});
|
|
196
208
|
|
|
197
209
|
var preview = varFile => {
|
|
198
210
|
var {
|
|
@@ -416,6 +428,7 @@ var _default = (0, _vue.defineComponent)({
|
|
|
416
428
|
deep: true
|
|
417
429
|
});
|
|
418
430
|
return {
|
|
431
|
+
files,
|
|
419
432
|
showPreview,
|
|
420
433
|
currentPreview,
|
|
421
434
|
errorMessage,
|
package/lib/uploader/props.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.6",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -39,13 +39,13 @@
|
|
|
39
39
|
},
|
|
40
40
|
"gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@varlet/icons": "1.26.
|
|
42
|
+
"@varlet/icons": "1.26.6",
|
|
43
43
|
"dayjs": "^1.10.4",
|
|
44
44
|
"decimal.js": "^10.2.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@varlet/cli": "1.26.
|
|
48
|
-
"@varlet/touch-emulator": "1.26.
|
|
47
|
+
"@varlet/cli": "1.26.6",
|
|
48
|
+
"@varlet/touch-emulator": "1.26.6",
|
|
49
49
|
"@vue/test-utils": "2.0.0-rc.6",
|
|
50
50
|
"@vue/runtime-core": "3.2.25",
|
|
51
51
|
"typescript": "^4.4.4",
|
package/types/uploader.d.ts
CHANGED