Web/Js/ViewManager.js
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
// 视图
function View(viewName) {
// 定义属性
this.ViewName = ""; // 视图名称
this.Url = ""; // 当前视图的URL
this.Title = ""; // 视图标题
this.AllowClose = true; // 是否允许关闭
this.ViewLabelCss = ""; // 视图标签样式
this.ViewLabelSelectedCss = ""; // 已选中视图标签样式
this.ViewLabelWidth = 0; // 视图标签宽度
this.ViewName = viewName;
}
// 视图管理器
function ViewManager() {
// 定义属性
this.Views = new Array(); // 视图集合
this.CurrentViewName = ""; // 当前视图名称
this.ViewLabelPrefix = ""; // 视图标签前缀
this.ViewFramePrefix = ""; // 视图框架前缀
this.ViewLabelContainer = null; // 视图标签容器 jquery对象
this.ViewFrameContainer = null; // 视图框架容器 jquery对象
this.ViewLabelTemplate = ""; // 视图标签模板,模板标签 id:{$ID},title:{$Title}
this.ViewLabelCss = ""; // 通用视图标签样式
this.ViewLabelSelectedCss = ""; // 通用已选择的视图标签样式
this.ViewLabelTextCss = ""; // 标签文本样式,仅用于动态修改标签文本使用
this.WorkFrameCss = ""; // 工作框架类名,仅用于对工作框架的控制
this.OnViewChanged = null; // 当视图添加/减少时执行此委托
// 获取视图对象
// viewName string 视图名称
// return View 获取到的视图对象,如果不存在则返回null
this.getView = function (viewName) {
var index = this.findView(viewName);
if (index >= 0)
return this.Views[index];
else
return null;
}
// 寻找视图的索引
// viewName string 视图名称
// return int 找到的视图索引,找不到为-1
this.findView = function (viewName) {
var i = 0;
for (i = 0; i < this.Views.length; i++) {
if (this.Views[i].ViewName == viewName) {
return i;
}
}
return -1;
}
// 打开视图
// viewName string 视图名称
// title string 视图标题
// allowClose bool 是否允许关闭
// url string 视图URL
// viewLabelTemplate string 自定义的视图标签模板
后面还有 122 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
