<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                1.安裝js-export-excel ``` tyarn add js-export-excel ``` 2.導入js-export-excel ``` import ExportJsonExcel from 'js-export-excel'; ``` 3.使用 ``` let maps = {}; columnsState={{ onChange: (map) => { maps = map; ? ? ? ? ? }, ? ? ? ? }} onClick={() => { const columnsData: ProColumns[] = []; const option = { fileName: '導出數據', datas: {} }; const sheetFilter = []; const sheetHeader = []; const columnWidths = []; for (let i = 0; i < columns.length; i++) { if (!columns[i].hideInTable) { if (maps[columns[i].dataIndex]) { if ( maps[columns[i].dataIndex].show === true && maps[columns[i].dataIndex].order === undefined ? ? ? ? ? ? ? ? ? ? ? ? ) { columnsData.push(columns[i]); sheetFilter.push(columns[i].dataIndex); sheetHeader.push(columns[i].title); columnWidths.push(10); ? ? ? ? ? ? ? ? ? ? ? ? } if ( maps[columns[i].dataIndex].show !== false && maps[columns[i].dataIndex].order >= 0 ? ? ? ? ? ? ? ? ? ? ? ? ) { columnsData[maps[columns[i].dataIndex].order] = columns[i]; sheetFilter[maps[columns[i].dataIndex].order] = columns[i].dataIndex; sheetHeader[maps[columns[i].dataIndex].order] = columns[i].title; columnWidths[maps[columns[i].dataIndex].order] = 10; ? ? ? ? ? ? ? ? ? ? ? ? } } else { columnsData.push(columns[i]); sheetFilter.push(columns[i].dataIndex); sheetHeader.push(columns[i].title); columnWidths.push(10); ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? } option.datas = [ ? ? ? ? ? ? ? ? ? ? { sheetData: selectedRows.map((item) => { const result = {}; columnsData.forEach((c: any) => { if (!c.hideInTable) { result[c.dataIndex] = item[c.dataIndex]; ? ? ? ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ? ? ? }); return result; ? ? ? ? ? ? ? ? ? ? ? }), sheetFilter: sheetFilter.filter((item) => item), sheetHeader: sheetHeader.filter((item) => item), columnWidths: columnWidths.filter((item) => item), ? ? ? ? ? ? ? ? ? ? }, ? ? ? ? ? ? ? ? ? ]; const toExcel = new ExportJsonExcel(option); toExcel.saveExcel(); ? ? ? ? ? ? ? ? }} ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看