chore: 更新依赖

This commit is contained in:
kailong321200875
2023-07-11 21:03:46 +08:00
parent 0eefce32a5
commit 90316e9fcc
4 changed files with 81 additions and 93 deletions

View File

@@ -1,13 +1,12 @@
<script lang="tsx">
import { defineComponent, unref, computed, ref } from 'vue'
import { defineComponent, unref, computed } from 'vue'
import {
ElTooltip,
ElDropdown,
ElDropdownMenu,
ElDropdownItem,
ComponentSize,
ElPopover,
ClickOutside as vClickOutside
ElPopover
} from 'element-plus'
import { Icon } from '@/components/Icon'
import { useI18n } from '@/hooks/web/useI18n'
@@ -20,9 +19,6 @@ const { t } = useI18n()
export default defineComponent({
name: 'TableActions',
directives: {
ClickOutside: vClickOutside
},
emits: ['refresh', 'changSize'],
setup(_, { emit }) {
const refresh = () => {
@@ -33,23 +29,8 @@ export default defineComponent({
emit('changSize', size)
}
const popoverRef = ref()
const iconRef = ref()
const onClickOutside = () => {
unref(popoverRef)?.popperRef?.delayHide?.()
}
return () => (
<>
<ElPopover
ref={popoverRef.value}
virtualRef={iconRef.value}
trigger="click"
virtualTriggering
>
<span> Some content </span>
</ElPopover>
<div class="text-right h-28px flex items-center justify-end">
<ElTooltip content={t('common.refresh')} placement="top">
<Icon
@@ -93,15 +74,24 @@ export default defineComponent({
</ElDropdown>
</ElTooltip>
<ElTooltip content={t('common.columnSetting')} placement="top">
<Icon
ref={iconRef.value}
icon="ant-design:setting-outlined"
class="cursor-pointer"
hoverColor="var(--el-color-primary)"
vClickOutside={onClickOutside}
/>
</ElTooltip>
{/* <ElTooltip content={t('common.columnSetting')} placement="top"> */}
<ElPopover trigger="click" placement="bottom-end">
{{
default: () => {
return <div>假假按揭</div>
},
reference: () => {
return (
<Icon
icon="ant-design:setting-outlined"
class="cursor-pointer"
hoverColor="var(--el-color-primary)"
/>
)
}
}}
</ElPopover>
{/* </ElTooltip> */}
</div>
</>
)

View File

@@ -2,7 +2,6 @@
import { Form } from '@/components/Form'
import { reactive, ref, onMounted, computed } from 'vue'
import { useI18n } from '@/hooks/web/useI18n'
import { useIcon } from '@/hooks/web/useIcon'
import { ContentWrap } from '@/components/ContentWrap'
import { useAppStore } from '@/store/modules/app'
import { SelectOption, RadioOption, CheckboxOption, FormSchema } from '@/components/Form'
@@ -17,6 +16,7 @@ import {
ElInput
} from 'element-plus'
import { getDictOneApi } from '@/api/common'
import { Icon } from '@/components/Icon'
const appStore = useAppStore()
@@ -461,8 +461,8 @@ const schema = reactive<FormSchema[]>([
label: `${t('formDemo.icon')}1`,
component: 'Input',
componentProps: {
suffixIcon: useIcon({ icon: 'ep:calendar' }),
prefixIcon: useIcon({ icon: 'ep:share' })
suffixIcon: <Icon icon="ep:calendar" />,
prefixIcon: <Icon icon="ep:share" />
}
},
{
@@ -472,9 +472,9 @@ const schema = reactive<FormSchema[]>([
componentProps: {
slots: {
suffix: () => {
return useIcon({ icon: 'ep:share' })
return <Icon icon="ep:share" />
},
prefix: () => useIcon({ icon: 'ep:calendar' })
prefix: () => <Icon icon="ep:calendar" />
}
}
},
@@ -484,8 +484,8 @@ const schema = reactive<FormSchema[]>([
component: 'Input',
componentProps: {
slots: {
prepend: () => useIcon({ icon: 'ep:calendar' }),
append: () => useIcon({ icon: 'ep:share' })
prepend: () => <Icon icon="ep:calendar" />,
append: () => <Icon icon="ep:share" />
}
}
},
@@ -622,10 +622,7 @@ const schema = reactive<FormSchema[]>([
return null
}
},
prefix: () => useIcon({ icon: 'ep:calendar' }),
empty: () => {
return useIcon({ icon: 'ep:share' })
}
prefix: () => <Icon icon="ep:calendar" />
}
}
},
@@ -869,8 +866,8 @@ const schema = reactive<FormSchema[]>([
component: 'Switch',
value: false,
componentProps: {
activeIcon: useIcon({ icon: 'ep:check' }),
inactiveIcon: useIcon({ icon: 'ep:close' })
activeIcon: <Icon icon="ep:check" />,
inactiveIcon: <Icon icon="ep:close" />
}
},
{
@@ -890,11 +887,11 @@ const schema = reactive<FormSchema[]>([
component: 'Rate',
value: null,
componentProps: {
voidIcon: useIcon({ icon: 'ep:chat-round' }),
voidIcon: <Icon icon="ep:chat-round" />,
icons: [
useIcon({ icon: 'ep:chat-round' }),
useIcon({ icon: 'ep:chat-line-round' }),
useIcon({ icon: 'ep:chat-dot-round' })
<Icon icon="ep:chat-round" />,
<Icon icon="ep:chat-line-round" />,
<Icon icon="ep:chat-dot-round" />
]
}
},
@@ -1683,15 +1680,15 @@ const schema = reactive<FormSchema[]>([
box-sizing: border-box;
.text {
width: 24px;
height: 24px;
display: block;
margin: 0 auto;
line-height: 24px;
position: absolute;
left: 50%;
transform: translateX(-50%);
display: block;
width: 24px;
height: 24px;
margin: 0 auto;
line-height: 24px;
border-radius: 50%;
transform: translateX(-50%);
}
&.current {
@@ -1703,18 +1700,18 @@ const schema = reactive<FormSchema[]>([
.holiday {
position: absolute;
bottom: 0;
left: 50%;
width: 6px;
height: 6px;
background: var(--el-color-danger);
border-radius: 50%;
bottom: 0px;
left: 50%;
transform: translateX(-50%);
}
}
.transfer-footer {
margin-left: 15px;
padding: 6px 5px;
margin-left: 15px;
}
</style>

View File

@@ -34,7 +34,7 @@ const toLogin = () => {
class="h-[100%] relative lt-xl:bg-[var(--login-bg-color)] lt-sm:px-10px lt-xl:px-10px lt-md:px-10px"
>
<ElScrollbar class="h-full">
<div class="relative flex mx-auto">
<div class="relative flex mx-auto h-100vh">
<div
:class="`${prefixCls}__left flex-1 bg-gray-500 bg-opacity-20 relative p-30px lt-xl:hidden`"
>
@@ -97,6 +97,7 @@ const toLogin = () => {
.@{prefix-cls} {
overflow: auto;
&__left {
&::before {
position: absolute;