我正在与此作斗争,想在网格上方显示一排控件。
const lblPG = React.createElement('h3', {}, 'Product Group');
const cboPG = React.createElement(ComboBox, props);
const elementPG = React.createElement(React.Fragment, null, lblPG, cboPG);
const lblTT = React.createElement('h3', {}, 'Task Type');
const cboTT = React.createElement(ComboBox, props);
const elementTT = React.createElement(React.Fragment, null, lblTT, cboTT);
const toprow = React.createElement('span', {},
elementPG, elementTT);
const list =
React.createElement('div', {},
toprow,
React.createElement(DetailsListGrid, appProps)
);
ReactDOM.render(
list,
this._container
);
上面的代码导致了 PCF 线束:
我想有这样的: