You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
"use strict";
|
|
|
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
|
|
exports.__esModule = true;
|
|
exports.default = void 0;
|
|
|
|
var _babelHelperVueJsxMergeProps = _interopRequireDefault(require("@vue/babel-helper-vue-jsx-merge-props"));
|
|
|
|
var _utils = require("../utils");
|
|
|
|
var _functional = require("../utils/functional");
|
|
|
|
// Utils
|
|
var _createNamespace = (0, _utils.createNamespace)('divider'),
|
|
createComponent = _createNamespace[0],
|
|
bem = _createNamespace[1];
|
|
|
|
function Divider(h, props, slots, ctx) {
|
|
var _bem;
|
|
|
|
return h("div", (0, _babelHelperVueJsxMergeProps.default)([{
|
|
"attrs": {
|
|
"role": "separator"
|
|
},
|
|
"style": {
|
|
borderColor: props.borderColor
|
|
},
|
|
"class": bem((_bem = {
|
|
dashed: props.dashed,
|
|
hairline: props.hairline
|
|
}, _bem["content-" + props.contentPosition] = slots.default, _bem))
|
|
}, (0, _functional.inherit)(ctx, true)]), [slots.default && slots.default()]);
|
|
}
|
|
|
|
Divider.props = {
|
|
dashed: Boolean,
|
|
hairline: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
contentPosition: {
|
|
type: String,
|
|
default: 'center'
|
|
}
|
|
};
|
|
|
|
var _default = createComponent(Divider);
|
|
|
|
exports.default = _default; |