audit-advanced-querybtn.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <a-button :class="[$style.superSearch]" :title="searchLabel" @click="openSearchModal"
  3. ><a-icon type="sd-audit-advancesearch" theme="filled" :class="$style.searchIcon"></a-icon>
  4. </a-button>
  5. </template>
  6. <script>
  7. import components from './_import-components/audit-advanced-querybtn-import'
  8. export default {
  9. name: 'AuditAdvancedQuerybtn',
  10. metaInfo: {
  11. title: 'AuditAdvancedQuerybtn',
  12. },
  13. components,
  14. props: {
  15. /***
  16. * 高级搜索lable
  17. */
  18. searchLabel: {
  19. type: String,
  20. default: '高级搜索',
  21. },
  22. /***
  23. * 图标类型
  24. * up 向上
  25. * down 向下
  26. */
  27. searchIconType: {
  28. type: String,
  29. default: 'sd-audit-advancesearch',
  30. },
  31. /**
  32. * 搜索页面的样式
  33. *
  34. */
  35. searchStyle: {
  36. type: Object,
  37. default: () => {
  38. return {
  39. top: '7px',
  40. right: '160px',
  41. }
  42. },
  43. },
  44. },
  45. data() {
  46. return {}
  47. },
  48. methods: {
  49. openSearchModal() {
  50. this.$emit('searchbtnClick')
  51. },
  52. },
  53. }
  54. </script>
  55. <style module lang="scss">
  56. @use '@/common/design' as *;
  57. .super-search {
  58. // position: absolute;
  59. right: 13px;
  60. // top: 7px;
  61. z-index: 100;
  62. padding: 0 9px;
  63. border: 1px solid #d9d9d9 !important;
  64. border-radius: 0 4px 4px 0;
  65. }
  66. .search-icon {
  67. font-size: 12px;
  68. margin-left: 1px !important;
  69. }
  70. </style>