Browse Source

👣 重构底层

master
wangxiang 3 years ago
parent
commit
9d1aee910e
  1. 4
      kicc-ui/src/layouts/default/content/index.vue
  2. 8
      kicc-ui/src/layouts/default/feature/index.vue
  3. 2
      kicc-ui/src/layouts/default/footer/index.vue
  4. 6
      kicc-ui/src/layouts/default/header/MultipleHeader.vue
  5. 2
      kicc-ui/src/layouts/default/header/components/Breadcrumb.vue
  6. 4
      kicc-ui/src/layouts/default/header/components/FullScreen.vue
  7. 10
      kicc-ui/src/layouts/default/header/components/lock/LockModal.vue
  8. 8
      kicc-ui/src/layouts/default/header/components/notify/NoticeList.vue
  9. 6
      kicc-ui/src/layouts/default/header/components/notify/index.vue
  10. 2
      kicc-ui/src/layouts/default/header/components/user-dropdown/DropMenuItem.vue
  11. 4
      kicc-ui/src/layouts/default/header/components/user-dropdown/index.vue
  12. 14
      kicc-ui/src/layouts/default/header/index.vue
  13. 12
      kicc-ui/src/layouts/default/index.vue
  14. 2
      kicc-ui/src/layouts/default/setting/components/SelectItem.vue
  15. 12
      kicc-ui/src/layouts/default/setting/components/SettingFooter.vue
  16. 2
      kicc-ui/src/layouts/default/setting/components/SwitchItem.vue
  17. 4
      kicc-ui/src/layouts/default/setting/components/ThemeColorPicker.vue
  18. 4
      kicc-ui/src/layouts/default/setting/components/TypePicker.vue
  19. 4
      kicc-ui/src/layouts/default/setting/index.vue
  20. 2
      kicc-ui/src/layouts/default/sider/DragBar.vue
  21. 14
      kicc-ui/src/layouts/default/sider/LayoutSider.vue
  22. 20
      kicc-ui/src/layouts/default/sider/MixSider.vue
  23. 6
      kicc-ui/src/layouts/default/sider/index.vue
  24. 2
      kicc-ui/src/layouts/default/tabs/components/FoldButton.vue
  25. 6
      kicc-ui/src/layouts/default/tabs/components/TabContent.vue
  26. 2
      kicc-ui/src/layouts/default/tabs/components/TabRedo.vue
  27. 10
      kicc-ui/src/layouts/default/tabs/index.vue
  28. 2
      kicc-ui/src/layouts/default/trigger/HeaderTrigger.vue
  29. 4
      kicc-ui/src/layouts/default/trigger/SiderTrigger.vue
  30. 4
      kicc-ui/src/layouts/default/trigger/index.vue
  31. 2
      kicc-ui/src/layouts/page/index.vue

4
kicc-ui/src/layouts/default/content/index.vue

@ -1,6 +1,6 @@
<template> <template>
<div :class="[prefixCls, getLayoutContentMode]" v-loading="getOpenPageLoading && getPageLoading"> <div v-loading="getOpenPageLoading && getPageLoading" :class="[prefixCls, getLayoutContentMode]">
<PageLayout /> <PageLayout/>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">

8
kicc-ui/src/layouts/default/feature/index.vue

@ -50,10 +50,10 @@
</script> </script>
<template> <template>
<LayoutLockPage /> <LayoutLockPage/>
<BackTop v-if="getUseOpenBackTop" :target="getTarget" /> <BackTop v-if="getUseOpenBackTop" :target="getTarget"/>
<SettingDrawer v-if="getIsFixedSettingDrawer" :class="prefixCls" /> <SettingDrawer v-if="getIsFixedSettingDrawer" :class="prefixCls"/>
<SessionTimeoutLogin v-if="getIsSessionTimeout" /> <SessionTimeoutLogin v-if="getIsSessionTimeout"/>
</template> </template>
<style lang="less"> <style lang="less">

2
kicc-ui/src/layouts/default/footer/index.vue

@ -1,5 +1,5 @@
<template> <template>
<Footer :class="prefixCls" v-if="getShowLayoutFooter" ref="footerRef"> <Footer v-if="getShowLayoutFooter" ref="footerRef" :class="prefixCls">
<div>Copyright &copy;2022 康来生物有限公司</div> <div>Copyright &copy;2022 康来生物有限公司</div>
</Footer> </Footer>
</template> </template>

