@2kog/pkg-widget 0.1.11 → 0.1.12

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": "@2kog/pkg-widget",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",
package/src/App.vue CHANGED
@@ -5,7 +5,9 @@
5
5
 
6
6
  <UploadImage :upload-fn="uploadImage" :domain="domain" :url="avatar"></UploadImage>
7
7
 
8
- <langSelect selected="icon" :with-flag="false"></langSelect>
8
+ <langSelect :show-flag="false"
9
+ :show-name="true"
10
+ :optionsWithFlag="false"></langSelect>
9
11
  <pay></pay>
10
12
  </div>
11
13
  </template>
@@ -2,7 +2,7 @@
2
2
  <div class="c-lang-select">
3
3
  <div class="u-select-label">
4
4
  <span v-show="showFlag" class="fi u-flag" :class="flag"></span>
5
- <img v-if="!showFlag" class="u-earth" src="../../assets/img/earth.svg" alt="">
5
+ <img v-if="!showFlag" class="u-earth" :src="earthIcon" alt="earth" />
6
6
  <span class="u-name" v-show="showName">{{ name }}</span>
7
7
  </div>
8
8
  <el-select class="u-select" v-model="current" popper-class="c-lang-select__pop" filterable :filter-method="filterMethod" @change="onLangChange">
@@ -18,6 +18,7 @@
18
18
  import Lang from "@2kog/pkg-common/data/language.json";
19
19
  import "flag-icons/css/flag-icons.min.css";
20
20
  import User from "@2kog/pkg-common/utils/user";
21
+ import earthIcon from "../../assets/img/earth.svg";
21
22
  export default {
22
23
  name: "LangSelect",
23
24
  props: {
@@ -41,7 +42,7 @@ export default {
41
42
  data() {
42
43
  return {
43
44
  current: "",
44
-
45
+ earthIcon,
45
46
  filterLanguages: [],
46
47
  };
47
48
  },
@@ -22,8 +22,7 @@
22
22
  <el-tab-pane :label="t('payment.wepay')" name="wepay">
23
23
  <template #label>
24
24
  <span class="u-tab">
25
- <!-- <img src="../../assets/img/pay/wepay.svg" /> -->
26
- <wePay></wePay>
25
+ <img :src="wePay" />
27
26
  {{ t('payment.wepay') }}
28
27
  <em>{{ t('payment.wepayTip') }}</em>
29
28
  </span>
@@ -32,8 +31,7 @@
32
31
  <el-tab-pane :label="t('payment.alipay')" name="alipay">
33
32
  <template #label>
34
33
  <span class="u-tab">
35
- <!-- <img src="../../assets/img/pay/alipay.svg" /> -->
36
- <aliPay></aliPay>
34
+ <img :src="aliPay" />
37
35
  {{ t('payment.alipay') }}
38
36
  <em>{{ t('payment.alipayTip') }}</em>
39
37
  </span>
@@ -144,8 +142,7 @@ export default {
144
142
  Loading,
145
143
  CircleCheck,
146
144
  QrcodeVue,
147
- wePay,
148
- aliPay,
145
+
149
146
  },
150
147
  // 使用独立的 i18n 实例
151
148
  i18n: payI18n,
@@ -238,6 +235,9 @@ export default {
238
235
  orderPollingTimer: null,
239
236
  paymentPollingTimer: null,
240
237
  pollingRetries: 0,
238
+
239
+ wePay,
240
+ aliPay,
241
241
  };
242
242
  },
243
243
  computed: {
@@ -647,7 +647,7 @@ export default {
647
647
  align-items: center;
648
648
  color: @color;
649
649
 
650
- svg {
650
+ img {
651
651
  width: 24px;
652
652
  height: 24px;
653
653
  vertical-align: middle;