@yoooloo42/joker 1.0.14 → 1.0.16
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 +25 -26
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +25 -26
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -15972,9 +15972,6 @@ var script$5 = {
|
|
|
15972
15972
|
},
|
|
15973
15973
|
methods: {
|
|
15974
15974
|
hdlBeforeUpload (file) {
|
|
15975
|
-
|
|
15976
|
-
console.log('测试 222', this.myProps0.uploadUrl);
|
|
15977
|
-
|
|
15978
15975
|
let isFileType = !this.myProps0.type || file.type === this.myProps0.type;
|
|
15979
15976
|
let isFileSize = file.size / 1024 < this.myProps0.size;
|
|
15980
15977
|
|
|
@@ -15989,8 +15986,6 @@ var script$5 = {
|
|
|
15989
15986
|
|
|
15990
15987
|
this.$message('正在上传 ...');
|
|
15991
15988
|
|
|
15992
|
-
console.log('测试 000', this.myProps0.uploadUrl);
|
|
15993
|
-
|
|
15994
15989
|
return true
|
|
15995
15990
|
},
|
|
15996
15991
|
// eslint-disable-next-line
|
|
@@ -16012,10 +16007,6 @@ var script$5 = {
|
|
|
16012
16007
|
});
|
|
16013
16008
|
},
|
|
16014
16009
|
hdlSuccess (response, file, fileList) { // 上传
|
|
16015
|
-
|
|
16016
|
-
console.log('测试 000', this.myProps0.uploadUrl);
|
|
16017
|
-
console.log('测试 111', response);
|
|
16018
|
-
|
|
16019
16010
|
if (response.code === 0) {
|
|
16020
16011
|
// 重置文件列表
|
|
16021
16012
|
this.fileList = fileList;
|
|
@@ -16067,6 +16058,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16067
16058
|
vue.createVNode(_component_el_upload, {
|
|
16068
16059
|
action: $options.myProps0.uploadUrl,
|
|
16069
16060
|
"file-list": $data.fileList,
|
|
16061
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16070
16062
|
"list-type": "text",
|
|
16071
16063
|
"before-upload": $options.hdlBeforeUpload,
|
|
16072
16064
|
"on-preview": $options.hdlPreview,
|
|
@@ -16082,7 +16074,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16082
16074
|
size: "small",
|
|
16083
16075
|
type: "primary"
|
|
16084
16076
|
}, {
|
|
16085
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16077
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16086
16078
|
vue.createTextVNode("点击上传", -1 /* CACHED */)
|
|
16087
16079
|
]))]),
|
|
16088
16080
|
_: 1 /* STABLE */
|
|
@@ -16100,7 +16092,7 @@ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16100
16092
|
style: {"margin-top":"10px"},
|
|
16101
16093
|
onClick: $options.hdlDeleteAll
|
|
16102
16094
|
}, {
|
|
16103
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16095
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16104
16096
|
vue.createTextVNode("删除全部已上传文件", -1 /* CACHED */)
|
|
16105
16097
|
]))]),
|
|
16106
16098
|
_: 1 /* STABLE */
|
|
@@ -16119,7 +16111,7 @@ var script$4 = {
|
|
|
16119
16111
|
}},
|
|
16120
16112
|
computed: {
|
|
16121
16113
|
myProps0(){
|
|
16122
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16114
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16123
16115
|
}
|
|
16124
16116
|
},
|
|
16125
16117
|
methods: {
|
|
@@ -16226,6 +16218,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16226
16218
|
style: vue.normalizeStyle($options.hdlStyleAvatarBox()),
|
|
16227
16219
|
action: $options.myProps0.uploadUrl,
|
|
16228
16220
|
"file-list": $data.fileList,
|
|
16221
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16229
16222
|
"show-file-list": false,
|
|
16230
16223
|
"before-upload": $options.hdlBeforeUpload,
|
|
16231
16224
|
"on-preview": $options.hdlPreview,
|
|
@@ -16237,6 +16230,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16237
16230
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
16238
16231
|
key: 0,
|
|
16239
16232
|
src: $data.fileList[0].response.data.src,
|
|
16233
|
+
class: "avatar",
|
|
16240
16234
|
style: vue.normalizeStyle($options.hdlStyleAvatarImage())
|
|
16241
16235
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
|
|
16242
16236
|
: (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
@@ -16260,7 +16254,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16260
16254
|
style: {"margin-top":"10px"},
|
|
16261
16255
|
onClick: $options.hdlDeleteAll
|
|
16262
16256
|
}, {
|
|
16263
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16257
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16264
16258
|
vue.createTextVNode("删除", -1 /* CACHED */)
|
|
16265
16259
|
]))]),
|
|
16266
16260
|
_: 1 /* STABLE */
|
|
@@ -16281,7 +16275,7 @@ var script$3 = {
|
|
|
16281
16275
|
}},
|
|
16282
16276
|
computed: {
|
|
16283
16277
|
myProps0(){
|
|
16284
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16278
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16285
16279
|
}
|
|
16286
16280
|
},
|
|
16287
16281
|
methods: {
|
|
@@ -16387,6 +16381,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16387
16381
|
style: vue.normalizeStyle($options.hdlStyleAvatarBox()),
|
|
16388
16382
|
action: $options.myProps0.uploadUrl,
|
|
16389
16383
|
"file-list": $data.fileList,
|
|
16384
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16390
16385
|
"show-file-list": false,
|
|
16391
16386
|
"before-upload": $options.hdlBeforeUpload,
|
|
16392
16387
|
"on-preview": $options.hdlPreview,
|
|
@@ -16398,6 +16393,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16398
16393
|
? (vue.openBlock(), vue.createElementBlock("img", {
|
|
16399
16394
|
key: 0,
|
|
16400
16395
|
src: $data.fileList[0].response.data.src,
|
|
16396
|
+
class: "avatar",
|
|
16401
16397
|
style: vue.normalizeStyle($options.hdlStyleAvatarImage())
|
|
16402
16398
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
|
|
16403
16399
|
: (vue.openBlock(), vue.createBlock(_component_el_icon, {
|
|
@@ -16421,7 +16417,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16421
16417
|
style: {"margin-top":"10px"},
|
|
16422
16418
|
onClick: $options.hdlDeleteAll
|
|
16423
16419
|
}, {
|
|
16424
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16420
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16425
16421
|
vue.createTextVNode("删除", -1 /* CACHED */)
|
|
16426
16422
|
]))]),
|
|
16427
16423
|
_: 1 /* STABLE */
|
|
@@ -16442,7 +16438,7 @@ var script$2 = {
|
|
|
16442
16438
|
}},
|
|
16443
16439
|
computed: {
|
|
16444
16440
|
myProps0(){
|
|
16445
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16441
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16446
16442
|
}
|
|
16447
16443
|
},
|
|
16448
16444
|
methods: {
|
|
@@ -16534,6 +16530,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16534
16530
|
vue.createVNode(_component_el_upload, {
|
|
16535
16531
|
action: $options.myProps0.uploadUrl,
|
|
16536
16532
|
"file-list": $data.fileList,
|
|
16533
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16537
16534
|
"list-type": "text",
|
|
16538
16535
|
"before-upload": $options.hdlBeforeUpload,
|
|
16539
16536
|
"on-preview": $options.hdlPreview,
|
|
@@ -16552,7 +16549,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16552
16549
|
]),
|
|
16553
16550
|
_: 1 /* STABLE */
|
|
16554
16551
|
}),
|
|
16555
|
-
_cache[
|
|
16552
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "el-upload__text" }, [
|
|
16556
16553
|
vue.createTextVNode("将文件拖到此处,或"),
|
|
16557
16554
|
vue.createElementVNode("em", null, "点击上传")
|
|
16558
16555
|
], -1 /* CACHED */))
|
|
@@ -16569,7 +16566,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16569
16566
|
style: {"margin-top":"10px"},
|
|
16570
16567
|
onClick: $options.hdlDeleteAll
|
|
16571
16568
|
}, {
|
|
16572
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16569
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16573
16570
|
vue.createTextVNode("删除全部已上传文件", -1 /* CACHED */)
|
|
16574
16571
|
]))]),
|
|
16575
16572
|
_: 1 /* STABLE */
|
|
@@ -16588,7 +16585,7 @@ var script$1 = {
|
|
|
16588
16585
|
}},
|
|
16589
16586
|
computed: {
|
|
16590
16587
|
myProps0(){
|
|
16591
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16588
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16592
16589
|
}
|
|
16593
16590
|
},
|
|
16594
16591
|
methods: {
|
|
@@ -16678,6 +16675,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16678
16675
|
vue.createVNode(_component_el_upload, {
|
|
16679
16676
|
action: $options.myProps0.uploadUrl,
|
|
16680
16677
|
"file-list": $data.fileList,
|
|
16678
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16681
16679
|
"list-type": "picture",
|
|
16682
16680
|
"before-upload": $options.hdlBeforeUpload,
|
|
16683
16681
|
"on-preview": $options.hdlPreview,
|
|
@@ -16693,7 +16691,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16693
16691
|
size: "small",
|
|
16694
16692
|
type: "primary"
|
|
16695
16693
|
}, {
|
|
16696
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16694
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16697
16695
|
vue.createTextVNode("点击上传", -1 /* CACHED */)
|
|
16698
16696
|
]))]),
|
|
16699
16697
|
_: 1 /* STABLE */
|
|
@@ -16711,7 +16709,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16711
16709
|
style: {"margin-top":"10px"},
|
|
16712
16710
|
onClick: $options.hdlDeleteAll
|
|
16713
16711
|
}, {
|
|
16714
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16712
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16715
16713
|
vue.createTextVNode("删除全部已上传图片", -1 /* CACHED */)
|
|
16716
16714
|
]))]),
|
|
16717
16715
|
_: 1 /* STABLE */
|
|
@@ -16734,7 +16732,7 @@ var script = {
|
|
|
16734
16732
|
},
|
|
16735
16733
|
computed: {
|
|
16736
16734
|
myProps0(){
|
|
16737
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16735
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16738
16736
|
}
|
|
16739
16737
|
},
|
|
16740
16738
|
methods: {
|
|
@@ -16829,6 +16827,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16829
16827
|
vue.createVNode(_component_el_upload, {
|
|
16830
16828
|
action: $options.myProps0.uploadUrl,
|
|
16831
16829
|
"file-list": _ctx.fileList,
|
|
16830
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((_ctx.fileList) = $event)),
|
|
16832
16831
|
"list-type": "picture-card",
|
|
16833
16832
|
"before-upload": $options.hdlBeforeUpload,
|
|
16834
16833
|
"on-preview": $options.hdlPreview,
|
|
@@ -16851,13 +16850,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16851
16850
|
}, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
|
|
16852
16851
|
vue.createVNode(_component_el_dialog, {
|
|
16853
16852
|
modelValue: _ctx.dialogVisible,
|
|
16854
|
-
"onUpdate:modelValue": _cache[
|
|
16853
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((_ctx.dialogVisible) = $event))
|
|
16855
16854
|
}, {
|
|
16856
16855
|
default: vue.withCtx(() => [
|
|
16857
16856
|
vue.createElementVNode("img", {
|
|
16858
|
-
|
|
16857
|
+
"w-full": "",
|
|
16859
16858
|
src: _ctx.dialogImageUrl,
|
|
16860
|
-
alt: ""
|
|
16859
|
+
alt: "Preview Image"
|
|
16861
16860
|
}, null, 8 /* PROPS */, _hoisted_2)
|
|
16862
16861
|
]),
|
|
16863
16862
|
_: 1 /* STABLE */
|
|
@@ -16872,7 +16871,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16872
16871
|
style: {"margin-top":"10px"},
|
|
16873
16872
|
onClick: $options.hdlDeleteAll
|
|
16874
16873
|
}, {
|
|
16875
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16874
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16876
16875
|
vue.createTextVNode("删除全部已上传图片", -1 /* CACHED */)
|
|
16877
16876
|
]))]),
|
|
16878
16877
|
_: 1 /* STABLE */
|