From e491cdb48129752324c4e3764f99bd9203c56dec Mon Sep 17 00:00:00 2001
From: lgq <1015864684@qq.com>
Date: 星期二, 31 三月 2026 09:48:44 +0800
Subject: [PATCH] 1.新增VF205门禁机代码
---
vf205_access/dxmodules/uiLine.js | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/vf205_access/dxmodules/uiLine.js b/vf205_access/dxmodules/uiLine.js
new file mode 100644
index 0000000..9639b84
--- /dev/null
+++ b/vf205_access/dxmodules/uiLine.js
@@ -0,0 +1,24 @@
+//build锛�20240311
+//line鎺т欢
+import utils from "./uiUtils.js"
+import base from "./uiBase.js"
+let line = {}
+
+line.build = function (id, parent) {
+ let temp = utils.validateBuild(line.all, id, parent, 'line')
+ let my = {type: 'line'}
+ my.obj = new utils.GG.NativeLine({ uid: id }, temp)
+ my.id = id
+ /**
+ * 璁剧疆line鐨勬墍鏈夌偣鐨勫潗鏍�
+ * @param {Array} points 蹇呭~锛屾墍鏈夌殑鐐圭粍鎴愮殑鏁扮粍锛屾瘮濡俒[x1,y1],[x2,y2]]
+ * @param {number} count 蹇呭~锛岃缁樺埗鐨勭偣鐨勪釜鏁帮紝娉ㄦ剰杩欎釜鍊煎彲浠ュ皬浜巔oints鐨勯暱搴�
+ */
+ my.setPoints = function (points, count) {
+ this.obj.lvLineSetPoints(points, count)
+ }
+ let comp = Object.assign(my, base);
+ utils.setParent(this.all, comp, parent)
+ return comp;
+}
+export default line;
\ No newline at end of file
--
Gitblit v1.9.3