export default {
  column: '2',
  owner: '',
  demos: [
    {
      demoId: 'basic-usage',
      name: {
        'zh-CN': '基本用法',
        'en-US': 'Basic Usage'
      },
      desc: {
        'zh-CN':
          '<p>配置 <code>name</code> 属性作为每个 <code>collapse-item</code> 的唯一标志符，配置 <code>v-model</code> 设置当前激活的面板。默认情况下可以同时展开多个面板，这个例子默认展开了第一和第三个面板。</p>',
        'en-US':
          '<p>For details, see the following example.<br/>Configure the <code>name</code> attribute as the unique identifier for each collapse-item.</p>'
      },
      codeFiles: ['basic-usage.vue']
    },
    {
      demoId: 'accordion',
      name: {
        'zh-CN': '手风琴效果',
        'en-US': 'Accordion Effect'
      },
      desc: {
        'zh-CN':
          '<p>配置 <code>accordion</code> 属性为 <code>true</code>  后，折叠面板将展示手风琴效果，一次只允许展开一个面板。</p>',
        'en-US':
          '<p>After <code>accordion</code> is set to true, the collapsed panel displays the accordion effect. <br/>Configure <code>v-model</code> to set the currently active panel. (In accordion mode, the binding value type must be string. Otherwise, the binding value type is array.) </p>'
      },
      codeFiles: ['accordion.vue']
    },
    {
      demoId: 'disable',
      name: {
        'zh-CN': '禁用状态',
        'en-US': 'Disabled'
      },
      desc: {
        'zh-CN':
          '<p>在 <code>collapse-item</code> 元素上配置 <code>disabled</code> 属性为 true 后，将禁用指定的折叠面板项。</p>',
        'en-US':
          '<p>When the <code>disabled</code> attribute is set to true on the <code>collapse-item</code> element, the specified collapse panel item is disabled. </p>'
      },
      codeFiles: ['disable.vue']
    },
    {
      demoId: 'title',
      name: {
        'zh-CN': '面板标题',
        'en-US': 'Custom Panel Title'
      },
      desc: {
        'zh-CN':
          '<p>在 <code>collapse-item</code> 元素上配置 <code>title</code> 属性可以指定每个折叠面板项的标题。也可以通过 <code>title</code> 插槽的方式自定义面板标题，比如在标题后增加图标。<br/>在 <code>collapse-item</code> 元素上配置 <code>title-right</code> 属性可以指定每个折叠面板项标题的右侧内容。也可以通过 <code>title-right</code> 插槽的方式自定义面板标题右侧内容，比如在标题右侧增加图标。</p>',
        'en-US':
          '<p>Configure the <code>title</code> attribute on the <code>collapse-item</code> element to specify the title of each collapse panel item. However, you can also customize the panel title by using the <code>title</code> slot, for example, adding an icon before the title. <br/>Configure the <code>title-right</code> attribute on the <code>collapse-item</code> element to specify the right side of each collapse panel item title. However, you can also customize the content on the right of the panel title by using the <code>title-right</code> slot, for example, adding an icon to the right of the title.</p>'
      },
      codeFiles: ['title.vue']
    },
    {
      demoId: 'icon',
      name: {
        'zh-CN': '展开/折叠图标',
        'en-US': 'Customize the expansion and collapse icon'
      },
      desc: {
        'zh-CN':
          '<p>在 <code>collapse-item</code> 元素上可以通过 <code>icon</code> 插槽的方式自定义展开折叠 icon 图标。</p>',
        'en-US':
          '<p>On the <code>collapse-item</code> element, you can customize the folding icon icon by using the <code>icon</code> slot. </p>'
      },
      codeFiles: ['icon.vue']
    },
    {
      demoId: 'before-close',
      name: {
        'zh-CN': '阻止切换',
        'en-US': 'Prevent the event of closing the folding panel'
      },
      desc: {
        'zh-CN': '<p>设置 before-close 属性，如果返回 false，将阻止面板的切换。</p>',
        'en-US':
          '<p>:before-close event before closing the folding panel. In the method, return true/false indicates whether the folding panel can be closed.</p>'
      },
      codeFiles: ['before-close.vue']
    },
    {
      demoId: 'nested-content',
      name: {
        'zh-CN': '嵌套内容',
        'en-US': 'Nested Content'
      },
      desc: {
        'zh-CN': '<p>通过 <code>collapse-item</code> 元素的默认插槽嵌入表单、表格等内容。</p>',
        'en-US': '<p>Embed the form through the default slot of the <code>collapse-item</code> element. </p>'
      },
      codeFiles: ['nested-content.vue']
    },
    {
      demoId: 'events',
      name: {
        'zh-CN': '事件',
        'en-US': 'Fold panel change event'
      },
      desc: {
        'zh-CN': '<p>激活面板的值改变时将触发 <code>change</code> 事件。</p>',
        'en-US': '<p>When the value of the active panel changes, the <code>change</code> event is triggered. </p>'
      },
      codeFiles: ['events.vue']
    }
  ]
}
