Browse Source

update vc-xxx

pull/165/head
tangjinzhou 7 years ago
parent
commit
4e9fec9c9a
  1. 2
      components/dropdown/src/Dropdown.vue
  2. 4
      components/modal/demo/index.vue
  3. 4
      components/time-picker/demo/index.vue
  4. 12
      components/vc-pagination/Pagination.vue
  5. 1
      components/vc-select/Select.vue
  6. 2
      contributors.md

2
components/dropdown/src/Dropdown.vue

@ -89,7 +89,7 @@ export default {
const overlayNode = this.getPopupDomNode()
const rootNode = this.$el
if (rootNode && overlayNode && rootNode.offsetWidth > overlayNode.offsetWidth) {
overlayNode.style.width = `${rootNode.offsetWidth}px`
overlayNode.style.minWidth = `${rootNode.offsetWidth}px`
if (this.$refs.trigger &&
this.$refs.trigger._component &&
this.$refs.trigger._component.alignInstance) {

4
components/modal/demo/index.vue

@ -35,7 +35,7 @@ export default {
title: 'Modal',
render () {
return (
<div>
<div id='components-modal-demo'>
<md cn={md.cn} us={md.us}/>
<Async/>
<Basic/>
@ -57,7 +57,7 @@ export default {
</script>
<style>
.code-box-demo .ant-btn {
#components-modal-demo .ant-btn {
margin-right: 8px;
}
</style>

4
components/time-picker/demo/index.vue

@ -28,7 +28,7 @@ export default {
title: 'TimePicker',
render () {
return (
<div>
<div id='components-timepicker-demo'>
<md cn={md.cn} us={md.us}/>
<Hours/>
<Addon/>
@ -48,5 +48,5 @@ export default {
}
</script>
<style>
.code-box-demo .ant-time-picker { margin: 0 8px 12px 0; }
#components-timepicker-demo .ant-time-picker { margin: 0 8px 12px 0; }
</style>

12
components/vc-pagination/Pagination.vue

@ -276,14 +276,16 @@ export default {
</li>
)
}
const hasPrev = this.hasPrev()
const hasNext = this.hasNext()
return (
<ul class={`${prefixCls} ${prefixCls}-simple`}>
<li
title={this.showTitle ? locale.prev_page : null}
onClick={this.prev}
tabIndex='0'
tabIndex={hasPrev ? 0 : null}
onKeypress={this.runIfEnterPrev}
class={`${this.hasPrev() ? '' : `${prefixCls}-disabled`} ${prefixCls}-prev`}
class={`${hasPrev ? '' : `${prefixCls}-disabled`} ${prefixCls}-prev`}
aria-disabled={!this.hasPrev()}
>
{this.itemRender(prevPage, 'prev', <a class={`${prefixCls}-item-link`} />)}
@ -308,7 +310,7 @@ export default {
onClick={this.next}
tabIndex='0'
onKeypress={this.runIfEnterNext}
class={`${this.hasNext() ? '' : `${prefixCls}-disabled`} ${prefixCls}-next`}
class={`${hasNext ? '' : `${prefixCls}-disabled`} ${prefixCls}-next`}
aria-disabled={!this.hasNext()}
>
{this.itemRender(nextPage, 'next', <a class={`${prefixCls}-item-link`} />)}
@ -492,7 +494,7 @@ export default {
<li
title={this.showTitle ? locale.prev_page : null}
onClick={this.prev}
tabIndex='0'
tabIndex={prevDisabled ? null : 0}
onKeypress={this.runIfEnterPrev}
class={`${!prevDisabled ? '' : `${prefixCls}-disabled`} ${prefixCls}-prev`}
aria-disabled={prevDisabled}
@ -503,7 +505,7 @@ export default {
<li
title={this.showTitle ? locale.next_page : null}
onClick={this.next}
tabIndex='0'
tabIndex={nextDisabled ? null : 0}
onKeypress={this.runIfEnterNext}
class={`${!nextDisabled ? '' : `${prefixCls}-disabled`} ${prefixCls}-next`}
aria-disabled={nextDisabled}

1
components/vc-select/Select.vue

@ -377,6 +377,7 @@ export default {
onArrowClick (e) {
e.stopPropagation()
e.preventDefault()
if (!this.disabled) {
this.setOpenState(!this.openStatus, !this.openStatus)
}

2
contributors.md

@ -26,7 +26,7 @@ Modal | done
Alert | done
Calendar
DatePicker
TimePicker
TimePicker | done
Upload
Form
Carousel

Loading…
Cancel
Save