vue-ant-patterns
Version:
vue-ant-patterns
34 lines (28 loc) • 767 B
JavaScript
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import PropTypes from 'ant-design-vue/es/_util/vue-types';
import cx from 'classnames';
var List = {
name: 'DList',
props: {
prefixCls: PropTypes.string.def('depot-list'),
col: PropTypes.oneOf([1, 2, 3, 4]).def(1),
rowRender: PropTypes.func
},
render: function render() {
var _cx;
var h = arguments[0];
var prefixCls = this.prefixCls,
$slots = this.$slots,
col = this.col;
var cls = cx((_cx = {}, _defineProperty(_cx, prefixCls, 1), _defineProperty(_cx, prefixCls + '-col-' + col, col), _cx));
var ulProps = {
'class': cls
};
return h(
'ul',
ulProps,
[$slots['default']]
);
}
};
export default List;