mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-10-08 09:31:26 +08:00
导入流程相关组件
This commit is contained in:
28
admin/src/components/flow/flowEdit/node/basic/RectNode.js
Normal file
28
admin/src/components/flow/flowEdit/node/basic/RectNode.js
Normal 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
|
||||
}
|
Reference in New Issue
Block a user