@2kog/pkg-widget 0.1.11 → 0.1.13
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.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"update": "npm install @2kog/pkg-common@latest --registry=https://registry.npmjs.org"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@element-plus/icons-vue": "^2.3.1",
|
|
13
12
|
"@2kog/pkg-common": "^0.1.21",
|
|
13
|
+
"@element-plus/icons-vue": "^2.3.1",
|
|
14
14
|
"csslab": "^4.0.4",
|
|
15
15
|
"element-plus": "^2.8.4",
|
|
16
16
|
"flag-icons": "^7.2.3",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
25
25
|
"less": "^4.2.0",
|
|
26
26
|
"vite": "^5.4.1",
|
|
27
|
+
"vite-svg-loader": "^5.1.0",
|
|
27
28
|
"vite-plugin-require": "^1.2.14"
|
|
28
29
|
},
|
|
29
30
|
"repository": {
|
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
|
|
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,9 @@
|
|
|
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="
|
|
5
|
+
<!-- <img v-if="!showFlag" class="u-earth" :src="earthIcon" alt="earth" /> -->
|
|
6
|
+
<earthIcon v-if="!showFlag" class="u-earth"></earthIcon>
|
|
7
|
+
<!-- <img v-if="!showFlag" class="u-earth" :src="earthIcon" alt="earth" /> -->
|
|
6
8
|
<span class="u-name" v-show="showName">{{ name }}</span>
|
|
7
9
|
</div>
|
|
8
10
|
<el-select class="u-select" v-model="current" popper-class="c-lang-select__pop" filterable :filter-method="filterMethod" @change="onLangChange">
|
|
@@ -18,8 +20,12 @@
|
|
|
18
20
|
import Lang from "@2kog/pkg-common/data/language.json";
|
|
19
21
|
import "flag-icons/css/flag-icons.min.css";
|
|
20
22
|
import User from "@2kog/pkg-common/utils/user";
|
|
23
|
+
import earthIcon from "../../assets/img/earth.svg";
|
|
21
24
|
export default {
|
|
22
25
|
name: "LangSelect",
|
|
26
|
+
components: {
|
|
27
|
+
earthIcon,
|
|
28
|
+
},
|
|
23
29
|
props: {
|
|
24
30
|
lang: {
|
|
25
31
|
type: String,
|
|
@@ -41,7 +47,6 @@ export default {
|
|
|
41
47
|
data() {
|
|
42
48
|
return {
|
|
43
49
|
current: "",
|
|
44
|
-
|
|
45
50
|
filterLanguages: [],
|
|
46
51
|
};
|
|
47
52
|
},
|
|
@@ -132,6 +137,7 @@ export default {
|
|
|
132
137
|
|
|
133
138
|
.u-earth {
|
|
134
139
|
height: 14px;
|
|
140
|
+
width: 14px;
|
|
135
141
|
}
|
|
136
142
|
}
|
|
137
143
|
.c-lang-select__pop {
|
|
@@ -22,7 +22,6 @@
|
|
|
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
25
|
<wePay></wePay>
|
|
27
26
|
{{ t('payment.wepay') }}
|
|
28
27
|
<em>{{ t('payment.wepayTip') }}</em>
|
|
@@ -32,7 +31,6 @@
|
|
|
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
34
|
<aliPay></aliPay>
|
|
37
35
|
{{ t('payment.alipay') }}
|
|
38
36
|
<em>{{ t('payment.alipayTip') }}</em>
|
package/vite.config.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineConfig } from "vite";
|
|
2
2
|
import vue from "@vitejs/plugin-vue";
|
|
3
3
|
import vitePluginRequire from "vite-plugin-require";
|
|
4
|
+
import svgLoader from "vite-svg-loader";
|
|
4
5
|
|
|
5
6
|
// https://vitejs.dev/config/
|
|
6
7
|
export default defineConfig({
|
|
7
|
-
plugins: [vue(), vitePluginRequire.default()],
|
|
8
|
+
plugins: [vue(), svgLoader(), vitePluginRequire.default()],
|
|
8
9
|
server: {
|
|
9
10
|
proxy: {
|
|
10
11
|
'/api': {
|