@@ -210,7 +210,7 @@ You can choose week, month or year by extending the standard date picker compone
...
@@ -210,7 +210,7 @@ You can choose week, month or year by extending the standard date picker compone
Picking a date range is supported.
Picking a date range is supported.
:::demo
:::demo When in range mode, the left and right panels are linked by default. If you want the two panels to switch current months independently, you can use the `unlink-panels` attribute.
```html
```html
<template>
<template>
...
@@ -230,6 +230,7 @@ Picking a date range is supported.
...
@@ -230,6 +230,7 @@ Picking a date range is supported.
v-model="value7"
v-model="value7"
type="daterange"
type="daterange"
align="right"
align="right"
unlink-panels
range-separator="To"
range-separator="To"
start-placeholder="Start date"
start-placeholder="Start date"
end-placeholder="End date"
end-placeholder="End date"
...
@@ -389,7 +390,7 @@ This feature is at alpha stage. Feedback welcome.
...
@@ -389,7 +390,7 @@ This feature is at alpha stage. Feedback welcome.
| default-value | optional, default date of the calendar | Date | anything accepted by `new Date()` | — |
| default-value | optional, default date of the calendar | Date | anything accepted by `new Date()` | — |
| value-format | optional, format of binding value. If not specified, the binding value will be a Date object | string | year `yyyy`, month `MM`, day `dd`, hour `HH`, minute `mm`, second `ss` | — |
| value-format | optional, format of binding value. If not specified, the binding value will be a Date object | string | year `yyyy`, month `MM`, day `dd`, hour `HH`, minute `mm`, second `ss` | — |
| name | same as `name` in native input | string | — | — |
| name | same as `name` in native input | string | — | — |
| unlink-panels | unllink two date-panels in range-picker | boolean | — | false |
| unlink-panels | unlink two date-panels in range-picker | boolean | — | false |
@@ -341,12 +341,15 @@ Taking example by Bootstrap's responsive design, four breakpoints are preset: xs
...
@@ -341,12 +341,15 @@ Taking example by Bootstrap's responsive design, four breakpoints are preset: xs
```
```
:::
:::
### Classes for Visibility
### Utility classes for hiding elements
Additionally, Element provides a series of classes for hiding elements under certain conditions. These classes can be added to any DOM elements or custom components. You need to import the following CSS file to use these classes:
```js
```js
import'element-ui/lib/theme-chalk/display.scss';
import'element-ui/lib/theme-chalk/display.css';
```
```
The classes are:
-`hide-xs-only` - hide when on extra small viewports only
-`hide-xs-only` - hide when on extra small viewports only
-`hide-sm-only` - hide when on small viewports and down
-`hide-sm-only` - hide when on small viewports and down
-`hide-sm-and-down` - hide when on small viewports and down
-`hide-sm-and-down` - hide when on small viewports and down