Add the Manip class as an export of ui/dom.js
This commit is contained in:
parent
35cedbdbb3
commit
be841f0426
|
@ -37,7 +37,7 @@
|
|||
<script>
|
||||
import { EmoteModule } from 'builtin';
|
||||
import { Events, Settings } from 'modules';
|
||||
import { DOM } from 'ui';
|
||||
import { DOMManip as Manip } from 'ui';
|
||||
import { MiStar } from './MaterialIcon';
|
||||
|
||||
export default {
|
||||
|
@ -162,7 +162,7 @@
|
|||
let substr = value.substr(0, selectionEnd);
|
||||
substr = substr.replace(new RegExp(this.sterm + '$'), en);
|
||||
|
||||
DOM.manip.setText(substr + value.substr(selectionEnd, value.length), false);
|
||||
Manip.setText(substr + value.substr(selectionEnd, value.length), false);
|
||||
ta.selectionEnd = ta.selectionStart = selectionEnd + en.length - this.sterm.length;
|
||||
this.reset();
|
||||
}
|
||||
|
|
|
@ -105,6 +105,8 @@ class Manip {
|
|||
}
|
||||
}
|
||||
|
||||
export { Manip as DOMManip };
|
||||
|
||||
export default class DOM {
|
||||
|
||||
static get manip() {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export { default as DOM, DOMObserver } from './dom';
|
||||
export { default as DOM, DOMObserver, DOMManip } from './dom';
|
||||
export { default as BdUI } from './bdui';
|
||||
export { default as VueInjector } from './vueinjector';
|
||||
export { default as BdMenu, BdMenuItems } from './bdmenu';
|
||||
|
|
Loading…
Reference in New Issue