createGuthonOptBtnsElement /** * 根据提供的row、options为子列表创建并返回谷神操作按钮元素。 * * @param {object} row - agGrid单元格渲染函数参数。* @param {array} options - 谷神操作按钮配置项数组。* @returns {Element} - 返回创建的DOM元素。 */ function createGuthonOptBtnsElement (row, options) {let btns = createElementFromHTML(`<ul class="item-table-subbtn gd-table-field-buttons"></ul>`)options.forEach (({id = '', name = '', aliasName = '', page = this, onclick = () => console.log('onclick'), render = () => true, }) => {let btnHtml = `<li ${render(row) ? '' : 'style="display: none;"'}><button class="btn btn-link gd_bluebtn " type="button" id="${id}-${row.rowIndex}" title="" ${render(row) ? '' : 'disable'}alias-name="${aliasName}"><i class=""></i> <span class="gd-button-text">${name}</span></button> </li>`let btn = createElementFromHTML(btnHtml)btn.onclick = () => {onclick.call(page, row.data)}btns.appendChild(btn)})return btns }