@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.cjs.js +18 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +18 -21
- 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 */
|
|
@@ -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,
|
|
@@ -16260,7 +16253,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16260
16253
|
style: {"margin-top":"10px"},
|
|
16261
16254
|
onClick: $options.hdlDeleteAll
|
|
16262
16255
|
}, {
|
|
16263
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16256
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16264
16257
|
vue.createTextVNode("删除", -1 /* CACHED */)
|
|
16265
16258
|
]))]),
|
|
16266
16259
|
_: 1 /* STABLE */
|
|
@@ -16387,6 +16380,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16387
16380
|
style: vue.normalizeStyle($options.hdlStyleAvatarBox()),
|
|
16388
16381
|
action: $options.myProps0.uploadUrl,
|
|
16389
16382
|
"file-list": $data.fileList,
|
|
16383
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16390
16384
|
"show-file-list": false,
|
|
16391
16385
|
"before-upload": $options.hdlBeforeUpload,
|
|
16392
16386
|
"on-preview": $options.hdlPreview,
|
|
@@ -16421,7 +16415,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16421
16415
|
style: {"margin-top":"10px"},
|
|
16422
16416
|
onClick: $options.hdlDeleteAll
|
|
16423
16417
|
}, {
|
|
16424
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16418
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16425
16419
|
vue.createTextVNode("删除", -1 /* CACHED */)
|
|
16426
16420
|
]))]),
|
|
16427
16421
|
_: 1 /* STABLE */
|
|
@@ -16534,6 +16528,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16534
16528
|
vue.createVNode(_component_el_upload, {
|
|
16535
16529
|
action: $options.myProps0.uploadUrl,
|
|
16536
16530
|
"file-list": $data.fileList,
|
|
16531
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16537
16532
|
"list-type": "text",
|
|
16538
16533
|
"before-upload": $options.hdlBeforeUpload,
|
|
16539
16534
|
"on-preview": $options.hdlPreview,
|
|
@@ -16552,7 +16547,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16552
16547
|
]),
|
|
16553
16548
|
_: 1 /* STABLE */
|
|
16554
16549
|
}),
|
|
16555
|
-
_cache[
|
|
16550
|
+
_cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "el-upload__text" }, [
|
|
16556
16551
|
vue.createTextVNode("将文件拖到此处,或"),
|
|
16557
16552
|
vue.createElementVNode("em", null, "点击上传")
|
|
16558
16553
|
], -1 /* CACHED */))
|
|
@@ -16569,7 +16564,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16569
16564
|
style: {"margin-top":"10px"},
|
|
16570
16565
|
onClick: $options.hdlDeleteAll
|
|
16571
16566
|
}, {
|
|
16572
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16567
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16573
16568
|
vue.createTextVNode("删除全部已上传文件", -1 /* CACHED */)
|
|
16574
16569
|
]))]),
|
|
16575
16570
|
_: 1 /* STABLE */
|
|
@@ -16678,6 +16673,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16678
16673
|
vue.createVNode(_component_el_upload, {
|
|
16679
16674
|
action: $options.myProps0.uploadUrl,
|
|
16680
16675
|
"file-list": $data.fileList,
|
|
16676
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => (($data.fileList) = $event)),
|
|
16681
16677
|
"list-type": "picture",
|
|
16682
16678
|
"before-upload": $options.hdlBeforeUpload,
|
|
16683
16679
|
"on-preview": $options.hdlPreview,
|
|
@@ -16693,7 +16689,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16693
16689
|
size: "small",
|
|
16694
16690
|
type: "primary"
|
|
16695
16691
|
}, {
|
|
16696
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16692
|
+
default: vue.withCtx(() => [...(_cache[1] || (_cache[1] = [
|
|
16697
16693
|
vue.createTextVNode("点击上传", -1 /* CACHED */)
|
|
16698
16694
|
]))]),
|
|
16699
16695
|
_: 1 /* STABLE */
|
|
@@ -16711,7 +16707,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16711
16707
|
style: {"margin-top":"10px"},
|
|
16712
16708
|
onClick: $options.hdlDeleteAll
|
|
16713
16709
|
}, {
|
|
16714
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16710
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16715
16711
|
vue.createTextVNode("删除全部已上传图片", -1 /* CACHED */)
|
|
16716
16712
|
]))]),
|
|
16717
16713
|
_: 1 /* STABLE */
|
|
@@ -16829,6 +16825,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16829
16825
|
vue.createVNode(_component_el_upload, {
|
|
16830
16826
|
action: $options.myProps0.uploadUrl,
|
|
16831
16827
|
"file-list": _ctx.fileList,
|
|
16828
|
+
"onUpdate:fileList": _cache[0] || (_cache[0] = $event => ((_ctx.fileList) = $event)),
|
|
16832
16829
|
"list-type": "picture-card",
|
|
16833
16830
|
"before-upload": $options.hdlBeforeUpload,
|
|
16834
16831
|
"on-preview": $options.hdlPreview,
|
|
@@ -16851,13 +16848,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16851
16848
|
}, 8 /* PROPS */, ["action", "file-list", "before-upload", "on-preview", "on-remove", "on-success", "limit"]),
|
|
16852
16849
|
vue.createVNode(_component_el_dialog, {
|
|
16853
16850
|
modelValue: _ctx.dialogVisible,
|
|
16854
|
-
"onUpdate:modelValue": _cache[
|
|
16851
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => ((_ctx.dialogVisible) = $event))
|
|
16855
16852
|
}, {
|
|
16856
16853
|
default: vue.withCtx(() => [
|
|
16857
16854
|
vue.createElementVNode("img", {
|
|
16858
|
-
|
|
16855
|
+
"w-full": "",
|
|
16859
16856
|
src: _ctx.dialogImageUrl,
|
|
16860
|
-
alt: ""
|
|
16857
|
+
alt: "Preview Image"
|
|
16861
16858
|
}, null, 8 /* PROPS */, _hoisted_2)
|
|
16862
16859
|
]),
|
|
16863
16860
|
_: 1 /* STABLE */
|
|
@@ -16872,7 +16869,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
16872
16869
|
style: {"margin-top":"10px"},
|
|
16873
16870
|
onClick: $options.hdlDeleteAll
|
|
16874
16871
|
}, {
|
|
16875
|
-
default: vue.withCtx(() => [...(_cache[
|
|
16872
|
+
default: vue.withCtx(() => [...(_cache[2] || (_cache[2] = [
|
|
16876
16873
|
vue.createTextVNode("删除全部已上传图片", -1 /* CACHED */)
|
|
16877
16874
|
]))]),
|
|
16878
16875
|
_: 1 /* STABLE */
|