|
@@ -11,7 +11,17 @@
|
|
<div class="svg-wrapper"></div>
|
|
<div class="svg-wrapper"></div>
|
|
|
|
|
|
<div class="remark-highlight">{{ $i18n.t("hotspot.hotspot_title") }}</div>
|
|
<div class="remark-highlight">{{ $i18n.t("hotspot.hotspot_title") }}</div>
|
|
- <div class="title-input-wrapper has-textarea">
|
|
|
|
|
|
+
|
|
|
|
+ <div class="title-input-wrapper">
|
|
|
|
+ <input
|
|
|
|
+ v-model.trim="hotspot.hotspotTitle"
|
|
|
|
+ type="text"
|
|
|
|
+ maxlength="50"
|
|
|
|
+ :placeholder="$i18n.t('hotspot.title_placeholder')"
|
|
|
|
+ />
|
|
|
|
+ <span class="count">{{ hotspot.hotspotTitle.length }}/50</span>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- <div class="title-input-wrapper has-textarea">
|
|
<Input
|
|
<Input
|
|
ref="titleTextarea"
|
|
ref="titleTextarea"
|
|
class="titleTextarea"
|
|
class="titleTextarea"
|
|
@@ -21,8 +31,9 @@
|
|
:autosize="{ minRows: 3}"
|
|
:autosize="{ minRows: 3}"
|
|
:placeholder="$i18n.t('hotspot.title_placeholder')"
|
|
:placeholder="$i18n.t('hotspot.title_placeholder')"
|
|
/>
|
|
/>
|
|
|
|
+
|
|
<span class="count">{{ hotspot.hotspotTitle.length }}/50</span>
|
|
<span class="count">{{ hotspot.hotspotTitle.length }}/50</span>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
|
|
|
|
<div class="remark">{{ $i18n.t("hotspot.hotspot_title") }}</div>
|
|
<div class="remark">{{ $i18n.t("hotspot.hotspot_title") }}</div>
|
|
<div class="color-picker-wrap">
|
|
<div class="color-picker-wrap">
|
|
@@ -495,10 +506,48 @@ export default {
|
|
border: 1px solid #404040;
|
|
border: 1px solid #404040;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // > .title-input-wrapper {
|
|
|
|
+ // position: relative;
|
|
|
|
+ // border: 1px solid rgba(151, 151, 151, 0.2);
|
|
|
|
+ // padding: 5px 0;
|
|
|
|
+ // background: #1a1b1d;
|
|
|
|
+ // border-radius: 2px;
|
|
|
|
+ // height: 36px;
|
|
|
|
+ // width: 100%;
|
|
|
|
+ // margin-top: 18px;
|
|
|
|
+ // &:focus-within {
|
|
|
|
+ // border-color: #0076f6;
|
|
|
|
+ // }
|
|
|
|
+ // > input,
|
|
|
|
+ // textarea {
|
|
|
|
+ // border: none;
|
|
|
|
+ // background: transparent;
|
|
|
|
+ // outline: none;
|
|
|
|
+ // height: 100%;
|
|
|
|
+ // width: calc(100% - 50px);
|
|
|
|
+ // padding: 0;
|
|
|
|
+ // color: #fff;
|
|
|
|
+ // letter-spacing: 1px;
|
|
|
|
+ // font-size: 14px;
|
|
|
|
+ // }
|
|
|
|
+ // &.has-textarea {
|
|
|
|
+ // min-height: 72px;
|
|
|
|
+ // height: auto;
|
|
|
|
+ // position: relative;
|
|
|
|
+ // }
|
|
|
|
+ // > .count {
|
|
|
|
+ // position: absolute;
|
|
|
|
+ // bottom: 10px;
|
|
|
|
+ // // transform: translateY(-50%);
|
|
|
|
+ // right: 10px;
|
|
|
|
+ // font-size: 14px;
|
|
|
|
+ // color: rgba(255, 255, 255, 0.2);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
> .title-input-wrapper {
|
|
> .title-input-wrapper {
|
|
position: relative;
|
|
position: relative;
|
|
border: 1px solid rgba(151, 151, 151, 0.2);
|
|
border: 1px solid rgba(151, 151, 151, 0.2);
|
|
- padding: 5px 0;
|
|
|
|
|
|
+ padding: 0 16px;
|
|
background: #1a1b1d;
|
|
background: #1a1b1d;
|
|
border-radius: 2px;
|
|
border-radius: 2px;
|
|
height: 36px;
|
|
height: 36px;
|
|
@@ -507,8 +556,7 @@ export default {
|
|
&:focus-within {
|
|
&:focus-within {
|
|
border-color: #0076f6;
|
|
border-color: #0076f6;
|
|
}
|
|
}
|
|
- > input,
|
|
|
|
- textarea {
|
|
|
|
|
|
+ > input {
|
|
border: none;
|
|
border: none;
|
|
background: transparent;
|
|
background: transparent;
|
|
outline: none;
|
|
outline: none;
|
|
@@ -519,21 +567,15 @@ export default {
|
|
letter-spacing: 1px;
|
|
letter-spacing: 1px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
- &.has-textarea {
|
|
|
|
- min-height: 72px;
|
|
|
|
- height: auto;
|
|
|
|
- position: relative;
|
|
|
|
- }
|
|
|
|
> .count {
|
|
> .count {
|
|
position: absolute;
|
|
position: absolute;
|
|
- bottom: 10px;
|
|
|
|
- // transform: translateY(-50%);
|
|
|
|
- right: 10px;
|
|
|
|
|
|
+ top: 50%;
|
|
|
|
+ transform: translateY(-50%);
|
|
|
|
+ right: 16px;
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
color: rgba(255, 255, 255, 0.2);
|
|
color: rgba(255, 255, 255, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
> .color-picker-wrap {
|
|
> .color-picker-wrap {
|
|
margin-top: 16px;
|
|
margin-top: 16px;
|
|
height: 36px;
|
|
height: 36px;
|
|
@@ -603,11 +645,11 @@ export default {
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
<style lang="less">
|
|
<style lang="less">
|
|
-.title-input-wrapper {
|
|
|
|
- .el-textarea__inner {
|
|
|
|
- background-color: transparent;
|
|
|
|
- color: white;
|
|
|
|
- border: none;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+// .title-input-wrapper {
|
|
|
|
+// .el-textarea__inner {
|
|
|
|
+// background-color: transparent;
|
|
|
|
+// color: white;
|
|
|
|
+// border: none;
|
|
|
|
+// }
|
|
|
|
+// }
|
|
</style>
|
|
</style>
|