You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
从 https://bossanova.uk/jspreadsheet/v4/docs/getting-started 下载资源或者在线引用;
然后在表单中添加表单项数组:
[ "name" => "excel", "type" => "custom", "label" => "自定义组件", "html" => '<input class="excel" type="text" hidden="hidden" name="excel" />', "onMount" => 'const jspreadsheet_doc=document.createElement("jspreadsheet");let spreadsheet=jspreadsheet(jspreadsheet_doc,{language:"zh-cn",defaultColWidth:100,allowInsertRow:!0,minDimensions:[10,10],onchange:function(){onChange(spreadsheet.getData(),"excel")}});dom.appendChild(jspreadsheet_doc);', ],
;就可以创建一个自定义的表格,提交后会将数据表的数据提交给后端!
Beta Was this translation helpful? Give feedback.
All reactions