Skip to content

Commit

Permalink
feat: update vc-tabs vc-steps
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jan 9, 2019
1 parent 6f15a47 commit 8a9964d
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 61 deletions.
16 changes: 8 additions & 8 deletions components/card/__tests__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,15 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
</div>
</div>
</div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
<div class="ant-tabs-content ant-tabs-content-animated ant-tabs-top-content" style="margin-left: 0%;">
<div role="tabpanel" aria-hidden="false" class="ant-tabs-tabpane ant-tabs-tabpane-active">
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
</div>
<div role="tabpanel" aria-hidden="true" class="ant-tabs-tabpane ant-tabs-tabpane-inactive"></div>
</div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
</div>
</div>
<div class="ant-card-body">
Expand All @@ -303,16 +303,16 @@ exports[`renders ./components/card/demo/tabs.md correctly 1`] = `
</div>
</div>
</div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
<div class="ant-tabs-content ant-tabs-content-animated ant-tabs-top-content" style="margin-left: -100%;">
<div role="tabpanel" aria-hidden="true" class="ant-tabs-tabpane ant-tabs-tabpane-inactive"></div>
<div role="tabpanel" aria-hidden="false" class="ant-tabs-tabpane ant-tabs-tabpane-active">
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
</div>
<div role="tabpanel" aria-hidden="true" class="ant-tabs-tabpane ant-tabs-tabpane-inactive"></div>
</div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
</div>
</div>
<div class="ant-card-body">
Expand Down
94 changes: 47 additions & 47 deletions components/tabs/__tests__/__snapshots__/demo.test.js.snap

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions components/tabs/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ exports[`Tabs tabPosition remove card 1`] = `
</div>
<div class="ant-tabs-extra-content">xxx</div>
</div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
<div class="ant-tabs-content ant-tabs-content-animated ant-tabs-left-content" style="margin-top: 0%;">
<div role="tabpanel" aria-hidden="false" class="ant-tabs-tabpane ant-tabs-tabpane-active">
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>foo<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>foo<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
</div>
</div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden;"></div>
<div tabindex="0" role="presentation" style="width: 0px; height: 0px; overflow: hidden; position: absolute;"></div>
</div>
`;
1 change: 1 addition & 0 deletions components/vc-steps/Steps.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default {
[`${prefixCls}-${size}`]: size,
[`${prefixCls}-label-${adjustedlabelPlacement}`]: direction === 'horizontal',
[`${prefixCls}-dot`]: !!progressDot,
[`${prefixCls}-flex-not-supported`]: !flexSupported,
}
const stepsProps = {
class: classString,
Expand Down
2 changes: 1 addition & 1 deletion components/vc-steps/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// base rc-steps 3.3.0
// base rc-steps 3.3.1
import Steps from './Steps'
import Step from './Step'

Expand Down
2 changes: 1 addition & 1 deletion components/vc-tabs/src/Sentinel.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PropTypes from '../../_util/vue-types'
import KeyCode from '../../_util/KeyCode'

const sentinelStyle = { width: 0, height: 0, overflow: 'hidden' }
const sentinelStyle = { width: 0, height: 0, overflow: 'hidden', position: 'absolute' }
export default {
name: 'Sentinel',
props: {
Expand Down
2 changes: 1 addition & 1 deletion components/vc-tabs/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// based on rc-tabs 9.5.7
// based on rc-tabs 9.5.8
import ref from 'vue-ref'
import Vue from 'vue'
import Tabs from './Tabs'
Expand Down

0 comments on commit 8a9964d

Please sign in to comment.