-- 模板库修改

This commit is contained in:
yuping
2022-12-13 00:28:01 +08:00
parent 8b40d46bb1
commit 98b2d367de

View File

@@ -51,31 +51,31 @@
/> />
<div class="inname">封面图</div> <div class="inname">封面图</div>
</div> </div>
<div class="in select" style="flex:1"> <div class="in select" style="display: flex">
<a-select <div
:getPopupContainer=" :class="`box ${projectInfo.picUrl === src.value ? 'active' : ''}`"
(triggerNode) => { style="
return triggerNode.parentNode || document.body; width: 100px;
} height: 100px;
border-radius: 5px;
cursor: pointer;
position: relative;
overflow: hidden;
" "
v-model:value="projectInfo.picUrl" v-for="(src, index) in projectPic"
dropdownClassName="dropdown-style" :key="index"
style="width: 440px" @click="() => (projectInfo.picUrl = src.value)"
placeholder="请选择" >
:options="projectPic"
@change="handleChangeSelect"
allowClear
></a-select>
<img <img
style="width:100px;height:100px;margin-top:20px;border-radius: 8px" style="
v-if="projectInfo.picUrl" width: 100px;
:src="projectInfo.picUrl" height: 100px;
margin-bottom: 4px;
margin-right: 4px;
"
:src="src.value"
alt="avatar" alt="avatar"
/> />
<div class="i_bottom">
<span style="color: #999ba3">
高宽比为16:9 (:800*450) png或jpg图片
</span>
</div> </div>
</div> </div>
</div> </div>
@@ -256,10 +256,6 @@ const backPage = () => {
router.back(); router.back();
}; };
const handleChangeSelect = (value) => {
projectInfo.value.picUrl = value
}
function timeChange(e) { function timeChange(e) {
if (e && e.length === 2) { if (e && e.length === 2) {
projectInfo.value.beginTime = e[0]; projectInfo.value.beginTime = e[0];
@@ -303,6 +299,9 @@ function managerChange(e, l, d, t) {
</script> </script>
<style lang="scss"> <style lang="scss">
.active {
border: 2px solid rgba(78, 166, 255, 1);
}
.projectAdd { .projectAdd {
width: 100%; width: 100%;
// height: inherit; // height: inherit;