fix 格式化
parent
2518078359
commit
e41981a95c
|
@ -3,24 +3,13 @@ import PropTypes from '../_util/vue-types'
|
|||
import animation from '../_util/openAnimation'
|
||||
import { getOptionProps } from '../_util/props-util'
|
||||
import RcCollapse from './src'
|
||||
import { collapseProps } from './src/commonProps'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
prefixCls: PropTypes.string.def('ant-collapse'),
|
||||
...collapseProps,
|
||||
bordered: PropTypes.bool.def(true),
|
||||
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(() => {}),
|
||||
accordion: PropTypes.bool,
|
||||
},
|
||||
|
|
|
@ -31,6 +31,6 @@ Accordion mode, only one panel can be expanded at a time. The first panel will b
|
|||
text: `A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.`,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
|
@ -37,6 +37,6 @@ More than one panel can be expanded at a time, the first panel is initialized to
|
|||
console.log(key)
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
|
@ -31,6 +31,6 @@ A borderless style of Collapse.
|
|||
text: `A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.`,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
|
@ -32,6 +32,6 @@ Customize the background, border and margin styles for each panel.
|
|||
customStyle: 'background: #f7f7f7;border-radius: 4px;margin-bottom: 24px;border: 0;overflow: hidden'
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
|
@ -40,6 +40,6 @@
|
|||
console.log(key)
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
|
@ -33,6 +33,6 @@ You can disable showing arrow icon by passing `:showArrow="false"` to `a-collaps
|
|||
console.log(key)
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
```
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import PropTypes from '../../_util/vue-types'
|
||||
|
||||
const collapseProps = {
|
||||
prefixCls: PropTypes.string,
|
||||
prefixCls: PropTypes.string.def('ant-collapse'),
|
||||
value: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.arrayOf(PropTypes.string),
|
||||
|
@ -16,7 +16,7 @@ const collapseProps = {
|
|||
|
||||
const panelProps = {
|
||||
openAnimation: PropTypes.object,
|
||||
prefixCls: PropTypes.string,
|
||||
prefixCls: PropTypes.string.def('ant-collapse'),
|
||||
header: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
PropTypes.number,
|
||||
|
|
Loading…
Reference in New Issue