mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-02 14:59:27 +08:00
style: 优化部分弹框响应式效果
This commit is contained in:
@@ -4,8 +4,9 @@
|
|||||||
<span
|
<span
|
||||||
v-if="item.redirect === 'noRedirect' || item.redirect === '' || index === breadcrumbList.length - 1"
|
v-if="item.redirect === 'noRedirect' || item.redirect === '' || index === breadcrumbList.length - 1"
|
||||||
class="gi_line_1"
|
class="gi_line_1"
|
||||||
>{{ item.meta.title }}</span
|
|
||||||
>
|
>
|
||||||
|
{{ item.meta.title }}
|
||||||
|
</span>
|
||||||
<span v-else class="gi_line_1 breadcrumb-item-title" @click="handleLink(item)">{{ item.meta.title }}</span>
|
<span v-else class="gi_line_1 breadcrumb-item-title" @click="handleLink(item)">{{ item.meta.title }}</span>
|
||||||
</a-breadcrumb-item>
|
</a-breadcrumb-item>
|
||||||
</a-breadcrumb>
|
</a-breadcrumb>
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal v-model:visible="visible" :title="title" @before-ok="save" @close="reset">
|
<a-modal
|
||||||
|
v-model:visible="visible"
|
||||||
|
:title="title"
|
||||||
|
:mask-closable="false"
|
||||||
|
:esc-to-close="false"
|
||||||
|
:width="width >= 500 ? 500 : '100%'"
|
||||||
|
@before-ok="save"
|
||||||
|
@close="reset"
|
||||||
|
>
|
||||||
<GiForm ref="formRef" v-model="form" :options="options" :columns="columns">
|
<GiForm ref="formRef" v-model="form" :options="options" :columns="columns">
|
||||||
<template #captcha>
|
<template #captcha>
|
||||||
<a-input v-model="form.captcha" placeholder="请输入验证码" :max-length="4" allow-clear style="flex: 1 1" />
|
<a-input v-model="form.captcha" placeholder="请输入验证码" :max-length="4" allow-clear style="flex: 1 1" />
|
||||||
@@ -18,8 +26,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
// import { getSmsCaptcha, getEmailCaptcha, updateUserEmail, updateUserPhone } from '@/apis'
|
import { useWindowSize } from '@vueuse/core'
|
||||||
import { Message } from '@arco-design/web-vue'
|
import { Message } from '@arco-design/web-vue'
|
||||||
|
// import { getSmsCaptcha, getEmailCaptcha, updateUserEmail, updateUserPhone } from '@/apis'
|
||||||
import { updateUserPassword } from '@/apis'
|
import { updateUserPassword } from '@/apis'
|
||||||
import { encryptByRsa } from '@/utils/encrypt'
|
import { encryptByRsa } from '@/utils/encrypt'
|
||||||
import { useUserStore } from '@/stores'
|
import { useUserStore } from '@/stores'
|
||||||
@@ -27,6 +36,7 @@ import { type Columns, GiForm } from '@/components/GiForm'
|
|||||||
import { useForm } from '@/hooks'
|
import { useForm } from '@/hooks'
|
||||||
import * as Regexp from '@/utils/regexp'
|
import * as Regexp from '@/utils/regexp'
|
||||||
|
|
||||||
|
const { width } = useWindowSize()
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const userInfo = computed(() => userStore.userInfo)
|
const userInfo = computed(() => userStore.userInfo)
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-modal v-model:visible="visible" title="修改基本信息" @before-ok="save" @close="reset">
|
<a-modal
|
||||||
|
v-model:visible="visible"
|
||||||
|
title="修改基本信息"
|
||||||
|
:mask-closable="false"
|
||||||
|
:esc-to-close="false"
|
||||||
|
:width="width >= 500 ? 500 : '100%'"
|
||||||
|
@before-ok="save"
|
||||||
|
@close="reset"
|
||||||
|
>
|
||||||
<GiForm ref="formRef" v-model="form" :options="options" :columns="columns" />
|
<GiForm ref="formRef" v-model="form" :options="options" :columns="columns" />
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { useWindowSize } from '@vueuse/core'
|
||||||
import { Message } from '@arco-design/web-vue'
|
import { Message } from '@arco-design/web-vue'
|
||||||
import { updateUserBaseInfo } from '@/apis'
|
import { updateUserBaseInfo } from '@/apis'
|
||||||
import { type Columns, GiForm } from '@/components/GiForm'
|
import { type Columns, GiForm } from '@/components/GiForm'
|
||||||
import { useForm } from '@/hooks'
|
import { useForm } from '@/hooks'
|
||||||
import { useUserStore } from '@/stores'
|
import { useUserStore } from '@/stores'
|
||||||
|
|
||||||
|
const { width } = useWindowSize()
|
||||||
|
|
||||||
const options: Options = {
|
const options: Options = {
|
||||||
form: {},
|
form: {},
|
||||||
col: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
|
col: { xs: 24, sm: 24, md: 24, lg: 24, xl: 24, xxl: 24 },
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ modeList.value = [
|
|||||||
title: '安全手机',
|
title: '安全手机',
|
||||||
icon: 'phone-color',
|
icon: 'phone-color',
|
||||||
value: `${`${userInfo.value.phone} ` || '手机号'}`,
|
value: `${`${userInfo.value.phone} ` || '手机号'}`,
|
||||||
subtitle: `可用于身份验证、密码找回、通知接收`,
|
subtitle: `可用于登录、身份验证、密码找回、通知接收`,
|
||||||
type: 'phone',
|
type: 'phone',
|
||||||
jumpMode: 'modal',
|
jumpMode: 'modal',
|
||||||
status: !!userInfo.value.phone,
|
status: !!userInfo.value.phone,
|
||||||
@@ -59,7 +59,7 @@ modeList.value = [
|
|||||||
title: '安全邮箱',
|
title: '安全邮箱',
|
||||||
icon: 'email-color',
|
icon: 'email-color',
|
||||||
value: `${`${userInfo.value.email} ` || '邮箱'}`,
|
value: `${`${userInfo.value.email} ` || '邮箱'}`,
|
||||||
subtitle: `可用于身份验证、密码找回、通知接收`,
|
subtitle: `可用于登录、身份验证、密码找回、通知接收`,
|
||||||
type: 'email',
|
type: 'email',
|
||||||
jumpMode: 'modal',
|
jumpMode: 'modal',
|
||||||
status: !!userInfo.value.email,
|
status: !!userInfo.value.email,
|
||||||
|
|||||||
Reference in New Issue
Block a user