mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-16 01:40:53 +08:00
1158 lines
59 KiB
JSON
1158 lines
59 KiB
JSON
|
{
|
|||
|
"id": {
|
|||
|
"desc": "<p>组件 ID。默认不指定。指定则可用于在 option 或者 API 中引用组件。</p>\n"
|
|||
|
},
|
|||
|
"zlevel": {
|
|||
|
"desc": "<p>所有图形的 zlevel 值。</p>\n<p><code class=\"codespan\">zlevel</code>用于 Canvas 分层,不同<code class=\"codespan\">zlevel</code>值的图形会放置在不同的 Canvas 中,Canvas 分层是一种常见的优化手段。我们可以把一些图形变化频繁(例如有动画)的组件设置成一个单独的<code class=\"codespan\">zlevel</code>。需要注意的是过多的 Canvas 会引起内存开销的增大,在手机端上需要谨慎使用以防崩溃。</p>\n<p><code class=\"codespan\">zlevel</code> 大的 Canvas 会放在 <code class=\"codespan\">zlevel</code> 小的 Canvas 的上面。</p>\n"
|
|||
|
},
|
|||
|
"z": {
|
|||
|
"desc": "<p>组件的所有图形的<code class=\"codespan\">z</code>值。控制图形的前后顺序。<code class=\"codespan\">z</code>值小的图形会被<code class=\"codespan\">z</code>值大的图形覆盖。</p>\n<p><code class=\"codespan\">z</code>相比<code class=\"codespan\">zlevel</code>优先级更低,而且不会创建新的 Canvas。</p>\n"
|
|||
|
},
|
|||
|
"center": {
|
|||
|
"desc": "\n\n<p>的中心(圆心)坐标,数组的第一项是横坐标,第二项是纵坐标。</p>\n<p>支持设置成百分比,设置成百分比时第一项是相对于容器宽度,第二项是相对于容器高度。</p>\n<p><strong>使用示例:</strong></p>\n<pre><code>// 设置成绝对的像素值\ncenter: [400, 300]\n// 设置成相对的百分比\ncenter: ['50%', '50%']\n</code></pre>",
|
|||
|
"uiControl": {
|
|||
|
"type": "percentvector",
|
|||
|
"dims": "x,y"
|
|||
|
}
|
|||
|
},
|
|||
|
"radius": {
|
|||
|
"desc": "\n\n<p>的半径。可以为如下类型:</p>\n<ul>\n<li><code class=\"codespan\">number</code>:直接指定外半径值。</li>\n<li><p><code class=\"codespan\">string</code>:例如,<code class=\"codespan\">'20%'</code>,表示外半径为可视区尺寸(容器高宽中较小一项)的 20% 长度。</p>\n</li>\n<li><p><code class=\"codespan\">Array.<number|string></code>:数组的第一项是内半径,第二项是外半径。每一项遵从上述 <code class=\"codespan\">number</code> <code class=\"codespan\">string</code> 的描述。</p>\n</li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "percentvector",
|
|||
|
"dims": "inner,outer",
|
|||
|
"default": "0%, 75%"
|
|||
|
}
|
|||
|
},
|
|||
|
"startAngle": {
|
|||
|
"desc": "<p>坐标系起始角度,也就是第一个指示器轴的角度。</p>\n"
|
|||
|
},
|
|||
|
"name": {
|
|||
|
"desc": "<p>雷达图每个指示器名称的配置项。</p>\n"
|
|||
|
},
|
|||
|
"name.show": {
|
|||
|
"desc": "<p>是否显示指示器名称。</p>\n"
|
|||
|
},
|
|||
|
"name.formatter": {
|
|||
|
"desc": "<p>指示器名称显示的格式器。支持字符串和回调函数,如下示例:</p>\n<pre><code class=\"lang-js\">// 使用字符串模板,模板变量为指示器名称 {value}\nformatter: '【{value}】'\n// 使用回调函数,第一个参数是指示器名称,第二个参数是指示器配置项\nformatter: function (value, indicator) {\n return '【' + value + '】';\n}\n</code></pre>\n"
|
|||
|
},
|
|||
|
"textStyle.color": {
|
|||
|
"desc": "\n\n<p>文字的颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "'#333'"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.fontStyle": {
|
|||
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,italic,oblique"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.fontWeight": {
|
|||
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,bold,bolder,lighter"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.fontFamily": {
|
|||
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "sans-serif",
|
|||
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.fontSize": {
|
|||
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "12",
|
|||
|
"min": "1",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.lineHeight": {
|
|||
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "1",
|
|||
|
"default": "12"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.backgroundColor": {
|
|||
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.borderColor": {
|
|||
|
"desc": "\n\n<p>文字块边框颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.borderWidth": {
|
|||
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.borderRadius": {
|
|||
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "LT,RT, RB, LB"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.padding": {
|
|||
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "T,R,B,L"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.shadowColor": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.shadowBlur": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.width": {
|
|||
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"textStyle.height": {
|
|||
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"textStyle.textBorderColor": {
|
|||
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.textBorderWidth": {
|
|||
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.textShadowColor": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#000"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.textShadowBlur": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.textShadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.textShadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich": {
|
|||
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.color": {
|
|||
|
"desc": "\n\n<p>文字的颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "null"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.fontStyle": {
|
|||
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,italic,oblique"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.fontWeight": {
|
|||
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,bold,bolder,lighter"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.fontFamily": {
|
|||
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "sans-serif",
|
|||
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.fontSize": {
|
|||
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "12",
|
|||
|
"min": "1",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.align": {
|
|||
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "left,center,right"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.verticalAlign": {
|
|||
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "top,middle,bottom"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.lineHeight": {
|
|||
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "1",
|
|||
|
"default": "12"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.backgroundColor": {
|
|||
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.borderColor": {
|
|||
|
"desc": "\n\n<p>文字块边框颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.borderWidth": {
|
|||
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.borderRadius": {
|
|||
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "LT,RT, RB, LB"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.padding": {
|
|||
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "T,R,B,L"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.shadowColor": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.shadowBlur": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.width": {
|
|||
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.height": {
|
|||
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.textBorderColor": {
|
|||
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.textBorderWidth": {
|
|||
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.textShadowColor": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#000"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.textShadowBlur": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.textShadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"textStyle.rich.<style_name>.textShadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"nameGap": {
|
|||
|
"desc": "\n\n<p>指示器名称和指示器轴的距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "15",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitNumber": {
|
|||
|
"desc": "\n\n<p>指示器轴的分割段数。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "15",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"shape": {
|
|||
|
"desc": "\n\n<p>雷达图绘制类型,支持 <code class=\"codespan\">'polygon'</code> 和 <code class=\"codespan\">'circle'</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "polygon,circle"
|
|||
|
}
|
|||
|
},
|
|||
|
"scale": {
|
|||
|
"desc": "\n\n<p>是否是脱离 0 值比例。设置成 <code class=\"codespan\">true</code> 后坐标刻度不会强制包含零刻度。在双数值轴的散点图中比较有用。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean"
|
|||
|
}
|
|||
|
},
|
|||
|
"silent": {
|
|||
|
"desc": "<p>坐标轴是否是静态无法交互。</p>\n"
|
|||
|
},
|
|||
|
"triggerEvent": {
|
|||
|
"desc": "<p>坐标轴的标签是否响应和触发鼠标事件,默认不响应。</p>\n<p>事件参数如下:</p>\n<pre><code class=\"lang-js\">{\n // 组件类型,xAxis, yAxis, radiusAxis, angleAxis\n // 对应组件类型都会有一个属性表示组件的 index,例如 xAxis 就是 xAxisIndex\n componentType: string,\n // 未格式化过的刻度值, 点击刻度标签有效\n value: '',\n // 坐标轴名称, 点击坐标轴名称有效\n name: ''\n}\n</code></pre>\n"
|
|||
|
},
|
|||
|
"axisLine": {
|
|||
|
"desc": "<p>坐标轴轴线相关设置。</p>\n"
|
|||
|
},
|
|||
|
"axisLine.show": {
|
|||
|
"desc": "\n\n<p>是否显示坐标轴轴线。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean",
|
|||
|
"default": "true"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.symbol": {
|
|||
|
"desc": "\n\n<p>轴线两边的箭头。可以是字符串,表示两端使用同样的箭头;或者长度为 2 的字符串数组,分别表示两端的箭头。默认不显示箭头,即 <code class=\"codespan\">'none'</code>。两端都显示箭头可以设置为 <code class=\"codespan\">'arrow'</code>,只在末端显示箭头可以设置为 <code class=\"codespan\">['none', 'arrow']</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "icon",
|
|||
|
"default": "none"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.symbolSize": {
|
|||
|
"desc": "\n\n<p>轴线两边的箭头的大小,第一个数字表示宽度(垂直坐标轴方向),第二个数字表示高度(平行坐标轴方向)。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"default": "10,15"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.symbolOffset": {
|
|||
|
"desc": "\n\n<p>轴线两边的箭头的偏移,如果是数组,第一个数字表示起始箭头的偏移,第二个数字表示末端箭头的偏移;如果是数字,表示这两个箭头使用同样的偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"default": "0,0"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.color": {
|
|||
|
"desc": "\n\n<p>坐标轴线线的颜色。</p>\n<blockquote>\n<p>颜色可以使用 RGB 表示,比如 <code class=\"codespan\">'rgb(128, 128, 128)'</code>,如果想要加上 alpha 通道表示不透明度,可以使用 RGBA,比如 <code class=\"codespan\">'rgba(128, 128, 128, 0.5)'</code>,也可以使用十六进制格式,比如 <code class=\"codespan\">'#ccc'</code>。除了纯色之外颜色也支持渐变色和纹理填充</p>\n<pre><code class=\"lang-js\">// 线性渐变,前四个参数分别是 x0, y0, x2, y2, 范围从 0 - 1,相当于在图形包围盒中的百分比,如果 globalCoord 为 `true`,则该四个值是绝对的像素位置\ncolor: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 径向渐变,前三个参数分别是圆心 x, y 和半径,取值同线性渐变\ncolor: {\n type: 'radial',\n x: 0.5,\n y: 0.5,\n r: 0.5,\n colorStops: [{\n offset: 0, color: 'red' // 0% 处的颜色\n }, {\n offset: 1, color: 'blue' // 100% 处的颜色\n }],\n global: false // 缺省为 false\n}\n// 纹理填充\ncolor: {\n image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串\n repeat: 'repeat' // 是否平铺,可以是 'repeat-x', 'repeat-y', 'no-repeat'\n}\n</code></pre>\n</blockquote>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.width": {
|
|||
|
"desc": "\n\n<p>坐标轴线线宽。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"value": "1",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.type": {
|
|||
|
"desc": "\n\n<p>坐标轴线线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "solid",
|
|||
|
"options": "solid,dashed,dotted"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.shadowBlur": {
|
|||
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.shadowColor": {
|
|||
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": ""
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLine.lineStyle.opacity": {
|
|||
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "1",
|
|||
|
"min": "0",
|
|||
|
"max": "1",
|
|||
|
"step": "0.01"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick": {
|
|||
|
"desc": "<p>坐标轴刻度相关设置。</p>\n"
|
|||
|
},
|
|||
|
"axisTick.show": {
|
|||
|
"desc": "\n\n<p>是否显示坐标轴刻度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean",
|
|||
|
"default": "true"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.length": {
|
|||
|
"desc": "\n\n<p>坐标轴刻度的长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5",
|
|||
|
"default": "5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle": {
|
|||
|
"desc": "<p>刻度线的样式设置。</p>\n"
|
|||
|
},
|
|||
|
"axisTick.lineStyle.color": {
|
|||
|
"desc": "<p>刻度线的颜色,默认取 <a href=\"#.axisTick.lineStyle.color\">axisTick.lineStyle.color</a>。</p>\n"
|
|||
|
},
|
|||
|
"axisTick.lineStyle.width": {
|
|||
|
"desc": "\n\n<p>坐标轴刻度线宽。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"value": "1",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle.type": {
|
|||
|
"desc": "\n\n<p>坐标轴刻度线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "solid",
|
|||
|
"options": "solid,dashed,dotted"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle.shadowBlur": {
|
|||
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle.shadowColor": {
|
|||
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": ""
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisTick.lineStyle.opacity": {
|
|||
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "1",
|
|||
|
"min": "0",
|
|||
|
"max": "1",
|
|||
|
"step": "0.01"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel": {
|
|||
|
"desc": "<p>坐标轴刻度标签的相关设置。</p>\n"
|
|||
|
},
|
|||
|
"axisLabel.show": {
|
|||
|
"desc": "\n\n<p>是否显示刻度标签。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean",
|
|||
|
"default": "true"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rotate": {
|
|||
|
"desc": "\n\n<p>刻度标签旋转的角度,在类目轴的类目标签显示不下的时候可以通过旋转防止标签之间重叠。</p>\n<p>旋转的角度从 -90 度到 90 度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "angle",
|
|||
|
"min": "-90",
|
|||
|
"max": "90",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.margin": {
|
|||
|
"desc": "\n\n<p>刻度标签与轴线之间的距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "8",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.formatter": {
|
|||
|
"desc": "<p>刻度标签的内容格式器,支持字符串模板和回调函数两种形式。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">// 使用字符串模板,模板变量为刻度默认标签 {value}\nformatter: '{value} kg'\n\n// 使用函数模板,函数参数分别为刻度数值(类目),刻度的索引\nformatter: function (value, index) {\n // 格式化成月/日,只在第一个刻度显示年份\n var date = new Date(value);\n var texts = [(date.getMonth() + 1), date.getDate()];\n if (index === 0) {\n texts.unshift(date.getYear());\n }\n return texts.join('/');\n}\n</code></pre>\n"
|
|||
|
},
|
|||
|
"axisLabel.showMinLabel": {
|
|||
|
"desc": "\n\n<p>是否显示最小 tick 的 label。可取值 <code class=\"codespan\">true</code>, <code class=\"codespan\">false</code>, <code class=\"codespan\">null</code>。默认自动判定(即如果标签重叠,不会显示最小 tick 的 label)。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.showMaxLabel": {
|
|||
|
"desc": "\n\n<p>是否显示最大 tick 的 label。可取值 <code class=\"codespan\">true</code>, <code class=\"codespan\">false</code>, <code class=\"codespan\">null</code>。默认自动判定(即如果标签重叠,不会显示最大 tick 的 label)。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.color": {
|
|||
|
"desc": "\n\n<p>刻度标签文字的颜色,默认取 <a href=\"#.axisLine.lineStyle.color\">axisLine.lineStyle.color</a>。支持回调函数,格式如下</p>\n<pre><code class=\"lang-js\">(val: string) => Color\n</code></pre>\n<p>参数是标签的文本,返回颜色值,如下示例:</p>\n<pre><code class=\"lang-js\">textStyle: {\n color: function (value, index) {\n return value >= 0 ? 'green' : 'red';\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.fontStyle": {
|
|||
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,italic,oblique"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.fontWeight": {
|
|||
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,bold,bolder,lighter"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.fontFamily": {
|
|||
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "sans-serif",
|
|||
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.fontSize": {
|
|||
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "12",
|
|||
|
"min": "1",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.align": {
|
|||
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "left,center,right"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.verticalAlign": {
|
|||
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "top,middle,bottom"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.lineHeight": {
|
|||
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "1",
|
|||
|
"default": "12"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.backgroundColor": {
|
|||
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.borderColor": {
|
|||
|
"desc": "\n\n<p>文字块边框颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.borderWidth": {
|
|||
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.borderRadius": {
|
|||
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "LT,RT, RB, LB"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.padding": {
|
|||
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "T,R,B,L"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.shadowColor": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.shadowBlur": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.width": {
|
|||
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"axisLabel.height": {
|
|||
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"axisLabel.textBorderColor": {
|
|||
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.textBorderWidth": {
|
|||
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.textShadowColor": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#000"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.textShadowBlur": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.textShadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.textShadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich": {
|
|||
|
"desc": "<p>在 <code class=\"codespan\">rich</code> 里面,可以自定义富文本样式。利用富文本样式,可以在标签中做出非常丰富的效果。</p>\n<p>例如:</p>\n<pre><code class=\"lang-js\">label: {\n // 在文本中,可以对部分文本采用 rich 中定义样式。\n // 这里需要在文本中使用标记符号:\n // `{styleName|text content text content}` 标记样式名。\n // 注意,换行仍是使用 '\\n'。\n formatter: [\n '{a|这段文本采用样式a}',\n '{b|这段文本采用样式b}这段用默认样式{x|这段用样式x}'\n ].join('\\n'),\n\n rich: {\n a: {\n color: 'red',\n lineHeight: 10\n },\n b: {\n backgroundColor: {\n image: 'xxx/xxx.jpg'\n },\n height: 40\n },\n x: {\n fontSize: 18,\n fontFamily: 'Microsoft YaHei',\n borderColor: '#449933',\n borderRadius: 4\n },\n ...\n }\n}\n</code></pre>\n<p>详情参见教程:<a href=\"tutorial.html#%E5%AF%8C%E6%96%87%E6%9C%AC%E6%A0%87%E7%AD%BE\" target=\"_blank\">富文本标签</a></p>\n"
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.color": {
|
|||
|
"desc": "\n\n<p>文字的颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "null"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.fontStyle": {
|
|||
|
"desc": "\n\n<p>文字字体的风格。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'italic'</code></li>\n<li><code class=\"codespan\">'oblique'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,italic,oblique"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.fontWeight": {
|
|||
|
"desc": "\n\n<p>文字字体的粗细。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'normal'</code></li>\n<li><code class=\"codespan\">'bold'</code></li>\n<li><code class=\"codespan\">'bolder'</code></li>\n<li><code class=\"codespan\">'lighter'</code></li>\n<li>100 | 200 | 300 | 400...</li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "normal",
|
|||
|
"options": "normal,bold,bolder,lighter"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.fontFamily": {
|
|||
|
"desc": "\n\n<p>文字的字体系列。</p>\n<p>还可以是 'serif' , 'monospace', 'Arial', 'Courier New', 'Microsoft YaHei', ...</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "sans-serif",
|
|||
|
"options": "sans-serif,serif,monospace,Arial,Courier New"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.fontSize": {
|
|||
|
"desc": "\n\n<p>文字的字体大小。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "12",
|
|||
|
"min": "1",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.align": {
|
|||
|
"desc": "\n\n<p>文字水平对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'left'</code></li>\n<li><code class=\"codespan\">'center'</code></li>\n<li><code class=\"codespan\">'right'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">align</code>,则会取父层级的 <code class=\"codespan\">align</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n align: right,\n rich: {\n a: {\n // 没有设置 `align`,则 `align` 为 right\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "left,center,right"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.verticalAlign": {
|
|||
|
"desc": "\n\n<p>文字垂直对齐方式,默认自动。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'top'</code></li>\n<li><code class=\"codespan\">'middle'</code></li>\n<li><code class=\"codespan\">'bottom'</code></li>\n</ul>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">verticalAlign</code>,则会取父层级的 <code class=\"codespan\">verticalAlign</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n verticalAlign: bottom,\n rich: {\n a: {\n // 没有设置 `verticalAlign`,则 `verticalAlign` 为 bottom\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"options": "top,middle,bottom"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.lineHeight": {
|
|||
|
"desc": "\n\n<p>行高。</p>\n<p><code class=\"codespan\">rich</code> 中如果没有设置 <code class=\"codespan\">lineHeight</code>,则会取父层级的 <code class=\"codespan\">lineHeight</code>。例如:</p>\n<pre><code class=\"lang-js\">{\n lineHeight: 56,\n rich: {\n a: {\n // 没有设置 `lineHeight`,则 `lineHeight` 为 56\n }\n }\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "1",
|
|||
|
"default": "12"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.backgroundColor": {
|
|||
|
"desc": "\n\n<p>文字块背景色。</p>\n<p>可以使用颜色值,例如:<code class=\"codespan\">'#123234'</code>, <code class=\"codespan\">'red'</code>, <code class=\"codespan\">'rgba(0,23,11,0.3)'</code>。</p>\n<p>也可以直接使用图片,例如:</p>\n<pre><code class=\"lang-js\">backgroundColor: {\n image: 'xxx/xxx.png'\n // 这里可以是图片的 URL,\n // 或者图片的 dataURI,\n // 或者 HTMLImageElement 对象,\n // 或者 HTMLCanvasElement 对象。\n}\n</code></pre>\n<p>当使用图片的时候,可以使用 <code class=\"codespan\">width</code> 或 <code class=\"codespan\">height</code> 指定高宽,也可以不指定自适应。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.borderColor": {
|
|||
|
"desc": "\n\n<p>文字块边框颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#fff"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.borderWidth": {
|
|||
|
"desc": "\n\n<p>文字块边框宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.borderRadius": {
|
|||
|
"desc": "\n\n<p>文字块的圆角。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "LT,RT, RB, LB"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.padding": {
|
|||
|
"desc": "\n\n<p>文字块的内边距。例如:</p>\n<ul>\n<li><code class=\"codespan\">padding: [3, 4, 5, 6]</code>:表示 <code class=\"codespan\">[上, 右, 下, 左]</code> 的边距。</li>\n<li><code class=\"codespan\">padding: 4</code>:表示 <code class=\"codespan\">padding: [4, 4, 4, 4]</code>。</li>\n<li><code class=\"codespan\">padding: [3, 4]</code>:表示 <code class=\"codespan\">padding: [3, 4, 3, 4]</code>。</li>\n</ul>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "vector",
|
|||
|
"min": "0",
|
|||
|
"dims": "T,R,B,L"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.shadowColor": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.shadowBlur": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字块的背景阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.width": {
|
|||
|
"desc": "<p>文字块的宽度。一般不用指定,不指定则自动是文字的宽度。在想做表格项或者使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p><code class=\"codespan\">width</code> 也可以是百分比字符串,如 <code class=\"codespan\">'100%'</code>。表示的是所在文本块的 <code class=\"codespan\">contentWidth</code>(即不包含文本块的 <code class=\"codespan\">padding</code>)的百分之多少。之所以以 <code class=\"codespan\">contentWidth</code> 做基数,因为每个文本片段只能基于 <code class=\"codespan\">content box</code> 布局。如果以 <code class=\"codespan\">outerWidth</code> 做基数,则百分比的计算在实用中不具有意义,可能会超出。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.height": {
|
|||
|
"desc": "<p>文字块的高度。一般不用指定,不指定则自动是文字的高度。在使用图片(参见 <code class=\"codespan\">backgroundColor</code>)时,可能会使用它。</p>\n<p>注意,文字块的 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code> 指定的是内容高宽,不包含 <code class=\"codespan\">padding</code>。</p>\n<p>注意,如果不定义 <code class=\"codespan\">rich</code> 属性,则不能指定 <code class=\"codespan\">width</code> 和 <code class=\"codespan\">height</code>。</p>\n"
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.textBorderColor": {
|
|||
|
"desc": "\n\n<p>文字本身的描边颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.textBorderWidth": {
|
|||
|
"desc": "\n\n<p>文字本身的描边宽度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.textShadowColor": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": "#000"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.textShadowBlur": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影长度。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.textShadowOffsetX": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 X 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"axisLabel.rich.<style_name>.textShadowOffsetY": {
|
|||
|
"desc": "\n\n<p>文字本身的阴影 Y 偏移。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine": {
|
|||
|
"desc": "<p>坐标轴在 <a href=\"#grid\">grid</a> 区域中的分隔线。</p>\n"
|
|||
|
},
|
|||
|
"splitLine.show": {
|
|||
|
"desc": "\n\n<p>是否显示分隔线。默认数值轴显示,类目轴不显示。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean",
|
|||
|
"default": "true"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.color": {
|
|||
|
"desc": "\n\n<p>分隔线颜色,可以设置成单个颜色。</p>\n<p>也可以设置成颜色数组,分隔线会按数组中颜色的顺序依次循环设置颜色。</p>\n<p>示例</p>\n<pre><code>splitLine: {\n lineStyle: {\n // 使用深浅的间隔色\n color: ['#aaa', '#ddd']\n }\n}\n</code></pre>",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.width": {
|
|||
|
"desc": "\n\n<p>分隔线线宽。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"value": "1",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.type": {
|
|||
|
"desc": "\n\n<p>分隔线线的类型。</p>\n<p>可选:</p>\n<ul>\n<li><code class=\"codespan\">'solid'</code></li>\n<li><code class=\"codespan\">'dashed'</code></li>\n<li><code class=\"codespan\">'dotted'</code></li>\n</ul>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "enum",
|
|||
|
"default": "solid",
|
|||
|
"options": "solid,dashed,dotted"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.shadowBlur": {
|
|||
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.shadowColor": {
|
|||
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": ""
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitLine.lineStyle.opacity": {
|
|||
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "1",
|
|||
|
"min": "0",
|
|||
|
"max": "1",
|
|||
|
"step": "0.01"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitArea": {
|
|||
|
"desc": "<p>坐标轴在 <a href=\"#grid\">grid</a> 区域中的分隔区域,默认不显示。</p>\n"
|
|||
|
},
|
|||
|
"splitArea.show": {
|
|||
|
"desc": "\n\n<p>是否显示分隔区域。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "boolean",
|
|||
|
"default": "true"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitArea.areaStyle": {
|
|||
|
"desc": "<p>分隔区域的样式设置。</p>\n"
|
|||
|
},
|
|||
|
"splitArea.areaStyle.color": {
|
|||
|
"desc": "<p>分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。</p>\n"
|
|||
|
},
|
|||
|
"splitArea.areaStyle.shadowBlur": {
|
|||
|
"desc": "\n\n<p>图形阴影的模糊大小。该属性配合 <code class=\"codespan\">shadowColor</code>,<code class=\"codespan\">shadowOffsetX</code>, <code class=\"codespan\">shadowOffsetY</code> 一起设置图形的阴影效果。</p>\n<p>示例:</p>\n<pre><code class=\"lang-js\">{\n shadowColor: 'rgba(0, 0, 0, 0.5)',\n shadowBlur: 10\n}\n</code></pre>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "",
|
|||
|
"min": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitArea.areaStyle.shadowColor": {
|
|||
|
"desc": "\n\n<p>阴影颜色。支持的格式同<code class=\"codespan\">color</code>。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color",
|
|||
|
"default": ""
|
|||
|
}
|
|||
|
},
|
|||
|
"splitArea.areaStyle.shadowOffsetX": {
|
|||
|
"desc": "\n\n<p>阴影水平方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitArea.areaStyle.shadowOffsetY": {
|
|||
|
"desc": "\n\n<p>阴影垂直方向上的偏移距离。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "0",
|
|||
|
"step": "0.5"
|
|||
|
}
|
|||
|
},
|
|||
|
"splitArea.areaStyle.opacity": {
|
|||
|
"desc": "\n\n<p>图形透明度。支持从 0 到 1 的数字,为 0 时不绘制该图形。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "1",
|
|||
|
"min": "0",
|
|||
|
"max": "1",
|
|||
|
"step": "0.01"
|
|||
|
}
|
|||
|
},
|
|||
|
"indicator": {
|
|||
|
"desc": "<p>雷达图的指示器,用来指定雷达图中的多个变量(维度),如下示例。</p>\n<pre><code class=\"lang-js\">indicator: [\n { name: '销售(sales)', max: 6500},\n { name: '管理(Administration)', max: 16000, color: 'red'}, // 标签设置为红色\n { name: '信息技术(Information Techology)', max: 30000},\n { name: '客服(Customer Support)', max: 38000},\n { name: '研发(Development)', max: 52000},\n { name: '市场(Marketing)', max: 25000}\n]\n</code></pre>\n"
|
|||
|
},
|
|||
|
"indicator.name": {
|
|||
|
"desc": "<p>指示器名称。</p>\n"
|
|||
|
},
|
|||
|
"indicator.max": {
|
|||
|
"desc": "\n\n<p>指示器的最大值,可选,建议设置</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"default": "100",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"indicator.min": {
|
|||
|
"desc": "\n\n<p>指示器的最小值,可选,默认为 0。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "number",
|
|||
|
"step": "1"
|
|||
|
}
|
|||
|
},
|
|||
|
"indicator.color": {
|
|||
|
"desc": "\n\n<p>标签特定的颜色。</p>\n",
|
|||
|
"uiControl": {
|
|||
|
"type": "color"
|
|||
|
}
|
|||
|
}
|
|||
|
}
|