@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.cjs.js CHANGED
@@ -16168,6 +16168,11 @@ var script$4 = {
16168
16168
  },
16169
16169
  // eslint-disable-next-line
16170
16170
  hdlSuccess (response, file, fileList) { // 上传
16171
+
16172
+ console.log('测试 000', response);
16173
+ console.log('测试 111', file);
16174
+ console.log('测试 222', fileList);
16175
+
16171
16176
  if (response.code === 0) {
16172
16177
  // 重置文件列表
16173
16178
  // 因为只能上传1个图片,这里需要清空图片列表
@@ -16226,10 +16231,10 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16226
16231
  "on-success": $options.hdlSuccess
16227
16232
  }, {
16228
16233
  default: vue.withCtx(() => [
16229
- ($data.fileList.length>0 && $data.fileList[0].src)
16234
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16230
16235
  ? (vue.openBlock(), vue.createElementBlock("img", {
16231
16236
  key: 0,
16232
- src: $data.fileList[0].src,
16237
+ src: $data.fileList[0].response.data.src,
16233
16238
  class: "avatar",
16234
16239
  style: vue.normalizeStyle($options.hdlStyleAvatarImage())
16235
16240
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
@@ -16246,7 +16251,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16246
16251
  ]),
16247
16252
  _: 1 /* STABLE */
16248
16253
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
16249
- ($data.fileList.length>0 && $data.fileList[0].src)
16254
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16250
16255
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$4, [
16251
16256
  vue.createVNode(_component_el_button, {
16252
16257
  size: "small",
@@ -16389,10 +16394,10 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16389
16394
  "on-success": $options.hdlSuccess
16390
16395
  }, {
16391
16396
  default: vue.withCtx(() => [
16392
- ($data.fileList.length>0 && $data.fileList[0].src)
16397
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16393
16398
  ? (vue.openBlock(), vue.createElementBlock("img", {
16394
16399
  key: 0,
16395
- src: $data.fileList[0].src,
16400
+ src: $data.fileList[0].response.data.src,
16396
16401
  class: "avatar",
16397
16402
  style: vue.normalizeStyle($options.hdlStyleAvatarImage())
16398
16403
  }, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
@@ -16409,7 +16414,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16409
16414
  ]),
16410
16415
  _: 1 /* STABLE */
16411
16416
  }, 8 /* PROPS */, ["style", "action", "file-list", "before-upload", "on-preview", "on-remove", "on-success"]),
16412
- ($data.fileList.length>0 && $data.fileList[0].src)
16417
+ ($data.fileList.length>0 && $data.fileList[0].response && $data.fileList[0].response.data && $data.fileList[0].response.data.src)
16413
16418
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
16414
16419
  vue.createVNode(_component_el_button, {
16415
16420
  size: "small",