style: fix code conflict
commit
2f81ea75c5
|
@ -5,5 +5,5 @@ node_modules/
|
|||
/components/test/*
|
||||
es/
|
||||
lib/
|
||||
site-dist/
|
||||
_site/
|
||||
dist/
|
||||
|
|
|
@ -62,7 +62,7 @@ typings/
|
|||
dist
|
||||
lib
|
||||
es
|
||||
site-dist
|
||||
_site
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
/coverage
|
||||
|
|
|
@ -5,5 +5,5 @@
|
|||
package.json
|
||||
es/**
|
||||
lib/**
|
||||
site-dist/**
|
||||
_site/**
|
||||
dist/**
|
|
@ -10,6 +10,18 @@
|
|||
|
||||
---
|
||||
|
||||
## 1.3.5
|
||||
`2019-02-23`
|
||||
|
||||
- ๐ Optimize the `Popover` `Popconfirm` component arrow style.
|
||||
- ๐ Fix using autoprefixer 9.4.5 in postcss (vue-cli) will throw an error `Replace text-decoration-skip: ink to text-decoration-skip-ink: auto, because spec had been changed`. [#471](https://github.com/vueComponent/ant-design-vue/pull/471)
|
||||
- Tree
|
||||
- ๐ Fixed growing space of Tree nodes.[#502](https://github.com/vueComponent/ant-design-vue/issues/502)
|
||||
- ๐ Fixing the `Tree` node can't drag and drop the target node problem.[#469](https://github.com/vueComponent/ant-design-vue/issues/502)
|
||||
- ๐ Update the document: `Tree` component `dragxxx` event changed to all lowercase.[#467](https://github.com/vueComponent/ant-design-vue/issues/467)
|
||||
- ๐ Fix `Modal.confirm` `class` does not work.[#475](https://github.com/vueComponent/ant-design-vue/pull/475)
|
||||
- ๐ Fix some TypeScript definitions.
|
||||
|
||||
## 1.3.4
|
||||
`2019-01-31`
|
||||
|
||||
|
|
|
@ -10,6 +10,19 @@
|
|||
|
||||
---
|
||||
|
||||
|
||||
## 1.3.5
|
||||
`2019-02-23`
|
||||
|
||||
- ๐ ไผๅ `Popover` `Popconfirm` ็ปไปถ็ฎญๅคดๆ ทๅผใ
|
||||
- ๐ ไฟฎๅคๅจ postcss๏ผvue-cli๏ผไธญไฝฟ็จ autoprefixer 9.4.5 ไผๆๅบ้่ฏฏ `Replace text-decoration-skip: ink to text-decoration-skip-ink: auto, because spec had been changed` ็้ฎ้ขใ[#471](https://github.com/vueComponent/ant-design-vue/pull/471)
|
||||
- Tree
|
||||
- ๐ ไฟฎๅค Tree ่็นๅ
ๅบ้จ่พน่ทๅ ๅ ็้ฎ้ขใ[#502](https://github.com/vueComponent/ant-design-vue/issues/502)
|
||||
- ๐ ไฟฎๅค `Tree` ็ป็นๆ ๆณๆๆฝๆๅ
ฅ็ฎๆ ็ป็น้ฎ้ขใ[#469](https://github.com/vueComponent/ant-design-vue/issues/502)
|
||||
- ๐ ๆดๆฐๆๆกฃ๏ผ`Tree` ็ปไปถ `dragxxx` ไบไปถๆนๆๅ
จๅฐๅใ[#467](https://github.com/vueComponent/ant-design-vue/issues/467)
|
||||
- ๐ ไฟฎๅค `Modal.confirm` `class` ไธ็ๆ้ฎ้ขใ[#475](https://github.com/vueComponent/ant-design-vue/pull/475)
|
||||
- ๐ ไฟฎๅค TypeScript ็ฑปๅๅฎไนใ
|
||||
|
||||
## 1.3.4
|
||||
`2019-01-31`
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
@select="onSelect"
|
||||
>
|
||||
<template slot="dateCellRender" slot-scope="value"></template>
|
||||
<template slot="monthCellRender" slot-scope="value"></template
|
||||
<template slot="monthCellRender" slot-scope="value"></template>
|
||||
</a-calendar>
|
||||
````
|
||||
customize the progress dot by setting a scoped slot
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
@select="onSelect"
|
||||
>
|
||||
<template slot="dateCellRender" slot-scope="value"></template>
|
||||
<template slot="monthCellRender" slot-scope="value"></template
|
||||
<template slot="monthCellRender" slot-scope="value"></template>
|
||||
</a-calendar>
|
||||
````
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
| -------- | ----------- | ---- | ------- |
|
||||
| defaultValue | Default selected value | string\[] | \[] |
|
||||
| disabled | Disable all checkboxes | boolean | false |
|
||||
| options | Specifies options, you can customize `label` with slot = "label" slot-scope = "option" | string\[] \| Array<{ label: string value: string disabled?: boolean, onChange?: function }> | \[] |
|
||||
| options | Specifies options, you can customize `label` with slot = "label" slot-scope="option" | string\[] \| Array<{ label: string value: string disabled?: boolean, onChange?: function }> | \[] |
|
||||
| value | Used for setting the currently selected value. | string\[] | \[] |
|
||||
|
||||
#### events
|
||||
|
|
|
@ -54,7 +54,7 @@ The following `options` are available:
|
|||
|
||||
If the form has been decorated by `Form.create` then it has `this.form` property. `this.form` provides some APIs as follows:
|
||||
|
||||
> Note: Before using `getFieldsValue` `getFieldValue` `setFieldsValue` and so on, please make sure that corresponding field had been registered with `getFieldDecorator`.
|
||||
> Note: Before using `getFieldsValue` `getFieldValue` `setFieldsValue` and so on, please make sure that corresponding field had been registered with `getFieldDecorator` or `v-decorator`.
|
||||
|
||||
| Method | Description | Type |
|
||||
| ------ | ----------- | ---- |
|
||||
|
@ -63,8 +63,8 @@ If the form has been decorated by `Form.create` then it has `this.form` property
|
|||
| getFieldsError | Get the specified fields' error. If you don't specify a parameter, you will get all fields' error. | Function(\[names: string\[]]) |
|
||||
| getFieldsValue | Get the specified fields' values. If you don't specify a parameter, you will get all fields' values. | Function(\[fieldNames: string\[]]) |
|
||||
| getFieldValue | Get the value of a field. | Function(fieldName: string) |
|
||||
| isFieldsTouched | Check whether any of fields is touched by `getFieldDecorator`'s `options.trigger` event | (names?: string\[]) => boolean |
|
||||
| isFieldTouched | Check whether a field is touched by `getFieldDecorator`'s `options.trigger` event | (name: string) => boolean |
|
||||
| isFieldsTouched | Check whether any of fields is touched by `getFieldDecorator`'s or `v-decorator`'s `options.trigger` event | (names?: string\[]) => boolean |
|
||||
| isFieldTouched | Check whether a field is touched by `getFieldDecorator`'s or `v-decorator`'s `options.trigger` event | (name: string) => boolean |
|
||||
| isFieldValidating | Check if the specified field is being validated. | Function(name) |
|
||||
| resetFields | Reset the specified fields' value(to `initialValue`) and status. If you don't specify a parameter, all the fields will be reset. | Function(\[names: string\[]]) |
|
||||
| setFields | Set value and error state of fields. | ({<br /> \[fieldName\]: {value: any, errors: \[Error\] }<br />}) => void |
|
||||
|
@ -137,7 +137,7 @@ To mark the returned fields data in `mapPropsToFields`, [demo](#components-form-
|
|||
After wrapped by `getFieldDecorator` or `v-decorator`, `value`(or other property defined by `valuePropName`) `onChange`(or other property defined by `trigger`) props will be added to form controls๏ผthe flow of form data will be handled by Form which will cause:
|
||||
|
||||
1. You shouldn't use `onChange` to collect data, but you still can listen to `onChange`(and so on) events.
|
||||
2. You cannot set value of form control via `value` `defaultValue` prop, and you should set default value with `initialValue` in `getFieldDecorator` instead.
|
||||
2. You cannot set value of form control via `value` `defaultValue` prop, and you should set default value with `initialValue` in `getFieldDecorator` or `v-decorator` instead.
|
||||
3. You shouldn't call `v-model` manually, please use `this.form.setFieldsValue` to change value programmatically.
|
||||
|
||||
#### Special attention
|
||||
|
|
|
@ -52,7 +52,7 @@ export default {
|
|||
|
||||
็ป่ฟ `Form.create` ๅ
่ฃ
็็ปไปถๅฐไผ่ชๅธฆ `this.form` ๅฑๆง๏ผ`this.form` ๆไพ็ API ๅฆไธ๏ผ
|
||||
|
||||
> ๆณจๆ๏ผไฝฟ็จ `getFieldsValue` `getFieldValue` `setFieldsValue` ็ญๆถ๏ผๅบ็กฎไฟๅฏนๅบ็ field ๅทฒ็ป็จ `getFieldDecorator` ๆณจๅ่ฟไบใ
|
||||
> ๆณจๆ๏ผไฝฟ็จ `getFieldsValue` `getFieldValue` `setFieldsValue` ็ญๆถ๏ผๅบ็กฎไฟๅฏนๅบ็ field ๅทฒ็ป็จ `getFieldDecorator` ๆ `v-decorator` ๆณจๅ่ฟไบใ
|
||||
|
||||
| ๆนๆณย ย ย | ่ฏดๆ ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย | ็ฑปๅ ย ย ย |
|
||||
| ------- | -------------------------------------- | -------- |
|
||||
|
@ -61,8 +61,8 @@ export default {
|
|||
| getFieldsError | ่ทๅไธ็ป่พๅ
ฅๆงไปถ็ Error ๏ผๅฆไธไผ ๅ
ฅๅๆฐ๏ผๅ่ทๅๅ
จ้จ็ปไปถ็ Error | Function(\[names: string\[]]) |
|
||||
| getFieldsValue | ่ทๅไธ็ป่พๅ
ฅๆงไปถ็ๅผ๏ผๅฆไธไผ ๅ
ฅๅๆฐ๏ผๅ่ทๅๅ
จ้จ็ปไปถ็ๅผ | Function(\[fieldNames: string\[]]) |
|
||||
| getFieldValue | ่ทๅไธไธช่พๅ
ฅๆงไปถ็ๅผ | Function(fieldName: string) |
|
||||
| isFieldsTouched | ๅคๆญๆฏๅฆไปปไธ่พๅ
ฅๆงไปถ็ปๅ่ฟ `getFieldDecorator` ็ๅผๆถ้ๆถๆบ `options.trigger` | (names?: string\[]) => boolean |
|
||||
| isFieldTouched | ๅคๆญไธไธช่พๅ
ฅๆงไปถๆฏๅฆ็ปๅ่ฟ `getFieldDecorator` ็ๅผๆถ้ๆถๆบ `options.trigger` | (name: string) => boolean |
|
||||
| isFieldsTouched | ๅคๆญๆฏๅฆไปปไธ่พๅ
ฅๆงไปถ็ปๅ่ฟ `getFieldDecorator` ๆ `v-decorator` ็ๅผๆถ้ๆถๆบ `options.trigger` | (names?: string\[]) => boolean |
|
||||
| isFieldTouched | ๅคๆญไธไธช่พๅ
ฅๆงไปถๆฏๅฆ็ปๅ่ฟ `getFieldDecorator` ๆ `v-decorator` ็ๅผๆถ้ๆถๆบ `options.trigger` | (name: string) => boolean |
|
||||
| isFieldValidating | ๅคๆญไธไธช่พๅ
ฅๆงไปถๆฏๅฆๅจๆ ก้ช็ถๆ | Function(name) |
|
||||
| resetFields | ้็ฝฎไธ็ป่พๅ
ฅๆงไปถ็ๅผ๏ผไธบ `initialValue`๏ผไธ็ถๆ๏ผๅฆไธไผ ๅ
ฅๅๆฐ๏ผๅ้็ฝฎๆๆ็ปไปถ | Function(\[names: string\[]]) |
|
||||
| setFields | ่ฎพ็ฝฎไธ็ป่พๅ
ฅๆงไปถ็ๅผไธ้่ฏฏ็ถๆใ | Function({ [fieldName]: { value: any, errors: [Error] } }) |
|
||||
|
@ -136,13 +136,13 @@ validateFields(['field1', 'field2'], options, (errors, values) => {
|
|||
็ป่ฟ `getFieldDecorator`ๆ`v-decorator` ๅ
่ฃ
็ๆงไปถ๏ผ่กจๅๆงไปถไผ่ชๅจๆทปๅ `value`๏ผๆ `valuePropName` ๆๅฎ็ๅ
ถไปๅฑๆง๏ผ `onChange`๏ผๆ `trigger` ๆๅฎ็ๅ
ถไปๅฑๆง๏ผ๏ผๆฐๆฎๅๆญฅๅฐ่ขซ Form ๆฅ็ฎก๏ผ่ฟไผๅฏผ่ดไปฅไธ็ปๆ๏ผ
|
||||
|
||||
1. ไฝ **ไธๅ้่ฆไนไธๅบ่ฏฅ**็จ `onChange` ๆฅๅๅๆญฅ๏ผไฝ่ฟๆฏๅฏไปฅ็ปง็ปญ็ๅฌ `onChange` ็ญไบไปถใ
|
||||
2. ไฝ ไธ่ฝ็จๆงไปถ็ `value` `defaultValue` ็ญๅฑๆงๆฅ่ฎพ็ฝฎ่กจๅๅ็ๅผ๏ผ้ป่ฎคๅผๅฏไปฅ็จ `getFieldDecorator` ้็ `initialValue`ใ
|
||||
2. ไฝ ไธ่ฝ็จๆงไปถ็ `value` `defaultValue` ็ญๅฑๆงๆฅ่ฎพ็ฝฎ่กจๅๅ็ๅผ๏ผ้ป่ฎคๅผๅฏไปฅ็จ `getFieldDecorator` ๆ `v-decorator` ้็ `initialValue`ใ
|
||||
3. ไฝ ไธๅบ่ฏฅ็จ `v-model`๏ผๅฏไปฅไฝฟ็จ `this.form.setFieldsValue` ๆฅๅจๆๆนๅ่กจๅๅผใ
|
||||
|
||||
#### ็นๅซๆณจๆ
|
||||
|
||||
1. `getFieldDecorator`ๅ`v-decorator` ไธ่ฝ็จไบ่ฃ
้ฅฐ็บฏๅฝๆฐ็ปไปถใ
|
||||
2. `getFieldDecorator`ๅ`v-decorator` ่ฐ็จไธ่ฝไฝไบ็บฏๅฝๆฐ็ปไปถไธญ <https://cn.vuejs.org/v2/api/#functional>ใ
|
||||
1. `getFieldDecorator` ๅ `v-decorator` ไธ่ฝ็จไบ่ฃ
้ฅฐ็บฏๅฝๆฐ็ปไปถใ
|
||||
2. `getFieldDecorator` ๅ `v-decorator` ่ฐ็จไธ่ฝไฝไบ็บฏๅฝๆฐ็ปไปถไธญ <https://cn.vuejs.org/v2/api/#functional>ใ
|
||||
|
||||
#### getFieldDecorator(id, options) ๅ v-decorator="[id, options]" ๅๆฐ
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ Create a reusable Vue component by using `<a-icon :component="{...}" />`. The pr
|
|||
<heart-icon :style="{ color: 'hotpink' }" />
|
||||
<panda-icon :style="{ fontSize: '32px' }" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
const HeartSvg = {
|
||||
template: `
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<template functional>
|
||||
<a-sub-menu
|
||||
:key="data.key"
|
||||
v-on="listeners"
|
||||
:key="props.menuInfo.key"
|
||||
>
|
||||
<span slot="title">
|
||||
<a-icon type="mail" /><span>{{ props.menuInfo.title }}</span>
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<a-sub-menu
|
||||
:key="menuInfo.key"
|
||||
v-bind="$props"
|
||||
v-on="$listeners"
|
||||
>
|
||||
<span slot="title">
|
||||
<a-icon type="mail" /><span>{{ menuInfo.title }}</span>
|
||||
</span>
|
||||
<template v-for="item in menuInfo.children">
|
||||
<a-menu-item
|
||||
v-if="!item.children"
|
||||
:key="item.key"
|
||||
>
|
||||
<a-icon type="pie-chart" />
|
||||
<span>{{ item.title }}</span>
|
||||
</a-menu-item>
|
||||
<sub-menu
|
||||
v-else
|
||||
:key="item.key"
|
||||
:menu-info="item"
|
||||
/>
|
||||
</template>
|
||||
</a-sub-menu>
|
||||
</template>
|
||||
<script>
|
||||
import { Menu } from 'ant-design-vue';
|
||||
export default {
|
||||
name: 'SubMenu',
|
||||
// must add isSubMenu: true
|
||||
isSubMenu: true,
|
||||
props: {
|
||||
...Menu.SubMenu.props,
|
||||
// Cannot overlap with properties within Menu.SubMenu.props
|
||||
menuInfo: {
|
||||
type: Object,
|
||||
default: ()=>({}),
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
|
@ -1,13 +1,13 @@
|
|||
<cn>
|
||||
#### ๅๆไปถ้ๅฝ่ๅ
|
||||
ไฝฟ็จๅๆไปถๆนๅผ้ๅฝ็ๆ่ๅใ
|
||||
ๅ ็ปไปถๅ
้จไผๅจๆๆดๆน`a-sub-menu`็ๅฑๆง๏ผๅฆๆๆๅๆๅๆไปถ๏ผๆ ๆณๅฐๅฑๆงๆ่ฝฝๅฐ`a-sub-menu`ไธ๏ผไฝ ้่ฆ่ช่กๅฃฐๆๅฑๆงๅนถๆ่ฝฝใไธบไบๅฎ็ฐๆนไพฟ๏ผ้ฟๅ
ไบๅฑๆง็ๅฃฐๆ๏ผๆฌ็คบไพๅฐๅ
ถๅฃฐๆไธบๅฝๆฐๅผ็ปไปถ๏ผๅนถๅฐๆๆๅฑๆงๆ่ฝฝๅฐ`a-sub-menu`ไธใ
|
||||
ๅ ็ปไปถๅ
้จไผๅจๆๆดๆน`a-sub-menu`็ๅฑๆง๏ผๅฆๆๆๅๆๅๆไปถ๏ผๆ ๆณๅฐๅฑๆงๆ่ฝฝๅฐ`a-sub-menu`ไธ๏ผไฝ ้่ฆ่ช่กๅฃฐๆๅฑๆงๅนถๆ่ฝฝใไธบไบๆนไพฟ๏ผ้ฟๅ
ๅฑๆง็ๅฃฐๆ๏ผๆไปฌๆจ่ไฝฟ็จๅฝๆฐๅผ็ปไปถใ
|
||||
</cn>
|
||||
|
||||
<us>
|
||||
#### Single file recursive menu
|
||||
Use the single file method to recursively generate menus.
|
||||
The properties of `a-sub-menu` are dynamically changed inside the component. If you split the file into a single file and you cannot mount the `props` to `a-sub-menu`, you need to declare the `props` and mount it yourself. For the sake of convenience, the declaration of the `props` is avoided. This example declares it as a functional component and mounts all properties to `a-sub-menu`.
|
||||
The properties of `a-sub-menu` are dynamically changed inside the component. If you split the file into a single file and you cannot mount the `props` to `a-sub-menu`, you need to declare the `props` and mount it yourself. For convenience, to avoid the declaration of attributes, we recommend using functional components.
|
||||
</us>
|
||||
|
||||
```html
|
||||
|
@ -35,7 +35,10 @@ The properties of `a-sub-menu` are dynamically changed inside the component. If
|
|||
</template>
|
||||
|
||||
<script>
|
||||
/* SubMenu.vue https://github.com/vueComponent/ant-design-vue/blob/master/components/menu/demo/SubMenu.vue */
|
||||
/*
|
||||
* recommend SubMenu.vue https://github.com/vueComponent/ant-design-vue/blob/master/components/menu/demo/SubMenu.vue
|
||||
* SubMenu1.vue https://github.com/vueComponent/ant-design-vue/blob/master/components/menu/demo/SubMenu1.vue
|
||||
* */
|
||||
import SubMenu from './SubMenu'
|
||||
export default {
|
||||
components: {
|
||||
|
|
|
@ -52,11 +52,12 @@
|
|||
|
||||
| Param | Description | Type | Default value |
|
||||
| ----- | ----------- | ---- | ------------- |
|
||||
| children | sub menus or sub menu items | Array<MenuItem\|SubMenu> | |
|
||||
| disabled | whether sub menu is disabled or not | boolean | false |
|
||||
| key | unique id of the sub menu | string | |
|
||||
| title | title of the sub menu | string\|slot | |
|
||||
|
||||
The children of Menu.SubMenu must be `MenuItem` or `SubMenu`.
|
||||
|
||||
### Menu.SubMenu Events
|
||||
| Events Name | Description | Arguments |
|
||||
| --- | --- | --- |
|
||||
|
@ -69,6 +70,8 @@
|
|||
| children | sub menu items | MenuItem\[] | |
|
||||
| title | title of the group | string\|slot | |
|
||||
|
||||
The children of Menu.ItemGroup must be `MenuItem`.
|
||||
|
||||
### Menu.Divider
|
||||
|
||||
Divider line in between menu items, only used in vertical popup Menu or Dropdown Menu.
|
||||
|
|
|
@ -50,13 +50,15 @@
|
|||
|
||||
| ๅๆฐ | ่ฏดๆ | ็ฑปๅ | ้ป่ฎคๅผ |
|
||||
| --- | --- | --- | --- |
|
||||
| children | ๅญ่ๅ็่ๅ้กน | Array<MenuItem\|SubMenu> | |
|
||||
| disabled | ๆฏๅฆ็ฆ็จ | boolean | false |
|
||||
| key | ๅฏไธๆ ๅฟ | string | |
|
||||
| title | ๅญ่ๅ้กนๅผ | string\|slot | |
|
||||
|
||||
Menu.SubMenu ็ๅญๅ
็ด ๅฟ
้กปๆฏ `MenuItem` ๆ่
`SubMenu`.
|
||||
|
||||
### SubMenuไบไปถ
|
||||
| ไบไปถๅ็งฐ | ่ฏดๆ | ๅ่ฐๅๆฐ |
|
||||
| --- | --- | --- |
|
||||
| titleClick | ็นๅปๅญ่ๅๆ ้ข | ({ key, domEvent }) |
|
||||
|
||||
### Menu.ItemGroup
|
||||
|
@ -65,6 +67,8 @@
|
|||
| --- | --- | --- | --- |
|
||||
| title | ๅ็ปๆ ้ข | string\|\|function\|slot | |
|
||||
|
||||
Menu.ItemGroup ็ๅญๅ
็ด ๅฟ
้กปๆฏ `MenuItem`.
|
||||
|
||||
### Menu.Divider
|
||||
|
||||
่ๅ้กนๅๅฒ็บฟ๏ผๅช็จๅจๅผนๅบ่ๅๅ
ใ
|
||||
|
|
|
@ -9,16 +9,16 @@
|
|||
top: 0;
|
||||
left: 0;
|
||||
z-index: @zindex-popover;
|
||||
font-weight: normal;
|
||||
white-space: normal;
|
||||
text-align: left;
|
||||
cursor: auto;
|
||||
user-select: text;
|
||||
white-space: normal;
|
||||
font-weight: normal;
|
||||
text-align: left;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
&::after {
|
||||
position: absolute;
|
||||
background: rgba(255, 255, 255, 0.01);
|
||||
background: fade(@white, 1%);
|
||||
content: '';
|
||||
}
|
||||
|
||||
&-hidden {
|
||||
|
@ -55,16 +55,24 @@
|
|||
background-clip: padding-box;
|
||||
border-radius: @border-radius-base;
|
||||
box-shadow: @box-shadow-base;
|
||||
box-shadow: ~'0 0 8px @{shadow-color} \9';
|
||||
}
|
||||
|
||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||
/* IE10+ */
|
||||
&-inner {
|
||||
box-shadow: @box-shadow-base;
|
||||
}
|
||||
}
|
||||
|
||||
&-title {
|
||||
min-width: @popover-min-width;
|
||||
min-height: 32px;
|
||||
margin: 0; // reset heading margin
|
||||
padding: 5px @padding-md 4px;
|
||||
min-height: 32px;
|
||||
border-bottom: 1px solid @border-color-split;
|
||||
color: @heading-color;
|
||||
font-weight: 500;
|
||||
border-bottom: 1px solid @border-color-split;
|
||||
}
|
||||
|
||||
&-inner-content {
|
||||
|
@ -73,10 +81,10 @@
|
|||
}
|
||||
|
||||
&-message {
|
||||
padding: 4px 0 12px;
|
||||
font-size: @font-size-base;
|
||||
color: @popover-color;
|
||||
position: relative;
|
||||
padding: 4px 0 12px;
|
||||
color: @popover-color;
|
||||
font-size: @font-size-base;
|
||||
> .@{iconfont-css-prefix} {
|
||||
position: absolute;
|
||||
top: 8px; // 4px for padding-top, 4px for vertical middle;
|
||||
|
@ -89,8 +97,8 @@
|
|||
}
|
||||
|
||||
&-buttons {
|
||||
text-align: right;
|
||||
margin-bottom: 4px;
|
||||
text-align: right;
|
||||
button {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
@ -100,22 +108,25 @@
|
|||
// .popover-arrow is outer, .popover-arrow:after is inner
|
||||
|
||||
&-arrow {
|
||||
background: @popover-bg;
|
||||
background-color: inherit;
|
||||
width: sqrt(@popover-arrow-width * @popover-arrow-width * 2);
|
||||
height: sqrt(@popover-arrow-width * @popover-arrow-width * 2);
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
display: block;
|
||||
border-color: transparent;
|
||||
width: sqrt(@popover-arrow-width * @popover-arrow-width * 2);
|
||||
height: sqrt(@popover-arrow-width * @popover-arrow-width * 2);
|
||||
background: transparent;
|
||||
border-width: sqrt(@popover-arrow-width * @popover-arrow-width * 2) / 2;
|
||||
border-style: solid;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
&-placement-top > &-content > &-arrow,
|
||||
&-placement-topLeft > &-content > &-arrow,
|
||||
&-placement-topRight > &-content > &-arrow {
|
||||
bottom: @popover-distance - @popover-arrow-width + 1.5px;
|
||||
box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.07);
|
||||
bottom: @popover-distance - @popover-arrow-width + 2.2px;
|
||||
border-top-color: transparent;
|
||||
border-right-color: @popover-bg;
|
||||
border-bottom-color: @popover-bg;
|
||||
border-left-color: transparent;
|
||||
box-shadow: 3px 3px 7px fade(@black, 7%);
|
||||
}
|
||||
&-placement-top > &-content > &-arrow {
|
||||
left: 50%;
|
||||
|
@ -132,7 +143,11 @@
|
|||
&-placement-rightTop > &-content > &-arrow,
|
||||
&-placement-rightBottom > &-content > &-arrow {
|
||||
left: @popover-distance - @popover-arrow-width + 2px;
|
||||
box-shadow: -3px 3px 7px rgba(0, 0, 0, 0.07);
|
||||
border-top-color: transparent;
|
||||
border-right-color: transparent;
|
||||
border-bottom-color: @popover-bg;
|
||||
border-left-color: @popover-bg;
|
||||
box-shadow: -3px 3px 7px fade(@black, 7%);
|
||||
}
|
||||
&-placement-right > &-content > &-arrow {
|
||||
top: 50%;
|
||||
|
@ -149,7 +164,11 @@
|
|||
&-placement-bottomLeft > &-content > &-arrow,
|
||||
&-placement-bottomRight > &-content > &-arrow {
|
||||
top: @popover-distance - @popover-arrow-width + 2px;
|
||||
box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.06);
|
||||
border-top-color: @popover-bg;
|
||||
border-right-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
border-left-color: @popover-bg;
|
||||
box-shadow: -2px -2px 5px fade(@black, 6%);
|
||||
}
|
||||
&-placement-bottom > &-content > &-arrow {
|
||||
left: 50%;
|
||||
|
@ -166,7 +185,11 @@
|
|||
&-placement-leftTop > &-content > &-arrow,
|
||||
&-placement-leftBottom > &-content > &-arrow {
|
||||
right: @popover-distance - @popover-arrow-width + 2px;
|
||||
box-shadow: 3px -3px 7px rgba(0, 0, 0, 0.07);
|
||||
border-top-color: @popover-bg;
|
||||
border-right-color: @popover-bg;
|
||||
border-bottom-color: transparent;
|
||||
border-left-color: transparent;
|
||||
box-shadow: 3px -3px 7px fade(@black, 7%);
|
||||
}
|
||||
&-placement-left > &-content > &-arrow {
|
||||
top: 50%;
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
@highlight-color : @red-6;
|
||||
@warning-color : @gold-6;
|
||||
@normal-color : #d9d9d9;
|
||||
@white: #fff;
|
||||
@black: #000;
|
||||
|
||||
// Color used by default to control hover and active backgrounds and for
|
||||
// alert info backgrounds.
|
||||
|
@ -292,20 +294,20 @@
|
|||
|
||||
// Popover
|
||||
// ---
|
||||
//** Popover body background color
|
||||
// Popover body background color
|
||||
@popover-bg: #fff;
|
||||
//** Popover text color
|
||||
// Popover text color
|
||||
@popover-color: @text-color;
|
||||
//** Popover maximum width
|
||||
// Popover maximum width
|
||||
@popover-min-width: 177px;
|
||||
//** Popover arrow width
|
||||
// Popover arrow width
|
||||
@popover-arrow-width: 6px;
|
||||
//** Popover arrow color
|
||||
// Popover arrow color
|
||||
@popover-arrow-color: @popover-bg;
|
||||
//** Popover outer arrow width
|
||||
//** Popover outer arrow color
|
||||
// Popover outer arrow width
|
||||
// Popover outer arrow color
|
||||
@popover-arrow-outer-color: @popover-bg;
|
||||
//** Popover distance with trigger
|
||||
// Popover distance with trigger
|
||||
@popover-distance: @popover-arrow-width + 4px;
|
||||
|
||||
// Modal
|
||||
|
|
|
@ -12,7 +12,7 @@ Table with editable rows.
|
|||
<template>
|
||||
<a-table :columns="columns" :dataSource="data" bordered>
|
||||
<template v-for="col in ['name', 'age', 'address']" :slot="col" slot-scope="text, record, index">
|
||||
<div>
|
||||
<div :key="col">
|
||||
<a-input
|
||||
v-if="record.editable"
|
||||
style="margin: -5px 0"
|
||||
|
|
|
@ -19,7 +19,7 @@ The tree structure can be populated using `treeData` property. This is a quick a
|
|||
v-model="value"
|
||||
>
|
||||
<span style="color: #08c" slot="title" slot-scope="{key, value}" v-if="key='0-0-1'">
|
||||
<a-icon type="home"/>Child Node1 {{value}}
|
||||
Child Node1 {{value}}
|
||||
</span>
|
||||
</a-tree-select>
|
||||
</template>
|
||||
|
|
|
@ -30,11 +30,11 @@
|
|||
| Events Name | Description | Arguments |
|
||||
| --- | --- | --- |
|
||||
| check | Callback function for when the onCheck event occurs | function(checkedKeys, e:{checked: bool, checkedNodes, node, event}) |
|
||||
| dragEnd | Callback function for when the onDragEnd event occurs | function({event, node}) |
|
||||
| dragEnter | Callback function for when the onDragEnter event occurs | function({event, node, expandedKeys}) |
|
||||
| dragLeave | Callback function for when the onDragLeave event occurs | function({event, node}) |
|
||||
| dragOver | Callback function for when the onDragOver event occurs | function({event, node}) |
|
||||
| dragStart | Callback function for when the onDragStart event occurs | function({event, node}) |
|
||||
| dragend | Callback function for when the onDragEnd event occurs | function({event, node}) |
|
||||
| dragenter | Callback function for when the onDragEnter event occurs | function({event, node, expandedKeys}) |
|
||||
| dragleave | Callback function for when the onDragLeave event occurs | function({event, node}) |
|
||||
| dragover | Callback function for when the onDragOver event occurs | function({event, node}) |
|
||||
| dragstart | Callback function for when the onDragStart event occurs | function({event, node}) |
|
||||
| drop | Callback function for when the onDrop event occurs | function({event, node, dragNode, dragNodesKeys}) |
|
||||
| expand | Callback function for when a treeNode is expanded or collapsed | function(expandedKeys, {expanded: bool, node}) |
|
||||
| load | Callback function for when a treeNode is loaded | function(loadedKeys, {event, node}) |
|
||||
|
|
|
@ -32,11 +32,11 @@
|
|||
| ไบไปถๅ็งฐ | ่ฏดๆ | ๅ่ฐๅๆฐ |
|
||||
| --- | --- | --- |
|
||||
| check | ็นๅปๅค้ๆก่งฆๅ | function(checkedKeys, e:{checked: bool, checkedNodes, node, event}) |
|
||||
| dragEnd | dragend ่งฆๅๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragEnter | dragenter ่งฆๅๆถ่ฐ็จ | function({event, node, expandedKeys}) |
|
||||
| dragLeave | dragleave ่งฆๅๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragOver | dragover ่งฆๅๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragStart | ๅผๅงๆๆฝๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragend | dragend ่งฆๅๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragenter | dragenter ่งฆๅๆถ่ฐ็จ | function({event, node, expandedKeys}) |
|
||||
| dragleave | dragleave ่งฆๅๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragover | dragover ่งฆๅๆถ่ฐ็จ | function({event, node}) |
|
||||
| dragstart | ๅผๅงๆๆฝๆถ่ฐ็จ | function({event, node}) |
|
||||
| drop | drop ่งฆๅๆถ่ฐ็จ | function({event, node, dragNode, dragNodesKeys}) |
|
||||
| expand | ๅฑๅผ/ๆถ่ตท่็นๆถ่งฆๅ | function(expandedKeys, {expanded: bool, node}) |
|
||||
| load | ่็นๅ ่ฝฝๅฎๆฏๆถ่งฆๅ | function(loadedKeys, {event, node}) |
|
||||
|
|
|
@ -164,7 +164,11 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul > li {
|
||||
&:first-child {
|
||||
padding-top: 4px;
|
||||
}
|
||||
}
|
||||
> li {
|
||||
&:first-child {
|
||||
padding-top: 7px;
|
||||
|
@ -178,6 +182,18 @@
|
|||
&-open {
|
||||
display: block;
|
||||
}
|
||||
// https://github.com/ant-design/ant-design/issues/14958
|
||||
> li {
|
||||
// Provide additional padding between top child node and parent node
|
||||
&:first-child {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
// Hide additional padding between last child node and next parent node
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
li&-treenode-disabled {
|
||||
> span:not(.@{tree-prefix-cls}-switcher),
|
||||
|
|
|
@ -48,7 +48,6 @@ const SubMenu = {
|
|||
triggerSubMenuAction: PropTypes.string,
|
||||
popupClassName: PropTypes.string,
|
||||
getPopupContainer: PropTypes.func,
|
||||
test: PropTypes.any,
|
||||
forceSubMenuRender: PropTypes.bool,
|
||||
openAnimation: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
||||
disabled: PropTypes.bool,
|
||||
|
|
|
@ -323,7 +323,7 @@ const Tree = {
|
|||
if (dropPosition === _dropPosition) return;
|
||||
|
||||
this.setState({
|
||||
_dropPosition,
|
||||
_dropPosition: dropPosition,
|
||||
});
|
||||
}
|
||||
this.__emit('dragover', { event, node });
|
||||
|
|
|
@ -0,0 +1,115 @@
|
|||
[build]
|
||||
publish = "_site"
|
||||
command = "npm run site"
|
||||
|
||||
[context.production]
|
||||
command = "echo build"
|
||||
publish = "."
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/resource/download"
|
||||
to = "/docs/spec/download"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/resource/download-cn"
|
||||
to = "/docs/spec/download-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/resource/reference"
|
||||
to = "/docs/spec/reference"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/resource/reference-cn"
|
||||
to = "/docs/spec/reference-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/spec/feature"
|
||||
to = "/docs/spec/values"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/spec/feature-cn"
|
||||
to = "/docs/spec/values-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/advanced-search"
|
||||
to = "/docs/spec/overview"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/advanced-search-cn"
|
||||
to = "/docs/spec/overview-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/complex-table"
|
||||
to = "/docs/spec/overview"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/complex-table-cn"
|
||||
to = "/docs/spec/overview-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/form"
|
||||
to = "/docs/spec/overview"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/form-cn"
|
||||
to = "/docs/spec/overview-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/list"
|
||||
to = "/docs/spec/overview"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/list-cn"
|
||||
to = "/docs/spec/overview-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/navigation"
|
||||
to = "/docs/spec/overview"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/navigation-cn"
|
||||
to = "/docs/spec/overview-cn"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/table"
|
||||
to = "/docs/spec/overview"
|
||||
status = 301
|
||||
force = false
|
||||
|
||||
[[redirects]]
|
||||
from = "/docs/pattern/table-cn"
|
||||
to = "/docs/spec/overview-cn"
|
||||
status = 301
|
||||
force = false
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ant-design-vue",
|
||||
"version": "1.3.4",
|
||||
"version": "1.3.5",
|
||||
"title": "Ant Design Vue",
|
||||
"description": "An enterprise-class UI design language and Vue-based implementation",
|
||||
"keywords": [
|
||||
|
@ -28,7 +28,7 @@
|
|||
"dev": "cross-env NODE_ENV=development ENTRY_INDEX=dev ./node_modules/.bin/webpack-dev-server --open --hot --port 3001",
|
||||
"start": "cross-env NODE_ENV=development ./node_modules/.bin/webpack-dev-server --open --hot",
|
||||
"test": "cross-env NODE_ENV=test jest --config .jest.js",
|
||||
"site": "node scripts/run.js site-dist",
|
||||
"site": "node scripts/run.js _site",
|
||||
"copy": "node scripts/run.js copy-html",
|
||||
"compile": "node antd-tools/cli/run.js compile",
|
||||
"pub": "node antd-tools/cli/run.js pub",
|
||||
|
@ -147,7 +147,7 @@
|
|||
"selenium-server": "^3.0.1",
|
||||
"semver": "^5.3.0",
|
||||
"style-loader": "^0.18.2",
|
||||
"stylelint": "~9.6.0",
|
||||
"stylelint": "^9.10.1",
|
||||
"stylelint-config-prettier": "^4.0.0",
|
||||
"stylelint-config-standard": "^18.2.0",
|
||||
"through2": "^2.0.3",
|
||||
|
|
|
@ -9,15 +9,15 @@ if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TR
|
|||
|
||||
echo "Starting to update gh-pages\n"
|
||||
|
||||
rm -rf site-dist
|
||||
mkdir site-dist
|
||||
rm -rf _site
|
||||
mkdir _site
|
||||
|
||||
git config --global user.email "travis@travis-ci.org"
|
||||
git config --global user.name "Travis"
|
||||
|
||||
npm run site
|
||||
|
||||
cd site-dist
|
||||
cd _site
|
||||
git init
|
||||
git add -f .
|
||||
git commit -m "Travis build"
|
||||
|
|
|
@ -12,7 +12,7 @@ const mkdirp = require('mkdirp');
|
|||
const cwd = process.cwd();
|
||||
|
||||
function dist(done) {
|
||||
rimraf.sync(path.join(cwd, 'site-dist'));
|
||||
rimraf.sync(path.join(cwd, '_site'));
|
||||
process.env.RUN_ENV = 'PRODUCTION';
|
||||
const webpackConfig = require(path.join(cwd, 'webpack.site.config.js'));
|
||||
webpack(webpackConfig, (err, stats) => {
|
||||
|
@ -53,30 +53,30 @@ function copyHtml() {
|
|||
input: fs.createReadStream(path.join(cwd, 'site/demoRoutes.js')),
|
||||
});
|
||||
fs.writeFileSync(
|
||||
path.join(cwd, 'site-dist/404.html'),
|
||||
path.join(cwd, '_site/404.html'),
|
||||
fs.readFileSync(path.join(cwd, 'site/404.html')),
|
||||
);
|
||||
fs.writeFileSync(
|
||||
path.join(cwd, 'site-dist/index-cn.html'),
|
||||
fs.readFileSync(path.join(cwd, 'site-dist/index.html')),
|
||||
path.join(cwd, '_site/index-cn.html'),
|
||||
fs.readFileSync(path.join(cwd, '_site/index.html')),
|
||||
);
|
||||
fs.writeFileSync(path.join(cwd, 'site-dist/CNAME'), 'vue.ant.design');
|
||||
fs.writeFileSync(path.join(cwd, '_site/CNAME'), 'vue.ant.design');
|
||||
rl.on('line', line => {
|
||||
if (line.indexOf('path:') > -1) {
|
||||
const name = line.split("'")[1].split("'")[0];
|
||||
console.log('create path:', name);
|
||||
const toPaths = [
|
||||
`site-dist/components/${name}`,
|
||||
// `site-dist/components/${name}-cn`,
|
||||
`site-dist/iframe/${name}`,
|
||||
// `site-dist/iframe/${name}-cn`,
|
||||
`_site/components/${name}`,
|
||||
// `_site/components/${name}-cn`,
|
||||
`_site/iframe/${name}`,
|
||||
// `_site/iframe/${name}-cn`,
|
||||
];
|
||||
toPaths.forEach(toPath => {
|
||||
rimraf.sync(path.join(cwd, toPath));
|
||||
mkdirp(path.join(cwd, toPath), function() {
|
||||
fs.writeFileSync(
|
||||
path.join(cwd, `${toPath}/index.html`),
|
||||
fs.readFileSync(path.join(cwd, 'site-dist/index.html')),
|
||||
fs.readFileSync(path.join(cwd, '_site/index.html')),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -92,16 +92,16 @@ function copyHtml() {
|
|||
const paths = file.path.split('/');
|
||||
const name = paths[paths.length - 1].split('.')[0].toLowerCase();
|
||||
const toPaths = [
|
||||
'site-dist/docs',
|
||||
'site-dist/docs/vue',
|
||||
`site-dist/docs/vue/${name}`,
|
||||
`site-dist/docs/vue/${name}-cn`,
|
||||
'_site/docs',
|
||||
'_site/docs/vue',
|
||||
`_site/docs/vue/${name}`,
|
||||
`_site/docs/vue/${name}-cn`,
|
||||
];
|
||||
toPaths.forEach(toPath => {
|
||||
mkdirp(path.join(cwd, toPath), function() {
|
||||
fs.writeFileSync(
|
||||
path.join(cwd, `${toPath}/index.html`),
|
||||
fs.readFileSync(path.join(cwd, 'site-dist/index.html')),
|
||||
fs.readFileSync(path.join(cwd, '_site/index.html')),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
@ -110,9 +110,10 @@ function copyHtml() {
|
|||
);
|
||||
}
|
||||
|
||||
gulp.task('site-dist', done => {
|
||||
gulp.task('_site', done => {
|
||||
dist(() => {
|
||||
copyHtml();
|
||||
done();
|
||||
});
|
||||
});
|
||||
gulp.task('copy-html', () => {
|
||||
|
|
|
@ -22,7 +22,6 @@ const ignoreFiles = [
|
|||
'es/**',
|
||||
'lib/**',
|
||||
'dist/**',
|
||||
'site-dist/**',
|
||||
'**/**.snap',
|
||||
'**/**.map',
|
||||
'**/components/style/color/**',
|
||||
|
|
|
@ -6,7 +6,7 @@ const carbonUrls = {
|
|||
'ant-design-vue.gitee.io':'//cdn.carbonads.com/carbon.js?serve=CK7DL2JN&placement=antdesignvuegiteeio',
|
||||
'vue.ant.design': '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign',
|
||||
};
|
||||
const carbonUrl = carbonUrls[location.host] || '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vuecomponentgithubio';
|
||||
const carbonUrl = carbonUrls[location.host] || '//cdn.carbonads.com/carbon.js?serve=CK7DL2JW&placement=vueantdesign';
|
||||
export default {
|
||||
props: {
|
||||
isMobile: Boolean,
|
||||
|
|
|
@ -19,12 +19,6 @@ export declare class SubMenu extends AntdComponent {
|
|||
*/
|
||||
disabled: boolean;
|
||||
|
||||
/**
|
||||
* sub menus or sub menu items
|
||||
* @type Array<MenuItem | SubMenu>
|
||||
*/
|
||||
children: Array<MenuItem | SubMenu>;
|
||||
|
||||
/**
|
||||
* title of the sub menu
|
||||
* @type string | slot
|
||||
|
|
|
@ -280,6 +280,12 @@ export declare class Modal extends AntdComponent {
|
|||
* @type number
|
||||
*/
|
||||
zIndex: number;
|
||||
|
||||
static info(options: ModalOptions): ModalConfirm;
|
||||
static success(options: ModalOptions): ModalConfirm;
|
||||
static error(options: ModalOptions): ModalConfirm;
|
||||
static warning(options: ModalOptions): ModalConfirm;
|
||||
static confirm(options: ModalOptions): ModalConfirm;
|
||||
}
|
||||
|
||||
declare module 'vue/types/vue' {
|
||||
|
|
|
@ -47,7 +47,7 @@ export declare class Slider extends AntdComponent {
|
|||
* @type object
|
||||
*/
|
||||
marks: {
|
||||
number: string | VNode | { style: object; label: string | VNode } | Function;
|
||||
[key: number]: string | VNode | { style: object; label: string | VNode } | Function;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,7 @@ const baseWebpackConfig = require('./webpack.base.config');
|
|||
|
||||
module.exports = merge(baseWebpackConfig, {
|
||||
output: {
|
||||
path: path.resolve(__dirname, './site-dist'),
|
||||
path: path.resolve(__dirname, './_site'),
|
||||
publicPath: '/',
|
||||
filename: '[name].[contenthash:8].js',
|
||||
chunkFilename: '[contenthash:8].async.js',
|
||||
|
|
Loadingโฆ
Reference in New Issue