@jx3box/jx3box-vue3-ui 0.0.9 → 0.1.0

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.
@@ -61,6 +61,10 @@
61
61
  padding: 0 0 0 20px;
62
62
  border-left: 1px solid #e5e9ef;
63
63
  margin-left: 10px;
64
+ .flex;
65
+ flex-direction: column;
66
+ align-items: center;
67
+ justify-content: center;
64
68
 
65
69
  .u-pic {
66
70
  cursor: pointer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-vue3-ui",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,6 +36,7 @@
36
36
  "element-plus": "^2.2.36",
37
37
  "lodash": "^4.17.21",
38
38
  "mitt": "^3.0.0",
39
+ "qrcode.vue": "^3.3.4",
39
40
  "vue": "^3.2.13"
40
41
  },
41
42
  "devDependencies": {
package/src/App.vue CHANGED
@@ -21,6 +21,15 @@
21
21
 
22
22
  <Main :withoutLeft="false" :withoutRight="false">
23
23
  <SimpleThxVue
24
+ postType="bbs"
25
+ postTitle="bbs23865的标题"
26
+ :userId="7"
27
+ :adminBoxcoinEnable="true"
28
+ :userBoxcoinEnable="true"
29
+ :allowGift="true"
30
+ :postId="57260"
31
+ />
32
+ <Thx
24
33
  postType="bbs"
25
34
  postTitle="bbs23865的标题"
26
35
  type="batchReward"
@@ -28,6 +37,7 @@
28
37
  :adminBoxcoinEnable="true"
29
38
  :userBoxcoinEnable="true"
30
39
  :postId="57260"
40
+ :allowGift="true"
31
41
  />
32
42
  <Comment category="post" id="19382"></Comment>
33
43
  <RightSidebar> </RightSidebar>
@@ -41,12 +51,14 @@
41
51
  import Author from './single/Author.vue';
42
52
  import SimpleThxVue from "./single/SimpleThx.vue";
43
53
  import Comment from "./single/Comment.vue";
54
+ import Thx from "./single/Thx.vue";
44
55
  export default {
45
56
  name: "App",
46
57
  components: {
47
58
  SimpleThxVue,
48
59
  Author,
49
60
  Comment,
61
+ Thx,
50
62
  },
51
63
  };
52
64
  </script>
@@ -26,7 +26,7 @@
26
26
  <el-button
27
27
  class="u-admin"
28
28
  v-if="canDelete"
29
- type="text"
29
+ link
30
30
  icon="Delete"
31
31
  size="small"
32
32
  @click="deleteComment()"
@@ -74,6 +74,7 @@ export default {
74
74
  isSuperAdmin: User.isSuperAdmin(),
75
75
  };
76
76
  },
77
+ emits: ["update:boxcoin"],
77
78
  computed: {
78
79
  post_keys: function () {
79
80
  return [this.postType, this.postId];
@@ -117,7 +118,7 @@ export default {
117
118
  this.list = res.data.data.list;
118
119
  this.total = res.data.data.page.total;
119
120
  this.boxcoin = res.data.data.fromManager + res.data.data.fromUser;
120
- this.$parent.boxcoin = this.boxcoin;
121
+ this.$emit("update:boxcoin", this.boxcoin);
121
122
  });
122
123
  },
123
124
  recovery: function (item, i) {
@@ -49,6 +49,7 @@
49
49
  :postClient="client"
50
50
  :cacheRecord="cacheRecord"
51
51
  :mode="mode"
52
+ @update:boxcoin="updateBoxcoin"
52
53
  />
53
54
  </el-drawer>
54
55
  </div>
@@ -106,7 +107,7 @@ export default {
106
107
  default: "std",
107
108
  },
108
109
  allowGift: {
109
- type: Number,
110
+ type: [Number, Boolean],
110
111
  default: 1,
111
112
  },
112
113
  adminBoxcoinEnable: {
@@ -188,6 +189,9 @@ export default {
188
189
  onRecord: function () {
189
190
  this.showDrawer = true;
190
191
  },
192
+ updateBoxcoin: function (data) {
193
+ this.boxcoin = data;
194
+ },
191
195
  },
192
196
  };
193
197
  </script>