Skip to content

Commit

Permalink
优化样式
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Oct 18, 2019
1 parent 6061b72 commit 5841081
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 2 deletions.
9 changes: 9 additions & 0 deletions dist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
line-height: 22px;
vertical-align: bottom; }

.vxe-table-iview .col--valid-error > .vxe-cell > .ivu-input-wrapper .ivu-input,
.vxe-table-iview .col--valid-error > .vxe-cell > .ivu-auto-complete .ivu-input,
.vxe-table-iview .col--valid-error > .vxe-cell > .ivu-input-number,
.vxe-table-iview .col--valid-error > .vxe-cell > .ivu-select .ivu-select-selection,
.vxe-table-iview .col--valid-error > .vxe-cell > .ivu-cascader .ivu-input,
.vxe-table-iview .col--valid-error > .vxe-cell > .ivu-date-picker .ivu-input {
border-color: #f56c6c;
box-shadow: none; }

.vxe-table-iview.c--highlight .vxe-cell > .ivu-input-wrapper .ivu-input,
.vxe-table-iview.c--highlight .vxe-cell > .ivu-auto-complete .ivu-input,
.vxe-table-iview.c--highlight .vxe-cell > .ivu-cascader .ivu-input,
Expand Down
2 changes: 1 addition & 1 deletion dist/style.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-iview",
"version": "1.5.1",
"version": "1.5.2",
"description": "基于 vxe-table 表格的适配插件,用于兼容 iview 组件库",
"scripts": {
"lib": "gulp build"
Expand Down
16 changes: 16 additions & 0 deletions style.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
$vxe-table-validate-error-color: #f56c6c;

%ResetBorder {
border: 0;
box-shadow: none;
}

.vxe-table-iview {
.vxe-table--filter-body {
& > .ivu-input-wrapper,
Expand All @@ -26,6 +29,19 @@
vertical-align: bottom;
}
}
.col--valid-error {
& > .vxe-cell {
& > .ivu-input-wrapper .ivu-input,
& > .ivu-auto-complete .ivu-input,
& > .ivu-input-number,
& > .ivu-select .ivu-select-selection,
& > .ivu-cascader .ivu-input,
& > .ivu-date-picker .ivu-input {
border-color: $vxe-table-validate-error-color;
box-shadow: none;
}
}
}
&.c--highlight,
.vxe-table.c--highlight {
.vxe-cell {
Expand Down

0 comments on commit 5841081

Please sign in to comment.