Skip to content

Commit d770007

Browse files
committed
fix: use the outer documentation url of unique key, fixes alibaba#868
1 parent 06e6920 commit d770007

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

packages/editor-skeleton/src/transducers/addon-combine.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
141141
});
142142
*/
143143
const stylesGroup: FieldConfig[] = [];
144-
const advanceGroup: FieldConfig[] = [];
144+
const advancedGroup: FieldConfig[] = [];
145145
if (propsGroup) {
146146
let l = propsGroup.length;
147147
while (l-- > 0) {
148148
const item = propsGroup[l];
149149
// if (item.type === 'group' && (item.title === '高级' || item.title?.label === '高级')) {
150-
// advanceGroup = item.items || [];
150+
// advancedGroup = item.items || [];
151151
// propsGroup.splice(l, 1);
152152
// }
153153
if (
@@ -236,7 +236,7 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
236236

237237
if (!isRoot) {
238238
if (supports.condition !== false) {
239-
advanceGroup.push({
239+
advancedGroup.push({
240240
name: getConvertedExtraKey('condition'),
241241
title: { type: 'i18n', 'zh-CN': '是否渲染', 'en-US': 'Condition' },
242242
defaultValue: true,
@@ -254,7 +254,7 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
254254
});
255255
}
256256
if (supports.loop !== false) {
257-
advanceGroup.push({
257+
advancedGroup.push({
258258
name: '#loop',
259259
title: { type: 'i18n', 'zh-CN': '循环', 'en-US': 'Loop' },
260260
items: [
@@ -314,12 +314,12 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
314314
}
315315

316316
if (supports.condition !== false || supports.loop !== false) {
317-
advanceGroup.push({
317+
advancedGroup.push({
318318
name: 'key',
319319
title: {
320320
label: '渲染唯一标识(key)',
321321
tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助',
322-
docUrl: 'https://yuque.antfin-inc.com/legao/help3.0/ca5in7',
322+
docUrl: 'https://lowcode-engine.cn/docV2/qm75w3',
323323
},
324324
setter: [
325325
{
@@ -335,11 +335,11 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
335335
});
336336
}
337337
}
338-
if (advanceGroup.length > 0) {
338+
if (advancedGroup.length > 0) {
339339
combined.push({
340340
name: '#advanced',
341341
title: { type: 'i18n', 'zh-CN': '高级', 'en-US': 'Advanced' },
342-
items: advanceGroup,
342+
items: advancedGroup,
343343
});
344344
}
345345

packages/engine/src/engine-core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
8989
symbols,
9090
classes,
9191
};
92+
engineConfig.set('isOpenSource', isOpenSource);
9293

9394
// 注册一批内置插件
9495
(async function registerPlugins() {

0 commit comments

Comments
 (0)