@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.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[
|
|
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[
|
|
16091
|
+
default: withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16100
16092
|
createTextVNode("删除全部已上传文件", -1 /* CACHED */)
|
|
16101
16093
|
]))]),
|
|
16102
16094
|
_: 1 /* STABLE */
|
|
@@ -16115,7 +16107,7 @@ var script$4 = {
|
|
|
16115
16107
|
}},
|
|
16116
16108
|
computed: {
|
|
16117
16109
|
myProps0(){
|
|
16118
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16110
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16119
16111
|
}
|
|
16120
16112
|
},
|
|
16121
16113
|
methods: {
|
|
@@ -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,
|
|
@@ -16233,6 +16226,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16233
16226
|
? (openBlock(), createElementBlock("img", {
|
|
16234
16227
|
key: 0,
|
|
16235
16228
|
src: $data.fileList[0].response.data.src,
|
|
16229
|
+
class: "avatar",
|
|
16236
16230
|
style: normalizeStyle($options.hdlStyleAvatarImage())
|
|
16237
16231
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1$4))
|
|
16238
16232
|
: (openBlock(), createBlock(_component_el_icon, {
|
|
@@ -16256,7 +16250,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16256
16250
|
style: {"margin-top":"10px"},
|
|
16257
16251
|
onClick: $options.hdlDeleteAll
|
|
16258
16252
|
}, {
|
|
16259
|
-
default: withCtx(() => [...(_cache[
|
|
16253
|
+
default: withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16260
16254
|
createTextVNode("删除", -1 /* CACHED */)
|
|
16261
16255
|
]))]),
|
|
16262
16256
|
_: 1 /* STABLE */
|
|
@@ -16277,7 +16271,7 @@ var script$3 = {
|
|
|
16277
16271
|
}},
|
|
16278
16272
|
computed: {
|
|
16279
16273
|
myProps0(){
|
|
16280
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16274
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16281
16275
|
}
|
|
16282
16276
|
},
|
|
16283
16277
|
methods: {
|
|
@@ -16383,6 +16377,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16383
16377
|
style: normalizeStyle($options.hdlStyleAvatarBox()),
|
|
16384
16378
|
action: $options.myProps0.uploadUrl,
|
|
16385
16379
|
"file-list": $data.fileList,
|
|
16380
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16386
16381
|
"show-file-list": false,
|
|
16387
16382
|
"before-upload": $options.hdlBeforeUpload,
|
|
16388
16383
|
"on-preview": $options.hdlPreview,
|
|
@@ -16394,6 +16389,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16394
16389
|
? (openBlock(), createElementBlock("img", {
|
|
16395
16390
|
key: 0,
|
|
16396
16391
|
src: $data.fileList[0].response.data.src,
|
|
16392
|
+
class: "avatar",
|
|
16397
16393
|
style: normalizeStyle($options.hdlStyleAvatarImage())
|
|
16398
16394
|
}, null, 12 /* STYLE, PROPS */, _hoisted_1$3))
|
|
16399
16395
|
: (openBlock(), createBlock(_component_el_icon, {
|
|
@@ -16417,7 +16413,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16417
16413
|
style: {"margin-top":"10px"},
|
|
16418
16414
|
onClick: $options.hdlDeleteAll
|
|
16419
16415
|
}, {
|
|
16420
|
-
default: withCtx(() => [...(_cache[
|
|
16416
|
+
default: withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16421
16417
|
createTextVNode("删除", -1 /* CACHED */)
|
|
16422
16418
|
]))]),
|
|
16423
16419
|
_: 1 /* STABLE */
|
|
@@ -16438,7 +16434,7 @@ var script$2 = {
|
|
|
16438
16434
|
}},
|
|
16439
16435
|
computed: {
|
|
16440
16436
|
myProps0(){
|
|
16441
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16437
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16442
16438
|
}
|
|
16443
16439
|
},
|
|
16444
16440
|
methods: {
|
|
@@ -16530,6 +16526,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16530
16526
|
createVNode(_component_el_upload, {
|
|
16531
16527
|
action: $options.myProps0.uploadUrl,
|
|
16532
16528
|
"file-list": $data.fileList,
|
|
16529
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16533
16530
|
"list-type": "text",
|
|
16534
16531
|
"before-upload": $options.hdlBeforeUpload,
|
|
16535
16532
|
"on-preview": $options.hdlPreview,
|
|
@@ -16548,7 +16545,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16548
16545
|
]),
|
|
16549
16546
|
_: 1 /* STABLE */
|
|
16550
16547
|
}),
|
|
16551
|
-
_cache[
|
|
16548
|
+
_cache[1] || (_cache[1] = createElementVNode("div", { class: "el-upload__text" }, [
|
|
16552
16549
|
createTextVNode("将文件拖到此处,或"),
|
|
16553
16550
|
createElementVNode("em", null, "点击上传")
|
|
16554
16551
|
], -1 /* CACHED */))
|
|
@@ -16565,7 +16562,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16565
16562
|
style: {"margin-top":"10px"},
|
|
16566
16563
|
onClick: $options.hdlDeleteAll
|
|
16567
16564
|
}, {
|
|
16568
|
-
default: withCtx(() => [...(_cache[
|
|
16565
|
+
default: withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16569
16566
|
createTextVNode("删除全部已上传文件", -1 /* CACHED */)
|
|
16570
16567
|
]))]),
|
|
16571
16568
|
_: 1 /* STABLE */
|
|
@@ -16584,7 +16581,7 @@ var script$1 = {
|
|
|
16584
16581
|
}},
|
|
16585
16582
|
computed: {
|
|
16586
16583
|
myProps0(){
|
|
16587
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16584
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16588
16585
|
}
|
|
16589
16586
|
},
|
|
16590
16587
|
methods: {
|
|
@@ -16674,6 +16671,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16674
16671
|
createVNode(_component_el_upload, {
|
|
16675
16672
|
action: $options.myProps0.uploadUrl,
|
|
16676
16673
|
"file-list": $data.fileList,
|
|
16674
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16677
16675
|
"list-type": "picture",
|
|
16678
16676
|
"before-upload": $options.hdlBeforeUpload,
|
|
16679
16677
|
"on-preview": $options.hdlPreview,
|
|
@@ -16689,7 +16687,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16689
16687
|
size: "small",
|
|
16690
16688
|
type: "primary"
|
|
16691
16689
|
}, {
|
|
16692
|
-
default: withCtx(() => [...(_cache[
|
|
16690
|
+
default: withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16693
16691
|
createTextVNode("点击上传", -1 /* CACHED */)
|
|
16694
16692
|
]))]),
|
|
16695
16693
|
_: 1 /* STABLE */
|
|
@@ -16707,7 +16705,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16707
16705
|
style: {"margin-top":"10px"},
|
|
16708
16706
|
onClick: $options.hdlDeleteAll
|
|
16709
16707
|
}, {
|
|
16710
|
-
default: withCtx(() => [...(_cache[
|
|
16708
|
+
default: withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16711
16709
|
createTextVNode("删除全部已上传图片", -1 /* CACHED */)
|
|
16712
16710
|
]))]),
|
|
16713
16711
|
_: 1 /* STABLE */
|
|
@@ -16730,7 +16728,7 @@ var script = {
|
|
|
16730
16728
|
},
|
|
16731
16729
|
computed: {
|
|
16732
16730
|
myProps0(){
|
|
16733
|
-
return Object.assign(ly0default.myProps, this.myProps)
|
|
16731
|
+
return Object.assign({}, ly0default.myProps, this.myProps)
|
|
16734
16732
|
}
|
|
16735
16733
|
},
|
|
16736
16734
|
methods: {
|
|
@@ -16825,6 +16823,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16825
16823
|
createVNode(_component_el_upload, {
|
|
16826
16824
|
action: $options.myProps0.uploadUrl,
|
|
16827
16825
|
"file-list": _ctx.fileList,
|
|
16826
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((_ctx.fileList) = $event)),
|
|
16828
16827
|
"list-type": "picture-card",
|
|
16829
16828
|
"before-upload": $options.hdlBeforeUpload,
|
|
16830
16829
|
"on-preview": $options.hdlPreview,
|
|
@@ -16847,13 +16846,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16847
16846
|
}, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
|
|
16848
16847
|
createVNode(_component_el_dialog, {
|
|
16849
16848
|
modelValue: _ctx.dialogVisible,
|
|
16850
|
-
"onUpdate:modelValue": _cache[
|
|
16849
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((_ctx.dialogVisible) = $event))
|
|
16851
16850
|
}, {
|
|
16852
16851
|
default: withCtx(() => [
|
|
16853
16852
|
createElementVNode("img", {
|
|
16854
|
-
|
|
16853
|
+
"w-full": "",
|
|
16855
16854
|
src: _ctx.dialogImageUrl,
|
|
16856
|
-
alt: ""
|
|
16855
|
+
alt: "Preview Image"
|
|
16857
16856
|
}, null, 8 /* PROPS */, _hoisted_2)
|
|
16858
16857
|
]),
|
|
16859
16858
|
_: 1 /* STABLE */
|
|
@@ -16868,7 +16867,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16868
16867
|
style: {"margin-top":"10px"},
|
|
16869
16868
|
onClick: $options.hdlDeleteAll
|
|
16870
16869
|
}, {
|
|
16871
|
-
default: withCtx(() => [...(_cache[
|
|
16870
|
+
default: withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16872
16871
|
createTextVNode("删除全部已上传图片", -1 /* CACHED */)
|
|
16873
16872
|
]))]),
|
|
16874
16873
|
_: 1 /* STABLE */
|