Files
2025-06-13 21:16:12 +08:00

36 lines
654 B
Vue

<template>
<toolbarTool type="button" @change="change" :active="active" :disabled="disabled" :tooltip="{content: '分割线'}">
<uni-icons custom-prefix="editor-icon" type="icon-hr" size="24px"></uni-icons>
</toolbarTool>
</template>
<script>
import ToolbarTool from "./base.vue";
export default {
name: "tool-hr",
emits: ['change'],
props: {
active: Boolean,
disabled: Boolean
},
components: {
ToolbarTool
},
methods: {
change () {
this.$emit('change', {
type: 'hr',
value: undefined
})
}
}
}
</script>
<style scoped>
// #ifdef H5
@import '@/uni_modules/uni-cms/common/style/editor-icon.css';
// #endif
</style>