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/uiImage.js | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/vf205_access/dxmodules/uiImage.js b/vf205_access/dxmodules/uiImage.js
new file mode 100644
index 0000000..3111257
--- /dev/null
+++ b/vf205_access/dxmodules/uiImage.js
@@ -0,0 +1,27 @@
+//build锛�20240311
+//image鎺т欢
+import utils from "./uiUtils.js"
+import base from "./uiBase.js"
+let image = {}
+
+image.build = function (id, parent) {
+ let temp = utils.validateBuild(image.all, id, parent, 'image')
+ let my = {type: 'image'}
+ my.obj = new utils.GG.NativeImage({ uid: id }, temp)
+ my.id = id
+ /**
+ * 璁剧疆image鐨勬潵婧愭垨鑾峰彇鏉ユ簮
+ * @param {string} path 闈炲繀濉紝鍥剧墖鏂囦欢鐨勭粷瀵硅矾寰勶紝濡傛灉娌℃湁濉垨鑰呬笉鏄痵tring绫诲瀷灏辨槸鑾峰彇
+ */
+ my.source = function (path) {
+ if (utils.validateString(path)) {
+ this.obj.lvImgSetSrc(path)
+ } else {
+ return this.obj.lvImgGetSrc()
+ }
+ }
+ let comp = Object.assign(my, base);
+ utils.setParent(this.all, comp, parent)
+ return comp;
+}
+export default image;
\ No newline at end of file
--
Gitblit v1.9.3