@yoooloo42/joker 1.0.14 → 1.0.15

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
@@ -15968,9 +15968,6 @@ var script$5 = {
15968
15968
  },
15969
15969
  methods: {
15970
15970
  hdlBeforeUpload (file) {
15971
-
15972
- console.log('测试 222', this.myProps0.uploadUrl);
15973
-
15974
15971
  let isFileType = !this.myProps0.type || file.type === this.myProps0.type;
15975
15972
  let isFileSize = file.size / 1024 < this.myProps0.size;
15976
15973
 
@@ -15985,8 +15982,6 @@ var script$5 = {
15985
15982
 
15986
15983
  this.$message('正在上传 ...');
15987
15984
 
15988
- console.log('测试 000', this.myProps0.uploadUrl);
15989
-
15990
15985
  return true
15991
15986
  },
15992
15987
  // eslint-disable-next-line
@@ -16008,10 +16003,6 @@ var script$5 = {
16008
16003
  });
16009
16004
  },
16010
16005
  hdlSuccess (response, file, fileList) { // 上传
16011
-
16012
- console.log('测试 000', this.myProps0.uploadUrl);
16013
- console.log('测试 111', response);
16014
-
16015
16006
  if (response.code === 0) {
16016
16007
  // 重置文件列表
16017
16008
  this.fileList = fileList;
@@ -16063,6 +16054,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
16063
16054
  createVNode(_component_el_upload, {
16064
16055
  action: $options.myProps0.uploadUrl,
16065
16056
  "file-list": $data.fileList,
16057
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
16066
16058
  "list-type": "text",
16067
16059
  "before-upload": $options.hdlBeforeUpload,
16068
16060
  "on-preview": $options.hdlPreview,
@@ -16078,7 +16070,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
16078
16070
  size: "small",
16079
16071
  type: "primary"
16080
16072
  }, {
16081
- default: withCtx(() => [...(_cache[0] || (_cache[0] = [
16073
+ default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16082
16074
  createTextVNode("点击上传", -1 /* CACHED */)
16083
16075
  ]))]),
16084
16076
  _: 1 /* STABLE */
@@ -16096,7 +16088,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
16096
16088
  style: {"margin-top":"10px"},
16097
16089
  onClick: $options.hdlDeleteAll
16098
16090
  }, {
16099
- default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16091
+ default: withCtx(() => [...(_cache[2] || (_cache[2] = [
16100
16092
  createTextVNode("删除全部已上传文件", -1 /* CACHED */)
16101
16093
  ]))]),
16102
16094
  _: 1 /* STABLE */
@@ -16222,6 +16214,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16222
16214
  style: normalizeStyle($options.hdlStyleAvatarBox()),
16223
16215
  action: $options.myProps0.uploadUrl,
16224
16216
  "file-list": $data.fileList,
16217
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
16225
16218
  "show-file-list": false,
16226
16219
  "before-upload": $options.hdlBeforeUpload,
16227
16220
  "on-preview": $options.hdlPreview,
@@ -16256,7 +16249,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
16256
16249
  style: {"margin-top":"10px"},
16257
16250
  onClick: $options.hdlDeleteAll
16258
16251
  }, {
16259
- default: withCtx(() => [...(_cache[0] || (_cache[0] = [
16252
+ default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16260
16253
  createTextVNode("删除", -1 /* CACHED */)
16261
16254
  ]))]),
16262
16255
  _: 1 /* STABLE */
@@ -16383,6 +16376,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16383
16376
  style: normalizeStyle($options.hdlStyleAvatarBox()),
16384
16377
  action: $options.myProps0.uploadUrl,
16385
16378
  "file-list": $data.fileList,
16379
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
16386
16380
  "show-file-list": false,
16387
16381
  "before-upload": $options.hdlBeforeUpload,
16388
16382
  "on-preview": $options.hdlPreview,
@@ -16417,7 +16411,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
16417
16411
  style: {"margin-top":"10px"},
16418
16412
  onClick: $options.hdlDeleteAll
16419
16413
  }, {
16420
- default: withCtx(() => [...(_cache[0] || (_cache[0] = [
16414
+ default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16421
16415
  createTextVNode("删除", -1 /* CACHED */)
16422
16416
  ]))]),
16423
16417
  _: 1 /* STABLE */
@@ -16530,6 +16524,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
16530
16524
  createVNode(_component_el_upload, {
16531
16525
  action: $options.myProps0.uploadUrl,
16532
16526
  "file-list": $data.fileList,
16527
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
16533
16528
  "list-type": "text",
16534
16529
  "before-upload": $options.hdlBeforeUpload,
16535
16530
  "on-preview": $options.hdlPreview,
@@ -16548,7 +16543,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
16548
16543
  ]),
16549
16544
  _: 1 /* STABLE */
16550
16545
  }),
16551
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "el-upload__text" }, [
16546
+ _cache[1] || (_cache[1] = createElementVNode("div", { class: "el-upload__text" }, [
16552
16547
  createTextVNode("将文件拖到此处,或"),
16553
16548
  createElementVNode("em", null, "点击上传")
16554
16549
  ], -1 /* CACHED */))
@@ -16565,7 +16560,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
16565
16560
  style: {"margin-top":"10px"},
16566
16561
  onClick: $options.hdlDeleteAll
16567
16562
  }, {
16568
- default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16563
+ default: withCtx(() => [...(_cache[2] || (_cache[2] = [
16569
16564
  createTextVNode("删除全部已上传文件", -1 /* CACHED */)
16570
16565
  ]))]),
16571
16566
  _: 1 /* STABLE */
@@ -16674,6 +16669,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
16674
16669
  createVNode(_component_el_upload, {
16675
16670
  action: $options.myProps0.uploadUrl,
16676
16671
  "file-list": $data.fileList,
16672
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
16677
16673
  "list-type": "picture",
16678
16674
  "before-upload": $options.hdlBeforeUpload,
16679
16675
  "on-preview": $options.hdlPreview,
@@ -16689,7 +16685,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
16689
16685
  size: "small",
16690
16686
  type: "primary"
16691
16687
  }, {
16692
- default: withCtx(() => [...(_cache[0] || (_cache[0] = [
16688
+ default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16693
16689
  createTextVNode("点击上传", -1 /* CACHED */)
16694
16690
  ]))]),
16695
16691
  _: 1 /* STABLE */
@@ -16707,7 +16703,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
16707
16703
  style: {"margin-top":"10px"},
16708
16704
  onClick: $options.hdlDeleteAll
16709
16705
  }, {
16710
- default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16706
+ default: withCtx(() => [...(_cache[2] || (_cache[2] = [
16711
16707
  createTextVNode("删除全部已上传图片", -1 /* CACHED */)
16712
16708
  ]))]),
16713
16709
  _: 1 /* STABLE */
@@ -16825,6 +16821,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
16825
16821
  createVNode(_component_el_upload, {
16826
16822
  action: $options.myProps0.uploadUrl,
16827
16823
  "file-list": _ctx.fileList,
16824
+ "onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((_ctx.fileList) = $event)),
16828
16825
  "list-type": "picture-card",
16829
16826
  "before-upload": $options.hdlBeforeUpload,
16830
16827
  "on-preview": $options.hdlPreview,
@@ -16847,13 +16844,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
16847
16844
  }, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
16848
16845
  createVNode(_component_el_dialog, {
16849
16846
  modelValue: _ctx.dialogVisible,
16850
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => ((_ctx.dialogVisible) = $event))
16847
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((_ctx.dialogVisible) = $event))
16851
16848
  }, {
16852
16849
  default: withCtx(() => [
16853
16850
  createElementVNode("img", {
16854
- width: "100%",
16851
+ "w-full": "",
16855
16852
  src: _ctx.dialogImageUrl,
16856
- alt: ""
16853
+ alt: "Preview Image"
16857
16854
  }, null, 8 /* PROPS */, _hoisted_2)
16858
16855
  ]),
16859
16856
  _: 1 /* STABLE */
@@ -16868,7 +16865,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
16868
16865
  style: {"margin-top":"10px"},
16869
16866
  onClick: $options.hdlDeleteAll
16870
16867
  }, {
16871
- default: withCtx(() => [...(_cache[1] || (_cache[1] = [
16868
+ default: withCtx(() => [...(_cache[2] || (_cache[2] = [
16872
16869
  createTextVNode("删除全部已上传图片", -1 /* CACHED */)
16873
16870
  ]))]),
16874
16871
  _: 1 /* STABLE */