AppSearch.vue - TOMMYHU - 专注互联网开发及运营技术,提供相关资料及软件下载,奇趣网络时事评论!
Dec 16

AppSearch.vue 不指定

tommyhu , 15:17 , 软件分析与设计 , 评论(0) , 引用(0) , 阅读(230) , Via 本站原创 | |

<script lang="tsx">
  import { defineComponent, ref, unref } from 'vue';
  import { Tooltip } from 'ant-design-vue';
  import { SearchOutlined } from '@ant-design/icons-vue';
  import AppSearchModal from './AppSearchModal.vue';
  import { useI18n } from '/@/hooks/web/useI18n';

  export default defineComponent({
    name: 'AppSearch',
    setup() {
      const showModal = ref(false);
      const { t } = useI18n();

      function changeModal(show: boolean) {
        showModal.value = show;
      }

      return () => {
        return (
          <div class="p-1" onClick={changeModal.bind(null, true)}>
            <Tooltip>
              {{
                title: () => t('common.searchText'),
                default: () => <SearchOutlined />,
              }}
            </Tooltip>
            <AppSearchModal onClose={changeModal.bind(null, false)} visible={unref(showModal)} />
          </div>
        );
      };
    },
  });
</script>
  • 中查看更多“AppSearch.vue”相关内容
  • 中查看更多“AppSearch.vue”相关内容
  • 中查看更多“AppSearch.vue”相关内容
  • 中查看更多“AppSearch.vue”相关内容
  • 在此发表你对本文的看法:

    您的称呼(例如:乔布斯、tommyhu 等)

    emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot