数字或字符串
/** @type {number | string} */
var bar = 1;
var bar = '1'
对象或函数
/**
* @name 定义控件的默认宽高
* @type { object | (()=>object)}
* @returns { object }
*/
layout = {
w: 20,
h: 10,
};
layout = (/** @type {String} */ type) => getComponentLayout(type);