问题描述
想要在我的自定义工具栏中添加 vue js datepicker 组件 但是下面的代码不起作用 如何添加按钮,当点击它时,我应该打开日期选择器来选择某个日期?
import DatepickerComponent from './path...'
editor.ui.registry.addButton('basicDateButton',{
text: 'CustomDatePicker',tooltip: 'Choose date',onAction: function (_) {
editor.focus();
editor.selection.setContent('<DatepickerComponent />');
}
});
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)