You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
233 lines
8.4 KiB
233 lines
8.4 KiB
export const funcList = [
|
|
{
|
|
id: "1",
|
|
name: "函数列表",
|
|
children: [
|
|
{
|
|
id: "1",
|
|
name: "SUM",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">合计公式 SUM(1,2)=3</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">SUM(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数1</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">...</span>)</span>
|
|
</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
示例:<span style="color: #871ab3;">SUM(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">语文成绩</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">数学成绩</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">其他语种成绩</span>)</span>返回三门课程总成绩
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "2",
|
|
name: "AVERAGE",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">平均公式 AVERAGE(1,2)=1.5</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">AVERAGE(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数1</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">...</span>)</span>
|
|
</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
示例:<span style="color: #871ab3;">SUM(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">语文成绩</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">数学成绩</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">其他语种成绩</span>)</span>返回三门课程成绩的平均值
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "3",
|
|
name: "MIN",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">取最小 SUM(1,2)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">MIN(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数1</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">...</span>)</span>
|
|
</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
示例:<span style="color: #871ab3;">MIN(2,3,1,5,6)</span>返回其中最小值
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "4",
|
|
name: "MAX",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">取最大 SUM(1,2)=2</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">MAX(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数1</span>,<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">...</span>)</span>
|
|
</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
示例:<span style="color: #871ab3;">MAX(2,3,1,5,6)</span>返回其中最大值
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "5",
|
|
name: "ABS",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">取绝对值 ABS(-1)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">ABS(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
示例:<span style="color: #871ab3;">ABS(-1)</span>返回其绝对值1
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "6",
|
|
name: "SQRT",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">取平方根 SQRT(4)=2</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">SQRT(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "7",
|
|
name: "CBRT",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">取立方根 CBRT(9)=3</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">CBRT(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "8",
|
|
name: "SIN",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">正弦函数 SIN(π/2)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">SIN(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "9",
|
|
name: "COS",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">余弦函数 COS(0)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">COS(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "10",
|
|
name: "TAN",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">正切函数 TAN(π/4)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">TAN(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "11",
|
|
name: "COT",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">余切函数 COT(π/4)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">COT(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "11",
|
|
name: "SEC",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">正割函数 SEC(0)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">SEC(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
},
|
|
{
|
|
id: "12",
|
|
name: "CSC",
|
|
type:'func',
|
|
dataType: "number",
|
|
dataTypeName: "数字",
|
|
desc: `
|
|
<ul>
|
|
<li style="font-weight:700; color: #4A538A; padding: 5px 0 ;">余割函数 CSC(π/2)=1</li>
|
|
<li style="font-weight: 700; padding: 5px 0 ;">
|
|
用法:<span style="color: #871ab3;">CSC(<span style=" background: #1e87b6; color: #fff; padding: 3px 5px; border-radius: 3px; margin: 0px 5px;">参数</span>)</span>
|
|
</li>
|
|
</ul>
|
|
`,
|
|
}
|
|
|
|
],
|
|
},
|
|
]
|
|
|
|
export interface fieldList{
|
|
id: string,
|
|
name: string,
|
|
children?:fieldChildren[]
|
|
}
|
|
|
|
export interface fieldChildren{
|
|
id: string,
|
|
type:string,
|
|
name: string,
|
|
dataType: string,
|
|
dataTypeName: string,
|
|
}
|
|
|