ost-ui
Version:
ost ui for react
1 lines • 2.01 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{81:function(e,t){e.exports='## OstText 示例\n\n \n```jsx\n:::$demo\n\n render() {\n return( \n <div style={{\n padding: \'10px\'\n }}>\n <OstText size="md" label="医院地址:" text="徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨路徐汇凯滨"></OstText>\n <OstWhiteSpace size="xl" />\n <OstText multiLine={false} type="success" size="xs" text="徐汇凯滨路1号,徐汇凯滨路路2号,徐汇凯滨路1号,徐汇凯滨路路2号"></OstText>\n <OstWhiteSpace />\n <OstText type="primary" text="徐汇凯滨路1号,徐汇凯滨路路2号,徐汇凯滨路1号,徐汇凯滨路路2号"></OstText>\n <OstWhiteSpace />\n <OstText type="warning" size="lg" label="医院地址:" text="徐汇凯滨路"></OstText>\n <OstWhiteSpace />\n <OstText size="xl" text="徐汇凯滨路哈哈哈"></OstText>\n </div>\n )\n }\n:::$\n```\n\n### 组件 props 说明\n| 事件名称 | 说明 | 类型 | 默认值 |\n|---------|--------|---------|---------|\n| size | <p>文本字体大小,可选值 <code>xs</code>、<code>sm</code>、<code>md</code>、<code>lg</code>、<code>xl</code>或者不设</p> | string | <p><code>md</code>14px</p>\n| type | <p>文本字体类型,可选值 <code>primary</code>、<code>success</code>、<code>warning</code></p> | string | - |\n| labe | label值 | string | - |\n| text | 文本值 | string | - |\n| multiLine | 文本是否支持多行显示 | boolean | true |\n| fixedCls | class前缀 | string | <p><code>ost-text</code></p> |\n| className | 样式类名 | string | 无 |\n'}}]);