导入流程相关组件

This commit is contained in:
xiangheng
2023-12-11 14:02:03 +08:00
parent d00e477094
commit 2474fe0cf9
94 changed files with 4409 additions and 50 deletions

View File

@@ -0,0 +1,28 @@
import { RectResize } from '@logicflow/extension'
import { getShapeStyleFuction, getTextStyleFunction } from '../getShapeStyleUtil'
// 矩形
class RectNewModel extends RectResize.model {
setToBottom () {
this.zIndex = 0
}
getNodeStyle () {
const style = super.getNodeStyle()
const properties = this.getProperties()
return getShapeStyleFuction(style, properties)
}
getTextStyle () {
const style = super.getTextStyle()
const properties = this.getProperties()
return getTextStyleFunction(style, properties)
}
}
export default {
type: 'pro-rect',
view: RectResize.view,
model: RectNewModel
}