widget.qw 1.0.80 → 1.0.81
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
|
@@ -2971,6 +2971,7 @@ function removeToken() {
|
|
|
2971
2971
|
const props2auth = (props) => {
|
|
2972
2972
|
return {
|
|
2973
2973
|
isRequired: computed(() => {
|
|
2974
|
+
console.log("111111111", props);
|
|
2974
2975
|
if (props.auth) {
|
|
2975
2976
|
return props.auth == "require";
|
|
2976
2977
|
}
|
|
@@ -19943,7 +19944,7 @@ const _sfc_main$j = {
|
|
|
19943
19944
|
}
|
|
19944
19945
|
};
|
|
19945
19946
|
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-
|
|
19947
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-7ebfc739] {\n width: 80px;\n height: 80px;\n}")();
|
|
19947
19948
|
const _hoisted_1$c = {
|
|
19948
19949
|
class: "image-box"
|
|
19949
19950
|
};
|
|
@@ -20139,7 +20140,7 @@ const _sfc_main$i = {
|
|
|
20139
20140
|
src: cover,
|
|
20140
20141
|
onClick: ($event) => onPreview(i)
|
|
20141
20142
|
}, null, 8, _hoisted_2$7);
|
|
20142
|
-
}), 128)) : createCommentVNode("", true), unref(modelValue).length > props.maxPreview && (unref(isReadonly) || unref(isDisabled)) ? (openBlock(), createBlock(_component_van_icon, {
|
|
20143
|
+
}), 128)) : createCommentVNode("", true), (unref(modelValue) || []).length > props.maxPreview && (unref(isReadonly) || unref(isDisabled)) ? (openBlock(), createBlock(_component_van_icon, {
|
|
20143
20144
|
key: 3,
|
|
20144
20145
|
name: "ellipsis",
|
|
20145
20146
|
onClick: onToggleMore
|
|
@@ -20149,7 +20150,7 @@ const _sfc_main$i = {
|
|
|
20149
20150
|
};
|
|
20150
20151
|
}
|
|
20151
20152
|
};
|
|
20152
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
20153
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7ebfc739"]]);
|
|
20153
20154
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-cf8ec8a0] .label {\n color: #000 !important;\n}\n[data-v-cf8ec8a0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20154
20155
|
const _hoisted_1$b = {
|
|
20155
20156
|
class: "file-box"
|
package/build/widget.qw.umd.js
CHANGED
|
@@ -2974,6 +2974,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
2974
2974
|
const props2auth = (props) => {
|
|
2975
2975
|
return {
|
|
2976
2976
|
isRequired: vue.computed(() => {
|
|
2977
|
+
console.log("111111111", props);
|
|
2977
2978
|
if (props.auth) {
|
|
2978
2979
|
return props.auth == "require";
|
|
2979
2980
|
}
|
|
@@ -19946,7 +19947,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
19946
19947
|
}
|
|
19947
19948
|
};
|
|
19948
19949
|
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-
|
|
19950
|
+
var images_picker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-box .cover[data-v-7ebfc739] {\n width: 80px;\n height: 80px;\n}")();
|
|
19950
19951
|
const _hoisted_1$c = {
|
|
19951
19952
|
class: "image-box"
|
|
19952
19953
|
};
|
|
@@ -20142,7 +20143,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20142
20143
|
src: cover,
|
|
20143
20144
|
onClick: ($event) => onPreview(i)
|
|
20144
20145
|
}, null, 8, _hoisted_2$7);
|
|
20145
|
-
}), 128)) : vue.createCommentVNode("", true), vue.unref(modelValue).length > props.maxPreview && (vue.unref(isReadonly) || vue.unref(isDisabled)) ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
|
|
20146
|
+
}), 128)) : vue.createCommentVNode("", true), (vue.unref(modelValue) || []).length > props.maxPreview && (vue.unref(isReadonly) || vue.unref(isDisabled)) ? (vue.openBlock(), vue.createBlock(_component_van_icon, {
|
|
20146
20147
|
key: 3,
|
|
20147
20148
|
name: "ellipsis",
|
|
20148
20149
|
onClick: onToggleMore
|
|
@@ -20152,7 +20153,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
20152
20153
|
};
|
|
20153
20154
|
}
|
|
20154
20155
|
};
|
|
20155
|
-
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
20156
|
+
var ImagesPicker = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-7ebfc739"]]);
|
|
20156
20157
|
var FilePicker_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => "[data-v-cf8ec8a0] .label {\n color: #000 !important;\n}\n[data-v-cf8ec8a0] .van-field__control:disabled {\n color: #000 !important;\n cursor: not-allowed;\n opacity: 1;\n -webkit-text-fill-color: #000;\n}")();
|
|
20157
20158
|
const _hoisted_1$b = {
|
|
20158
20159
|
class: "file-box"
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
:show-upload="!isReadonly" />
|
|
14
14
|
<img class="cover" v-if="isReadonly || isDisabled" v-for="(cover, i) in previews" :key="i" :src="cover"
|
|
15
15
|
@click="onPreview(i)" />
|
|
16
|
-
<van-icon v-if="modelValue.length > props.maxPreview && (isReadonly || isDisabled)" name="ellipsis"
|
|
16
|
+
<van-icon v-if="(modelValue || []).length > props.maxPreview && (isReadonly || isDisabled)" name="ellipsis"
|
|
17
17
|
@click="onToggleMore" />
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
package/src/util/auth_util.js
CHANGED
|
@@ -8,13 +8,19 @@
|
|
|
8
8
|
import { onMounted, reactive, watch } from "vue";
|
|
9
9
|
|
|
10
10
|
const data = reactive({
|
|
11
|
-
auth:'
|
|
11
|
+
auth:'readonly',
|
|
12
12
|
urls: []
|
|
13
13
|
})
|
|
14
14
|
|
|
15
15
|
watch(()=>data.url,(newVal,oldVal)=>{
|
|
16
16
|
console.log(newVal,oldVal)
|
|
17
17
|
})
|
|
18
|
+
|
|
19
|
+
onMounted(()=>{
|
|
20
|
+
setTimeout(()=>{
|
|
21
|
+
data.auth = 'require'
|
|
22
|
+
},3000)
|
|
23
|
+
})
|
|
18
24
|
</script>
|
|
19
25
|
|
|
20
26
|
<style lang="scss" scoped>
|