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/uiList.js | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 45 insertions(+), 0 deletions(-)
diff --git a/vf205_access/dxmodules/uiList.js b/vf205_access/dxmodules/uiList.js
new file mode 100644
index 0000000..de1316a
--- /dev/null
+++ b/vf205_access/dxmodules/uiList.js
@@ -0,0 +1,45 @@
+//build锛�20240329
+//list鎺т欢
+import utils from "./uiUtils.js"
+import base from "./uiBase.js"
+let list = {}
+
+list.build = function (id, parent) {
+ let temp = utils.validateBuild(list.all, id, parent, 'list')
+ let my = {type: 'list'}
+ my.obj = new utils.GG.NativeList({ uid: id }, temp)
+ my.id = id
+ /**
+ * 娣诲姞鍗曚釜鏂囨湰椤�
+ * @param {string} text 椤圭殑鏂囨湰鍐呭
+ * @returns 椤硅嚜韬殑base瀵硅薄
+ */
+ my.addText = function (text) {
+ let res = {}
+ res.obj = this.obj.lvListAddText(text)
+ return Object.assign(res, base)
+ }
+ /**
+ * 娣诲姞鍗曚釜鎸夐挳椤�
+ * @param {string} src 椤瑰墠闈㈢殑鍥炬爣璺緞
+ * @param {string} text 椤圭殑鏂囨湰鍐呭
+ * @returns 椤硅嚜韬殑base瀵硅薄
+ */
+ my.addBtn = function (src, text) {
+ let res = {}
+ res.obj = this.obj.lvListAddBtn(src, text)
+ return Object.assign(res, base)
+ }
+ /**
+ * 鑾峰彇鎸夐挳椤圭殑鏂囨湰鍐呭
+ * @param {string} btn 鎸夐挳椤�
+ * @returns 鎸夐挳椤圭殑鏂囨湰鍐呭
+ */
+ my.getBtnText = function (btn) {
+ return this.obj.lvListGetBtnText(btn.obj)
+ }
+ let comp = Object.assign(my, base);
+ utils.setParent(this.all, comp, parent)
+ return comp;
+}
+export default list;
\ No newline at end of file
--
Gitblit v1.9.3