Skip to content

Commit f6981fd

Browse files
author
yaoyun8
authored
fix:修复组件属性绑定工具类函数,出码预览未定义 (#90)
1 parent 5c2ea9c commit f6981fd

File tree

2 files changed

+12
-12
lines changed
  • packages
    • design-core/src/preview/src/preview/srcFiles
    • vue-generator/src/generator

2 files changed

+12
-12
lines changed

packages/design-core/src/preview/src/preview/srcFiles/lowcode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,5 @@ export default () => {
8888

8989
const stores = useStores()
9090

91-
return { t: i18n.global.t, stores, lowcodeWrap }
91+
return { t: i18n.global.t, stores, lowcodeWrap, utils }
9292
}

packages/vue-generator/src/generator/page.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
2-
* Copyright (c) 2023 - present TinyEngine Authors.
3-
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
4-
*
5-
* Use of this source code is governed by an MIT-style license.
6-
*
7-
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8-
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9-
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10-
*
11-
*/
2+
* Copyright (c) 2023 - present TinyEngine Authors.
3+
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
4+
*
5+
* Use of this source code is governed by an MIT-style license.
6+
*
7+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
8+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
9+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
10+
*
11+
*/
1212

1313
import { capitalize, hyphenate } from '@vue/shared'
1414
import {
@@ -397,7 +397,7 @@ ${imports.join('\n')}
397397
const props = defineProps({${propsArr.join(',\n')}})
398398
const emit = defineEmits(${JSON.stringify(emitsArr)})
399399
400-
const { t, lowcodeWrap, stores } = vue.inject(I18nInjectionKey).lowcode()
400+
const { t, lowcodeWrap, stores, utils } = vue.inject(I18nInjectionKey).lowcode()
401401
const wrap = lowcodeWrap(props, { emit }, t)
402402
403403
${iconStatement}

0 commit comments

Comments
 (0)