update 0.7.3
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
## changelog
|
## changelog
|
||||||
|
|
||||||
|
|
||||||
|
## 0.7.3
|
||||||
|
|
||||||
|
修复弹窗位置与选中问题。
|
||||||
|
|
||||||
|
|
||||||
## 0.7.2
|
## 0.7.2
|
||||||
|
|
||||||
修复锁定组件影响,锁定中无法拖拽,缩放,旋转。
|
修复锁定组件影响,锁定中无法拖拽,缩放,旋转。
|
||||||
|
@@ -6,6 +6,12 @@ order: 1
|
|||||||
|
|
||||||
## changelog
|
## changelog
|
||||||
|
|
||||||
|
|
||||||
|
## 0.7.3
|
||||||
|
|
||||||
|
修复弹窗位置与选中问题。
|
||||||
|
|
||||||
|
|
||||||
## 0.7.2
|
## 0.7.2
|
||||||
|
|
||||||
修复锁定组件影响,锁定中无法拖拽,缩放,旋转。
|
修复锁定组件影响,锁定中无法拖拽,缩放,旋转。
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.7.2",
|
"version": "0.7.3",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "dist/dooringx-lib.esm.js",
|
"module": "dist/dooringx-lib.esm.js",
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { RefObject } from 'react';
|
import { RefObject } from 'react';
|
||||||
import { blockFocus } from '../focusHandler';
|
import { blockFocus, containerFocusRemove } from '../focusHandler';
|
||||||
import { marklineConfig } from '../markline/marklineConfig';
|
import { marklineConfig } from '../markline/marklineConfig';
|
||||||
import { resizerMouseMove, resizerMouseUp } from '../resizeHandler';
|
import { resizerMouseMove, resizerMouseUp } from '../resizeHandler';
|
||||||
import { selectRangeMouseMove, selectData, selectRangeMouseUp } from '../selectRange';
|
import { selectRangeMouseMove, selectData, selectRangeMouseUp } from '../selectRange';
|
||||||
@@ -11,6 +11,7 @@ import { contextMenuState } from '../contextMenu';
|
|||||||
import { innerDragState } from './state';
|
import { innerDragState } from './state';
|
||||||
import UserConfig from '../../config';
|
import UserConfig from '../../config';
|
||||||
import { rotateMouseMove, rotateMouseUp } from '../rotateHandler';
|
import { rotateMouseMove, rotateMouseUp } from '../rotateHandler';
|
||||||
|
import { specialCoList } from '../utils/special';
|
||||||
|
|
||||||
export const innerDrag = function (
|
export const innerDrag = function (
|
||||||
item: IBlockType,
|
item: IBlockType,
|
||||||
@@ -22,6 +23,11 @@ export const innerDrag = function (
|
|||||||
onMouseDown: (e: React.MouseEvent) => {
|
onMouseDown: (e: React.MouseEvent) => {
|
||||||
//e.preventDefault();
|
//e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
//特殊元素不可操作
|
||||||
|
if (specialCoList.includes(item.name)) {
|
||||||
|
containerFocusRemove(config).onMouseDown(e);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (item.id && innerDragState.lastClick && item.id !== innerDragState.lastClick.id) {
|
if (item.id && innerDragState.lastClick && item.id !== innerDragState.lastClick.id) {
|
||||||
contextMenuState.unmountContextMenu();
|
contextMenuState.unmountContextMenu();
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
* @Author: yehuozhili
|
* @Author: yehuozhili
|
||||||
* @Date: 2021-04-05 14:55:31
|
* @Date: 2021-04-05 14:55:31
|
||||||
* @LastEditors: yehuozhili
|
* @LastEditors: yehuozhili
|
||||||
* @LastEditTime: 2021-07-21 20:55:03
|
* @LastEditTime: 2021-07-27 16:50:09
|
||||||
* @FilePath: \dooringx\packages\dooringx-lib\src\core\storeChanger\index.ts
|
* @FilePath: \dooringx\packages\dooringx-lib\src\core\storeChanger\index.ts
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -34,14 +34,14 @@ function createDefaultModalBlock(): IStoreData['block'] {
|
|||||||
props: {},
|
props: {},
|
||||||
resize: true,
|
resize: true,
|
||||||
focus: false,
|
focus: false,
|
||||||
position: 'fixed',
|
position: 'absolute',
|
||||||
display: 'block',
|
display: 'block',
|
||||||
syncList: [],
|
syncList: [],
|
||||||
canDrag: false,
|
canDrag: false,
|
||||||
eventMap: {},
|
eventMap: {},
|
||||||
functionList: [],
|
functionList: [],
|
||||||
animate: {},
|
animate: {},
|
||||||
fixed: false,
|
fixed: true,
|
||||||
rotate: {
|
rotate: {
|
||||||
value: 0,
|
value: 0,
|
||||||
canRotate: false,
|
canRotate: false,
|
||||||
|
Reference in New Issue
Block a user