Admin.UI/src/components/my-confirm-button/index.vue
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!--
一般提交
<my-confirm-button @click="syncApi" :icon="'el-icon-refresh'" style="margin:0px;">
<template #content>
<p>确定要同步Api吗?</p>
</template>
同步Api
</my-confirm-button>
行删除
<my-confirm-button type="delete" @click="handleDel($index, row)" :loading="row._loading"/>
表单验证
<my-confirm-button type="submit" @click="editSubmit" :validate="editFormvalidate" :loading="editLoading"/>
设置位置
<my-confirm-button @click="submit" :validate="editFormvalidate" :placement="'top-start'" :loading="editLoading">
<template #content>
<p>确定要更新基本信息吗?</p>
</template>
更新基本信息
</my-confirm-button>
-->
<template>
<span style="margin-left:10px;line-height: 1;display: inline-block;">
<el-popover
ref="popover"
v-model="visible"
:placement="placement"
width="160"
:disabled="disabledPopover"
:trigger="'click'"
:title="title"
:content="content"
@hide="hide"
>
<slot name="content">
<p>{{ type === 'delete' ? '确定要删除该记录吗?' : '确定提交吗?' }}</p>
</slot>
<slot name="footer">
<div style="text-align: right; margin: 0">
<el-button type="text" @click="visible = false">取消</el-button>
<el-button type="primary" @click="sure">确定</el-button>
</div>
</slot>
</el-popover>
<el-button
v-popover:popover
:icon="icon"
:type="buttonType"
:loading="loading"
:disabled="disabled"
_button
@click="valid"
>
<slot>{{ buttonText }}</slot>
</el-button>
</span>
</template>
后面还有 77 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
