diff --git a/README.md b/README.md index dd3d5cb..a4f091b 100644 --- a/README.md +++ b/README.md @@ -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 + $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 | | diff --git a/README.zh-CN.md b/README.zh-CN.md index 5c29a22..527709f 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -36,6 +36,8 @@ $ npm install vue2-datepicker --save 创建一个新的文件. e.g. `datepicker.scss`: ```scss +$namespace: 'xmx'; // 更改默认前缀为'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