Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
LiHang941 authored Feb 18, 2024
1 parent cb72cab commit b76c6fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/components/MenuCommands/AddButtonCommandButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@
:readonly="isCodeViewMode"
:command="openAddLinkDialog"
:enable-tooltip="enableTooltip"
:tooltip="'添加 按钮'"
:tooltip="'add a button.'"
:icon="'btn'"
/>

<el-dialog
v-model="addLinkDialogVisible"
:title="'添加按钮'"
:title="'Add Button.'"
:append-to-body="true"
width="400px"
custom-class="el-tiptap-edit-link-dialog"
>
<el-form :model="btnAttrs" label-position="right" size="small">
<el-form-item :label="'跳转链接'" prop="href">
<el-form-item :label="'Jump link'" prop="href">
<el-input v-model="btnAttrs.href" autocomplete="off" />
</el-form-item>
<el-form-item prop="openInNewTab">
<el-checkbox v-model="btnAttrs.openInNewTab">
{{ "是否新页面打开" }}
{{ "Open in a new page?" }}
</el-checkbox>
</el-form-item>
</el-form>
Expand Down
8 changes: 4 additions & 4 deletions src/components/MenuCommands/IframeCommandButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
<div class="el-tiptap-popper__menu">
<div class="el-tiptap-popper__menu__item" @click="openInsertVideoControl">
<span>{{
"插入一个视频链接"
"Insert a video link"
}}</span>
</div>
<div
class="el-tiptap-popper__menu__item"
@click="imageUploadDialogVisible = true"
>
<span>{{
"上传一个视频文件"
"Upload a video file"
}}</span>
</div>
</div>
Expand All @@ -36,7 +36,7 @@

<el-dialog
v-model="imageUploadDialogVisible"
:title="'上传视频 支持mp4,m4v,webm,ogv,wav,gltf'"
:title="'Upload video Supported formats: mp4, m4v, webm, ogv, wav, gltf'"
:append-to-body="true"
>
<el-upload
Expand All @@ -51,7 +51,7 @@
<i class="fa fa-upload" />
</div>
<div class="el-tiptap-upload__text">
{{ "选择一个视频文件或将其拖到此处" }}
{{ "Select a video file or drag it here" }}
</div>
</el-upload>
</el-dialog>
Expand Down

0 comments on commit b76c6fa

Please sign in to comment.