@jx3box/jx3box-vue3-ui 0.1.9 → 0.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jx3box/jx3box-vue3-ui",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,7 +2,6 @@
2
2
  <div class="c-author-gift">
3
3
  <el-button
4
4
  class="u-btn"
5
- size="small"
6
5
  icon="Present"
7
6
  @click="openGiftDialog"
8
7
  :disabled="isSelf || !status"
@@ -93,11 +93,14 @@ export default {
93
93
  },
94
94
  ready: function () {
95
95
  const count = this.count === "custom" ? this.amount : this.count;
96
- return this.isNotSelf && this.isEnough && count && this.remark;
96
+ return this.isNotSelf && !this.targetIsSelf && this.isEnough && count && this.remark;
97
97
  },
98
98
  isNotSelf: function () {
99
99
  return this.userId != User.getInfo().uid;
100
100
  },
101
+ targetIsSelf: function () {
102
+ return this.chosen == User.getInfo().uid;
103
+ },
101
104
  isEnough: function () {
102
105
  const count = this.count === "custom" ? this.amount : this.count;
103
106
  return this.left && this.left >= count;