widget.qw 1.0.34 → 1.0.35
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
|
@@ -387,18 +387,18 @@
|
|
|
387
387
|
color: #969799;
|
|
388
388
|
margin-right: 5px;
|
|
389
389
|
}
|
|
390
|
-
[data-v-
|
|
390
|
+
[data-v-6008668e] .label {
|
|
391
391
|
color: #000 !important;
|
|
392
392
|
}
|
|
393
|
-
[data-v-
|
|
393
|
+
[data-v-6008668e] .van-field__control:disabled {
|
|
394
394
|
color: #000 !important;
|
|
395
395
|
cursor: not-allowed;
|
|
396
396
|
opacity: 1;
|
|
397
397
|
-webkit-text-fill-color: #000;
|
|
398
|
-
}.widget[data-v-
|
|
398
|
+
}.widget[data-v-1b4c046a] {
|
|
399
399
|
text-align: center;
|
|
400
400
|
}
|
|
401
|
-
.widget .btn[data-v-
|
|
401
|
+
.widget .btn[data-v-1b4c046a] {
|
|
402
402
|
position: fixed;
|
|
403
403
|
bottom: 1rem;
|
|
404
404
|
left: 0;
|
package/build/widget.qw.es.js
CHANGED
|
@@ -18362,7 +18362,7 @@ const _sfc_main$j = {
|
|
|
18362
18362
|
}
|
|
18363
18363
|
};
|
|
18364
18364
|
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18365
|
-
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
18365
|
+
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-6008668e] .label {\n color: #000 !important;\n}\n[data-v-6008668e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18366
18366
|
const _hoisted_1$b = {
|
|
18367
18367
|
class: "image-box"
|
|
18368
18368
|
};
|
|
@@ -18391,7 +18391,7 @@ const _sfc_main$i = {
|
|
|
18391
18391
|
},
|
|
18392
18392
|
capture: {
|
|
18393
18393
|
type: String,
|
|
18394
|
-
default:
|
|
18394
|
+
default: ""
|
|
18395
18395
|
},
|
|
18396
18396
|
compress: {
|
|
18397
18397
|
type: Boolean,
|
|
@@ -18462,7 +18462,8 @@ const _sfc_main$i = {
|
|
|
18462
18462
|
"label-class": "label",
|
|
18463
18463
|
placeholder: props.placeholder
|
|
18464
18464
|
}, {
|
|
18465
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$b, [
|
|
18465
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$b, [props.capture ? (openBlock(), createBlock(_component_van_uploader, {
|
|
18466
|
+
key: 0,
|
|
18466
18467
|
modelValue: files.value,
|
|
18467
18468
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18468
18469
|
"max-count": 1,
|
|
@@ -18472,14 +18473,24 @@ const _sfc_main$i = {
|
|
|
18472
18473
|
disabled: unref(isDisabled),
|
|
18473
18474
|
deletable: !unref(isDisabled),
|
|
18474
18475
|
"before-delete": onBeforeDelete
|
|
18475
|
-
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])
|
|
18476
|
+
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])) : (openBlock(), createBlock(_component_van_uploader, {
|
|
18477
|
+
key: 1,
|
|
18478
|
+
modelValue: files.value,
|
|
18479
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
18480
|
+
"max-count": 1,
|
|
18481
|
+
accept: "image/jpeg,image/png",
|
|
18482
|
+
afterRead: onAfterRead,
|
|
18483
|
+
disabled: unref(isDisabled),
|
|
18484
|
+
deletable: !unref(isDisabled),
|
|
18485
|
+
"before-delete": onBeforeDelete
|
|
18486
|
+
}, null, 8, ["modelValue", "disabled", "deletable"]))])]),
|
|
18476
18487
|
_: 1
|
|
18477
18488
|
}, 8, ["label", "required", "rules", "placeholder"])) : createCommentVNode("", true);
|
|
18478
18489
|
};
|
|
18479
18490
|
}
|
|
18480
18491
|
};
|
|
18481
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
18482
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
18492
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6008668e"]]);
|
|
18493
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1b4c046a] {\n text-align: center;\n}\n.widget .btn[data-v-1b4c046a] {\n position: fixed;\n bottom: 1rem;\n left: 0;\n right: 0;\n margin: auto auto;\n color: white;\n font-size: 14px;\n background: rgb(58, 136, 255);\n padding: 8px 35px;\n width: 100px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n}")();
|
|
18483
18494
|
const _hoisted_1$a = {
|
|
18484
18495
|
class: "image-box"
|
|
18485
18496
|
};
|
|
@@ -18593,7 +18604,8 @@ const _sfc_main$h = {
|
|
|
18593
18604
|
"label-class": "label",
|
|
18594
18605
|
placeholder: props.placeholder
|
|
18595
18606
|
}, {
|
|
18596
|
-
input: withCtx(() => [createElementVNode("div", _hoisted_1$a, [
|
|
18607
|
+
input: withCtx(() => [createElementVNode("div", _hoisted_1$a, [props.capture ? (openBlock(), createBlock(_component_van_uploader, {
|
|
18608
|
+
key: 0,
|
|
18597
18609
|
modelValue: files.value,
|
|
18598
18610
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18599
18611
|
"max-count": props.max,
|
|
@@ -18603,13 +18615,23 @@ const _sfc_main$h = {
|
|
|
18603
18615
|
deletable: !unref(isDisabled),
|
|
18604
18616
|
afterRead: onAfterRead,
|
|
18605
18617
|
"before-delete": onBeforeDelete
|
|
18606
|
-
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])
|
|
18618
|
+
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])) : (openBlock(), createBlock(_component_van_uploader, {
|
|
18619
|
+
key: 1,
|
|
18620
|
+
modelValue: files.value,
|
|
18621
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
18622
|
+
"max-count": props.max,
|
|
18623
|
+
accept: "image/jpeg,image/png",
|
|
18624
|
+
disabled: unref(isDisabled),
|
|
18625
|
+
deletable: !unref(isDisabled),
|
|
18626
|
+
afterRead: onAfterRead,
|
|
18627
|
+
"before-delete": onBeforeDelete
|
|
18628
|
+
}, null, 8, ["modelValue", "max-count", "disabled", "deletable"]))])]),
|
|
18607
18629
|
_: 1
|
|
18608
18630
|
}, 8, ["label", "required", "rules", "placeholder"]);
|
|
18609
18631
|
};
|
|
18610
18632
|
}
|
|
18611
18633
|
};
|
|
18612
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
18634
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1b4c046a"]]);
|
|
18613
18635
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-a0846250] .label {\n color: #000 !important;\n}\n[data-v-a0846250] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18614
18636
|
const _hoisted_1$9 = {
|
|
18615
18637
|
class: "image-box"
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -18365,7 +18365,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18365
18365
|
}
|
|
18366
18366
|
};
|
|
18367
18367
|
var UserSelector = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6c4b4fc8"]]);
|
|
18368
|
-
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-
|
|
18368
|
+
var image_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-6008668e] .label {\n color: #000 !important;\n}\n[data-v-6008668e] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18369
18369
|
const _hoisted_1$b = {
|
|
18370
18370
|
class: "image-box"
|
|
18371
18371
|
};
|
|
@@ -18394,7 +18394,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18394
18394
|
},
|
|
18395
18395
|
capture: {
|
|
18396
18396
|
type: String,
|
|
18397
|
-
default:
|
|
18397
|
+
default: ""
|
|
18398
18398
|
},
|
|
18399
18399
|
compress: {
|
|
18400
18400
|
type: Boolean,
|
|
@@ -18465,7 +18465,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18465
18465
|
"label-class": "label",
|
|
18466
18466
|
placeholder: props.placeholder
|
|
18467
18467
|
}, {
|
|
18468
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$b, [vue.
|
|
18468
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$b, [props.capture ? (vue.openBlock(), vue.createBlock(_component_van_uploader, {
|
|
18469
|
+
key: 0,
|
|
18469
18470
|
modelValue: files.value,
|
|
18470
18471
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18471
18472
|
"max-count": 1,
|
|
@@ -18475,14 +18476,24 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18475
18476
|
disabled: vue.unref(isDisabled),
|
|
18476
18477
|
deletable: !vue.unref(isDisabled),
|
|
18477
18478
|
"before-delete": onBeforeDelete
|
|
18478
|
-
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])
|
|
18479
|
+
}, null, 8, ["modelValue", "capture", "disabled", "deletable"])) : (vue.openBlock(), vue.createBlock(_component_van_uploader, {
|
|
18480
|
+
key: 1,
|
|
18481
|
+
modelValue: files.value,
|
|
18482
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
18483
|
+
"max-count": 1,
|
|
18484
|
+
accept: "image/jpeg,image/png",
|
|
18485
|
+
afterRead: onAfterRead,
|
|
18486
|
+
disabled: vue.unref(isDisabled),
|
|
18487
|
+
deletable: !vue.unref(isDisabled),
|
|
18488
|
+
"before-delete": onBeforeDelete
|
|
18489
|
+
}, null, 8, ["modelValue", "disabled", "deletable"]))])]),
|
|
18479
18490
|
_: 1
|
|
18480
18491
|
}, 8, ["label", "required", "rules", "placeholder"])) : vue.createCommentVNode("", true);
|
|
18481
18492
|
};
|
|
18482
18493
|
}
|
|
18483
18494
|
};
|
|
18484
|
-
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
18485
|
-
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-
|
|
18495
|
+
var ImagePicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6008668e"]]);
|
|
18496
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".widget[data-v-1b4c046a] {\n text-align: center;\n}\n.widget .btn[data-v-1b4c046a] {\n position: fixed;\n bottom: 1rem;\n left: 0;\n right: 0;\n margin: auto auto;\n color: white;\n font-size: 14px;\n background: rgb(58, 136, 255);\n padding: 8px 35px;\n width: 100px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n}")();
|
|
18486
18497
|
const _hoisted_1$a = {
|
|
18487
18498
|
class: "image-box"
|
|
18488
18499
|
};
|
|
@@ -18596,7 +18607,8 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18596
18607
|
"label-class": "label",
|
|
18597
18608
|
placeholder: props.placeholder
|
|
18598
18609
|
}, {
|
|
18599
|
-
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$a, [vue.
|
|
18610
|
+
input: vue.withCtx(() => [vue.createElementVNode("div", _hoisted_1$a, [props.capture ? (vue.openBlock(), vue.createBlock(_component_van_uploader, {
|
|
18611
|
+
key: 0,
|
|
18600
18612
|
modelValue: files.value,
|
|
18601
18613
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => files.value = $event),
|
|
18602
18614
|
"max-count": props.max,
|
|
@@ -18606,13 +18618,23 @@ var __async = (__this, __arguments, generator) => {
|
|
|
18606
18618
|
deletable: !vue.unref(isDisabled),
|
|
18607
18619
|
afterRead: onAfterRead,
|
|
18608
18620
|
"before-delete": onBeforeDelete
|
|
18609
|
-
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])
|
|
18621
|
+
}, null, 8, ["modelValue", "max-count", "capture", "disabled", "deletable"])) : (vue.openBlock(), vue.createBlock(_component_van_uploader, {
|
|
18622
|
+
key: 1,
|
|
18623
|
+
modelValue: files.value,
|
|
18624
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => files.value = $event),
|
|
18625
|
+
"max-count": props.max,
|
|
18626
|
+
accept: "image/jpeg,image/png",
|
|
18627
|
+
disabled: vue.unref(isDisabled),
|
|
18628
|
+
deletable: !vue.unref(isDisabled),
|
|
18629
|
+
afterRead: onAfterRead,
|
|
18630
|
+
"before-delete": onBeforeDelete
|
|
18631
|
+
}, null, 8, ["modelValue", "max-count", "disabled", "deletable"]))])]),
|
|
18610
18632
|
_: 1
|
|
18611
18633
|
}, 8, ["label", "required", "rules", "placeholder"]);
|
|
18612
18634
|
};
|
|
18613
18635
|
}
|
|
18614
18636
|
};
|
|
18615
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-
|
|
18637
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1b4c046a"]]);
|
|
18616
18638
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-a0846250] .label {\n color: #000 !important;\n}\n[data-v-a0846250] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
18617
18639
|
const _hoisted_1$9 = {
|
|
18618
18640
|
class: "image-box"
|
package/package.json
CHANGED
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
label-class="label" :placeholder="props.placeholder">
|
|
4
4
|
<template #input>
|
|
5
5
|
<div class="image-box">
|
|
6
|
-
<van-uploader v-model="files" :max-count="1"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
:
|
|
6
|
+
<van-uploader v-if="props.capture" v-model="files" :max-count="1" :capture="props.capture"
|
|
7
|
+
accept="image/jpeg,image/png" :afterRead="onAfterRead" :disabled="isDisabled"
|
|
8
|
+
:deletable="!isDisabled" :before-delete="onBeforeDelete" />
|
|
9
|
+
<van-uploader v-else v-model="files" :max-count="1" accept="image/jpeg,image/png"
|
|
10
|
+
:afterRead="onAfterRead" :disabled="isDisabled" :deletable="!isDisabled"
|
|
10
11
|
:before-delete="onBeforeDelete" />
|
|
11
12
|
</div>
|
|
12
13
|
</template>
|
|
@@ -35,13 +36,13 @@ const props = defineProps({
|
|
|
35
36
|
type: Boolean,
|
|
36
37
|
default: false
|
|
37
38
|
},
|
|
38
|
-
placeholder:{
|
|
39
|
-
type:String,
|
|
40
|
-
default:''
|
|
39
|
+
placeholder: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ''
|
|
41
42
|
},
|
|
42
|
-
capture:{
|
|
43
|
-
type:String,
|
|
44
|
-
default:
|
|
43
|
+
capture: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ''
|
|
45
46
|
},
|
|
46
47
|
compress: {
|
|
47
48
|
type: Boolean,
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
:placeholder="props.placeholder">
|
|
4
4
|
<template #input>
|
|
5
5
|
<div class="image-box">
|
|
6
|
-
<van-uploader v-model="files" :max-count="props.max" :capture="props.capture"
|
|
6
|
+
<van-uploader v-if="props.capture" v-model="files" :max-count="props.max" :capture="props.capture"
|
|
7
7
|
accept="image/jpeg,image/png" :disabled="isDisabled" :deletable="!isDisabled"
|
|
8
8
|
:afterRead="onAfterRead" :before-delete="onBeforeDelete" />
|
|
9
|
+
<van-uploader v-else v-model="files" :max-count="props.max" accept="image/jpeg,image/png"
|
|
10
|
+
:disabled="isDisabled" :deletable="!isDisabled" :afterRead="onAfterRead"
|
|
11
|
+
:before-delete="onBeforeDelete" />
|
|
9
12
|
</div>
|
|
10
13
|
</template>
|
|
11
14
|
</van-field>
|