0099
This commit is contained in:
@@ -100,11 +100,7 @@ const openContextMenu = async (ev, record) => {
|
||||
currentRow.value = record
|
||||
await nextTick(() => {
|
||||
const domHeight = document.querySelector(".ma-crud-contextmenu").offsetHeight
|
||||
if (document.body.offsetHeight - ev.pageY < domHeight) {
|
||||
top.value = ev.clientY - domHeight
|
||||
} else {
|
||||
top.value = ev.clientY
|
||||
}
|
||||
top.value = ev.clientY - domHeight
|
||||
left.value = ev.clientX
|
||||
})
|
||||
}
|
||||
@@ -145,7 +141,7 @@ defineExpose({
|
||||
background: var(--color-bg-2);
|
||||
border: 1px solid var(--color-border-2);
|
||||
padding: 7px 0;
|
||||
border-radius: 1px;
|
||||
border-radius: 4px;
|
||||
li .context-menu-item {
|
||||
cursor: pointer;
|
||||
padding: 5px 10px;
|
||||
|
||||
@@ -36,6 +36,7 @@ import "tinymce/plugins/searchreplace" // 查找替换
|
||||
import "tinymce/plugins/table" // 表格
|
||||
// import "tinymce/plugins/visualblocks" //显示元素范围
|
||||
import "tinymce/plugins/visualchars" // 显示不可见字符
|
||||
import "tinymce/plugins/autoresize" // 自动调整高度
|
||||
import { storeToRefs } from "pinia"
|
||||
// import "tinymce/plugins/wordcount" // 字数统计
|
||||
|
||||
@@ -50,7 +51,7 @@ const props = defineProps({
|
||||
},
|
||||
plugins: {
|
||||
type: [String, Array],
|
||||
default: "searchreplace visualchars code table nonbreaking lists autosave"
|
||||
default: "searchreplace visualchars code table nonbreaking lists autosave autoresize"
|
||||
},
|
||||
toolbar: {
|
||||
type: [String, Array],
|
||||
@@ -142,6 +143,11 @@ const initConfig = reactive({
|
||||
toolbar: props.toolbar,
|
||||
skeletonScreen: true,
|
||||
branding: false,
|
||||
// autoresize插件和resize配置
|
||||
resize: true,
|
||||
min_height: 100,
|
||||
max_height: 600,
|
||||
autoresize_bottom_margin: 10,
|
||||
content_css:
|
||||
theme.value === "dark"
|
||||
? "/tinymce/skins/content/dark/content.css"
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
<!--
|
||||
- MineAdmin is committed to providing solutions for quickly building web applications
|
||||
- Please view the LICENSE file that was distributed with this source code,
|
||||
- For the full copyright and license information.
|
||||
- Thank you very much for using MineAdmin.
|
||||
-
|
||||
- @Author X.Mo<root@imoi.cn>
|
||||
- @Link https://gitee.com/xmo/mineadmin-vue
|
||||
-->
|
||||
<template>
|
||||
<ma-form-item
|
||||
v-if="typeof props.component.display == 'undefined' || props.component.display === true"
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
<!--
|
||||
- MineAdmin is committed to providing solutions for quickly building web applications
|
||||
- Please view the LICENSE file that was distributed with this source code,
|
||||
- For the full copyright and license information.
|
||||
- Thank you very much for using MineAdmin.
|
||||
-
|
||||
- @Author X.Mo<root@imoi.cn>
|
||||
- @Link https://gitee.com/xmo/mineadmin-vue
|
||||
-->
|
||||
<template>
|
||||
<ma-form-item
|
||||
v-if="typeof props.component.display == 'undefined' || props.component.display === true"
|
||||
|
||||
Reference in New Issue
Block a user