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