60 lines
1.0 KiB
Vue
60 lines
1.0 KiB
Vue
|
|
<template>
|
||
|
|
<section class="AiDrawer">
|
||
|
|
<AiPagePicker type="custom" :ops="ops">
|
||
|
|
<div class="placeholder">{{ placeholder }}</div>
|
||
|
|
</AiPagePicker>
|
||
|
|
</section>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
import AiPagePicker from "./AiPagePicker";
|
||
|
|
|
||
|
|
export default {
|
||
|
|
name: "AiDrawer",
|
||
|
|
components: {AiPagePicker},
|
||
|
|
model: {
|
||
|
|
prop: "seal",
|
||
|
|
event: "input"
|
||
|
|
},
|
||
|
|
props: {
|
||
|
|
seal: String,
|
||
|
|
placeholder: {type: String, default: "请在此处清晰书写你的签名"},
|
||
|
|
},
|
||
|
|
data() {
|
||
|
|
return {
|
||
|
|
ops: {
|
||
|
|
url: "/components/pages/sealDrawer"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<style lang="scss" scoped>
|
||
|
|
.AiDrawer {
|
||
|
|
background: #F7F7F7;
|
||
|
|
border: 1px solid #CCCCCC;
|
||
|
|
position: relative;
|
||
|
|
|
||
|
|
::v-deep.AiPagePicker {
|
||
|
|
height: 200px;
|
||
|
|
|
||
|
|
& > div {
|
||
|
|
height: 100%;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.placeholder {
|
||
|
|
pointer-events: none;
|
||
|
|
position: absolute;
|
||
|
|
left: 50%;
|
||
|
|
top: 50%;
|
||
|
|
transform: translate(-50%, -50%);
|
||
|
|
max-width: 407px;
|
||
|
|
text-align: center;
|
||
|
|
font-size: 64px;
|
||
|
|
color: #DDDDDD;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
</style>
|