leisure-core 0.2.2 → 0.2.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div>
|
|
2
|
+
<div class="le-button-qr">
|
|
3
3
|
<le-button text="显示二维码" @click="qrMake"></le-button>
|
|
4
4
|
<le-dialog-container
|
|
5
5
|
title="二维码"
|
|
@@ -34,10 +34,15 @@ export default {
|
|
|
34
34
|
this.showQrMake = false;
|
|
35
35
|
},
|
|
36
36
|
qrMake() {
|
|
37
|
-
this.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
this.$emit("qrMake", this.qrMakeCallBack);
|
|
38
|
+
},
|
|
39
|
+
qrMakeCallBack(res) {
|
|
40
|
+
if (res && res == "ok") {
|
|
41
|
+
this.showQrMake = true;
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
this.qrcode("qrcodemake");
|
|
44
|
+
}, 100);
|
|
45
|
+
}
|
|
41
46
|
},
|
|
42
47
|
qrcode(id) {
|
|
43
48
|
return new Promise((resolve, reject) => {
|
|
@@ -68,3 +73,7 @@ export default {
|
|
|
68
73
|
},
|
|
69
74
|
};
|
|
70
75
|
</script>
|
|
76
|
+
<style lang="scss" scoped>
|
|
77
|
+
.le-button-qr {
|
|
78
|
+
}
|
|
79
|
+
</style>
|
|
@@ -1,20 +1,13 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
|
|
4
|
-
:title="title"
|
|
5
|
-
:visible.sync="dialogShow"
|
|
6
|
-
:close-on-click-modal="closeMode"
|
|
7
|
-
append-to-body
|
|
8
|
-
@close="closeDialog"
|
|
9
|
-
v-el-drag-dialog
|
|
10
|
-
>
|
|
2
|
+
<el-dialog :width="width" :title="title" :visible.sync="dialogShow" :close-on-click-modal="closeMode" append-to-body
|
|
3
|
+
@close="closeDialog" v-el-drag-dialog>
|
|
11
4
|
<slot v-if="dialogShow" />
|
|
12
5
|
<div slot="footer" v-if="showFooter" class="dialog-footer">
|
|
13
6
|
<template>
|
|
14
|
-
<el-button type="info" @click="closeDialog">关闭</el-button>
|
|
7
|
+
<el-button type="info" v-if="showCloseBtn" @click="closeDialog">关闭</el-button>
|
|
15
8
|
<el-button type="primary" v-if="showSaveBtn" @click="saveData">{{
|
|
16
9
|
saveBtnText
|
|
17
|
-
|
|
10
|
+
}}</el-button>
|
|
18
11
|
</template>
|
|
19
12
|
</div>
|
|
20
13
|
</el-dialog>
|
|
@@ -47,6 +40,10 @@ export default {
|
|
|
47
40
|
type: Boolean,
|
|
48
41
|
default: true,
|
|
49
42
|
},
|
|
43
|
+
showCloseBtn: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: true,
|
|
46
|
+
},
|
|
50
47
|
saveBtnText: {
|
|
51
48
|
type: String,
|
|
52
49
|
default: "确 定",
|
package/le-rate/src/qrinfo.vue
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<el-input v-model="qrCodeUrl" readonly></el-input>
|
|
9
9
|
</el-form-item>
|
|
10
10
|
<el-form-item>
|
|
11
|
-
<le-button-qr :qrCodeUrl="qrCodeUrl"></le-button-qr>
|
|
11
|
+
<le-button-qr :qrCodeUrl="qrCodeUrl" @qrMake="qrMake"></le-button-qr>
|
|
12
12
|
</el-form-item>
|
|
13
13
|
</el-form>
|
|
14
14
|
</div>
|
|
@@ -23,6 +23,10 @@ export default {
|
|
|
23
23
|
};
|
|
24
24
|
},
|
|
25
25
|
mounted() {},
|
|
26
|
-
methods: {
|
|
26
|
+
methods: {
|
|
27
|
+
qrMake(callback) {
|
|
28
|
+
if (callback) callback("ok");
|
|
29
|
+
},
|
|
30
|
+
},
|
|
27
31
|
};
|
|
28
32
|
</script>
|