From 727bb988dd3b3827f5236c98d12c24330c2ac21f Mon Sep 17 00:00:00 2001 From: JiwenBai Date: Sun, 29 Sep 2019 08:41:49 +0800 Subject: [PATCH 01/13] feat(advance-table): add change sort by click title --- .../common/AdvanceTable/filterIcon/index.vue | 5 +- .../common/AdvanceTable/popFilter/index.vue | 29 -- .../common/AdvanceTable/sortIcon/index.vue | 30 ++- packages/common/AdvanceTable/src/main.vue | 28 +- packages/common/Table/src/main.vue | 14 +- styles/AdvancedTable.scss | 255 ++++++++++++------ styles/Table.scss | 158 ++++++++--- .../themes/dark/components/AdvanceTable.scss | 4 + styles/themes/dark/components/Table.scss | 9 + styles/themes/dark/index.scss | 5 + .../themes/light/components/AdvanceTable.scss | 4 + styles/themes/light/components/Table.scss | 9 + styles/themes/light/index.scss | 6 + 13 files changed, 390 insertions(+), 166 deletions(-) create mode 100644 styles/themes/dark/components/AdvanceTable.scss create mode 100644 styles/themes/dark/components/Table.scss create mode 100644 styles/themes/light/components/AdvanceTable.scss create mode 100644 styles/themes/light/components/Table.scss diff --git a/packages/common/AdvanceTable/filterIcon/index.vue b/packages/common/AdvanceTable/filterIcon/index.vue index 30fbb3c7d..8e23566c1 100644 --- a/packages/common/AdvanceTable/filterIcon/index.vue +++ b/packages/common/AdvanceTable/filterIcon/index.vue @@ -2,9 +2,10 @@ - - - - @@ -26,20 +26,20 @@ const computeOpacity = (val) => { let self = {} switch (val) { case 0: - self.upOpacity = 0.3 - self.downOpacity = 0.3 + self.upOpacity = 0.4 + self.downOpacity = 0.4 break case 1: self.upOpacity = 1 - self.downOpacity = 0.3 + self.downOpacity = 0.4 break case -1: - self.upOpacity = 0.3 + self.upOpacity = 0.4 self.downOpacity = 1 break case null: - self.upOpacity = 0.3 - self.downOpacity = 0.3 + self.upOpacity = 0.4 + self.downOpacity = 0.4 break } return self @@ -66,8 +66,8 @@ export default { }, data () { return { - upOpacity: 0.3, - downOpacity: 0.3 + upOpacity: 0.4, + downOpacity: 0.4 } }, computed: { @@ -101,6 +101,15 @@ export default { } this.setSort(v) }, + changeSort () { + if (this.value === 0 || this.value === null) { + this.setSort(1) + } else if (this.value === 1) { + this.setSort(-1) + } else { + this.setSort(0) + } + }, setSort (val) { this.$emit('input', val) this.$emit('onSortTypeChange', { @@ -133,7 +142,6 @@ export default { display: block; height: 19px; position: absolute; - color: #63e2b7 !important; transition: color 0.2s ease-in-out; font-size: 19px !important; font-weight: 400; diff --git a/packages/common/AdvanceTable/src/main.vue b/packages/common/AdvanceTable/src/main.vue index a7a338be9..78f99073e 100644 --- a/packages/common/AdvanceTable/src/main.vue +++ b/packages/common/AdvanceTable/src/main.vue @@ -2,6 +2,9 @@
@@ -30,8 +33,9 @@
-
+
default table content
@@ -7,8 +13,12 @@ diff --git a/styles/AdvancedTable.scss b/styles/AdvancedTable.scss index 67eb877ba..de77e255d 100644 --- a/styles/AdvancedTable.scss +++ b/styles/AdvancedTable.scss @@ -1,84 +1,189 @@ @import "./mixins/mixins.scss"; @import "./themes/vars.scss"; -@include b(advance-table){ - @include e(wrapper){ - width: 100%; - } - @include e(tbody){ - overflow: hidden; - border-radius: 12px; - box-shadow: 0 3px 20px 6px rgba(0, 0, 0, 0.2); - } - @include e(td-text){ - &-center{ - text-align: center; - } - &-left{ - text-align: left; - } - &-right{ - text-align: right; - } - @include m(ellipsis){ - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - &>*{ - text-overflow: ellipsis; + +@include themes-mixin { + @include b(advance-table) { + @include once { + @include e(wrapper){ + width: 100%; + } + @include e(tbody){ overflow: hidden; - white-space: nowrap; + border-radius: 12px; + } + @include e(td-text){ + &-center{ + text-align: center; + } + &-left{ + text-align: left; + } + &-right{ + text-align: right; + } + @include m(ellipsis){ + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + &>*{ + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + } + } + } + @include e(no-data-tip){ + padding: 5px; + text-align: center; + width: 100%; + display: table-cell; + } + @include e(pagination){ + margin-top: 27px; + display: flex; + justify-content: flex-end; + } + @include e(operation){ + display: flex; + justify-content:space-between; + &--right,&--left{ + display: flex; + } + + } + @include e(sortable-column) { + cursor: pointer; + } + @include b(table) { + table { + word-wrap: break-word; + word-break: break-all; + table-layout: fixed; + } + &::-webkit-scrollbar { + width: 5px; + } + &::-webkit-scrollbar-track { + background: transparent; + } + &::-webkit-scrollbar-thumb { + border-radius: 2.5px; + } + // &::-webkit-scrollbar-thumb:hover { + // background: rgba(255, 255, 255, 0.3); + // } + &::-webkit-scrollbar-corner { + background: transparent; + } + &::-webkit-scrollbar:horizontal { + height: 5px; + } + table thead tr th:last-of-type { + padding-left: 32px; + } } } - } - @include e(no-data-tip){ - padding: 5px; - text-align: center; - width: 100%; - display: table-cell; - } - @include e(pagination){ - margin-top: 27px; - display: flex; - justify-content: flex-end; - } - @include e(operation){ - display: flex; - justify-content:space-between; - &--right,&--left{ - display: flex; + @include e(tbody){ + box-shadow: 0 3px 20px 6px rgba(0, 0, 0, 0.2); } + @include b(table) { + &::-webkit-scrollbar-thumb { + border-radius: 2.5px; + background: $--table-scrollbar-color; - } + } + } + @include e(header){ + background-color: $--table-header-background; + i { + color:$--table-header-icon-color; + } + } + - @include b(table) { - // background-color: #2b3147; - table { - word-wrap: break-word; - word-break: break-all; - table-layout: fixed; - // width: auto; - } - &::-webkit-scrollbar { - width: 5px; - } - &::-webkit-scrollbar-track { - background: transparent; - } - &::-webkit-scrollbar-thumb { - background: rgba(255, 255, 255, 0.2); - border-radius: 2.5px; - } - &::-webkit-scrollbar-thumb:hover { - background: rgba(255, 255, 255, 0.3); - } - &::-webkit-scrollbar-corner { - background: transparent; - } - &::-webkit-scrollbar:horizontal { - height: 5px; - } - table thead tr th:last-of-type { - padding-left: 32px; - } + } -} \ No newline at end of file +} + +// @include b(advance-table){ +// @include e(wrapper){ +// width: 100%; +// } +// @include e(tbody){ +// overflow: hidden; +// border-radius: 12px; +// box-shadow: 0 3px 20px 6px rgba(0, 0, 0, 0.2); +// } +// @include e(td-text){ +// &-center{ +// text-align: center; +// } +// &-left{ +// text-align: left; +// } +// &-right{ +// text-align: right; +// } +// @include m(ellipsis){ +// text-overflow: ellipsis; +// overflow: hidden; +// white-space: nowrap; +// &>*{ +// text-overflow: ellipsis; +// overflow: hidden; +// white-space: nowrap; +// } +// } +// } +// @include e(no-data-tip){ +// padding: 5px; +// text-align: center; +// width: 100%; +// display: table-cell; +// } +// @include e(pagination){ +// margin-top: 27px; +// display: flex; +// justify-content: flex-end; +// } +// @include e(operation){ +// display: flex; +// justify-content:space-between; +// &--right,&--left{ +// display: flex; +// } + +// } + +// @include b(table) { +// // background-color: #2b3147; +// table { +// word-wrap: break-word; +// word-break: break-all; +// table-layout: fixed; +// // width: auto; +// } +// &::-webkit-scrollbar { +// width: 5px; +// } +// &::-webkit-scrollbar-track { +// background: transparent; +// } +// &::-webkit-scrollbar-thumb { +// background: rgba(255, 255, 255, 0.2); +// border-radius: 2.5px; +// } +// &::-webkit-scrollbar-thumb:hover { +// background: rgba(255, 255, 255, 0.3); +// } +// &::-webkit-scrollbar-corner { +// background: transparent; +// } +// &::-webkit-scrollbar:horizontal { +// height: 5px; +// } +// table thead tr th:last-of-type { +// padding-left: 32px; +// } +// } +// } \ No newline at end of file diff --git a/styles/Table.scss b/styles/Table.scss index e3809bb66..b4ab351ea 100644 --- a/styles/Table.scss +++ b/styles/Table.scss @@ -1,55 +1,127 @@ @import "./mixins/mixins.scss"; @import "./themes/vars.scss"; -@include b(table) { - width: 100%; - border-radius: 12px; - font-size: $table-font-size; - overflow: hidden; - box-shadow: $table-box-shadow; - padding-bottom: 8px; - background-color: $table-body-background-color; - table { - border-collapse: collapse; - width: 100%; - thead { - background-color: $table-header-background-color; - color: $primary-text-color; - tr { - th { - padding: 16px 6px 16px 6px; - text-align: left; - border: none; + +@include themes-mixin { + @include b(table) { + @include once { + width: 100%; + border-radius: 12px; + font-size: $table-font-size; + overflow: hidden; + padding-bottom: 8px; + table { + border-collapse: collapse; + width: 100%; + thead { + tr { + th { + padding: 12px 6px 12px 6px; + text-align: left; + border: none; + font-weight: 400; + } + th:nth-child(1) { + padding-left: 32px; + border-radius: 12px 0 0 0; + } + th:nth-last-child(1) { + padding-left: 32px; + border-radius: 0 12px 0 0; + } + } } - th:nth-child(1) { - padding-left: 32px; - border-radius: 12px 0 0 0; - } - th:nth-last-child(1) { - padding-left: 32px; - border-radius: 0 12px 0 0; + tbody { + background-color: $--table-body-background; + color: $--table-body-color; + tr { + td { + padding: 16px 6px 12px 6px; + text-align: left; + border: none; + } + td:nth-child(1) { + padding-left: 32px; + } + td:nth-last-child(1) { + padding-left: 32px; + } + } + tr:hover { + background-color: $--table-row-hover; + } } } } - tbody { - background-color: $table-body-background-color; - color: $regular-text-color; - tr { - td { - padding: 16px 6px 12px 6px; - text-align: left; - border: none; - } - td:nth-child(1) { - padding-left: 32px; - } - td:nth-last-child(1) { - padding-left: 32px; + background-color: $--table-body-background; + box-shadow: $--table-box-shadow; + table { + thead { + background-color: $--table-header-background; + color: $--table-header-color; + } + tbody { + background-color: $--table-body-background; + color: $--table-body-color; + tr:hover { + background-color: $--table-row-hover; } } - tr:hover { - background-color: #2b3147; - } + } + } } + +// @include b(table) { +// width: 100%; +// border-radius: 12px; +// font-size: $table-font-size; +// overflow: hidden; +// // box-shadow: $table-box-shadow; +// padding-bottom: 8px; +// // background-color: $table-body-background-color; +// table { +// border-collapse: collapse; +// width: 100%; +// thead { +// background-color: $table-header-background-color; +// color: $primary-text-color; +// tr { +// th { +// padding: 16px 6px 16px 6px; +// text-align: left; +// border: none; +// } +// th:nth-child(1) { +// padding-left: 32px; +// border-radius: 12px 0 0 0; +// } +// th:nth-last-child(1) { +// padding-left: 32px; +// border-radius: 0 12px 0 0; +// } +// } +// } +// tbody { +// background-color: $table-body-background-color; +// color: $regular-text-color; +// tr { +// td { +// padding: 16px 6px 12px 6px; +// text-align: left; +// border: none; +// } +// td:nth-child(1) { +// padding-left: 32px; +// } +// td:nth-last-child(1) { +// padding-left: 32px; +// } +// } +// tr:hover { +// background-color: #2b3147; +// } +// } +// } +// } diff --git a/styles/themes/dark/components/AdvanceTable.scss b/styles/themes/dark/components/AdvanceTable.scss new file mode 100644 index 000000000..0d1edd1c2 --- /dev/null +++ b/styles/themes/dark/components/AdvanceTable.scss @@ -0,0 +1,4 @@ +@mixin setup-dark-advance-table { + $--table-header-icon-color: $primary-6 !global; + $--table-scrollbar-color: rgba(255, 255, 255, 0.2) !global; +} \ No newline at end of file diff --git a/styles/themes/dark/components/Table.scss b/styles/themes/dark/components/Table.scss new file mode 100644 index 000000000..2600c878b --- /dev/null +++ b/styles/themes/dark/components/Table.scss @@ -0,0 +1,9 @@ +@mixin setup-dark-table { + $--table-header-background: #2b3147 !global; + $--table-body-background: #1f263e !global; + $--table-header-color: $neutral-3 !global; + $--table-body-color: $neutral-4 !global; + $--table-row-hover: $--table-header-background !global; + $--table-box-shadow: 0 3px 20px 6px rgba(0, 0, 0, .2) !global; + $--table-border: none; +} \ No newline at end of file diff --git a/styles/themes/dark/index.scss b/styles/themes/dark/index.scss index 5a7a8ea8e..455af3821 100644 --- a/styles/themes/dark/index.scss +++ b/styles/themes/dark/index.scss @@ -7,6 +7,9 @@ @import "components/BasePicker.scss"; @import "components/BaseCancelMark.scss"; @import "components/Tag.scss"; +@import "components/Table.scss"; +@import 'components/AdvanceTable.scss'; + @mixin setup-dark-theme () { @include setup-dark-colors(); @@ -32,4 +35,6 @@ @include setup-dark-base-picker; @include setup-dark-base-cancel-mark; @include setup-dark-tag; + @include setup-dark-table; + @include setup-dark-advance-table; } \ No newline at end of file diff --git a/styles/themes/light/components/AdvanceTable.scss b/styles/themes/light/components/AdvanceTable.scss new file mode 100644 index 000000000..88dafb99a --- /dev/null +++ b/styles/themes/light/components/AdvanceTable.scss @@ -0,0 +1,4 @@ +@mixin setup-light-advance-table { + $--table-header-icon-color: $primary-6 !global; + $--table-scrollbar-color: #ababab !global; +} \ No newline at end of file diff --git a/styles/themes/light/components/Table.scss b/styles/themes/light/components/Table.scss new file mode 100644 index 000000000..eaacfc2ad --- /dev/null +++ b/styles/themes/light/components/Table.scss @@ -0,0 +1,9 @@ +@mixin setup-light-table { + $--table-header-background: #e8e8e8 !global; + $--table-body-background: #fff !global; + $--table-header-color: #262626 !global; + $--table-body-color: #595959 !global; + $--table-row-hover: rgba(0,0,0,0.03) !global; + $--table-box-shadow: none !global; + $--table-border:1px solid rgba(0,0,0,0.15) !global; +} \ No newline at end of file diff --git a/styles/themes/light/index.scss b/styles/themes/light/index.scss index 909503493..c5248aa61 100644 --- a/styles/themes/light/index.scss +++ b/styles/themes/light/index.scss @@ -7,6 +7,10 @@ @import "components/BasePicker.scss"; @import "components/BaseCancelMark.scss"; @import "components/Tag.scss"; +@import "components/Table.scss"; +@import "components/AdvanceTable.scss"; + + @mixin setup-light-theme () { @include setup-light-colors(); @@ -34,4 +38,6 @@ @include setup-light-base-picker; @include setup-light-base-cancel-mark; @include setup-light-tag; + @include setup-light-table; + @include setup-light-advance-table; } \ No newline at end of file From 6a02374cfd482077979b3c06d1cb25f89492bafc Mon Sep 17 00:00:00 2001 From: JiwenBai Date: Sun, 29 Sep 2019 13:56:27 +0800 Subject: [PATCH 02/13] feat(advance-table): add col border in light theme --- .../advanceTableDemos/basicUsage.demo.vue | 2 +- packages/common/AdvanceTable/src/main.vue | 18 ++++- packages/common/Table/src/main.vue | 2 +- styles/AdvancedTable.scss | 66 +++++++++++-------- styles/Table.scss | 31 ++++++--- styles/themes/dark/components/Table.scss | 2 + styles/themes/light/components/Table.scss | 1 + 7 files changed, 82 insertions(+), 40 deletions(-) diff --git a/demo/documentation/components/advanceTableDemos/basicUsage.demo.vue b/demo/documentation/components/advanceTableDemos/basicUsage.demo.vue index 1f130678f..399a8c3a9 100644 --- a/demo/documentation/components/advanceTableDemos/basicUsage.demo.vue +++ b/demo/documentation/components/advanceTableDemos/basicUsage.demo.vue @@ -79,7 +79,7 @@ const _columns3 = ($this) => { title: 'Name', key: 'name', sortable: true, - width: 400 + width: 300 }, { title: 'Age', diff --git a/packages/common/AdvanceTable/src/main.vue b/packages/common/AdvanceTable/src/main.vue index 78f99073e..b3c10760a 100644 --- a/packages/common/AdvanceTable/src/main.vue +++ b/packages/common/AdvanceTable/src/main.vue @@ -3,7 +3,8 @@ ref="tableWrapper" class="n-advance-table__wrapper n-advance-table" :class="{ - [`n-${synthesizedTheme}-theme`]: synthesizedTheme + [`n-${synthesizedTheme}-theme`]: synthesizedTheme, + 'n-advance-table--col-border':colBorder }" >
@@ -279,6 +280,10 @@ export default { loading: { type: [Boolean], default: false + }, + colBorder: { + type: Boolean, + default: true } }, data () { @@ -426,6 +431,7 @@ export default { this.searchDataNoSort = null this.checkBoxes = [] this.currentPageAllSelect = false + this.computeScollBar() }, currentSearchColumn () { this.searchData = this.computeShowingData() @@ -480,7 +486,7 @@ export default { this.wrapper = this.$refs.tableWrapper this.wrapperWidth = this.$refs.tableWrapper.offsetWidth this.tbodyWidth = this.relTable.offsetWidth - this.scrollBarWidth = this.wrapperWidth - this.tbodyWidth + this.headerRealEl = this.$refs.header.$el.querySelector('thead') // console.log(this.wrapperWidth, this.tbodyWidth) @@ -609,6 +615,13 @@ export default { event.stopPropagation() }, + computeScollBar () { + this.$nextTick(() => { + this.tbodyWidth = this.relTable.offsetWidth + this.scrollBarWidth = this.wrapperWidth - this.tbodyWidth + console.log('TCL: mounted -> this.scrollBarWidth', this.wrapperWidth, this.tbodyWidth) + }) + }, computeCustomWidthStl (column) { if (column.width) { let width = column.width @@ -645,6 +658,7 @@ export default { init () { this.$nextTick(() => { this.wrapperWidth = this.$refs.tableWrapper.offsetWidth + this.computeScollBar() // console.log(this.relTable.offsetWidth) diff --git a/packages/common/Table/src/main.vue b/packages/common/Table/src/main.vue index e812b7d3d..2f446da71 100644 --- a/packages/common/Table/src/main.vue +++ b/packages/common/Table/src/main.vue @@ -6,7 +6,7 @@ [`n-${synthesizedTheme}-theme`]: synthesizedTheme }" > - +
default table content
diff --git a/styles/AdvancedTable.scss b/styles/AdvancedTable.scss index de77e255d..918705180 100644 --- a/styles/AdvancedTable.scss +++ b/styles/AdvancedTable.scss @@ -2,54 +2,72 @@ @import "./themes/vars.scss"; @include themes-mixin { + @include b(advance-table--col-border) { + table { + thead { + tr { + th { + border-right: $--table-td-border-right; + } + } + } + tbody { + tr { + td { + border-right: $--table-td-border-right; + } + } + } + } + } @include b(advance-table) { - @include once { - @include e(wrapper){ + @include once { + @include e(wrapper) { width: 100%; } - @include e(tbody){ + @include e(tbody) { overflow: hidden; border-radius: 12px; } - @include e(td-text){ - &-center{ + @include e(td-text) { + &-center { text-align: center; } - &-left{ + &-left { text-align: left; } - &-right{ + &-right { text-align: right; } - @include m(ellipsis){ + @include m(ellipsis) { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - &>*{ + & > * { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; } } } - @include e(no-data-tip){ + @include e(no-data-tip) { padding: 5px; text-align: center; width: 100%; display: table-cell; } - @include e(pagination){ + @include e(pagination) { margin-top: 27px; display: flex; justify-content: flex-end; } - @include e(operation){ + @include e(operation) { display: flex; - justify-content:space-between; - &--right,&--left{ + justify-content: space-between; + &--right, + &--left { display: flex; } - } @include e(sortable-column) { cursor: pointer; @@ -78,30 +96,24 @@ &::-webkit-scrollbar:horizontal { height: 5px; } - table thead tr th:last-of-type { - padding-left: 32px; - } } } - @include e(tbody){ + + @include e(tbody) { box-shadow: 0 3px 20px 6px rgba(0, 0, 0, 0.2); } @include b(table) { &::-webkit-scrollbar-thumb { border-radius: 2.5px; background: $--table-scrollbar-color; - } } - @include e(header){ + @include e(header) { background-color: $--table-header-background; i { - color:$--table-header-icon-color; + color: $--table-header-icon-color; } } - - - } } @@ -154,7 +166,7 @@ // } // } - + // @include b(table) { // // background-color: #2b3147; // table { @@ -186,4 +198,4 @@ // padding-left: 32px; // } // } -// } \ No newline at end of file +// } diff --git a/styles/Table.scss b/styles/Table.scss index b4ab351ea..5294103ad 100644 --- a/styles/Table.scss +++ b/styles/Table.scss @@ -1,7 +1,6 @@ @import "./mixins/mixins.scss"; @import "./themes/vars.scss"; - @include themes-mixin { @include b(table) { @include once { @@ -16,17 +15,17 @@ thead { tr { th { - padding: 12px 6px 12px 6px; + padding: 12px 6px 12px 19px; text-align: left; border: none; font-weight: 400; } th:nth-child(1) { - padding-left: 32px; + padding-left: 21px; border-radius: 12px 0 0 0; } th:nth-last-child(1) { - padding-left: 32px; + padding-left: 21px; border-radius: 0 12px 0 0; } } @@ -36,15 +35,15 @@ color: $--table-body-color; tr { td { - padding: 16px 6px 12px 6px; + padding: 16px 6px 12px 19px; text-align: left; border: none; } td:nth-child(1) { - padding-left: 32px; + padding-left: 21px; } td:nth-last-child(1) { - padding-left: 32px; + padding-left: 21px; } } tr:hover { @@ -55,10 +54,19 @@ } background-color: $--table-body-background; box-shadow: $--table-box-shadow; + table { + border-collapse: separate; thead { background-color: $--table-header-background; color: $--table-header-color; + tr { + th { + &:last-of-type { + border-right: 0; + } + } + } } tbody { background-color: $--table-body-background; @@ -66,10 +74,15 @@ tr:hover { background-color: $--table-row-hover; } + tr { + td { + &:last-of-type { + border-right: 0; + } + } + } } - } - } } diff --git a/styles/themes/dark/components/Table.scss b/styles/themes/dark/components/Table.scss index 2600c878b..13fe4da2e 100644 --- a/styles/themes/dark/components/Table.scss +++ b/styles/themes/dark/components/Table.scss @@ -6,4 +6,6 @@ $--table-row-hover: $--table-header-background !global; $--table-box-shadow: 0 3px 20px 6px rgba(0, 0, 0, .2) !global; $--table-border: none; + //TODO:ui设计深色color + $--table-td-border-right: none !global; } \ No newline at end of file diff --git a/styles/themes/light/components/Table.scss b/styles/themes/light/components/Table.scss index eaacfc2ad..9e330765e 100644 --- a/styles/themes/light/components/Table.scss +++ b/styles/themes/light/components/Table.scss @@ -6,4 +6,5 @@ $--table-row-hover: rgba(0,0,0,0.03) !global; $--table-box-shadow: none !global; $--table-border:1px solid rgba(0,0,0,0.15) !global; + $--table-td-border-right: 1px solid $alpha-neutral-6 !global; } \ No newline at end of file From c1ec14218b37fb30b956816fb5ff1f9ed1a39082 Mon Sep 17 00:00:00 2001 From: JiwenBai Date: Sun, 29 Sep 2019 16:02:28 +0800 Subject: [PATCH 03/13] feat(checkbox): light ui --- packages/common/Checkbox/src/main.vue | 10 +- styles/Checkbox.scss | 329 ++++++++++++++----- styles/themes/dark/components/CheckBox.scss | 9 + styles/themes/dark/index.scss | 2 + styles/themes/light/components/CheckBox.scss | 8 + styles/themes/light/index.scss | 3 + 6 files changed, 272 insertions(+), 89 deletions(-) create mode 100644 styles/themes/dark/components/CheckBox.scss create mode 100644 styles/themes/light/components/CheckBox.scss diff --git a/packages/common/Checkbox/src/main.vue b/packages/common/Checkbox/src/main.vue index 1c237f6b5..fae008108 100644 --- a/packages/common/Checkbox/src/main.vue +++ b/packages/common/Checkbox/src/main.vue @@ -1,7 +1,8 @@