mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 11:17:46 +08:00
fix(theme-chalk): [date-picker] basic & range height size (#7831)
This commit is contained in:
parent
46174bc411
commit
ca58f2beb3
@ -1,4 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-radio-group v-model="size" label="size control">
|
||||
<el-radio-button label="large">large</el-radio-button>
|
||||
<el-radio-button label="default">default</el-radio-button>
|
||||
<el-radio-button label="small">small</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div class="demo-date-picker">
|
||||
<div class="block">
|
||||
<span class="demonstration">Default</span>
|
||||
@ -8,6 +15,7 @@
|
||||
range-separator="To"
|
||||
start-placeholder="Start date"
|
||||
end-placeholder="End date"
|
||||
:size="size"
|
||||
/>
|
||||
</div>
|
||||
<div class="block">
|
||||
@ -20,6 +28,7 @@
|
||||
start-placeholder="Start date"
|
||||
end-placeholder="End date"
|
||||
:shortcuts="shortcuts"
|
||||
:size="size"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -28,6 +37,8 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
const size = ref<'' | 'large' | 'small'>('')
|
||||
|
||||
const value1 = ref('')
|
||||
const value2 = ref('')
|
||||
|
||||
|
@ -1,8 +1,20 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-radio-group v-model="size" label="size control">
|
||||
<el-radio-button label="large">large</el-radio-button>
|
||||
<el-radio-button label="default">default</el-radio-button>
|
||||
<el-radio-button label="small">small</el-radio-button>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div class="demo-date-picker">
|
||||
<div class="block">
|
||||
<span class="demonstration">Default</span>
|
||||
<el-date-picker v-model="value1" type="date" placeholder="Pick a day" />
|
||||
<el-date-picker
|
||||
v-model="value1"
|
||||
type="date"
|
||||
placeholder="Pick a day"
|
||||
:size="size"
|
||||
/>
|
||||
</div>
|
||||
<div class="block">
|
||||
<span class="demonstration">Picker with quick options</span>
|
||||
@ -12,6 +24,7 @@
|
||||
placeholder="Pick a day"
|
||||
:disabled-date="disabledDate"
|
||||
:shortcuts="shortcuts"
|
||||
:size="size"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -20,6 +33,8 @@
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue'
|
||||
|
||||
const size = ref<'' | 'large' | 'small'>('')
|
||||
|
||||
const value1 = ref('')
|
||||
const value2 = ref('')
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
&.#{$namespace}-input,
|
||||
&.#{$namespace}-input__wrapper {
|
||||
width: getCssVar('date-editor-width');
|
||||
height: getCssVar('component-size', '');
|
||||
height: var(#{getCssVarName('input-height')}, getCssVar('component-size'));
|
||||
}
|
||||
|
||||
@include m((monthrange)) {
|
||||
|
Loading…
Reference in New Issue
Block a user