本文整理匯總了TypeScript中ag-grid-community._.assign方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript _.assign方法的具體用法?TypeScript _.assign怎麽用?TypeScript _.assign使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ag-grid-community._
的用法示例。
在下文中一共展示了_.assign方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: getPropertyVal
const getEffectStyle = (shadow?: [string, string, string, string, string]): XmlElement => {
const children: XmlElement[] = [];
if (shadow) {
const [blurRad, dist, dir, algn, rotWithShape] = shadow;
children.push({
name: 'a:outerShdw',
properties: {
rawMap: { blurRad, dist, dir, algn, rotWithShape }
},
children: [
getPropertyVal('srgbClr', '000000', [getPropertyVal('alpha', '63000')])
]
});
}
return {
name: 'a:effectStyle',
children: [_.assign({}, {
name: 'a:effectLst'
}, children.length ? {children} : {})]
};
};
示例2: getDataAsExcelXml
public getDataAsExcelXml(params?: ExcelExportParams): string {
return this.getData(_.assign({}, params, { exportMode: 'xml' }));
}
示例3: getStyleId
properties: {
rawMap: {
r: ref,
t: convertedType,
s: styleId ? getStyleId(styleId) : undefined
}
}
};
let children;
if (convertedType === 'inlineStr') {
children = [{
name: 'is',
children: [{
name: 't',
textNode: _.escape(value)
}]
}];
} else {
children = [{
name: 'v',
textNode: value
}];
}
return _.assign({}, obj, { children });
}
};
export default cellFactory;