6
kicc-ui/src/layouts/default/header/MultipleHeader.vue

@ -1,8 +1,8 @@
<template> <template>
<div :style="getPlaceholderDomStyle" v-if="getIsShowPlaceholderDom"></div> <div v-if="getIsShowPlaceholderDom" :style="getPlaceholderDomStyle"/>
<div :style="getWrapStyle" :class="getClass"> <div :style="getWrapStyle" :class="getClass">
<LayoutHeader v-if="getShowInsetHeaderRef" /> <LayoutHeader v-if="getShowInsetHeaderRef"/>
<MultipleTabs v-if="getShowTabs" /> <MultipleTabs v-if="getShowTabs"/>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">

2
kicc-ui/src/layouts/default/header/components/Breadcrumb.vue

@ -2,7 +2,7 @@
<div :class="[prefixCls, `${prefixCls}--${theme}`]"> <div :class="[prefixCls, `${prefixCls}--${theme}`]">
<a-breadcrumb :routes="routes"> <a-breadcrumb :routes="routes">
<template #itemRender="{ route, routes: routesMatched, paths }"> <template #itemRender="{ route, routes: routesMatched, paths }">
<Icon :icon="getIcon(route)" v-if="getShowBreadCrumbIcon && getIcon(route)" /> <Icon v-if="getShowBreadCrumbIcon && getIcon(route)" :icon="getIcon(route)"/>
<span v-if="!hasRedirect(routesMatched, route)"> <span v-if="!hasRedirect(routesMatched, route)">
{{ t(route.name || route.meta.title) }} {{ t(route.name || route.meta.title) }}
</span> </span>

4
kicc-ui/src/layouts/default/header/components/FullScreen.vue

@ -1,8 +1,8 @@
<template> <template>
<Tooltip :title="getTitle" placement="bottom" :mouseEnterDelay="0.5"> <Tooltip :title="getTitle" placement="bottom" :mouseEnterDelay="0.5">
<span @click="toggle"> <span @click="toggle">
<FullscreenOutlined v-if="!isFullscreen" /> <FullscreenOutlined v-if="!isFullscreen"/>
<FullscreenExitOutlined v-else /> <FullscreenExitOutlined v-else/>
</span> </span>
</Tooltip> </Tooltip>
</template> </template>

10
kicc-ui/src/layouts/default/header/components/lock/LockModal.vue

@ -8,16 +8,20 @@
> >
<div :class="`${prefixCls}__entry`"> <div :class="`${prefixCls}__entry`">
<div :class="`${prefixCls}__header`"> <div :class="`${prefixCls}__header`">
<img :src="avatar" :class="`${prefixCls}__header-img`" /> <img :src="avatar" :class="`${prefixCls}__header-img`">
<p :class="`${prefixCls}__header-name`"> <p :class="`${prefixCls}__header-name`">
{{ getNickName }} {{ getNickName }}
</p> </p>
</div> </div>
<BasicForm @register="registerForm" /> <BasicForm @register="registerForm"/>
<div :class="`${prefixCls}__footer`"> <div :class="`${prefixCls}__footer`">
<a-button type="primary" block class="mt-2" @click="handleLock"> <a-button type="primary"
block
class="mt-2"
@click="handleLock"
>
{{ t('layout.header.lockScreenBtn') }} {{ t('layout.header.lockScreenBtn') }}
</a-button> </a-button>
</div> </div>

8
kicc-ui/src/layouts/default/header/components/notify/NoticeList.vue

@ -6,7 +6,6 @@
<template #title> <template #title>
<div class="title"> <div class="title">
<a-typography-paragraph <a-typography-paragraph
@click="handleTitleClick(item)"
style="width: 100%; margin-bottom: 0 !important" style="width: 100%; margin-bottom: 0 !important"
:style="{ cursor: isTitleClickable ? 'pointer' : '' }" :style="{ cursor: isTitleClickable ? 'pointer' : '' }"
:delete="!!item.titleDelete" :delete="!!item.titleDelete"
@ -16,8 +15,9 @@
: false : false
" "
:content="item.title" :content="item.title"
@click="handleTitleClick(item)"
/> />
<div class="extra" v-if="item.extra"> <div v-if="item.extra" class="extra">
<a-tag class="tag" :color="item.color"> <a-tag class="tag" :color="item.color">
{{ item.extra }} {{ item.extra }}
</a-tag> </a-tag>
@ -26,13 +26,13 @@
</template> </template>
<template #avatar> <template #avatar>
<a-avatar v-if="item.avatar" class="avatar" :src="item.avatar" /> <a-avatar v-if="item.avatar" class="avatar" :src="item.avatar"/>
<span v-else> {{ item.avatar }}</span> <span v-else> {{ item.avatar }}</span>
</template> </template>
<template #description> <template #description>
<div> <div>
<div class="description" v-if="item.description"> <div v-if="item.description" class="description">
<a-typography-paragraph <a-typography-paragraph
style="width: 100%; margin-bottom: 0 !important" style="width: 100%; margin-bottom: 0 !important"
:ellipsis=" :ellipsis="

