File tree Expand file tree Collapse file tree 5 files changed +6
-14
lines changed
Expand file tree Collapse file tree 5 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 114114<script >
115115import ' font-awesome/css/font-awesome.css'
116116import DialogComponents from ' ./dialog-input-components/components'
117- import { mixin as getTextMixin } from ' ./i18n'
118117
119118export default {
120119 name: ' editor-dialog' ,
@@ -156,6 +155,6 @@ export default {
156155 }
157156 },
158157 components: DialogComponents,
159- mixins : [getTextMixin ]
158+ inject : [' t ' ]
160159}
161160 </script >
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ import EditorDialog from './Dialog.vue'
9494import { defaultConfig , getConfig } from ' ./DefaultConfig'
9595import { contentParserFactory } from ' ./ContentParserFactory'
9696import InjectLnParser from ' ./plugins/InjectLnParser.js'
97+ import { getText } from ' ./i18n'
9798
9899export default {
99100 name: ' markdown-palettes' ,
@@ -182,6 +183,7 @@ export default {
182183 this .code = newValue
183184 this .updateCode (newValue)
184185 }
185- }
186+ },
187+ provide : () => ({ t: getText })
186188}
187189 </script >
Original file line number Diff line number Diff line change 6464
6565<script >
6666import ' font-awesome/css/font-awesome.css'
67- import { mixin as getTextMixin } from ' ./i18n'
6867
6968/**
7069 * configItem = {
@@ -108,6 +107,6 @@ export default {
108107 }
109108 }
110109 },
111- mixins : [getTextMixin ]
110+ inject : [' t ' ]
112111}
113112 </script >
Original file line number Diff line number Diff line change 1- import { mixin as getTextMixin } from '../i18n'
2-
31export default {
42 props : {
53 requestField : {
@@ -26,5 +24,5 @@ export default {
2624 this . $emit ( 'change' , this . request )
2725 }
2826 } ,
29- mixins : [ getTextMixin ]
27+ inject : [ 't' ]
3028}
Original file line number Diff line number Diff line change @@ -69,9 +69,3 @@ export function getText (text) {
6969 }
7070 return text
7171}
72-
73- export const mixin = {
74- methods : {
75- t : getText
76- }
77- }
You can’t perform that action at this time.
0 commit comments