Skip to content

Commit 121082f

Browse files
committed
feat:相关依赖升级,以及主题优化
1 parent a4e75ca commit 121082f

File tree

37 files changed

+741
-524
lines changed

37 files changed

+741
-524
lines changed

packages/toolkits/pro/template/tinyvue/package.json

+82-85
Original file line numberDiff line numberDiff line change
@@ -35,97 +35,94 @@
3535
]
3636
},
3737
"dependencies": {
38-
"@babel/core": "7.25.2",
39-
"@gaonengwww/mock-server": "1.0.5",
40-
"@opentiny/hwc-client": "0.0.14",
41-
"@opentiny/vue": "3.18.0",
42-
"@opentiny/vue-icon": "3.18.0",
43-
"@opentiny/vue-locale": "3.18.0",
44-
"@opentiny/vue-theme": "3.18.2",
45-
"@types/mockjs": "1.0.10",
46-
"@types/node": "22.7.4",
47-
"@vueuse/core": "10.11.1",
48-
"@vueuse/head": "2.0.0",
49-
"axios": "1.7.7",
50-
"dayjs": "1.11.13",
51-
"echarts": "5.4.3",
52-
"echarts4": "npm:[email protected]",
53-
"fp-ts": "2.16.1",
54-
"mitt": "3.0.1",
55-
"moment": "2.30.1",
56-
"nprogress": "1.0.0-1",
38+
"@babel/core": "^7.25.2",
39+
"@gaonengwww/mock-server": "^1.0.5",
40+
"@opentiny/hwc-client": "^0.0.14",
41+
"@opentiny/vue": "^3.21.0",
42+
"@opentiny/vue-icon": "^3.21.0",
43+
"@opentiny/vue-locale": "^3.20.0",
44+
"@opentiny/vue-theme": "^3.21.0",
45+
"@types/mockjs": "^1.0.10",
46+
"@types/node": "^22.7.4",
47+
"@vueuse/core": "^10.11.1",
48+
"@vueuse/head": "^2.0.0",
49+
"axios": "^1.8.0",
50+
"echarts": "^5.4.3",
51+
"fp-ts": "^2.16.1",
52+
"mitt": "^3.0.1",
53+
"nprogress": "^1.0.0-1",
5754
"pinia": "2.1.7",
58-
"query-string": "8.2.0",
55+
"query-string": "^8.2.0",
5956
"style-resources-loader": "1.5.0",
60-
"vue": "3.5.10",
57+
"vue": "^3.5.10",
6158
"vue-eslint-parser": "9.4.3",
62-
"vue-i18n": "9.14.1",
63-
"vue-router": "4.4.5",
64-
"vue-style-loader": "4.1.3"
59+
"vue-i18n": "^11.0.0",
60+
"vue-router": "^4.4.5",
61+
"vue-style-loader": "^4.1.3"
6562
},
6663
"devDependencies": {
67-
"@babel/preset-env": "7.25.4",
68-
"@babel/preset-typescript": "7.24.7",
69-
"@commitlint/cli": "11.0.0",
70-
"@commitlint/config-conventional": "12.1.4",
71-
"@farmfe/cli": "1.0.4",
72-
"@farmfe/core": "1.3.28",
73-
"@farmfe/js-plugin-less": "1.9.0",
74-
"@rspack/cli": "0.7.5",
75-
"@rspack/core": "0.7.5",
76-
"@types/lodash": "4.17.9",
77-
"@types/nprogress": "0.2.3",
78-
"@typescript-eslint/eslint-plugin": "5.62.0",
79-
"@typescript-eslint/parser": "5.62.0",
80-
"@vitejs/plugin-vue": "4.6.2",
81-
"@vitejs/plugin-vue-jsx": "3.1.0",
82-
"@vue/babel-helper-vue-jsx-merge-props": "1.4.0",
83-
"@vue/babel-plugin-jsx": "1.2.5",
84-
"@vue/babel-preset-jsx": "1.4.0",
85-
"babel-loader": "9.2.1",
86-
"core-js": "3.38.1",
87-
"cross-env": "7.0.3",
88-
"css-loader": "7.1.2",
89-
"dotenv": "16.4.5",
90-
"eslint": "7.32.0",
91-
"eslint-config-airbnb-base": "14.2.1",
92-
"eslint-config-prettier": "8.10.0",
93-
"eslint-import-resolver-typescript": "2.7.1",
94-
"eslint-plugin-import": "2.30.0",
95-
"eslint-plugin-prettier": "3.4.1",
96-
"eslint-plugin-vue": "8.7.1",
64+
"@babel/preset-env": "^7.25.4",
65+
"@babel/preset-typescript": "^7.24.7",
66+
"@commitlint/cli": "^11.0.0",
67+
"@commitlint/config-conventional": "^12.1.4",
68+
"@farmfe/cli": "^1.0.4",
69+
"@farmfe/core": "^1.3.28",
70+
"@farmfe/js-plugin-less": "^1.9.0",
71+
"@rspack/cli": "^0.7.5",
72+
"@rspack/core": "^0.7.5",
73+
"@types/lodash": "^4.17.9",
74+
"@types/nprogress": "^0.2.3",
75+
"@typescript-eslint/eslint-plugin": "^5.62.0",
76+
"@typescript-eslint/parser": "^5.62.0",
77+
"@vitejs/plugin-vue": "^4.6.2",
78+
"@vitejs/plugin-vue-jsx": "^3.1.0",
79+
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
80+
"@vue/babel-plugin-jsx": "^1.2.5",
81+
"@vue/babel-preset-jsx": "^1.4.0",
82+
"babel-loader": "^9.2.1",
83+
"core-js": "^3.38.1",
84+
"cross-env": "^7.0.3",
85+
"css-loader": "^7.1.2",
86+
"dotenv": "^16.4.5",
87+
"eslint": "^7.32.0",
88+
"eslint-config-airbnb-base": "^14.2.1",
89+
"eslint-config-prettier": "^8.10.0",
90+
"eslint-import-resolver-typescript": "^2.7.1",
91+
"eslint-plugin-import": "^2.30.0",
92+
"eslint-plugin-prettier": "^3.4.1",
93+
"eslint-plugin-vue": "^8.7.1",
9794
"html-webpack-plugin": "5.6.0",
98-
"husky": "7.0.4",
99-
"import-meta-loader": "1.1.0",
100-
"less": "4.2.0",
101-
"less-loader": "12.2.0",
102-
"lint-staged": "11.2.6",
103-
"mockjs": "1.1.0",
104-
"prettier": "3.3.3",
105-
"rollup-plugin-visualizer": "5.12.0",
106-
"style-loader": "4.0.0",
107-
"stylelint": "13.13.1",
108-
"stylelint-config-prettier": "8.0.2",
109-
"stylelint-config-rational-order": "0.1.2",
110-
"stylelint-config-standard": "20.0.0",
111-
"stylelint-order": "4.1.0",
112-
"ts-loader": "9.5.1",
113-
"ts-node": "10.9.2",
114-
"tsx": "4.19.1",
115-
"typescript": "4.9.5",
116-
"unplugin-vue-components": "0.17.21",
117-
"vite": "4.5.5",
118-
"vite-plugin-compression": "0.5.1",
119-
"vite-plugin-eslint": "1.8.1",
120-
"vite-plugin-html": "3.2.2",
121-
"vite-plugin-mock": "2.9.8",
122-
"vite-plugin-style-import": "2.0.0",
123-
"vite-svg-loader": "4.0.0",
124-
"vue-loader": "17.4.2",
125-
"vue-tsc": "1.8.27",
126-
"webpack": "5.95.0",
127-
"webpack-cli": "5.1.4",
128-
"webpack-dev-server": "5.1.0"
95+
"husky": "^7.0.4",
96+
"import-meta-loader": "^1.1.0",
97+
"less": "^4.2.0",
98+
"less-loader": "^12.2.0",
99+
"lint-staged": "^11.2.6",
100+
"mockjs": "^1.1.0",
101+
"prettier": "^3.3.3",
102+
"rollup-plugin-visualizer": "^5.12.0",
103+
"style-loader": "^4.0.0",
104+
"stylelint": "^13.13.1",
105+
"stylelint-config-prettier": "^8.0.2",
106+
"stylelint-config-rational-order": "^0.1.2",
107+
"stylelint-config-standard": "^20.0.0",
108+
"stylelint-order": "^4.1.0",
109+
"ts-loader": "^9.5.1",
110+
"ts-node": "^10.9.2",
111+
"tsx": "^4.19.1",
112+
"typescript": "^4.9.5",
113+
"unplugin-vue-components": "^0.17.21",
114+
"vite": "^6.1.0",
115+
"vite-plugin-compression": "^0.5.1",
116+
"vite-plugin-eslint": "^1.8.1",
117+
"vite-plugin-html": "^3.2.2",
118+
"vite-plugin-mock": "^2.9.8",
119+
"vite-plugin-style-import": "^2.0.0",
120+
"vite-svg-loader": "^4.0.0",
121+
"vue-loader": "^17.4.2",
122+
"vue-tsc": "^1.8.27",
123+
"webpack": "^5.95.0",
124+
"webpack-cli": "^5.1.4",
125+
"webpack-dev-server": "^5.1.0"
129126
},
130127
"engines": {
131128
"node": ">=14.0.0"

packages/toolkits/pro/template/tinyvue/src/assets/style/menu.less

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
.tree-node-name
2828
.tiny-svg
2929
) {
30-
fill: var(--ti-tree-menu-node-current-color);
30+
fill: var(--tv-tree-menu-node-current-color);
3131
}
3232

