Skip to content

Commit

Permalink
fix checkbox icon
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 8, 2024
1 parent 3b2bb6f commit fba58d1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "3.8.18",
"version": "3.8.19",
"description": "一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand All @@ -27,7 +27,7 @@
"typings": "types/index.d.ts",
"dependencies": {
"dom-zindex": "^1.0.4",
"xe-utils": "^3.5.29"
"xe-utils": "^3.5.30"
},
"devDependencies": {
"@types/resize-observer-browser": "^0.1.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/checkbox/src/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
}
}),
h('span', {
class: ['vxe-checkbox--icon', indeterminate ? 'vxe-icon-checkbox-indeterminate' : (isChecked ? 'vxe-icon-checkbox-checked-fill' : 'vxe-icon-checkbox-unchecked')]
class: ['vxe-checkbox--icon', indeterminate ? GlobalConfig.icon.CHECKBOX_INDETERMINATE : (isChecked ? GlobalConfig.icon.CHECKBOX_CHECKED : GlobalConfig.icon.CHECKBOX_UNCHECKED)]
}),
h('span', {
class: 'vxe-checkbox--label'
Expand Down
2 changes: 1 addition & 1 deletion packages/radio/src/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default {
}
}),
h('span', {
class: ['vxe-radio--icon', isChecked ? 'vxe-icon-radio-checked' : 'vxe-icon-radio-unchecked']
class: ['vxe-radio--icon', isChecked ? GlobalConfig.icon.RADIO_CHECKED : GlobalConfig.icon.RADIO_UNCHECKED]
}),
h('span', {
class: 'vxe-radio--label'
Expand Down
9 changes: 9 additions & 0 deletions packages/v-x-e-table/src/conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,15 @@ export default {
PAGER_NEXT_PAGE: iconPrefix + 'arrow-right',
PAGER_JUMP_MORE: iconPrefix + 'ellipsis-h',

// radio
RADIO_CHECKED: iconPrefix + 'radio-checked-fill',
RADIO_UNCHECKED: iconPrefix + 'radio-unchecked',

// checkbox
CHECKBOX_INDETERMINATE: iconPrefix + 'checkbox-indeterminate-fill',
CHECKBOX_CHECKED: iconPrefix + 'checkbox-checked-fill',
CHECKBOX_UNCHECKED: iconPrefix + 'checkbox-unchecked',

// input
INPUT_CLEAR: iconPrefix + 'error-circle-fill',
INPUT_PWD: iconPrefix + 'eye-fill',
Expand Down

0 comments on commit fba58d1

Please sign in to comment.