From 89f7d38a77dff8082e60b4debf20f946a89e833e Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Thu, 8 Apr 2021 11:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/iscs_new/core/form/form2Base.js | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/iscs_new/core/form/form2Base.js b/src/iscs_new/core/form/form2Base.js index 3405b3bd3..dbe656677 100644 --- a/src/iscs_new/core/form/form2Base.js +++ b/src/iscs_new/core/form/form2Base.js @@ -38,10 +38,11 @@ export default [ value: false, description: '图形是否不可见,选中时不绘制图形。' }, - { - prop: 'position', + { + prop: 'position', label: '位置', - type: types.Point, + type: types.NumberArray, + length:2, precision: 0, min:0, max:20000, @@ -49,13 +50,14 @@ export default [ rules:[ { required: true, message:'请输入位置', trigger: 'blur' } ], - value: 0, + value: [0, 0], description: '控制图形的位置。' - }, - { - prop: 'scale', + }, + { + prop: 'scale', label: '缩放', - type: types.Point, + type: types.NumberArray, + length:2, precision: 0, min:0.1, max:1, @@ -63,7 +65,7 @@ export default [ rules:[ { required: true, message:'请输入缩放', trigger: 'blur' } ], - value: 1, + value: [1, 1], description: '控制图形的缩放。' - } + } ];