3333
:deep(.tiny-collapse-item__header) {
34-
color: var(--ti-common-color-text-highlight);
35-
background-color: var(--ti-common-color-bg-light-normal);
34+
color: var(--tv-common-color-text-highlight);
35+
background-color: var(--tv-common-color-bg-light-normal);
3636
}

packages/toolkits/pro/template/tinyvue/src/components/footer/index.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
display: flex;
1919
align-items: center;
2020
justify-content: center;
21-
color: var(--ti-default-font-color);
22-
font-size: var(--ti-default-font-size);
23-
font-family: var(--ti-default-font-family);
21+
color: var(--tv-default-font-color);
22+
font-size: var(--tv-default-font-size);
23+
font-family: var(--tv-default-font-family);
2424
text-align: center;
2525
2626
.divider {

packages/toolkits/pro/template/tinyvue/src/components/navbar/index.vue

+5-6
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
label-width="150px"
8787
:label-align="true"
8888
label-position="left"
89-
size="small"
9089
>
9190
<tiny-row :flex="true" justify="left">
9291
<tiny-col :span="10" label-width="100px">
@@ -366,7 +365,7 @@
366365
367366
h5 {
368367
margin: 0 30px 0 12px;
369-
color: var(--ti-base-common-title-color);
368+
color: var(--tv-base-common-title-color);
370369
font-weight: 700;
371370
font-size: 22px;
372371
line-height: 32px;
@@ -377,7 +376,7 @@
377376
width: 135px;
378377
height: 22px;
379378
margin-left: 10px;
380-
color: var(--ti-base-common-title-color);
379+
color: var(--tv-base-common-title-color);
381380
font-weight: normal;
382381
font-size: 16px;
383382
line-height: 22px;
@@ -425,7 +424,7 @@
425424
font-size: 2em;
426425
font-style: oblique;
427426
cursor: pointer;
428-
fill: var(--ti-common-color-line-active);
427+
fill: var(--tv-common-color-line-active);
429428
}
430429
431430
a {
@@ -465,7 +464,7 @@
465464
text-align: center;
466465
list-style-type: none;
467466
background-color: #fff;
468-
box-shadow: 0 0 2px 2px var(--ti-common-color-bg-normal);
467+
box-shadow: 0 0 2px 2px var(--tv-common-color-bg-normal);
469468
cursor: pointer;
470469
}
471470
@@ -483,7 +482,7 @@
483482
text-align: center;
484483
list-style-type: none;
485484
background-color: #fff;
486-
box-shadow: 0 0 2px 2px var(--ti-common-color-bg-normal);
485+
box-shadow: 0 0 2px 2px var(--tv-common-color-bg-normal);
487486
cursor: pointer;
488487
}
489488

