23 lines
488 B
JavaScript
23 lines
488 B
JavaScript
import { h, defineComponent } from 'vue';
|
|
export default defineComponent({
|
|
props: {
|
|
clsPrefix: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
onClick: Function
|
|
},
|
|
render() {
|
|
const {
|
|
clsPrefix
|
|
} = this;
|
|
return h("div", {
|
|
onClick: this.onClick,
|
|
class: `${clsPrefix}-layout-toggle-bar`
|
|
}, h("div", {
|
|
class: `${clsPrefix}-layout-toggle-bar__top`
|
|
}), h("div", {
|
|
class: `${clsPrefix}-layout-toggle-bar__bottom`
|
|
}));
|
|
}
|
|
}); |