Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
fix(fix #290): userinfo
Browse files Browse the repository at this point in the history
userinfo
  • Loading branch information
renxxing committed Dec 16, 2020
1 parent 27a770e commit dddfc8f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
7 changes: 6 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ export default {
data: [{ "name": "Sheet1", color: "", "status": "1", "order": "0", "data": [], "config": {}, "index":0 }, { "name": "Sheet2", color: "", "status": "0", "order": "1", "data": [], "config": {}, "index":1 }, { "name": "Sheet3", color: "", "status": "0", "order": "2", "data": [], "config": {}, "index":2 }], //客户端sheet数据[shee1, sheet2, sheet3]
title: "Luckysheet Demo", //表格的名称
// userInfo: '<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> rabbit'
userInfo:{imgurl:'https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1490464830,1853038030&fm=26&gp=0.jpg',username:'lucky'}, //右上角的用户信息展示样式
userInfo:{
isShow:false,
str:'',
url:'',
username:'',
},//右上角的用户信息展示样式
userMenuItem: [{url:"www.baidu.com", "icon":'<i class="fa fa-folder" aria-hidden="true"></i>', "name":"我的表格"}, {url:"www.baidu.com", "icon":'<i class="fa fa-sign-out" aria-hidden="true"></i>', "name":"退出登陆"}], //点击右上角的用户信息弹出的菜单
myFolderUrl: "www.baidu.com", //左上角<返回按钮的链接
config: {}, //表格行高、列宽、合并单元格、公式等设置
Expand Down
13 changes: 7 additions & 6 deletions src/controllers/constant.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/controllers/luckysheetConfigsetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const luckysheetConfigsetting = {
pointEditUpdate: null,
pointEditZoom: 1,

userInfo: null,
userInfo: {},
userMenuItem: [],
myFolderUrl: null,
functionButton: null,
Expand Down
4 changes: 4 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@
container: 'luckysheet',
lang: lang,
forceCalculation:false,
userInfo: {
isShow:true,
str:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> rabbit'
},
plugins: ['chart'],
fontList:[
{
Expand Down

0 comments on commit dddfc8f

Please sign in to comment.