docs: add changelog
parent
0d3821910f
commit
42510d6efc
|
@ -2,6 +2,40 @@
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 1.2.0
|
||||||
|
`2018-12-16`
|
||||||
|
### Synchronize with antd 3.10.x
|
||||||
|
|
||||||
|
- ๐ฅ๐ฅ๐ฅ replaced font icons with svg icons which bring benefits below:๏ผ
|
||||||
|
- Complete offline usage of icon, no dependency of alipay cdn font icon file and no more empty square during downloading than no need to deploy icon font files locally either.
|
||||||
|
- Much more display accuracy in lower-level screens.
|
||||||
|
- Support multiple colors for icon.
|
||||||
|
- No need to change built-in icons with overriding styles by providing more props in component.
|
||||||
|
- ๐ Add the `theme` attribute to set the theme style of the icon.
|
||||||
|
- ๐ Added `component` attribute, you can externally pass a component to customize the control rendering result.
|
||||||
|
- ๐ The `twoToneColor` property is added to control the theme color of the two-color icon.
|
||||||
|
- ๐ Added static methods `Icon.getTowToneColor()` and `Icon.setTwoToneColor(...)` to globally get and set the theme color of all two-color icons.
|
||||||
|
- ๐ The new static method `Icon.createFromIconfontCN({...})` is added to make it easier to use icons hosted on [`iconfont.cn`](http://iconfont.cn/).
|
||||||
|
- ๐ฅ Added a new component `Skeleton`.
|
||||||
|
- ๐ฅ Menu will automatically close up to fit width in `horizontal` mode.
|
||||||
|
- ๐ฅ The `placement` of the drawer supports `top` and `bottom` to accommodate more scenes.
|
||||||
|
- ๐ The following components add a `suffixIcon` prop, which is used to set the icon behind the input box. For details, please refer to the documentation.
|
||||||
|
- Cascader
|
||||||
|
- DatePicker
|
||||||
|
- Select
|
||||||
|
- TreeSelect
|
||||||
|
- TimePicker
|
||||||
|
- ๐ Added Modal.open for optional icon dialog.
|
||||||
|
- ๐ Modal.info adds the configuration of `getContainer`.
|
||||||
|
- ๐ Improve RangePicker footer UI by merging them.
|
||||||
|
- ๐ The Anchor component adds `onClick` property.
|
||||||
|
- ๐ The Tab component adds the `renderTabBar` property.
|
||||||
|
- ๐ The Input component adds the `select` method.
|
||||||
|
- ๐ Steps adds the `initial` attribute.
|
||||||
|
- ๐ Upload adds `openFileDialogOnClick` prop to allow setting whether to open the upload dialog when the component is clicked.
|
||||||
|
- ๐ InputNumber adds `decimalSeparator` prop to allow setting a custom decimal.
|
||||||
|
- ๐ Fix a lot of hidden bugs that have not yet been issued, and then not list them one by one.
|
||||||
|
|
||||||
## 1.1.10
|
## 1.1.10
|
||||||
|
|
||||||
`2018-12-7`
|
`2018-12-7`
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# ๆดๆฐๆฅๅฟ
|
# ๆดๆฐๆฅๅฟ
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 1.2.0
|
## 1.2.0
|
||||||
`2018-12-16`
|
`2018-12-16`
|
||||||
### ไธantd 3.10.xๅๆญฅ
|
### ไธantd 3.10.xๅๆญฅ
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
|
export function antDecorator (Vue) {
|
||||||
|
return Vue.directive('decorator', {
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// just for tag
|
// just for tag
|
||||||
install: (Vue, options) => {
|
install: (Vue, options) => {
|
||||||
Vue.directive('decorator', {
|
antDecorator(Vue)
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
import { antInput } from './antInputDirective'
|
||||||
|
import { antRef } from './antRefDirective'
|
||||||
|
import { antDecorator } from './FormDecoratorDirective'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
install: (Vue, options) => {
|
||||||
|
antInput(Vue)
|
||||||
|
antRef(Vue)
|
||||||
|
antDecorator(Vue)
|
||||||
|
},
|
||||||
|
}
|
|
@ -49,26 +49,30 @@ if (isIE9) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export function antInput (Vue) {
|
||||||
install: (Vue, options) => {
|
return Vue.directive('ant-input', {
|
||||||
Vue.directive('ant-input', {
|
inserted (el, binding, vnode, oldVnode) {
|
||||||
inserted (el, binding, vnode, oldVnode) {
|
if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
|
||||||
if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
|
if (!binding.modifiers || !binding.modifiers.lazy) {
|
||||||
if (!binding.modifiers || !binding.modifiers.lazy) {
|
el.addEventListener('compositionstart', onCompositionStart)
|
||||||
el.addEventListener('compositionstart', onCompositionStart)
|
el.addEventListener('compositionend', onCompositionEnd)
|
||||||
el.addEventListener('compositionend', onCompositionEnd)
|
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
||||||
// Safari < 10.2 & UIWebView doesn't fire compositionend when
|
// switching focus before confirming composition choice
|
||||||
// switching focus before confirming composition choice
|
// this also fixes the issue where some browsers e.g. iOS Chrome
|
||||||
// this also fixes the issue where some browsers e.g. iOS Chrome
|
// fires "change" instead of "input" on autocomplete.
|
||||||
// fires "change" instead of "input" on autocomplete.
|
el.addEventListener('change', onCompositionEnd)
|
||||||
el.addEventListener('change', onCompositionEnd)
|
/* istanbul ignore if */
|
||||||
/* istanbul ignore if */
|
if (isIE9) {
|
||||||
if (isIE9) {
|
el.vmodel = true
|
||||||
el.vmodel = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
})
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
install: (Vue, options) => {
|
||||||
|
antInput(Vue)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,15 +1,18 @@
|
||||||
|
export function antRef (Vue) {
|
||||||
|
return Vue.directive('ant-ref', {
|
||||||
|
bind: function (el, binding, vnode) {
|
||||||
|
binding.value(vnode.componentInstance ? vnode.componentInstance : vnode.elm)
|
||||||
|
},
|
||||||
|
update: function (el, binding, vnode) {
|
||||||
|
binding.value(vnode.componentInstance ? vnode.componentInstance : vnode.elm)
|
||||||
|
},
|
||||||
|
unbind: function (el, binding, vnode) {
|
||||||
|
binding.value(null)
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
install: (Vue, options) => {
|
install: (Vue, options) => {
|
||||||
Vue.directive('ant-ref', {
|
antRef(Vue)
|
||||||
bind: function (el, binding, vnode) {
|
|
||||||
binding.value(vnode.componentInstance ? vnode.componentInstance : vnode.elm)
|
|
||||||
},
|
|
||||||
update: function (el, binding, vnode) {
|
|
||||||
binding.value(vnode.componentInstance ? vnode.componentInstance : vnode.elm)
|
|
||||||
},
|
|
||||||
unbind: function (el, binding, vnode) {
|
|
||||||
binding.value(null)
|
|
||||||
},
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@ import FormDecoratorDirective from '../_util/FormDecoratorDirective'
|
||||||
|
|
||||||
Vue.use(ref, { name: 'ant-ref' })
|
Vue.use(ref, { name: 'ant-ref' })
|
||||||
Vue.use(FormDecoratorDirective)
|
Vue.use(FormDecoratorDirective)
|
||||||
|
Vue.prototype.$form = Form
|
||||||
|
|
||||||
export { FormProps, FormCreateOption, ValidationRule } from './Form'
|
export { FormProps, FormCreateOption, ValidationRule } from './Form'
|
||||||
export { FormItemProps } from './FormItem'
|
export { FormItemProps } from './FormItem'
|
||||||
|
|
|
@ -13,7 +13,9 @@
|
||||||
<section class="code-box-meta markdown">
|
<section class="code-box-meta markdown">
|
||||||
<slot v-if="isZhCN" name="description"></slot>
|
<slot v-if="isZhCN" name="description"></slot>
|
||||||
<slot v-else name="us-description"></slot>
|
<slot v-else name="us-description"></slot>
|
||||||
<span class="btn-toggle" :class="{open: isOpen}" @click="toggle"><i class="anticon anticon-down-circle-o"></i></span>
|
<span class="btn-toggle" :class="{open: isOpen}" @click="toggle">
|
||||||
|
<a-icon type="down" />
|
||||||
|
</span>
|
||||||
</section>
|
</section>
|
||||||
<transition appear :css="false" @enter="enter" @leave="leave">
|
<transition appear :css="false" @enter="enter" @leave="leave">
|
||||||
<section class="highlight-wrapper" style="position: relative;" v-show="isOpen">
|
<section class="highlight-wrapper" style="position: relative;" v-show="isOpen">
|
||||||
|
|
Loadingโฆ
Reference in New Issue