diff --git a/src/TimePicker/index.js b/src/TimePicker/index.js deleted file mode 100644 index 2b95a2ae7..000000000 --- a/src/TimePicker/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/* istanbul ignore file */ -import Scaffold from './src/main.vue' - -Scaffold.install = function (Vue) { - Vue.component(Scaffold.name, Scaffold) -} - -export default Scaffold diff --git a/src/_styles/TimePicker.scss b/src/_styles/TimePicker.scss index 90e652e69..9b06f3383 100644 --- a/src/_styles/TimePicker.scss +++ b/src/_styles/TimePicker.scss @@ -1,120 +1,120 @@ -@import "./mixins/mixins.scss"; +// @import "./mixins/mixins.scss"; -@include themes-mixin { - @include once { - @include b(time-picker) { - position: relative; - display: inline-block; - } - } - @include b(time-picker) { - @include m(invalid) { - & > { - @include b(input) { - @include e(input) { - @include once { - text-decoration: line-through; - } - text-decoration-color: map-get($--time-picker-text-decoration-color, 'default'); - } - } - } - } - @include m(transition-disabled) { - & > { - @include b(input) { - input { - transition: none; - } - } - } - } - } - @include b(time-picker-selector) { - @include once { - outline: none; - font-size: 12px; - border-radius: $--n-time-picker-border-radius; - margin: 4px 0; - min-width: 104px; - overflow: hidden; - transform: $--n-transform-debounce-scale; - @include fade-in-scale-up-transition(time-picker); - @include b(time-picker-selector-actions) { - height: 38px; - align-items: center; - display: flex; - justify-content: space-evenly; - @include e(confirm) { - @include m(disabled) { - cursor: not-allowed; - opacity: 0.5; - } - } - } - } - background-color: $--time-picker-background-color; - box-shadow: $--time-picker-box-shadow; - @include b(time-picker-selector-time) { - @include once { - height: 224px; - display: flex; - position: relative; - } - border-bottom: 1px solid $--time-picker-divider-color; - } - @include b(time-picker-selector-time-row) { - @include once { - flex-grow: 1; - min-width: 52px; - height: 224px; - flex-direction: column; - transition: box-shadow .3s $--n-ease-in-out-cubic-bezier; - @include m(transition-disabled) { - @include e(item) { - transition: background-color .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier; - } - } - } - @include e(item) { - @include once { - cursor: pointer; - height: 32px; - display: flex; - align-items: center; - justify-content: center; - transition: color .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier, text-decoration-color .3s $--n-ease-in-out-cubic-bezier; - background: transparent; - } - text-decoration-color: transparent; - color: map-get($--time-picker-text-color, 'default'); - @include not-m(disabled) { - &:hover { - background-color: map-get($--time-picker-item-background-color, 'hover'); - } - } - @include m(active) { - background-color: map-get($--time-picker-item-background-color, 'hover'); - color: map-get($--time-picker-text-color, 'active'); - } - @include m(disabled) { - opacity: $--time-picker-item-disabled-opacity; - @include once { - cursor: not-allowed; - } - } - } - @include m(invalid) { - @include e(item) { - @include m(active) { - @include once { - text-decoration: line-through; - } - background-color: map-get($--time-picker-item-background-color, 'invalid'); - text-decoration-color: map-get($--time-picker-text-decoration-color, 'active'); - } - } - } - } - } -} +// @include themes-mixin { +// @include once { +// @include b(time-picker) { +// position: relative; +// display: inline-block; +// } +// } +// @include b(time-picker) { +// @include m(invalid) { +// & > { +// @include b(input) { +// @include e(input) { +// @include once { +// text-decoration: line-through; +// } +// text-decoration-color: map-get($--time-picker-text-decoration-color, 'default'); +// } +// } +// } +// } +// @include m(transition-disabled) { +// & > { +// @include b(input) { +// input { +// transition: none; +// } +// } +// } +// } +// } +// @include b(time-picker-selector) { +// @include once { +// outline: none; +// font-size: 12px; +// border-radius: $--n-time-picker-border-radius; +// margin: 4px 0; +// min-width: 104px; +// overflow: hidden; +// transform: $--n-transform-debounce-scale; +// @include fade-in-scale-up-transition(time-picker); +// @include b(time-picker-selector-actions) { +// height: 38px; +// align-items: center; +// display: flex; +// justify-content: space-evenly; +// @include e(confirm) { +// @include m(disabled) { +// cursor: not-allowed; +// opacity: 0.5; +// } +// } +// } +// } +// background-color: $--time-picker-background-color; +// box-shadow: $--time-picker-box-shadow; +// @include b(time-picker-selector-time) { +// @include once { +// height: 224px; +// display: flex; +// position: relative; +// } +// border-bottom: 1px solid $--time-picker-divider-color; +// } +// @include b(time-picker-selector-time-row) { +// @include once { +// flex-grow: 1; +// min-width: 52px; +// height: 224px; +// flex-direction: column; +// transition: box-shadow .3s $--n-ease-in-out-cubic-bezier; +// @include m(transition-disabled) { +// @include e(item) { +// transition: background-color .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier; +// } +// } +// } +// @include e(item) { +// @include once { +// cursor: pointer; +// height: 32px; +// display: flex; +// align-items: center; +// justify-content: center; +// transition: color .3s $--n-ease-in-out-cubic-bezier, background-color .3s $--n-ease-in-out-cubic-bezier, opacity .3s $--n-ease-in-out-cubic-bezier, text-decoration-color .3s $--n-ease-in-out-cubic-bezier; +// background: transparent; +// } +// text-decoration-color: transparent; +// color: map-get($--time-picker-text-color, 'default'); +// @include not-m(disabled) { +// &:hover { +// background-color: map-get($--time-picker-item-background-color, 'hover'); +// } +// } +// @include m(active) { +// background-color: map-get($--time-picker-item-background-color, 'hover'); +// color: map-get($--time-picker-text-color, 'active'); +// } +// @include m(disabled) { +// opacity: $--time-picker-item-disabled-opacity; +// @include once { +// cursor: not-allowed; +// } +// } +// } +// @include m(invalid) { +// @include e(item) { +// @include m(active) { +// @include once { +// text-decoration: line-through; +// } +// background-color: map-get($--time-picker-item-background-color, 'invalid'); +// text-decoration-color: map-get($--time-picker-text-decoration-color, 'active'); +// } +// } +// } +// } +// } +// } diff --git a/src/_styles/index.scss b/src/_styles/index.scss index be1aaf3b9..3936ebe5e 100644 --- a/src/_styles/index.scss +++ b/src/_styles/index.scss @@ -12,7 +12,5 @@ @import './Popselect.scss'; @import './Table.scss'; @import './Tabs.scss'; -@import './TimePicker.scss'; -// @import './Timeline.scss'; @import './Tooltip.scss'; @import './Upload.scss'; \ No newline at end of file diff --git a/src/date-picker/src/panel/datetime.vue b/src/date-picker/src/panel/datetime.vue index 2b8475261..2a42fdd9e 100644 --- a/src/date-picker/src/panel/datetime.vue +++ b/src/date-picker/src/panel/datetime.vue @@ -146,7 +146,7 @@ import uniCalendarMixin from './uniCalendarMixin' import startOfSecond from 'date-fns/startOfSecond' import NButton from '../../../button' -import NTimePicker from '../../../TimePicker' +import NTimePicker from '../../../time-picker' import NInput from '../../../input' const DATETIME_FORMAT = 'yyyy-MM-dd HH:mm:ss' diff --git a/src/date-picker/src/panel/datetimerange.vue b/src/date-picker/src/panel/datetimerange.vue index 520812c80..83fc49505 100644 --- a/src/date-picker/src/panel/datetimerange.vue +++ b/src/date-picker/src/panel/datetimerange.vue @@ -263,7 +263,7 @@