This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #338
- Loading branch information
mengshukeji
committed
Dec 17, 2020
1 parent
8918561
commit 871d381
Showing
18 changed files
with
136 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -360,9 +360,54 @@ Note that you also need to configure `loadUrl` and `loadSheetUrl` to take effect | |
|
||
------------ | ||
### userInfo | ||
- Type: String | ||
- Default: `'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> rabbit'` | ||
- Usage: User information display style in the upper right corner | ||
- Type: String | Boolean | Object | ||
- Default: false | ||
- Usage: User information display style in the upper right corner,Support the following three formats | ||
1. HTML template string, such as: | ||
|
||
```js | ||
options:{ | ||
// Other configuration | ||
userInfo:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> Lucky', | ||
} | ||
``` | ||
|
||
Or an ordinary string, such as: | ||
|
||
```js | ||
options:{ | ||
// Other configuration | ||
userInfo:'Lucky', | ||
} | ||
``` | ||
|
||
2. Boolean type, such as: | ||
|
||
`false`: Do not show | ||
```js | ||
options:{ | ||
// Other configuration | ||
userInfo:false, // Do not display user information | ||
} | ||
|
||
``` | ||
`ture`: Show the default string | ||
```js | ||
options:{ | ||
// Other configuration | ||
userInfo:true, // Show HTML:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> Lucky' | ||
} | ||
|
||
``` | ||
3. Object format, set `userImage`: user avatar address and `userName`: user name, such as: | ||
```js | ||
options:{ | ||
// Other configuration | ||
userImage:'https://cdn.jsdelivr.net/npm/[email protected]/assets/img/logo/logo.png', // Avatar url | ||
userName:'Lucky', // username | ||
} | ||
``` | ||
4. Note that if set to `undefined` or not set, the same as setting `false` | ||
|
||
------------ | ||
### userMenuItem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -450,9 +450,55 @@ Luckysheet开放了更细致的自定义配置选项,分别有 | |
|
||
------------ | ||
### userInfo | ||
- 类型:String | ||
- 默认值:`'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> rabbit'` | ||
- 作用:右上角的用户信息展示样式 | ||
- 类型:String | Boolean | Object | ||
- 默认值:false | ||
- 作用:右上角的用户信息展示样式,支持以下三种形式 | ||
1. HTML模板字符串,如: | ||
|
||
```js | ||
options:{ | ||
// 其他配置 | ||
userInfo:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> Lucky', | ||
} | ||
``` | ||
|
||
或者一个普通字符串,如: | ||
|
||
```js | ||
options:{ | ||
// 其他配置 | ||
userInfo:'Lucky', | ||
} | ||
``` | ||
|
||
2. Boolean类型,如: | ||
|
||
`false`:不展示 | ||
```js | ||
options:{ | ||
// 其他配置 | ||
userInfo:false, // 不展示用户信息 | ||
} | ||
|
||
``` | ||
`ture`:展示默认的字符串 | ||
```js | ||
options:{ | ||
// 其他配置 | ||
userInfo:true, // 展示HTML:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> Lucky' | ||
} | ||
|
||
``` | ||
3. 对象格式,设置 `userImage`:用户头像地址 和 `userName`:用户名,如: | ||
```js | ||
options:{ | ||
// 其他配置 | ||
userImage:'https://cdn.jsdelivr.net/npm/[email protected]/assets/img/logo/logo.png', // 头像url | ||
userName:'Lucky', // 用户名 | ||
} | ||
``` | ||
|
||
4. 注意,设置为`undefined`或者不设置,同设置`false` | ||
|
||
------------ | ||
### userMenuItem | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.