Skip to content

Commit

Permalink
fix: 🐛 选择器国际化文案配置 (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
YufJi committed Dec 8, 2023
1 parent b6c024d commit 3c6b3ab
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 18 deletions.
34 changes: 22 additions & 12 deletions scripts/lcap/usage.json
Original file line number Diff line number Diff line change
Expand Up @@ -5153,15 +5153,6 @@
"description": "用于标识数据列表的值",
"group": "数据属性"
},
{
"name": "value",
"title": "",
"type": "any",
"sync": true,
"model": true,
"group": "数据属性",
"description": "用于标识数据列表的值"
},
{
"name": "value-field",
"title": "值字段名",
Expand All @@ -5180,6 +5171,15 @@
"description": "选项文本的字段名,可用于前端筛选时的匹配",
"group": "数据属性"
},
{
"name": "value",
"title": "",
"type": "any",
"sync": true,
"model": true,
"group": "数据属性",
"description": "用于标识数据列表的值"
},
{
"name": "pageable",
"title": "分页",
Expand Down Expand Up @@ -8266,14 +8266,18 @@
"type": "number",
"sync": true,
"model": true,
"min": 0,
"max": 20,
"group": "数据属性",
"description": "用于标识评分的值"
},
{
"name": "count",
"title": "图标总数",
"type": "numer | string",
"type": "number",
"default": 5,
"min": 0,
"max": 20,
"group": "数据属性",
"description": "设置评分图标的总数"
},
Expand Down Expand Up @@ -8318,15 +8322,15 @@
{
"name": "size",
"title": "图标大小",
"type": "numer",
"type": "number",
"default": 20,
"group": "样式属性",
"description": "设置图标大小,单位为px。"
},
{
"name": "gutter",
"title": "图标间距",
"type": "numer | string",
"type": "number | string",
"default": 4,
"group": "样式属性",
"description": "设置图标间距,最小值为0。"
Expand Down Expand Up @@ -9521,6 +9525,12 @@
}
}
],
"methods": [
{
"name": "reload",
"description": "重新加载数据"
}
],
"events": [
{
"name": "confirm",
Expand Down
11 changes: 8 additions & 3 deletions src/locale/lang/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export default {
confirm: '确定',
cancel: '取消',

// 日历
vanCalendar_title: '日期选择',
vanCalendar_confirm: '确定',
Expand All @@ -22,9 +25,11 @@ export default {
vanPickerson_confirm: '确定',
vanPickerson_cancel: '取消',
vanPickerson_searchPlaceholder: '请输入搜索关键词',
vanPickerson_selected: '当前已选中',
vanPickerson_selectAll: '全选',
vanPickerson_cancelSelectAll: '取消全选',
vanPickerPick_confirm: '确定',
vanPickerPick_cancel: '取消',
vanPickerList_selected: '当前已选中',
vanPickerList_selectAll: '全选',
vanPickerList_cancelSelectAll: '取消全选',

// 表单项
validateLabel: '字段',
Expand Down
8 changes: 5 additions & 3 deletions src/pickerson/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@
vanPickerson_confirm: 确定
vanPickerson_cancel: 取消
vanPickerson_searchPlaceholder: 请输入搜索关键词
vanPickerson_selected: 当前已选中
vanPickerson_selectAll: 全选
vanPickerson_cancelSelectAll: 取消全选
vanPickerPick_confirm: 确定
vanPickerPick_cancel: 取消
vanPickerList_selected: 当前已选中
vanPickerList_selectAll: 全选
vanPickerList_cancelSelectAll: 取消全选

0 comments on commit 3c6b3ab

Please sign in to comment.