@yoooloo42/joker 1.0.236 → 1.0.237

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/dist/index.cjs.js CHANGED
@@ -42825,7 +42825,7 @@ const myProps_box = vue.reactive(unclassified.deepClone.deepMerge(
42825
42825
  unclassified.deepClone.deepClone(ly0default.myProps),
42826
42826
  props.myProps
42827
42827
  ));
42828
- const fileList_box = vue.reactive([]);
42828
+ let fileList_box = vue.reactive([]);
42829
42829
  props.modelValue.forEach((item, index) => {
42830
42830
  fileList_box.push({
42831
42831
  name: item.substring(item.lastIndexOf('/') + 1) ?? 'Old_' + index,
@@ -42924,8 +42924,8 @@ return (_ctx, _cache) => {
42924
42924
  class: "avatar",
42925
42925
  style: vue.normalizeStyle(style.avatarBox),
42926
42926
  action: myProps_box.uploadUrl,
42927
- "file-list": fileList_box,
42928
- "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((fileList_box) = $event)),
42927
+ "file-list": vue.unref(fileList_box),
42928
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => (vue.isRef(fileList_box) ? (fileList_box).value = $event : fileList_box = $event)),
42929
42929
  "show-file-list": false,
42930
42930
  "before-upload": hdl.beforeUpload,
42931
42931
  "on-preview": hdl.preview,
@@ -42933,10 +42933,10 @@ return (_ctx, _cache) => {
42933
42933
  "on-success": hdl.success
42934
42934
  }, {
42935
42935
  default: vue.withCtx(() => [
42936
- (fileList_box.length>0 && fileList_box[0].response && fileList_box[0].response.data && fileList_box[0].response.data.src)
42936
+ (vue.unref(fileList_box).length>0 && vue.unref(fileList_box)[0].response && vue.unref(fileList_box)[0].response.data && vue.unref(fileList_box)[0].response.data.src)
42937
42937
  ? (vue.openBlock(), vue.createElementBlock("img", {
42938
42938
  key: 0,
42939
- src: fileList_box[0].response.data.src,
42939
+ src: vue.unref(fileList_box)[0].response.data.src,
42940
42940
  class: "avatar",
42941
42941
  style: vue.normalizeStyle(style.avatarImage)
42942
42942
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$a))
@@ -42953,7 +42953,7 @@ return (_ctx, _cache) => {
42953
42953
  ]),
42954
42954
  _: 1 /* STABLE */
42955
42955
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
42956
- (fileList_box.length>0 && fileList_box[0].response && fileList_box[0].response.data && fileList_box[0].response.data.src)
42956
+ (vue.unref(fileList_box).length>0 && vue.unref(fileList_box)[0].response && vue.unref(fileList_box)[0].response.data && vue.unref(fileList_box)[0].response.data.src)
42957
42957
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
42958
42958
  vue.createVNode(_component_el_button, {
42959
42959
  size: "small",