fix(web-antdv-next): 使用 SpaceCompact 替换组合组件写法
parent
b8d992f828
commit
d7b23d67ce
|
|
@ -5,7 +5,7 @@ import { BpmProcessInstanceStatus, DICT_TYPE } from '@vben/constants';
|
||||||
import { UndoOutlined, ZoomInOutlined, ZoomOutOutlined } from '@vben/icons';
|
import { UndoOutlined, ZoomInOutlined, ZoomOutOutlined } from '@vben/icons';
|
||||||
import { formatDate, formatPast2 } from '@vben/utils';
|
import { formatDate, formatPast2 } from '@vben/utils';
|
||||||
|
|
||||||
import { Button, Modal, Row, Space, Table } from 'antdv-next';
|
import { Button, Modal, Row, SpaceCompact, Table } from 'antdv-next';
|
||||||
import BpmnViewer from 'bpmn-js/lib/Viewer';
|
import BpmnViewer from 'bpmn-js/lib/Viewer';
|
||||||
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas';
|
import MoveCanvasModule from 'diagram-js/lib/navigation/movecanvas';
|
||||||
|
|
||||||
|
|
@ -437,7 +437,7 @@ onBeforeUnmount(() => {
|
||||||
<!-- Zoom:放大、缩小 -->
|
<!-- Zoom:放大、缩小 -->
|
||||||
<div style="position: absolute; top: 0; left: 0; width: 100%">
|
<div style="position: absolute; top: 0; left: 0; width: 100%">
|
||||||
<Row justify="end">
|
<Row justify="end">
|
||||||
<Space.Compact key="scale-control">
|
<SpaceCompact key="scale-control">
|
||||||
<Button
|
<Button
|
||||||
:disabled="defaultZoom <= 0.3"
|
:disabled="defaultZoom <= 0.3"
|
||||||
:icon="h(ZoomOutOutlined)"
|
:icon="h(ZoomOutOutlined)"
|
||||||
|
|
@ -452,7 +452,7 @@ onBeforeUnmount(() => {
|
||||||
@click="processZoomIn()"
|
@click="processZoomIn()"
|
||||||
/>
|
/>
|
||||||
<Button :icon="h(UndoOutlined)" @click="processReZoom()" />
|
<Button :icon="h(UndoOutlined)" @click="processReZoom()" />
|
||||||
</Space.Compact>
|
</SpaceCompact>
|
||||||
</Row>
|
</Row>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import {
|
||||||
Input,
|
Input,
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal,
|
||||||
Space,
|
SpaceCompact,
|
||||||
} from 'antdv-next';
|
} from 'antdv-next';
|
||||||
|
|
||||||
import { getDeviceAuthInfo } from '#/api/iot/device/device';
|
import { getDeviceAuthInfo } from '#/api/iot/device/device';
|
||||||
|
|
@ -142,7 +142,7 @@ function handleAuthInfoDialogClose() {
|
||||||
>
|
>
|
||||||
<Form :label-col="{ span: 6 }">
|
<Form :label-col="{ span: 6 }">
|
||||||
<FormItem label="clientId">
|
<FormItem label="clientId">
|
||||||
<Space.Compact>
|
<SpaceCompact>
|
||||||
<Input
|
<Input
|
||||||
v-model:value="authInfo.clientId"
|
v-model:value="authInfo.clientId"
|
||||||
readonly
|
readonly
|
||||||
|
|
@ -151,10 +151,10 @@ function handleAuthInfoDialogClose() {
|
||||||
<Button type="primary" @click="copyToClipboard(authInfo.clientId)">
|
<Button type="primary" @click="copyToClipboard(authInfo.clientId)">
|
||||||
<IconifyIcon icon="lucide:copy" />
|
<IconifyIcon icon="lucide:copy" />
|
||||||
</Button>
|
</Button>
|
||||||
</Space.Compact>
|
</SpaceCompact>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="username">
|
<FormItem label="username">
|
||||||
<Space.Compact>
|
<SpaceCompact>
|
||||||
<Input
|
<Input
|
||||||
v-model:value="authInfo.username"
|
v-model:value="authInfo.username"
|
||||||
readonly
|
readonly
|
||||||
|
|
@ -163,10 +163,10 @@ function handleAuthInfoDialogClose() {
|
||||||
<Button type="primary" @click="copyToClipboard(authInfo.username)">
|
<Button type="primary" @click="copyToClipboard(authInfo.username)">
|
||||||
<IconifyIcon icon="lucide:copy" />
|
<IconifyIcon icon="lucide:copy" />
|
||||||
</Button>
|
</Button>
|
||||||
</Space.Compact>
|
</SpaceCompact>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem label="password">
|
<FormItem label="password">
|
||||||
<Space.Compact>
|
<SpaceCompact>
|
||||||
<Input
|
<Input
|
||||||
v-model:value="authInfo.password"
|
v-model:value="authInfo.password"
|
||||||
:type="authPasswordVisible ? 'text' : 'password'"
|
:type="authPasswordVisible ? 'text' : 'password'"
|
||||||
|
|
@ -184,7 +184,7 @@ function handleAuthInfoDialogClose() {
|
||||||
<Button type="primary" @click="copyToClipboard(authInfo.password)">
|
<Button type="primary" @click="copyToClipboard(authInfo.password)">
|
||||||
<IconifyIcon icon="lucide:copy" />
|
<IconifyIcon icon="lucide:copy" />
|
||||||
</Button>
|
</Button>
|
||||||
</Space.Compact>
|
</SpaceCompact>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
<div class="mt-4 text-right">
|
<div class="mt-4 text-right">
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ import {
|
||||||
message,
|
message,
|
||||||
Modal,
|
Modal,
|
||||||
Space,
|
Space,
|
||||||
|
SpaceCompact,
|
||||||
Spin,
|
Spin,
|
||||||
Table,
|
Table,
|
||||||
Tag,
|
Tag,
|
||||||
|
|
@ -373,7 +374,7 @@ defineExpose({ open }); // 提供 open 方法,用于打开弹窗
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<!-- 视图切换 -->
|
<!-- 视图切换 -->
|
||||||
<Space.Compact class="ml-auto">
|
<SpaceCompact class="ml-auto">
|
||||||
<Button
|
<Button
|
||||||
:disabled="!canShowChart"
|
:disabled="!canShowChart"
|
||||||
:type="viewMode === 'chart' ? 'primary' : 'default'"
|
:type="viewMode === 'chart' ? 'primary' : 'default'"
|
||||||
|
|
@ -393,7 +394,7 @@ defineExpose({ open }); // 提供 open 方法,用于打开弹窗
|
||||||
</template>
|
</template>
|
||||||
列表
|
列表
|
||||||
</Button>
|
</Button>
|
||||||
</Space.Compact>
|
</SpaceCompact>
|
||||||
</Space>
|
</Space>
|
||||||
|
|
||||||
<!-- 数据统计信息 -->
|
<!-- 数据统计信息 -->
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import {
|
||||||
Divider,
|
Divider,
|
||||||
Input,
|
Input,
|
||||||
Row,
|
Row,
|
||||||
Space,
|
SpaceCompact,
|
||||||
Switch,
|
Switch,
|
||||||
Tag,
|
Tag,
|
||||||
} from 'antdv-next';
|
} from 'antdv-next';
|
||||||
|
|
@ -299,7 +299,7 @@ onBeforeUnmount(() => {
|
||||||
un-checked-children="定时刷新"
|
un-checked-children="定时刷新"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Space.Compact>
|
<SpaceCompact>
|
||||||
<Button
|
<Button
|
||||||
:type="viewMode === 'card' ? 'primary' : 'default'"
|
:type="viewMode === 'card' ? 'primary' : 'default'"
|
||||||
@click="handleViewModeChange('card')"
|
@click="handleViewModeChange('card')"
|
||||||
|
|
@ -312,7 +312,7 @@ onBeforeUnmount(() => {
|
||||||
>
|
>
|
||||||
<IconifyIcon icon="ep:list" />
|
<IconifyIcon icon="ep:list" />
|
||||||
</Button>
|
</Button>
|
||||||
</Space.Compact>
|
</SpaceCompact>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 分隔线 -->
|
<!-- 分隔线 -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue