@yoooloo42/joker 1.0.19 → 1.0.21

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