@jx3box/jx3box-vue3-ui 0.4.7 → 0.4.8

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.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "JX3BOX Vue3 UI",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -34,6 +34,7 @@
34
34
  <Item :item_id="'6_27425'"></Item>
35
35
  <ItemSimple :item="item1" />
36
36
 
37
+ <ItemSimple :item="item2" :only-icon="true" :with-name="true" :no-pop="true" iconSize="56px" />
37
38
  <ItemSimple :item="item2" :only-icon="true" iconSize="56px" />
38
39
  <ItemSimple :item="item3" :only-icon="true" iconSize="56px" />
39
40
  <ItemSimple :item="item4" :only-icon="true" iconSize="56px" />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <el-popover
3
- v-if="item"
3
+ v-if="item && !noPop"
4
4
  placement="right-end"
5
5
  popper-class="m-simple-item-popup"
6
6
  width="auto"
@@ -36,6 +36,31 @@
36
36
  </template>
37
37
  <jx3-item :item_id="item_id" :jx3-client-type="jx3ClientType" />
38
38
  </el-popover>
39
+ <div
40
+ class="m-simple-item"
41
+ v-if="item && noPop"
42
+ @mousedown="visible = false"
43
+ :class="{ onlyIcon: onlyIcon, withName: withName }"
44
+ >
45
+ <div class="m-icon">
46
+ <div
47
+ class="u-border"
48
+ :style="{
49
+ backgroundImage: item_border(item),
50
+ opacity: item.Quality == 5 ? 0.9 : 1,
51
+ }"
52
+ ></div>
53
+ <div class="u-border-quest" :style="{ backgroundImage: item_border_quest(item) }"></div>
54
+ <img
55
+ class="u-icon"
56
+ :src="icon_url(item.IconID)"
57
+ :alt="`IconID:${item.IconID}`"
58
+ :style="{ width: iconSize, height: iconSize }"
59
+ />
60
+ </div>
61
+ <span class="u-name" :style="{ color: item_color(item.Quality) }" v-text="item.Name"></span>
62
+ <span class="u-uiid fr" v-text="`ID: ${item.id}`"></span>
63
+ </div>
39
64
  </template>
40
65
 
41
66
  <script>
@@ -47,7 +72,7 @@ import item_border_quest from "../../../assets/js/item/border_quest.js";
47
72
 
48
73
  export default {
49
74
  name: "ItemSimple",
50
- props: ["item", "onlyIcon", "iconSize", "withName", "jx3ClientType", "effect"],
75
+ props: ["item", "onlyIcon", "iconSize", "withName", "jx3ClientType", "effect", "noPop"],
51
76
  data() {
52
77
  return { visible: false, item_id: null };
53
78
  },