@yoooloo42/joker 1.0.18 → 1.0.20

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
@@ -16164,6 +16164,11 @@ var script$4 = {
16164
16164
  },
16165
16165
  // eslint-disable-next-line
16166
16166
  hdlSuccess (response, file, fileList) { // 上传
16167
+
16168
+ console.log('测试 000', response);
16169
+ console.log('测试 111', file);
16170
+ console.log('测试 222', fileList);
16171
+
16167
16172
  if (response.code === 0) {
16168
16173
  // 重置文件列表
16169
16174
  // 因为只能上传1个图片,这里需要清空图片列表
@@ -16222,10 +16227,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16222
16227
  "on-success": $options.hdlSuccess
16223
16228
  }, {
16224
16229
  default: withCtx(() => [
16225
- ($data.fileList.length>0 && $data.fileList[0].src)
16230
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16226
16231
  ? (openBlock(), createElementBlock("img", {
16227
16232
  key: 0,
16228
- src: $data.fileList[0].src,
16233
+ src: $data.fileList[0].response.data.src,
16229
16234
  class: "avatar",
16230
16235
  style: normalizeStyle($options.hdlStyleAvatarImage())
16231
16236
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
@@ -16242,7 +16247,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16242
16247
  ]),
16243
16248
  _: 1 /* STABLE */
16244
16249
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
16245
- ($data.fileList.length>0 && $data.fileList[0].src)
16250
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16246
16251
  ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
16247
16252
  createVNode(_component_el_button, {
16248
16253
  size: "small",
@@ -16385,10 +16390,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16385
16390
  "on-success": $options.hdlSuccess
16386
16391
  }, {
16387
16392
  default: withCtx(() => [
16388
- ($data.fileList.length>0 && $data.fileList[0].src)
16393
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16389
16394
  ? (openBlock(), createElementBlock("img", {
16390
16395
  key: 0,
16391
- src: $data.fileList[0].src,
16396
+ src: $data.fileList[0].response.data.src,
16392
16397
  class: "avatar",
16393
16398
  style: normalizeStyle($options.hdlStyleAvatarImage())
16394
16399
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
@@ -16405,7 +16410,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16405
16410
  ]),
16406
16411
  _: 1 /* STABLE */
16407
16412
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
16408
- ($data.fileList.length>0 && $data.fileList[0].src)
16413
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16409
16414
  ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
16410
16415
  createVNode(_component_el_button, {
16411
16416
  size: "small",