mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-22 21:04:08 +08:00
35 lines
686 B
JavaScript
35 lines
686 B
JavaScript
import { h, defineCustomElement } from 'vue';
|
|
|
|
// Import dashboard styles
|
|
import '../dashboard/assets/scss/app.scss';
|
|
import 'vue-multiselect/dist/vue-multiselect.css';
|
|
// Import floating-vue styles from dashboard.js
|
|
import 'floating-vue/dist/style.css';
|
|
|
|
const ChatButton = {
|
|
name: 'ChatButton',
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
default: 'Click me',
|
|
},
|
|
},
|
|
render() {
|
|
return h(
|
|
'button',
|
|
{
|
|
class: 'cha-button',
|
|
onClick: this.handleClick,
|
|
},
|
|
this.label
|
|
);
|
|
},
|
|
methods: {
|
|
handleClick() {
|
|
// console.log('Button clicked');
|
|
},
|
|
},
|
|
};
|
|
|
|
export const buttonElement = defineCustomElement(ChatButton);
|