Skip to content

Commit

Permalink
feat(time-picker): [time-picker] Optimize and modify component style …
Browse files Browse the repository at this point in the history
…issues
  • Loading branch information
Youyou-smiles committed Oct 28, 2024
1 parent ad7ca1d commit 1afb3ce
Show file tree
Hide file tree
Showing 47 changed files with 79 additions and 125 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const yearValue = ref('')

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/basic-usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ const IconClose = iconClose()

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/clear.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export default {

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const IconMinus = iconMinus()

<style>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
.my-date-picker {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {

<style>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
.my-date-picker {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ function formatWeeks(customWeeks, weekFirstDays) {

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/custom-weeks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ export default {

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ const defaultTimeRange = ref(['09:00:00', '18:00:00'])

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--datetimerange.tiny-input__inner) {
width: 360px;
}
width: 360px;
& > * {
margin-top: 12px;
}
Expand Down
7 changes: 1 addition & 6 deletions examples/sites/demos/pc/app/date-picker/default-value.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--datetimerange.tiny-input__inner) {
width: 360px;
}
width: 360px;
& > * {
margin-top: 12px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ const pickerOptions = {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--daterange.tiny-input__inner) {
width: 360px;
}
width: 360px;
& > * {
margin-top: 12px;
}
Expand Down
7 changes: 1 addition & 6 deletions examples/sites/demos/pc/app/date-picker/disabled.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--daterange.tiny-input__inner) {
width: 360px;
}
width: 360px;
& > * {
margin-top: 12px;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<template>
<tiny-layout>
<tiny-row>
<tiny-col :span="4">
<tiny-row class="demo-row">
<tiny-col :span="6">
<label class="demo-date-picker-label">focus:</label>
<tiny-date-picker v-model="valueFocus" @focus="handleFocus"></tiny-date-picker>
</tiny-col>
<tiny-col :span="4">
<tiny-col :span="6">
<label class="demo-date-picker-label">blur:</label>
<tiny-date-picker v-model="valueBlur" @blur="handleBlur"></tiny-date-picker>
</tiny-col>
<tiny-col :span="4">
<tiny-col :span="6">
<label class="demo-date-picker-label">change:</label>
<tiny-date-picker v-model="valueChange" @change="handleChange"></tiny-date-picker>
</tiny-col>
</tiny-row>
<tiny-row>
<tiny-col :span="6">
<label class="demo-date-picker-label">onPick:</label>
<tiny-date-picker v-model="valueOnPick" type="daterange" :picker-options="pickerOptions"></tiny-date-picker>
Expand Down Expand Up @@ -58,6 +56,9 @@ const pickerOptions = {
</script>

<style scoped>
.demo-row {
width: 80%;
}
.demo-date-picker-label {
display: inline-block;
margin: 12px 0;
Expand Down
13 changes: 7 additions & 6 deletions examples/sites/demos/pc/app/date-picker/events.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<template>
<tiny-layout>
<tiny-row>
<tiny-col :span="4">
<tiny-row class="demo-row">
<tiny-col :span="6">
<label class="demo-date-picker-label">focus:</label>
<tiny-date-picker v-model="valueFocus" @focus="handleFocus"></tiny-date-picker>
</tiny-col>
<tiny-col :span="4">
<tiny-col :span="6">
<label class="demo-date-picker-label">blur:</label>
<tiny-date-picker v-model="valueBlur" @blur="handleBlur"></tiny-date-picker>
</tiny-col>
<tiny-col :span="4">
<tiny-col :span="6">
<label class="demo-date-picker-label">change:</label>
<tiny-date-picker v-model="valueChange" @change="handleChange"></tiny-date-picker>
</tiny-col>
</tiny-row>
<tiny-row>
<tiny-col :span="6">
<label class="demo-date-picker-label">onPick:</label>
<tiny-date-picker v-model="valueOnPick" type="daterange" :picker-options="pickerOptions"></tiny-date-picker>
Expand Down Expand Up @@ -61,6 +59,9 @@ export default {
</script>

<style scoped>
.demo-row {
width: 80%;
}
.demo-date-picker-label {
display: inline-block;
margin: 12px 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const rangeValue = ref('')

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/filter-mode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const selectedValue = ref(1590076800000)

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/format.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ const dateRangeValue = ref([])

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--daterange.tiny-input__inner) {
width: 360px;
}
:deep(.tiny-range__close-icon) {
right: -4px;
}
width: 360px;
& > * {
margin-top: 12px;
Expand Down
9 changes: 1 addition & 8 deletions examples/sites/demos/pc/app/date-picker/label-inside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--daterange.tiny-input__inner) {
width: 360px;
}
:deep(.tiny-range__close-icon) {
right: -4px;
}
width: 360px;
& > * {
margin-top: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const yearsValue = ref('')

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/multiple-dates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
& > * {
margin-top: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const now = () => {

<style scoped>
.demo-date-picker {
width: 280px;
width: 360px;
}
.nowclass {
display: inline-flex;
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/now.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default {

<style scoped>
.demo-date-picker {
width: 280px;
width: 360px;
}
.nowclass {
display: inline-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ const radioValue = ref('default')

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--daterange.tiny-input__inner) {
width: 360px;
}
width: 360px;
& > * {
margin-top: 12px;
}
Expand Down
7 changes: 1 addition & 6 deletions examples/sites/demos/pc/app/date-picker/size.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
:deep(.tiny-date-editor--daterange.tiny-input__inner) {
width: 360px;
}
width: 360px;
& > * {
margin-top: 12px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ const value = ref('')

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/step.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ export default {

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ function selectChange(tz) {

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/timezone.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ export default {

<style scoped>
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ const value = ref([])

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/unlink-panels.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 280px;
width: 360px;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function resetForm() {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 400px;
width: 360px;
:deep(.tiny-form-item .tiny-form-item) {
margin-bottom: 8px;
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/date-picker/validate-event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {

<style scoped lang="less">
.demo-date-picker-wrap {
width: 400px;
width: 360px;
:deep(.tiny-form-item .tiny-form-item) {
margin-bottom: 8px;
Expand Down
Loading

0 comments on commit 1afb3ce

Please sign in to comment.