forked from fanruan/fineui
Browse Source
* commit '061dd8f4b1964591d05d9af1373a9c203b848860': (40 commits) 无JIRA .bi-theme-dark 同级类名控制 无JIRA 删掉 BI-139672 fix: 修改高度后文本未上下居中 KERNEL-16950 fix: 当listview在父组件tab里,且隐藏的状态,父组件watch刷新listview是否执行?如果应该要执行,这里得去掉,如果不要执行,父组件中写法就得手动setselect listview的tab后主动再刷新下;这里listview隐藏状态下选择执行 无jia任务 多提交 无jia任务 回退,暂时去不掉 无jia任务 这么改看下问题 KERNEL-16950 fix: options中对象不会被释放 无jia任务 ref销毁 无jia任务 先回退 BI-133648 feat:日期过滤控件加预览模式 无JIRA 组件销毁的时候ref处理 KERNEL-16950 fix: 内存泄露问题 BI-133648 feat:日期过滤控件加预览模式 BI-133648 fix:日期过滤控件加预览模式 BI-139985 fix: bi.down_list_popup的bi.down_list_group里只有一个元素的时候没有选中效果 BI-139874 fix: 【6016】数据集编辑过滤下拉框,搜索内容带了个回车,前端会一直显示加载中 无JIRA任务 更新图标 BI-138908 fix:nextTick 无jira chore: console.log ...research/test
superman
1 year ago
35 changed files with 525 additions and 260 deletions
@ -1,76 +1,78 @@
|
||||
import { registFunction } from "./plugins"; |
||||
import { isWidget, isString } from "../2.base"; |
||||
|
||||
export function Element(widget, attribs) { |
||||
this.l = this.r = this.t = this.b = 0; // 边框
|
||||
this.marginLeft = this.marginRight = this.marginTop = this.marginBottom = 0; // 间距
|
||||
this.position = {}; |
||||
this.classMap = {}; |
||||
this.classList = []; |
||||
this.children = []; |
||||
this.attribs = attribs || {}; |
||||
this.styles = {}; |
||||
// 兼容处理
|
||||
this["0"] = this; |
||||
this.style = {}; |
||||
if (!widget) { |
||||
this.nodeName = "body"; |
||||
this.position.x = 0; |
||||
this.position.y = 0; |
||||
this.attribs.id = "body"; |
||||
} else if (isWidget(widget)) { |
||||
this.widget = widget; |
||||
this.nodeName = widget.options.tagName; |
||||
this.textBaseLine = widget.options.textBaseLine; |
||||
} else if (isString(widget)) { |
||||
this.nodeName = widget; |
||||
export let Element = class { |
||||
constructor(widget, attribs) { |
||||
this.l = this.r = this.t = this.b = 0; // 边框
|
||||
this.marginLeft = this.marginRight = this.marginTop = this.marginBottom = 0; // 间距
|
||||
this.position = {}; |
||||
this.classMap = {}; |
||||
this.classList = []; |
||||
this.children = []; |
||||
this.attribs = attribs || {}; |
||||
this.styles = {}; |
||||
// 兼容处理
|
||||
this["0"] = this; |
||||
this.style = {}; |
||||
if (!widget) { |
||||
this.nodeName = "body"; |
||||
this.position.x = 0; |
||||
this.position.y = 0; |
||||
this.attribs.id = "body"; |
||||
} else if (isWidget(widget)) { |
||||
this.widget = widget; |
||||
this.nodeName = widget.options.tagName; |
||||
this.textBaseLine = widget.options.textBaseLine; |
||||
} else if (isString(widget)) { |
||||
this.nodeName = widget; |
||||
} |
||||
} |
||||
} |
||||
|
||||
initElement(Element); |
||||
registFunction(Element); |
||||
appendChild(child) { |
||||
child.parent = this; |
||||
if (this.children.push(child) !== 1) { |
||||
const sibling = this.children[this.children.length - 2]; |
||||
sibling.next = child; |
||||
child.prev = sibling; |
||||
child.next = null; |
||||
} |
||||
} |
||||
|
||||
append(child) { |
||||
child.parent = this; |
||||
if (this.children.push(child) !== 1) { |
||||
const sibling = this.children[this.children.length - 2]; |
||||
sibling.next = child; |
||||
child.prev = sibling; |
||||
child.next = null; |
||||
} |
||||
} |
||||
|
||||
function initElement(element) { |
||||
element.prototype = { |
||||
appendChild(child) { |
||||
child.parent = this; |
||||
if (this.children.push(child) !== 1) { |
||||
const sibling = this.children[this.children.length - 2]; |
||||
sibling.next = child; |
||||
child.prev = sibling; |
||||
child.next = null; |
||||
} |
||||
}, |
||||
append(child) { |
||||
child.parent = this; |
||||
if (this.children.push(child) !== 1) { |
||||
const sibling = this.children[this.children.length - 2]; |
||||
sibling.next = child; |
||||
child.prev = sibling; |
||||
child.next = null; |
||||
} |
||||
}, |
||||
getParent() { |
||||
return this.parent; |
||||
}, |
||||
getSiblings() { |
||||
const parent = this.getParent(); |
||||
|
||||
return parent ? parent.getChildren() : [this]; |
||||
}, |
||||
getChildren() { |
||||
return this.children; |
||||
}, |
||||
getParent() { |
||||
return this.parent; |
||||
} |
||||
|
||||
getBounds() { |
||||
return {}; |
||||
}, |
||||
getSiblings() { |
||||
const parent = this.getParent(); |
||||
|
||||
width() { |
||||
return parent ? parent.getChildren() : [this]; |
||||
} |
||||
|
||||
}, |
||||
height() { |
||||
getChildren() { |
||||
return this.children; |
||||
} |
||||
|
||||
getBounds() { |
||||
return {}; |
||||
} |
||||
|
||||
width() {} |
||||
|
||||
height() {} |
||||
} |
||||
|
||||
registFunction(Element); |
||||
|
||||
}, |
||||
}; |
||||
export function setElement(element) { |
||||
Element = element; |
||||
} |
||||
|
@ -1,3 +0,0 @@
|
||||
.bi-interval-slider-label { |
||||
min-height: 50px; |
||||
} |
@ -1,3 +0,0 @@
|
||||
.bi-interval-slider { |
||||
min-height: 50px; |
||||
} |
Loading…
Reference in new issue