6
kicc-ui/src/layouts/default/header/components/notify/index.vue

@ -2,7 +2,7 @@
<div :class="prefixCls"> <div :class="prefixCls">
<Popover title="" trigger="click" :overlayClassName="`${prefixCls}__overlay`"> <Popover title="" trigger="click" :overlayClassName="`${prefixCls}__overlay`">
<Badge :count="count" dot :numberStyle="numberStyle"> <Badge :count="count" dot :numberStyle="numberStyle">
<BellOutlined /> <BellOutlined/>
</Badge> </Badge>
<template #content> <template #content>
<Tabs> <Tabs>
@ -13,8 +13,8 @@
<span v-if="item.list.length !== 0">({{ item.list.length }})</span> <span v-if="item.list.length !== 0">({{ item.list.length }})</span>
</template> </template>
<!-- 绑定title-click事件的通知列表中标题是可点击--> <!-- 绑定title-click事件的通知列表中标题是可点击-->
<NoticeList :list="item.list" v-if="item.key === '1'" @title-click="onNoticeClick" /> <NoticeList v-if="item.key === '1'" :list="item.list" @title-click="onNoticeClick"/>
<NoticeList :list="item.list" v-else /> <NoticeList v-else :list="item.list"/>
</TabPane> </TabPane>
</template> </template>
</Tabs> </Tabs>

2
kicc-ui/src/layouts/default/header/components/user-dropdown/DropMenuItem.vue

@ -1,7 +1,7 @@
<template> <template>
<MenuItem :key="itemKey"> <MenuItem :key="itemKey">
<span class="flex items-center"> <span class="flex items-center">
<Icon :icon="icon" class="mr-1" /> <Icon :icon="icon" class="mr-1"/>
<span>{{ text }}</span> <span>{{ text }}</span>
</span> </span>
</MenuItem> </MenuItem>

4
kicc-ui/src/layouts/default/header/components/user-dropdown/index.vue

@ -1,7 +1,7 @@
<template> <template>
<Dropdown placement="bottomLeft" :trigger="['click', 'hover']" :overlayClassName="`${prefixCls}-dropdown-overlay`"> <Dropdown placement="bottomLeft" :trigger="['click', 'hover']" :overlayClassName="`${prefixCls}-dropdown-overlay`">
<span :class="[prefixCls, `${prefixCls}--${theme}`]" class="flex"> <span :class="[prefixCls, `${prefixCls}--${theme}`]" class="flex">
<img :class="`${prefixCls}__header`" :src="getUserInfo.avatar" /> <img :class="`${prefixCls}__header`" :src="getUserInfo.avatar">
<span :class="`${prefixCls}__info hidden md:block`"> <span :class="`${prefixCls}__info hidden md:block`">
<span :class="`${prefixCls}__name `" class="truncate"> <span :class="`${prefixCls}__name `" class="truncate">
{{ getUserInfo.nickName }} {{ getUserInfo.nickName }}
@ -25,7 +25,7 @@
</Menu> </Menu>
</template> </template>
</Dropdown> </Dropdown>
<LockAction @register="register" /> <LockAction @register="register"/>
</template> </template>
<script lang="ts"> <script lang="ts">
import { Dropdown, Menu } from 'ant-design-vue'; import { Dropdown, Menu } from 'ant-design-vue';

14
kicc-ui/src/layouts/default/header/index.vue

