简化项目结构

This commit is contained in:
就眠儀式
2022-02-10 09:44:07 +08:00
parent 87eec9155c
commit 2c85b6d3ec
22 changed files with 45 additions and 1015 deletions

9
src/locales/en_US.ts Normal file
View File

@@ -0,0 +1,9 @@
export default {
input: {
hello: "hello world",
},
page: {
prev: "prev",
next: "next",
},
};

View File

@@ -1,26 +1,12 @@
import { createI18n } from 'vue-i18n'
import zh_CN from "./zh_CN";
import en_US from './en_US';
const i18n = createI18n({
locale: 'en_US', // set locale
messages: {
zh_CN: {
input: {
hello: '你好世界',
},
page: {
prev: '上一页',
next: '下一页'
}
},
en_US: {
input: {
hello: 'hello world',
},
page: {
prev: 'prev',
next: 'next'
}
},
zh_CN: zh_CN,
en_US: en_US,
},
})

9
src/locales/zh_CN.ts Normal file
View File

@@ -0,0 +1,9 @@
export default {
input: {
hello: "你好世界",
},
page: {
prev: "上一页",
next: "下一页",
},
};

View File

@@ -1,4 +1,5 @@
export type SelectValueType = string | string[] | number | number[] | null;
export interface SelectItem {
value?: SelectValueType;
label?: null | string | string[];

View File

@@ -13,18 +13,5 @@ export function S4() {
* @param null 无参
* */
export function guid() {
return (
S4() +
S4() +
"-" +
S4() +
"-" +
S4() +
"-" +
S4() +
"-" +
S4() +
S4() +
S4()
);
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
}