Browse Source

style(formula.js): style

1.VSCODE format formula.js 2.Update FAQ
master
mengshukeji 5 years ago
parent
commit
e8ac0e2278
  1. 6
      docs/guide/FAQ.md
  2. 6
      docs/zh/guide/FAQ.md
  3. 2174
      src/global/formula.js
  4. 2
      src/index.html

6
docs/guide/FAQ.md

@ -261,4 +261,10 @@ In this case, after Luckysheet is modified in real time, the changes can be seen
**<span style="font-size:20px;">A</span>** The custom attributes directly assigned to the cell object will be filtered. To make the custom attributes take effect, you need to edit the code to remove the filter attributes.
------------
## **<span style="font-size:20px;">Q</span>** How to enter text starting with `'='`? For example, `=currentDate('YYYY-MM-DD')`, it will remove the function by default, how to prohibit the function?
**<span style="font-size:20px;">A</span>** Just add a single quotation mark in front of it, and it will be forcibly recognized as a string, which is consistent with excel. For example: `'=currentDate('YYYY-MM-DD')`
------------

6
docs/zh/guide/FAQ.md

@ -262,4 +262,10 @@ Luckysheet教程里采用的CDN链接是 [jsdelivr](https://www.jsdelivr.com/pac
**<span style="font-size:20px;">A</span>** 直接赋值到单元格对象上的自定义属性会被过滤,要想使得自定义属性生效,需要二开去除过滤属性的代码。
------------
## **<span style="font-size:20px;">Q</span>** 如何输入以`'='`开头的文本?例如`=currentDate('YYYY-MM-DD')`,它默认会去掉函数,函数怎么禁止?
**<span style="font-size:20px;">A</span>** 前面加一个单引号就行,会强制识别为字符串,和excel表现一致的。比如:`'=currentDate('YYYY-MM-DD')`
------------

2174
src/global/formula.js

File diff suppressed because it is too large

2
src/index.html

@ -127,7 +127,7 @@
// console.info(data,sheetFile,ctx)
},
updated:function(operate){
console.info(operate)
// console.info(operate)
},
cellUpdateBefore:function(r,c,value,isRefresh){
// console.info('cellUpdateBefore',r,c,value,isRefresh)

Loading…
Cancel
Save