@ -16,12 +16,12 @@
:theme="getHeaderTheme" :theme="getHeaderTheme"
:sider="false" :sider="false"
/> />
<LayoutBreadcrumb v-if="getShowContent && getShowBread" :theme="getHeaderTheme" /> <LayoutBreadcrumb v-if="getShowContent && getShowBread" :theme="getHeaderTheme"/>
</div> </div>
<!-- left end --> <!-- left end -->
<!-- menu start --> <!-- menu start -->
<div :class="`${prefixCls}-menu`" v-if="getShowTopMenu && !getIsMobile"> <div v-if="getShowTopMenu && !getIsMobile" :class="`${prefixCls}-menu`">
<LayoutMenu <LayoutMenu
:isHorizontal="true" :isHorizontal="true"
:theme="getHeaderTheme" :theme="getHeaderTheme"
@ -33,11 +33,11 @@
<!-- action --> <!-- action -->
<div :class="`${prefixCls}-action`"> <div :class="`${prefixCls}-action`">
<AppSearch :class="`${prefixCls}-action__item `" v-if="getShowSearch" /> <AppSearch v-if="getShowSearch" :class="`${prefixCls}-action__item `"/>
<Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`" /> <Notify v-if="getShowNotice" :class="`${prefixCls}-action__item notify-item`"/>
<FullScreen v-if="getShowFullScreen" :class="`${prefixCls}-action__item fullscreen-item`" /> <FullScreen v-if="getShowFullScreen" :class="`${prefixCls}-action__item fullscreen-item`"/>
<AppLocalePicker <AppLocalePicker
v-if="getShowLocalePicker" v-if="getShowLocalePicker"
@ -46,9 +46,9 @@
:class="`${prefixCls}-action__item`" :class="`${prefixCls}-action__item`"
/> />
<UserDropDown :theme="getHeaderTheme" /> <UserDropDown :theme="getHeaderTheme"/>
<SettingDrawer v-if="getShowSetting" :class="`${prefixCls}-action__item`" /> <SettingDrawer v-if="getShowSetting" :class="`${prefixCls}-action__item`"/>
</div> </div>
</Header> </Header>
</template> </template>

12
kicc-ui/src/layouts/default/index.vue

@ -1,13 +1,13 @@
<template> <template>
<Layout :class="prefixCls" v-bind="lockEvents"> <Layout :class="prefixCls" v-bind="lockEvents">
<LayoutFeatures /> <LayoutFeatures/>
<LayoutHeader fixed v-if="getShowFullHeaderRef" /> <LayoutHeader v-if="getShowFullHeaderRef" fixed/>
<Layout :class="[layoutClass]"> <Layout :class="[layoutClass]">
<LayoutSideBar v-if="getShowSidebar || getIsMobile" /> <LayoutSideBar v-if="getShowSidebar || getIsMobile"/>
<Layout :class="`${prefixCls}-main`"> <Layout :class="`${prefixCls}-main`">
<LayoutMultipleHeader /> <LayoutMultipleHeader/>
<LayoutContent /> <LayoutContent/>
<LayoutFooter /> <LayoutFooter/>
</Layout> </Layout>
</Layout> </Layout>
</Layout> </Layout>

2
kicc-ui/src/layouts/default/setting/components/SelectItem.vue

@ -4,10 +4,10 @@
<Select <Select
v-bind="getBindValue" v-bind="getBindValue"
:class="`${prefixCls}-select`" :class="`${prefixCls}-select`"
@change="handleChange"
:disabled="disabled" :disabled="disabled"
size="small" size="small"
:options="options" :options="options"
@change="handleChange"
/> />
</div> </div>
</template> </template>

12
kicc-ui/src/layouts/default/setting/components/SettingFooter.vue

@ -1,17 +1,21 @@
<template> <template>
<div :class="prefixCls"> <div :class="prefixCls">
<a-button type="primary" block @click="handleCopy"> <a-button type="primary" block @click="handleCopy">
<CopyOutlined class="mr-2" /> <CopyOutlined class="mr-2"/>
{{ t('layout.setting.copyBtn') }} {{ t('layout.setting.copyBtn') }}
</a-button> </a-button>
<a-button color="warning" block @click="handleResetSetting" class="my-3"> <a-button color="warning"
<RedoOutlined class="mr-2" /> block
class="my-3"
@click="handleResetSetting"
>
<RedoOutlined class="mr-2"/>
{{ t('common.resetText') }} {{ t('common.resetText') }}
</a-button> </a-button>
<a-button color="error" block @click="handleClearAndRedo"> <a-button color="error" block @click="handleClearAndRedo">
<RedoOutlined class="mr-2" /> <RedoOutlined class="mr-2"/>
{{ t('layout.setting.clearBtn') }} {{ t('layout.setting.clearBtn') }}
</a-button> </a-button>
</div> </div>

2
kicc-ui/src/layouts/default/setting/components/SwitchItem.vue

@ -3,10 +3,10 @@
<span> {{ title }}</span> <span> {{ title }}</span>
<Switch <Switch
v-bind="getBindValue" v-bind="getBindValue"
@change="handleChange"
:disabled="disabled" :disabled="disabled"
:checkedChildren="t('layout.setting.on')" :checkedChildren="t('layout.setting.on')"
:unCheckedChildren="t('layout.setting.off')" :unCheckedChildren="t('layout.setting.off')"
@change="handleChange"
/> />
</div> </div>
</template> </template>

4
kicc-ui/src/layouts/default/setting/components/ThemeColorPicker.vue

@ -2,7 +2,6 @@
<div :class="prefixCls"> <div :class="prefixCls">
<template v-for="color in colorList || []" :key="color"> <template v-for="color in colorList || []" :key="color">
<span <span
@click="handleClick(color)"
:class="[ :class="[
`${prefixCls}__item`, `${prefixCls}__item`,
{ {
@ -10,8 +9,9 @@
}, },
]" ]"
:style="{ background: color }" :style="{ background: color }"
@click="handleClick(color)"
> >
<CheckOutlined /> <CheckOutlined/>
</span> </span>
</template> </template>
</div> </div>

4
kicc-ui/src/layouts/default/setting/components/TypePicker.vue

@ -3,7 +3,6 @@
<template v-for="item in menuTypeList || []" :key="item.title"> <template v-for="item in menuTypeList || []" :key="item.title">
<Tooltip :title="item.title" placement="bottom"> <Tooltip :title="item.title" placement="bottom">
<div <div
@click="handler(item)"
:class="[ :class="[
`${prefixCls}__item`, `${prefixCls}__item`,
`${prefixCls}__item--${item.type}`, `${prefixCls}__item--${item.type}`,
@ -11,8 +10,9 @@
[`${prefixCls}__item--active`]: def === item.type, [`${prefixCls}__item--active`]: def === item.type,
}, },
]" ]"
@click="handler(item)"
> >
<div class="mix-sidebar"></div> <div class="mix-sidebar"/>
</div> </div>
</Tooltip> </Tooltip>
</template> </template>

4
kicc-ui/src/layouts/default/setting/index.vue

@ -1,7 +1,7 @@
<template> <template>
<div @click="openDrawer(true)"> <div @click="openDrawer(true)">
<Icon icon="ion:settings-outline" /> <Icon icon="ion:settings-outline"/>
<SettingDrawer @register="register" /> <SettingDrawer @register="register"/>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">

2
kicc-ui/src/layouts/default/sider/DragBar.vue

@ -1,5 +1,5 @@
<template> <template>
<div :class="getClass" :style="getDragBarStyle"></div> <div :class="getClass" :style="getDragBarStyle"/>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, computed, unref } from 'vue'; import { defineComponent, computed, unref } from 'vue';

14
kicc-ui/src/layouts/default/sider/LayoutSider.vue

@ -1,9 +1,9 @@
<template> <template>
<div <div
v-if="getMenuFixed && !getIsMobile" v-if="getMenuFixed && !getIsMobile"
:style="getHiddenDomStyle"
v-show="showClassSideBarRef" v-show="showClassSideBarRef"
></div> :style="getHiddenDomStyle"
/>
<Sider <Sider
v-show="showClassSideBarRef" v-show="showClassSideBarRef"
ref="sideRef" ref="sideRef"
@ -14,15 +14,15 @@
:collapsed="getCollapsed" :collapsed="getCollapsed"
:collapsedWidth="getCollapsedWidth" :collapsedWidth="getCollapsedWidth"
:theme="getMenuTheme" :theme="getMenuTheme"
@breakpoint="onBreakpointChange"
:trigger="getTrigger" :trigger="getTrigger"
v-bind="getTriggerAttr" v-bind="getTriggerAttr"
@breakpoint="onBreakpointChange"
> >
<template #trigger v-if="getShowTrigger"> <template v-if="getShowTrigger" #trigger>
<LayoutTrigger /> <LayoutTrigger/>
</template> </template>
<LayoutMenu :theme="getMenuTheme" :menuMode="getMode" :splitType="getSplitType" /> <LayoutMenu :theme="getMenuTheme" :menuMode="getMode" :splitType="getSplitType"/>
<DragBar ref="dragBarRef" /> <DragBar ref="dragBarRef"/>
</Sider> </Sider>
</template> </template>
<script lang="ts"> <script lang="ts">

20
kicc-ui/src/layouts/default/sider/MixSider.vue

@ -1,5 +1,5 @@
<template> <template>
<div :class="`${prefixCls}-dom`" :style="getDomStyle"></div> <div :class="`${prefixCls}-dom`" :style="getDomStyle"/>
<div <div
v-click-outside="handleClickOutside" v-click-outside="handleClickOutside"
:style="getWrapStyle" :style="getWrapStyle"
@ -13,24 +13,24 @@
]" ]"
v-bind="getMenuEvents" v-bind="getMenuEvents"
> >
<AppLogo :showTitle="false" :class="`${prefixCls}-logo`" /> <AppLogo :showTitle="false" :class="`${prefixCls}-logo`"/>
<LayoutTrigger :class="`${prefixCls}-trigger`" /> <LayoutTrigger :class="`${prefixCls}-trigger`"/>
<ScrollContainer> <ScrollContainer>
<ul :class="`${prefixCls}-module`"> <ul :class="`${prefixCls}-module`">
<li <li
v-for="item in menuModules"
v-bind="getItemEvents(item)"
:key="item.path"
:class="[ :class="[
`${prefixCls}-module__item `, `${prefixCls}-module__item `,
{ {
[`${prefixCls}-module__item--active`]: item.path === activePath, [`${prefixCls}-module__item--active`]: item.path === activePath,
}, },
]" ]"
v-bind="getItemEvents(item)"
v-for="item in menuModules"
:key="item.path"
> >
<SimpleMenuTag :item="item" collapseParent dot /> <SimpleMenuTag :item="item" collapseParent dot/>
<Icon <Icon
:class="`${prefixCls}-module__icon`" :class="`${prefixCls}-module__icon`"
:size="getCollapsed ? 16 : 20" :size="getCollapsed ? 16 : 20"
@ -43,7 +43,7 @@
</ul> </ul>
</ScrollContainer> </ScrollContainer>
<div :class="`${prefixCls}-menu-list`" ref="sideRef" :style="getMenuStyle"> <div ref="sideRef" :class="`${prefixCls}-menu-list`" :style="getMenuStyle">
<div <div
v-show="openMenu" v-show="openMenu"
:class="[ :class="[
@ -71,9 +71,9 @@
</ScrollContainer> </ScrollContainer>
<div <div
v-show="getShowDragBar && openMenu" v-show="getShowDragBar && openMenu"
:class="`${prefixCls}-drag-bar`"
ref="dragBarRef" ref="dragBarRef"
></div> :class="`${prefixCls}-drag-bar`"
/>
</div> </div>
</div> </div>
</template> </template>

6
kicc-ui/src/layouts/default/sider/index.vue

@ -8,10 +8,10 @@
:visible="!getCollapsed" :visible="!getCollapsed"
@close="handleClose" @close="handleClose"
> >
<Sider /> <Sider/>
</Drawer> </Drawer>
<MixSider v-else-if="getIsMixSidebar" /> <MixSider v-else-if="getIsMixSidebar"/>
<Sider v-else /> <Sider v-else/>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';

2
kicc-ui/src/layouts/default/tabs/components/FoldButton.vue

@ -1,6 +1,6 @@
<template> <template>
<span :class="`${prefixCls}__extra-fold`" @click="handleFold"> <span :class="`${prefixCls}__extra-fold`" @click="handleFold">
<Icon :icon="getIcon" /> <Icon :icon="getIcon"/>
</span> </span>
</template> </template>
<script lang="ts"> <script lang="ts">

6
kicc-ui/src/layouts/default/tabs/components/TabContent.vue

@ -1,10 +1,10 @@
<template> <template>
<Dropdown :dropMenuList="getDropMenuList" :trigger="getTrigger" @menuEvent="handleMenuEvent"> <Dropdown :dropMenuList="getDropMenuList" :trigger="getTrigger" @menuEvent="handleMenuEvent">
<div :class="`${prefixCls}__info`" @contextmenu="handleContext" v-if="getIsTabs"> <div v-if="getIsTabs" :class="`${prefixCls}__info`" @contextmenu="handleContext">
<span class="ml-1">{{ getTitle }}</span> <span class="ml-1">{{ getTitle }}</span>
</div> </div>
<span :class="`${prefixCls}__extra-quick`" v-else @click="handleContext"> <span v-else :class="`${prefixCls}__extra-quick`" @click="handleContext">
<Icon icon="ion:chevron-down" /> <Icon icon="ion:chevron-down"/>
</span> </span>
</Dropdown> </Dropdown>
</template> </template>

2
kicc-ui/src/layouts/default/tabs/components/TabRedo.vue

@ -1,6 +1,6 @@
<template> <template>
<span :class="`${prefixCls}__extra-redo`" @click="handleRedo"> <span :class="`${prefixCls}__extra-redo`" @click="handleRedo">
<RedoOutlined :spin="loading" /> <RedoOutlined :spin="loading"/>
</span> </span>
</template> </template>
<script lang="ts"> <script lang="ts">

10
kicc-ui/src/layouts/default/tabs/index.vue

@ -13,15 +13,15 @@
<template v-for="item in getTabsState" :key="item.query ? item.fullPath : item.path"> <template v-for="item in getTabsState" :key="item.query ? item.fullPath : item.path">
<TabPane :closable="!(item && item.meta && item.meta.affix)"> <TabPane :closable="!(item && item.meta && item.meta.affix)">
<template #tab> <template #tab>
<TabContent :tabItem="item" /> <TabContent :tabItem="item"/>
</template> </template>
</TabPane> </TabPane>
</template> </template>
<template #tabBarExtraContent v-if="getShowRedo || getShowQuick"> <template v-if="getShowRedo || getShowQuick" #tabBarExtraContent>
<TabRedo v-if="getShowRedo" /> <TabRedo v-if="getShowRedo"/>
<TabContent isExtra :tabItem="$route" v-if="getShowQuick" /> <TabContent v-if="getShowQuick" isExtra :tabItem="$route"/>
<FoldButton v-if="getShowFold" /> <FoldButton v-if="getShowFold"/>
</template> </template>
</Tabs> </Tabs>
</div> </div>

2
kicc-ui/src/layouts/default/trigger/HeaderTrigger.vue

@ -1,6 +1,6 @@
<template> <template>
<span :class="[prefixCls, theme]" @click="toggleCollapsed"> <span :class="[prefixCls, theme]" @click="toggleCollapsed">
<MenuUnfoldOutlined v-if="getCollapsed" /> <MenuFoldOutlined v-else /> <MenuUnfoldOutlined v-if="getCollapsed"/> <MenuFoldOutlined v-else/>
</span> </span>
</template> </template>
<script lang="ts"> <script lang="ts">

4
kicc-ui/src/layouts/default/trigger/SiderTrigger.vue

@ -1,7 +1,7 @@
<template> <template>
<div @click.stop="toggleCollapsed"> <div @click.stop="toggleCollapsed">
<DoubleRightOutlined v-if="getCollapsed" /> <DoubleRightOutlined v-if="getCollapsed"/>
<DoubleLeftOutlined v-else /> <DoubleLeftOutlined v-else/>
</div> </div>
</template> </template>
<script lang="ts"> <script lang="ts">

4
kicc-ui/src/layouts/default/trigger/index.vue

@ -1,6 +1,6 @@
<template> <template>
<SiderTrigger v-if="sider" /> <SiderTrigger v-if="sider"/>
<HeaderTrigger v-else :theme="theme" /> <HeaderTrigger v-else :theme="theme"/>
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';

2
kicc-ui/src/layouts/page/index.vue

@ -17,7 +17,7 @@
<keep-alive v-if="openCache" :include="getCaches"> <keep-alive v-if="openCache" :include="getCaches">
<component :is="Component" :key="route.fullPath"/> <component :is="Component" :key="route.fullPath"/>
</keep-alive> </keep-alive>
<component v-else :is="Component" :key="route.fullPath"/> <component :is="Component" v-else :key="route.fullPath"/>
</transition> </transition>
</template> </template>
</RouterView> </RouterView>

Loading…
Cancel
Save