widget.qw 1.0.77 → 1.0.78
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/build/style.css
CHANGED
package/build/widget.qw.es.js
CHANGED
|
@@ -19943,7 +19943,7 @@ const _sfc_main$j = {
|
|
|
19943
19943
|
}
|
|
19944
19944
|
};
|
|
19945
19945
|
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-16be97a4"]]);
|
|
19946
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-
|
|
19946
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-572cd71d] {\n width: 80px;\n height: 80px;\n}")();
|
|
19947
19947
|
const _hoisted_1$c = {
|
|
19948
19948
|
class: "image-box"
|
|
19949
19949
|
};
|
|
@@ -20084,6 +20084,7 @@ const _sfc_main$i = {
|
|
|
20084
20084
|
key: 0,
|
|
20085
20085
|
modelValue: files.value,
|
|
20086
20086
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
20087
|
+
multiple: "",
|
|
20087
20088
|
"max-count": props.max,
|
|
20088
20089
|
capture: props.capture,
|
|
20089
20090
|
accept: "image/jpeg,image/png",
|
|
@@ -20096,6 +20097,7 @@ const _sfc_main$i = {
|
|
|
20096
20097
|
key: 1,
|
|
20097
20098
|
modelValue: files.value,
|
|
20098
20099
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
20100
|
+
multiple: "",
|
|
20099
20101
|
"max-count": props.max,
|
|
20100
20102
|
accept: "image/jpeg,image/png",
|
|
20101
20103
|
disabled: unref(isDisabled),
|
|
@@ -20122,7 +20124,7 @@ const _sfc_main$i = {
|
|
|
20122
20124
|
};
|
|
20123
20125
|
}
|
|
20124
20126
|
};
|
|
20125
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
20127
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-572cd71d"]]);
|
|
20126
20128
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-df75f4fa] .label {\n color: #000 !important;\n}\n[data-v-df75f4fa] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20127
20129
|
const _hoisted_1$b = {
|
|
20128
20130
|
class: "file-box"
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -19946,7 +19946,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19946
19946
|
}
|
|
19947
19947
|
};
|
|
19948
19948
|
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-16be97a4"]]);
|
|
19949
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-
|
|
19949
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-572cd71d] {\n width: 80px;\n height: 80px;\n}")();
|
|
19950
19950
|
const _hoisted_1$c = {
|
|
19951
19951
|
class: "image-box"
|
|
19952
19952
|
};
|
|
@@ -20087,6 +20087,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20087
20087
|
key: 0,
|
|
20088
20088
|
modelValue: files.value,
|
|
20089
20089
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
20090
|
+
multiple: "",
|
|
20090
20091
|
"max-count": props.max,
|
|
20091
20092
|
capture: props.capture,
|
|
20092
20093
|
accept: "image/jpeg,image/png",
|
|
@@ -20099,6 +20100,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20099
20100
|
key: 1,
|
|
20100
20101
|
modelValue: files.value,
|
|
20101
20102
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
20103
|
+
multiple: "",
|
|
20102
20104
|
"max-count": props.max,
|
|
20103
20105
|
accept: "image/jpeg,image/png",
|
|
20104
20106
|
disabled: vue.unref(isDisabled),
|
|
@@ -20125,7 +20127,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20125
20127
|
};
|
|
20126
20128
|
}
|
|
20127
20129
|
};
|
|
20128
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
20130
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-572cd71d"]]);
|
|
20129
20131
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-df75f4fa] .label {\n color: #000 !important;\n}\n[data-v-df75f4fa] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20130
20132
|
const _hoisted_1$b = {
|
|
20131
20133
|
class: "file-box"
|
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
:placeholder="props.placeholder">
|
|
4
4
|
<template #input>
|
|
5
5
|
<div class="image-box">
|
|
6
|
-
<van-uploader v-if="props.capture && (!isReadonly && !isDisabled)" v-model="files" :max-count="props.max"
|
|
6
|
+
<van-uploader v-if="props.capture && (!isReadonly && !isDisabled)" v-model="files" multiple :max-count="props.max"
|
|
7
7
|
:capture="props.capture" accept="image/jpeg,image/png" :disabled="isDisabled"
|
|
8
8
|
:deletable="!isRequired && !isDisabled" :afterRead="onAfterRead" :before-delete="onBeforeDelete"
|
|
9
9
|
:show-upload="!isReadonly" />
|
|
10
|
-
<van-uploader v-if="!props.capture && (!isReadonly && !isDisabled)" v-model="files" :max-count="props.max"
|
|
10
|
+
<van-uploader v-if="!props.capture && (!isReadonly && !isDisabled)" v-model="files" multiple :max-count="props.max"
|
|
11
11
|
accept="image/jpeg,image/png" :disabled="isDisabled" :deletable="!isReadonly && !isDisabled"
|
|
12
12
|
:afterRead="onAfterRead" :before-delete="onBeforeDelete" :show-upload="!isReadonly" />
|
|
13
13
|
<img class="cover" v-if="isReadonly || isDisabled" v-for="(cover, i) in previews" :key="i" :src="cover" @click="onPreview(i)" />
|