配置数据源

  1. 回到配置页面。
  2. 由于是本地开发, 数据源类型请选择 静态数据。
  3. 将下面的数据粘贴到数据源编辑器里。

     {
       "rows": [{
         "content": "In locavore voluptate assumenda. Non raw denim sapiente aute small batch fap. Raw denim cliche lo-fi umami cray incididunt sunt before they sold out. Viral mollit flexitarian locavore, beard readymade eiusmod anim."
       }, {
         "content": "Lorem Ipsum has been the industry's standard dummy text eve. Lorem Ipsum has been the industry's standard dummy text eve. Lorem Ipsum has been the industry's standard dummy text eve. Lorem Ipsum has been the industry's standard dummy text eve"
       }, {
         "content": "Lorem Ipsum has been the industry's standard dummy text eve"
       }]
     }
    
  4. 点击 保存数据源 按钮。

  5. 点击 保存 按钮。

预览组件

  1. 到配置页面, 点击 预览 按钮后可以看到的效果如下:

    以列表的形式渲染数据, 当宽度不够时文字自动换行显示。

  2. 到配置页面, 将 单行显示 复选框勾上, 然后点 保存 按钮, 然后再点 预览 按钮可以看到的效果如下:

    以列表的形式渲染数据, 当宽度不够时超出部分会显示成省略号。

results matching ""

    No results matching ""