@kaiyinchem/ky-uniui 1.1.0 → 1.1.2

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.
@@ -130,7 +130,7 @@
130
130
  </template>
131
131
 
132
132
  <script>
133
- import i18n from '@/utils/i18n.js'
133
+ import i18n from '../utils/i18n.js'
134
134
 
135
135
  export default {
136
136
  emits: ['change', 'update:value', 'confirm', 'cancel', 'input'],
@@ -42,7 +42,7 @@
42
42
  </template>
43
43
 
44
44
  <script>
45
- import i18n from '@/utils/i18n.js'
45
+ import i18n from '../utils/i18n.js'
46
46
 
47
47
  export default {
48
48
  emits: ['select', 'search', 'update:keyword', 'update:visible'],
package/locale/en.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "inputTips": "Please enter",
3
+ "selectTips": "Please select",
4
+ "noData": "No data",
5
+ "noMore": "No more",
6
+ "loading": "Loading...",
7
+ "loadFaild": "Loading failed, please click to try again",
8
+ "cancel": "Cancel",
9
+ "confirm": "Confirm",
10
+ "noContentTips": "Content cannot be empty",
11
+ "searchHistory": "Search history",
12
+ "search": "Search",
13
+ "confirmClearHistory": "Are you sure you want to clear all history?",
14
+ "getVerifyCode": "Get code",
15
+ "phoneTips": "Please enter the correct phone number",
16
+ "codeSendSuccess": "Code has been sent"
17
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "inputTips": "请输入",
3
+ "selectTips": "请选择",
4
+ "noData": "暂无数据",
5
+ "noMore": "没有更多了",
6
+ "loading": "加载中...",
7
+ "loadFaild": "加载失败,请点击重试",
8
+ "cancel": "取消",
9
+ "confirm": "确定",
10
+ "noContentTips": "内容不能为空",
11
+ "searchHistory": "搜索历史",
12
+ "search": "搜索",
13
+ "confirmClearHistory": "确定清除全部历史吗",
14
+ "getVerifyCode": "获取验证码",
15
+ "phoneTips": "请输入正确的手机号码",
16
+ "codeSendSuccess": "验证码已发送"
17
+ }
package/package.json CHANGED
@@ -4,10 +4,12 @@
4
4
  "private": false,
5
5
  "files": [
6
6
  "components",
7
- "style"
7
+ "style",
8
+ "utils",
9
+ "locale"
8
10
  ],
9
11
  "description": "an uniapp ui",
10
- "version": "1.1.0",
12
+ "version": "1.1.2",
11
13
  "repository": {
12
14
  "type": "git",
13
15
  "url": "git+https://github.com/yezipi/ky-uniui.git"
package/utils/i18n.js ADDED
@@ -0,0 +1,11 @@
1
+ import { createI18n } from 'vue-i18n'
2
+ import en from '../locale/en.json'
3
+ import zhHans from '../locale/zh-Hans.json'
4
+
5
+ export default createI18n({
6
+ locale: uni.getLocale(), // 获取已设置的语言
7
+ messages: {
8
+ en,
9
+ 'zh-Hans': zhHans,
10
+ }
11
+ })