@kaiyinchem/ky-uniui 1.1.1 → 1.1.4
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/components/ky-fetch.vue +6 -1
- package/locale/en.json +17 -0
- package/locale/zh-Hans.json +17 -0
- package/package.json +4 -2
- package/utils/i18n.js +11 -0
package/components/ky-fetch.vue
CHANGED
|
@@ -197,6 +197,11 @@
|
|
|
197
197
|
delete params.size
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
+
if (this.noLoadmore) {
|
|
201
|
+
delete params.page
|
|
202
|
+
delete params.size
|
|
203
|
+
}
|
|
204
|
+
|
|
200
205
|
try {
|
|
201
206
|
const apiUrl = this.api.split('.')
|
|
202
207
|
const res = await this.$api[apiUrl[0]][apiUrl[1]](params)
|
|
@@ -256,7 +261,7 @@
|
|
|
256
261
|
if (e.code === 504) {
|
|
257
262
|
this.loadState = -3
|
|
258
263
|
}
|
|
259
|
-
this.tips = e.msg || this.$t('loadFaild')
|
|
264
|
+
this.tips = e.msg || e.errMsg || this.$t('loadFaild')
|
|
260
265
|
this.msg = this.tips
|
|
261
266
|
this.loadError = true
|
|
262
267
|
this.$emit('error', e)
|
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.
|
|
12
|
+
"version": "1.1.4",
|
|
11
13
|
"repository": {
|
|
12
14
|
"type": "git",
|
|
13
15
|
"url": "git+https://github.com/yezipi/ky-uniui.git"
|
package/utils/i18n.js
ADDED