Hi, spread-sheet I did use a lot of custom configurations, as follows.
In fact, I found that e-column can only configure the width, the rest are cells rendered with e-range.
<ejs-spreadsheet
ref="spreadsheet"
:height="tableHeight"
width="100%"
:allow-filtering="false"
:sort-complete="sortComplete"
:allow-cell-formatting="true"
:allow-sorting="true"
:allow-resizing="true"
:selection-settings="selectionSettings"
:data-source-changed="dataSourceChanged"
:before-cell-save="beforeCellSave"
:allow-conditional-format="allowConditionalFormat"
:allow-data-validation="allowDataValidation"
:allow-delete="deleteAble"
:allow-editing="editAble"
:allow-hyperlink="false"
:allow-image="allowImage"
:allow-insert="false"
:allow-merge="false"
:allow-open="false"
:allow-save="false"
:allow-scrolling="true"
:allow-sort="true"
:allow-undo-redo="true"
:enable-keyboard-navigation="true"
:enable-keyboard-shortcut="true"
:show-ribbon="riddon"
:show-sheet-tabs="false"
:show-formula-bar="false"
:enable-clipboard="true"
:locale="$i18n.locale"
:cell-style="cellStyle"
:scroll-settings="scrollSettings"
:allow-wrap="false"
:allow-chart="false"
:allow-number-formatting="false"
:allow-auto-fill="false"
>
<e-sheets>
<!-- 默认识别json数据作为表头以及cell的填充 -->
<e-sheet
:is-protected="isProtected"
:protect-settings="{ selectCells: true }"
:created="spreadsheetCellFormat"
:frozen-rows="1"
>
<e-ranges>
<e-range :data-source="priceData" />
</e-ranges>
<e-columns>
<e-column v-for="(item,index) in columnData" :key="index" :width="item.width" />
</e-columns>
<e-rows>
<e-row>
<e-cells>
<e-cell v-for="(item,index) in columnData" :key="index" :value="item.prop" />
</e-cells>
</e-row>
</e-rows>
</e-sheet>
</e-sheets>
</ejs-spreadsheet>
Attachment:
priceData.json_6468d07e.zip