|
@@ -61,7 +61,58 @@ export default {
|
|
|
defaultFontSize:10,
|
|
|
limitSheetNameLength:true, //是否限制工作表名的长度
|
|
|
defaultSheetNameMaxLength:31, //默认工作表名称的最大长度
|
|
|
- showtoolbarConfig:{}, //自定义工具栏
|
|
|
+ showtoolbarConfig:{ //自定义工具栏
|
|
|
+ a: {
|
|
|
+ tips: "保存",
|
|
|
+ icon: "luckysheet-iconfont-baocun",
|
|
|
+ on: {
|
|
|
+ click:(e)=>{alert("保存");},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ b: {
|
|
|
+ tips: "预览",
|
|
|
+ icon: "luckysheet-iconfont-wubiankuang",
|
|
|
+ on: {
|
|
|
+ mousedown: (e)=>{alert("预览")},
|
|
|
+ },
|
|
|
+ },
|
|
|
+ undoRedo: true, //Undo redo
|
|
|
+ paintFormat: true, //Format brush
|
|
|
+ currencyFormat: true, //currency format
|
|
|
+ percentageFormat: true, //Percentage format
|
|
|
+ numberDecrease: true, //'Decrease the number of decimal places'
|
|
|
+ numberIncrease: true, //'Increase the number of decimal places
|
|
|
+ moreFormats: true, //'More Formats'
|
|
|
+ font: true, //'font'
|
|
|
+ fontSize: true, //'Font size'
|
|
|
+ bold: true, //'Bold (Ctrl+B)'
|
|
|
+ italic: true, //'Italic (Ctrl+I)'
|
|
|
+ strikethrough: true, //'Strikethrough (Alt+Shift+5)'
|
|
|
+ underline: true, // 'Underline (Alt+Shift+6)'
|
|
|
+ textColor: true, //'Text color'
|
|
|
+ fillColor: true, //'Cell color'
|
|
|
+ border: true, //'border'
|
|
|
+ mergeCell: true, //'Merge cells'
|
|
|
+ horizontalAlignMode: true, //'Horizontal alignment'
|
|
|
+ verticalAlignMode: true, //'Vertical alignment'
|
|
|
+ textWrapMode: true, //'Wrap mode'
|
|
|
+ textRotateMode: true, //'Text Rotation Mode'
|
|
|
+ image:true, // 'Insert picture'
|
|
|
+ link:true, // 'Insert link'
|
|
|
+ chart: true, //'chart' (the icon is hidden, but if the chart plugin is configured, you can still create a new chart by right click)
|
|
|
+ postil: true, //'comment'
|
|
|
+ pivotTable: true, //'PivotTable'
|
|
|
+ function: true, //'formula'
|
|
|
+ frozenMode: true, //'freeze mode'
|
|
|
+ sortAndFilter: true, //'Sort and filter'
|
|
|
+ conditionalFormat: true, //'Conditional Format'
|
|
|
+ dataVerification: true, // 'Data Verification'
|
|
|
+ splitColumn: true, //'Split column'
|
|
|
+ screenshot: true, //'screenshot'
|
|
|
+ findAndReplace: true, //'Find and Replace'
|
|
|
+ protection:true, // 'Worksheet protection'
|
|
|
+ print:true, // 'Print'
|
|
|
+ },
|
|
|
showsheetbarConfig:{}, //自定义底部sheet页
|
|
|
showstatisticBarConfig:{}, //自定义计数栏
|
|
|
cellRightClickConfig:{}, //自定义单元格右键菜单
|