2
0
mirror of https://github.com/tenrok/vue2-datepicker.git synced 2026-06-10 05:52:29 +03:00

docs: update the prefix-class

This commit is contained in:
mengxiong10
2020-05-31 11:13:04 +08:00
parent b6b770d7ac
commit 1cdfe9d022
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -64,6 +64,8 @@ If your project uses SCSS, you can change the default style variables.
To create a scss file. e.g. `datepicker.scss`:
```scss
$namespace: 'xmx'; // change the 'mx' to 'xmx'. then <date-picker prefix-class="xmx" />
$default-color: #555;
$primary-color: #1284e7;
@@ -150,6 +152,7 @@ You can also override some of the default locale by `lang`.
| show-time-header | whether show header of time picker | `boolean` | false |
| time-title-format | format of the time header | [token](#token) | 'YYYY-MM-DD' |
| time-picker-options | set fixed time list to select | [time-picker-options](#time-picker-options) | null |
| prefix-class | set prefix class | `string` | 'mx' |
#### Token
@@ -270,7 +273,7 @@ Set fixed time list to select;
| --------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| input | When the value change(v-model event) | date |
| change | When the value change(same as input) | date, type('date'\|'hour'\|'minute'\|'second'\|'ampm |
| open | When panel opening | event |
| open | When panel opening | event |
| close | When panel closing | |
| confirm | When click 'confirm' button | date |
| clear | When click 'clear' button | |
+3
View File
@@ -36,6 +36,8 @@ $ npm install vue2-datepicker --save
创建一个新的文件. e.g. `datepicker.scss`:
```scss
$namespace: 'xmx'; // 更改默认前缀为'xmx'. 然后设置 <date-picker prefix-class="xmx" />
$default-color: #555;
$primary-color: #1284e7;
@@ -148,6 +150,7 @@ import 'vue2-datepicker/locale/zh-cn';
| show-time-header | 是否显示时间选择面板的头部 | `boolean` | false |
| time-title-format | 时间面板头部的格式化 | [token](#token) | 'YYYY-MM-DD' |
| time-picker-options | 设置固定时间去选择 | [time-picker-options](#time-picker-options) | null |
| prefix-class | 设置 class 的前缀 | `string` | 'mx' |
#### Token