@@ -11,7 +11,16 @@ import VueLoadControl from '~/components/controls/VueLoadControl.vue'
1111import VueRangeControl from '~/components/controls/VueRangeControl.vue'
1212import VueCheckBoxControl from '~/components/controls/VueCheckBoxControl.vue'
1313import VueColorRangeControl from '~/components/controls/VueColorRangeControl.vue'
14+ import VueTextControl from '~/components/controls/VueTextControl.vue'
1415
16+ class TextControl extends Rete . Control {
17+ constructor ( emitter , key , placeholder , node ) {
18+ super ( key )
19+ this . render = 'vue' ;
20+ this . component = VueTextControl ;
21+ this . props = { emitter, ikey : key , placeholder, node }
22+ }
23+ }
1524class FileLoadControl extends Rete . Control {
1625 constructor ( emitter , key , name , node ) {
1726 super ( key )
@@ -114,5 +123,5 @@ export {
114123 ClosedColorControl , TwoColorControl ,
115124 ColorRangeControl , CheckBoxControl ,
116125 RangeControl , TwoRangeControl , NumControl ,
117- LoadControl , SelectControl
126+ LoadControl , SelectControl , TextControl
118127}
0 commit comments