forked from opentiny/tiny-engine
fix:修复组件属性绑定工具类函数,出码预览未定义 (#90)
This commit is contained in:
parent
5c2ea9c37d
commit
f6981fd36e
|
@ -88,5 +88,5 @@ export default () => {
|
||||||
|
|
||||||
const stores = useStores()
|
const stores = useStores()
|
||||||
|
|
||||||
return { t: i18n.global.t, stores, lowcodeWrap }
|
return { t: i18n.global.t, stores, lowcodeWrap, utils }
|
||||||
}
|
}
|
||||||
|
|
|
@ -397,7 +397,7 @@ ${imports.join('\n')}
|
||||||
const props = defineProps({${propsArr.join(',\n')}})
|
const props = defineProps({${propsArr.join(',\n')}})
|
||||||
const emit = defineEmits(${JSON.stringify(emitsArr)})
|
const emit = defineEmits(${JSON.stringify(emitsArr)})
|
||||||
|
|
||||||
const { t, lowcodeWrap, stores } = vue.inject(I18nInjectionKey).lowcode()
|
const { t, lowcodeWrap, stores, utils } = vue.inject(I18nInjectionKey).lowcode()
|
||||||
const wrap = lowcodeWrap(props, { emit }, t)
|
const wrap = lowcodeWrap(props, { emit }, t)
|
||||||
|
|
||||||
${iconStatement}
|
${iconStatement}
|
||||||
|
|
Loading…
Reference in New Issue