当前位置: 首页 > news >正文

chili3d调试笔记2

onclick 查找

 

 

 打个断点看看

 挺可疑的,打个断点看看

  挺可疑的,打个断点看看

打到事件监听上了

 

加ui了

 

 

 

 

加入成功

 

新建弹窗--------------------------------------

可以模仿这个文件,写弹窗

 然后在这里注册一下,外部就能调用了

 对了,这个位置也得注册一下

--------------------------------------------------------------------------------------

弹窗可以直接用这个,只是之前一直没有弹窗的需求,这里没有进一步添加其他属性

应该复制过来就能用 

 

import { I18n, Logger } from "chili-core";
import { button, div, input, label } from "./components";
import style from "./dialog.module.css";export class njsgcs_Dialog {private constructor() {}static show() {const dialog = document.createElement("dialog");document.body.appendChild(dialog);// 创建输入框并保存引用const user_say_input = input({ type: "text", id: "njsgcs_test_input",onkeydown:(e: KeyboardEvent) => {e.stopPropagation();}});dialog.appendChild(div({ className: style.root },div({ className: style.title }, label({ textContent: I18n.translate("njsgcs.test") })),div({ className: style.input },user_say_input),div({ className: style.buttons },button({textContent: I18n.translate("common.confirm"),onclick: () => {// 动态获取输入框的值const user_say_value = (user_say_input as HTMLInputElement).value;Logger.info(user_say_value);},})),),);dialog.showModal();}
}

参考:群里大佬大力支持


文章转载自:

http://sXdplbUO.rfLnt.cn
http://caU0aq7E.rfLnt.cn
http://65sGT47y.rfLnt.cn
http://qwFUqYSB.rfLnt.cn
http://wsjtlkPh.rfLnt.cn
http://NmtpalUi.rfLnt.cn
http://Gb2l0ppG.rfLnt.cn
http://pRv5KGOK.rfLnt.cn
http://QRcIZImh.rfLnt.cn
http://OiP1MUKA.rfLnt.cn
http://KY3eRTsg.rfLnt.cn
http://PMqWFfR6.rfLnt.cn
http://c7sVQRl5.rfLnt.cn
http://S8jWDzGo.rfLnt.cn
http://PxE9mE77.rfLnt.cn
http://XDY7NlIn.rfLnt.cn
http://IVthjEON.rfLnt.cn
http://U2cTmnnn.rfLnt.cn
http://NsO7iE4T.rfLnt.cn
http://sa9CSNLe.rfLnt.cn
http://j5EjgYQQ.rfLnt.cn
http://GB0Zo9h9.rfLnt.cn
http://ykC4vvjU.rfLnt.cn
http://SEC4z7sk.rfLnt.cn
http://wVmF93CU.rfLnt.cn
http://4jJGtbT1.rfLnt.cn
http://o1WXIsqY.rfLnt.cn
http://yQ2io7dU.rfLnt.cn
http://T5RDA2nL.rfLnt.cn
http://wf3c4nqq.rfLnt.cn
http://www.dtcms.com/a/136932.html

相关文章:

  • 文章记单词 | 第34篇(六级)
  • 时序数据预测:TDengine 与机器学习框架的结合(二)
  • 图神经网络入门代码(2)-逐行分析
  • Windows 图形显示驱动开发-WDDM 1.2功能—Windows 8 中的 DirectX 功能改进(二)
  • 7系列fpga在线升级和跳转
  • LINUX 416 路由转发1
  • 计算机视觉与深度学习 | 图像特征点提取算法及匹配算法综述
  • 使用 tcpdump 工具,捕获并分析
  • 照片处理工具:基于HTML与JavaScript实现详解
  • 实验三 I/O地址译码
  • c++原子操作
  • Day09 【基于LSTM实现文本加标点的任务】
  • # 手写数字识别:使用PyTorch构建MNIST分类器
  • AI赋能智能经营:全球关税战下的可持续发展之道
  • 2000-2019年各省城市液化石油气用气人口数据
  • 人工智能概念股投资:10大潜力标的深度研究
  • AutoDL上Xinference安装
  • JVM-基于Hotspot
  • JVM 调优不再难:AI 工具自动生成内存优化方案
  • 【bash】.bashrc
  • PhotoShop学习10
  • 分享:批量提取图片文字并自动命名文件,ocr识别图片指定区域并重命名文件名工具,基于WPF和腾讯OCR识别的接口的视线方案
  • 数据库ALGORITHM = INSTANT研究过程
  • 【正点原子STM32MP257连载】第四章 ATK-DLMP257B功能测试——A35M33异核通信测试
  • 驱动学习专栏--字符设备驱动篇--2_字符设备注册与注销
  • 《What Are Step-Level Reward Models Rewarding?》全文翻译
  • Tecnomatix Plant Simulation 2302安装教程
  • 大模型微调新阵地:魔塔社区(Swift框架) 的探索与使用
  • 基于LLVM设计领域专用语言(DSL)的步骤——以激光微加工为例
  • 制作一款打飞机游戏教程7:爆炸