mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 19:52:51 +00:00
fix: use the outer documentation url of unique key, fixes #868
This commit is contained in:
parent
06e6920602
commit
d770007ff8
@ -141,13 +141,13 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
});
|
});
|
||||||
*/
|
*/
|
||||||
const stylesGroup: FieldConfig[] = [];
|
const stylesGroup: FieldConfig[] = [];
|
||||||
const advanceGroup: FieldConfig[] = [];
|
const advancedGroup: FieldConfig[] = [];
|
||||||
if (propsGroup) {
|
if (propsGroup) {
|
||||||
let l = propsGroup.length;
|
let l = propsGroup.length;
|
||||||
while (l-- > 0) {
|
while (l-- > 0) {
|
||||||
const item = propsGroup[l];
|
const item = propsGroup[l];
|
||||||
// if (item.type === 'group' && (item.title === '高级' || item.title?.label === '高级')) {
|
// if (item.type === 'group' && (item.title === '高级' || item.title?.label === '高级')) {
|
||||||
// advanceGroup = item.items || [];
|
// advancedGroup = item.items || [];
|
||||||
// propsGroup.splice(l, 1);
|
// propsGroup.splice(l, 1);
|
||||||
// }
|
// }
|
||||||
if (
|
if (
|
||||||
@ -236,7 +236,7 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
|
|
||||||
if (!isRoot) {
|
if (!isRoot) {
|
||||||
if (supports.condition !== false) {
|
if (supports.condition !== false) {
|
||||||
advanceGroup.push({
|
advancedGroup.push({
|
||||||
name: getConvertedExtraKey('condition'),
|
name: getConvertedExtraKey('condition'),
|
||||||
title: { type: 'i18n', 'zh-CN': '是否渲染', 'en-US': 'Condition' },
|
title: { type: 'i18n', 'zh-CN': '是否渲染', 'en-US': 'Condition' },
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
@ -254,7 +254,7 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (supports.loop !== false) {
|
if (supports.loop !== false) {
|
||||||
advanceGroup.push({
|
advancedGroup.push({
|
||||||
name: '#loop',
|
name: '#loop',
|
||||||
title: { type: 'i18n', 'zh-CN': '循环', 'en-US': 'Loop' },
|
title: { type: 'i18n', 'zh-CN': '循环', 'en-US': 'Loop' },
|
||||||
items: [
|
items: [
|
||||||
@ -314,12 +314,12 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (supports.condition !== false || supports.loop !== false) {
|
if (supports.condition !== false || supports.loop !== false) {
|
||||||
advanceGroup.push({
|
advancedGroup.push({
|
||||||
name: 'key',
|
name: 'key',
|
||||||
title: {
|
title: {
|
||||||
label: '渲染唯一标识(key)',
|
label: '渲染唯一标识(key)',
|
||||||
tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助',
|
tip: '搭配「条件渲染」或「循环渲染」时使用,和 react 组件中的 key 原理相同,点击查看帮助',
|
||||||
docUrl: 'https://yuque.antfin-inc.com/legao/help3.0/ca5in7',
|
docUrl: 'https://lowcode-engine.cn/docV2/qm75w3',
|
||||||
},
|
},
|
||||||
setter: [
|
setter: [
|
||||||
{
|
{
|
||||||
@ -335,11 +335,11 @@ export default function (metadata: TransformedComponentMetadata): TransformedCom
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (advanceGroup.length > 0) {
|
if (advancedGroup.length > 0) {
|
||||||
combined.push({
|
combined.push({
|
||||||
name: '#advanced',
|
name: '#advanced',
|
||||||
title: { type: 'i18n', 'zh-CN': '高级', 'en-US': 'Advanced' },
|
title: { type: 'i18n', 'zh-CN': '高级', 'en-US': 'Advanced' },
|
||||||
items: advanceGroup,
|
items: advancedGroup,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -89,6 +89,7 @@ export const __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = {
|
|||||||
symbols,
|
symbols,
|
||||||
classes,
|
classes,
|
||||||
};
|
};
|
||||||
|
engineConfig.set('isOpenSource', isOpenSource);
|
||||||
|
|
||||||
// 注册一批内置插件
|
// 注册一批内置插件
|
||||||
(async function registerPlugins() {
|
(async function registerPlugins() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user