var renderData = [ { name: '$LOG_TYPE', description: 'A variable is a symbolic representation of data that enables you to access a value without having to enter it manually wherever you need it. You can use $ to reference variables throughout Advanced Search. ', details () { // 支持jsx 嵌套写法,万一测试要关键字加重呢 return
$log_type: The table name of logs.
} }, { name: '$FILTER', description: 'A variable is a symbolic representation of data that enables you to access a value without having to enter it manually wherever you need it. You can use $ to reference variables throughout Advanced Search. ', details () { // 支持jsx 嵌套写法,万一测试要关键字加重呢 return
$filter: The default filter clauses. such as time period, Vsys ID, and other default expressions, etc.
} } ] function main () { const varTips = {} renderData.forEach((item, index) => { const data = item // 这是个闭包 varTips[item.name] = { name: item.name, type: 'Variables', description () { return (

{data.name}

Description:

{data.description}

Details:

{Object.prototype.toString.call(data.details) === '[object Function]' ? :

{data.details}

}
) } } }) return varTips } export const varList = renderData const varTips = main() export default varTips