<template>
  <a-card>
    <sd-data-table-ex
      ref="datatable"
      form-id="oaButtonConfigInfo"
      page-id="base/button/oaButtonConfigInfo"
      :columns="columns"
      :search-fields="['buttonName']"
    >
      <!-- 详情表单 -->
      <template v-slot:form>
        <sd-form-item name="buttonCode" />
        <sd-form-item name="buttonName" />
        <sd-form-item name="mobileVisible" />
        <sd-form-item name="buttonDesc" />
        <sd-form-item name="configDesc" />
      </template>
    </sd-data-table-ex>
  </a-card>
</template>

<script>
import components from './_import-components/sd-preset-buttonlist-import'

export default {
  name: 'SdPresetButtonlist',
  metaInfo: {
    title: '预置按钮配置',
  },
  components,
  data() {
    return {
      columns: [
        {
          title: '名称',
          dataIndex: 'buttonName',
          defaultSortOrder: 'descend',
          sdClickable: true,
        },
        {
          title: '标识',
          dataIndex: 'buttonCode',
        },
        {
          title: '备注',
          dataIndex: 'configDesc',
        },
      ],
    }
  },
  methods: {},
}
</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
