fix 格式化
parent
fdc40264b4
commit
aa519f6014
|
@ -3,24 +3,13 @@ import PropTypes from '../_util/vue-types'
|
||||||
import animation from '../_util/openAnimation'
|
import animation from '../_util/openAnimation'
|
||||||
import { getOptionProps } from '../_util/props-util'
|
import { getOptionProps } from '../_util/props-util'
|
||||||
import RcCollapse from './src'
|
import RcCollapse from './src'
|
||||||
|
import { collapseProps } from './src/commonProps'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
prefixCls: PropTypes.string.def('ant-collapse'),
|
...collapseProps,
|
||||||
bordered: PropTypes.bool.def(true),
|
bordered: PropTypes.bool.def(true),
|
||||||
openAnimation: PropTypes.any.def({ ...animation, appear () { } }),
|
openAnimation: PropTypes.any.def({ ...animation, appear () { } }),
|
||||||
activeKey: PropTypes.oneOfType([
|
|
||||||
PropTypes.string,
|
|
||||||
PropTypes.arrayOf(PropTypes.string),
|
|
||||||
]),
|
|
||||||
defaultValue: PropTypes.oneOfType([
|
|
||||||
PropTypes.string,
|
|
||||||
PropTypes.arrayOf(PropTypes.string),
|
|
||||||
]),
|
|
||||||
value: PropTypes.oneOfType([
|
|
||||||
PropTypes.string,
|
|
||||||
PropTypes.arrayOf(PropTypes.string),
|
|
||||||
]),
|
|
||||||
change: PropTypes.func.def(() => {}),
|
change: PropTypes.func.def(() => {}),
|
||||||
accordion: PropTypes.bool,
|
accordion: PropTypes.bool,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import PropTypes from '../../_util/vue-types'
|
import PropTypes from '../../_util/vue-types'
|
||||||
|
|
||||||
const collapseProps = {
|
const collapseProps = {
|
||||||
prefixCls: PropTypes.string,
|
prefixCls: PropTypes.string.def('ant-collapse'),
|
||||||
value: PropTypes.oneOfType([
|
value: PropTypes.oneOfType([
|
||||||
PropTypes.string,
|
PropTypes.string,
|
||||||
PropTypes.arrayOf(PropTypes.string),
|
PropTypes.arrayOf(PropTypes.string),
|
||||||
|
@ -16,7 +16,7 @@ const collapseProps = {
|
||||||
|
|
||||||
const panelProps = {
|
const panelProps = {
|
||||||
openAnimation: PropTypes.object,
|
openAnimation: PropTypes.object,
|
||||||
prefixCls: PropTypes.string,
|
prefixCls: PropTypes.string.def('ant-collapse'),
|
||||||
header: PropTypes.oneOfType([
|
header: PropTypes.oneOfType([
|
||||||
PropTypes.string,
|
PropTypes.string,
|
||||||
PropTypes.number,
|
PropTypes.number,
|
||||||
|
|
Loading…
Reference in New Issue