|
@@ -1,5 +1,10 @@
|
|
|
<template>
|
|
|
<div class="rich-text-editor">
|
|
|
+ <div class="editor-title">
|
|
|
+ <div class="title">
|
|
|
+ <span> {{ $i18n.t("hotspot.edit_article_title") }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<Toolbar
|
|
|
style="border-bottom: 1px solid #ccc"
|
|
|
:editor="editor"
|
|
@@ -14,7 +19,7 @@
|
|
|
@onCreated="onEditorCreated"
|
|
|
/>
|
|
|
<div class="bottom-bar">
|
|
|
- <button class="ui-button" @click="onClickCancel">
|
|
|
+ <button class="ui-button deepcancel" @click="onClickCancel">
|
|
|
{{ $i18n.t("common.cancel") }}
|
|
|
</button>
|
|
|
<button class="ui-button submit" @click="onClickOk">
|
|
@@ -106,7 +111,6 @@ export default Vue.extend({
|
|
|
if (lang === "zh") {
|
|
|
i18nChangeLanguage("zh-CN");
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
onClickOk() {
|
|
|
this.$emit("ok", this.html);
|
|
@@ -148,17 +152,29 @@ export default Vue.extend({
|
|
|
<style lang="less" scoped>
|
|
|
.rich-text-editor {
|
|
|
// border: 1px solid #ccc;
|
|
|
+ .editor-title {
|
|
|
+ height: 64px;
|
|
|
+ .title {
|
|
|
+ font-size: 18px;
|
|
|
+ color: rgba(255, 255, 255, 0.6);
|
|
|
+ line-height: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
border-radius: 4px;
|
|
|
overflow: hidden;
|
|
|
+ padding: 26px;
|
|
|
+ background-color: rgba(26, 27, 29, 1);
|
|
|
> .bottom-bar {
|
|
|
- padding: 10px;
|
|
|
- background-color: rgba(0, 0, 0, 0.8);
|
|
|
- border-top: 1px solid #ccc;
|
|
|
+ padding: 10px 26px 0 26px;
|
|
|
+ margin: 40px -26px 0 -26px;
|
|
|
+ background-color: rgba(26, 27, 29, 1);
|
|
|
+ // border-top: 1px solid #ccc;
|
|
|
display: flex;
|
|
|
justify-content: flex-end;
|
|
|
align-items: center;
|
|
|
> button {
|
|
|
margin-left: 10px;
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|