packages/toolkits/pro/template/tinyvue/src/components/theme/index.vue

+1-5
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
<script lang="ts" setup>
7474
import { inject, onMounted, watch } from 'vue';
7575
// eslint-disable-next-line import/extensions
76-
import { tinySmbTheme } from '@opentiny/vue-theme/theme';
7776
import { IconYes } from '@opentiny/vue-icon';
7877
import { useAppStore } from '@/store';
7978
import {
@@ -156,7 +155,6 @@
156155
break;
157156
default:
158157
appStore.updateSettings({ theme: 'light' });
159-
theme.changeTheme(tinySmbTheme);
160158
appStore.updateSettings({ themelist: 'default' });
161159
}
162160
};
@@ -182,8 +180,6 @@
182180
// eslint-disable-next-line default-case
183181
switch (newValue.themelist) {
184182
case 'default':
185-
appStore.updateSettings({ theme: 'light' });
186-
theme.changeTheme(tinySmbTheme);
187183
break;
188184
case 'peaches':
189185
appStore.updateSettings({ theme: 'light' });
@@ -350,7 +346,7 @@
350346
.default {
351347
.card();
352348
353-
background: linear-gradient(225deg, #97b3f2 1%, #5e7ce0);
349+
background: linear-gradient(225deg, #f3f3f3 1%, #191919);
354350
}
355351
356352
.peaches {

0 commit comments

Comments
 (0)