This commit is contained in:
cxc
2022-10-31 17:46:09 +08:00
parent 652ce4c9d3
commit c2327f30cb
63 changed files with 1698 additions and 479 deletions

View File

@ -76,7 +76,7 @@ export default {
},
customInsert(res, insertFn) {
// res 即服务端的返回结果
console.log(res);
// console.log(res);
// 从 res 中找到 url alt href ,然后插图图片
insertFn(res.url, null, null);
},

View File

@ -0,0 +1,45 @@
<template>
<el-breadcrumb separator="/">
<el-breadcrumb-item>
<span class="_one pointer" @click="handleShow">{{
breadcrumbTitle.title
}}</span>
</el-breadcrumb-item>
<el-breadcrumb-item>
<span class="_two">{{ breadcrumbTitle.twoTitle }}</span>
</el-breadcrumb-item>
</el-breadcrumb>
</template>
<script setup>
const props = defineProps({
isShow: {
required: true,
type: Boolean,
},
breadcrumbTitle: {
required: true,
type: Object,
},
});
const emit = defineEmits();
function handleShow() {
emit("update:isShow", !props.isShow);
}
</script>
<style lang="scss" scoped>
.el-breadcrumb {
padding: 20px 0;
._two {
font-size: 16px;
font-weight: 400;
color: #666666;
}
._one {
font-size: 16px;
font-weight: 600 !important;
color: #333333;
}
}
</style>