forked from fanruan/fineui
Browse Source
* commit '2154234a0825ebc15604b0f83a8464de8e01d853': (97 commits) auto upgrade version to 2.0.20221027160615 KERNEL-13158: 包裹BI.Widget.pushContext() KERNEL-13158: 包裹BI.Widget.pushContext() auto upgrade version to 2.0.20221027152436 无jira fix: less中 .hover-visible mixin也处理一下combo auto upgrade version to 2.0.20221027142438 无JIRA refactor(日期控件): 修改ts声明 auto upgrade version to 2.0.20221027121605 auto upgrade version to 2.0.20221027095512 KERNEL-13232 feat: 复选树的连接线之类的不再用图片了 无JIRA refactor(widget/year): ts声明补充 BI-116019 fix: 【6.0.4冒烟】区间滑块不绑定字段,鼠标悬浮组件应该会有提示 auto upgrade version to 2.0.20221026151459 KERNEL-13193 style: 调一下checobox的样式 KERNEL-13193 style: 调一下checobox的样式 KERNEL-13158: 优化button KERNEL-13193 style: 调一下checobox的样式 auto upgrade version to 2.0.20221025175433 无jira fix: 修复BI.isWidthOrHeight 无jira fix: 修复BI.isWidthOrHeight ...es6
windy-许昊
2 years ago
137 changed files with 1242 additions and 1088 deletions
@ -0,0 +1,99 @@ |
|||||||
|
<html> |
||||||
|
<head> |
||||||
|
<meta charset="utf-8"> |
||||||
|
<title></title> |
||||||
|
<!-- <link rel="stylesheet" type="text/css" href="../dist/2.0/fineui.min.css"/> |
||||||
|
<script src="../dist/2.0/fineui.js"></script> --> |
||||||
|
<link rel="stylesheet" type="text/css" href="http://fanruan.design/fineui/2.0/fineui.min.css"/> |
||||||
|
<!-- <script src="http://fanruan.design/fineui/2.0/fineui.min.js"></script>--> |
||||||
|
<script src="http://localhost:9001/fineui.js"></script> |
||||||
|
</head> |
||||||
|
<body> |
||||||
|
<div id="wrapper"></div> |
||||||
|
<script> |
||||||
|
var Model = BI.inherit(BI.Model, { |
||||||
|
state: function () { |
||||||
|
return { |
||||||
|
theme: "light" |
||||||
|
}; |
||||||
|
}, |
||||||
|
childContext: ["theme"], |
||||||
|
|
||||||
|
actions: { |
||||||
|
toggle: function () { |
||||||
|
this.model.theme = this.model.theme === "light" ? "dark" : "light"; |
||||||
|
} |
||||||
|
} |
||||||
|
}); |
||||||
|
BI.model("demo.model", Model); |
||||||
|
|
||||||
|
var Child = BI.inherit(BI.Widget, { |
||||||
|
render: function () { |
||||||
|
var label; |
||||||
|
return { |
||||||
|
type: "bi.context", |
||||||
|
context: "theme", |
||||||
|
watch: function (newValue, oldValue) { |
||||||
|
label.setText(newValue); |
||||||
|
}, |
||||||
|
items: [(context) => { |
||||||
|
return { |
||||||
|
type: "bi.label", |
||||||
|
height: 30, |
||||||
|
ref: function (_ref) { |
||||||
|
label = _ref; |
||||||
|
}, |
||||||
|
text: context.model.theme |
||||||
|
} |
||||||
|
}] |
||||||
|
|
||||||
|
}; |
||||||
|
} |
||||||
|
}); |
||||||
|
BI.shortcut("demo.child", Child); |
||||||
|
|
||||||
|
var Widget = BI.inherit(BI.Widget, { |
||||||
|
props: { |
||||||
|
baseCls: "my-parent" |
||||||
|
}, |
||||||
|
_store: function () { |
||||||
|
return BI.Models.getModel("demo.model"); |
||||||
|
}, |
||||||
|
setup: function () { |
||||||
|
var child; |
||||||
|
var store = BI.useStore(); |
||||||
|
return function () { |
||||||
|
return { |
||||||
|
type: "bi.vertical", |
||||||
|
vgap: 20, |
||||||
|
items: [{ |
||||||
|
type: "demo.child", |
||||||
|
ref: function (_ref) { |
||||||
|
child = _ref; |
||||||
|
} |
||||||
|
}, { |
||||||
|
type: "bi.button", |
||||||
|
text: "改变主题", |
||||||
|
handler: function () { |
||||||
|
store.toggle(); |
||||||
|
} |
||||||
|
}] |
||||||
|
}; |
||||||
|
}; |
||||||
|
} |
||||||
|
}); |
||||||
|
BI.shortcut("demo.parent", Widget); |
||||||
|
BI.createWidget({ |
||||||
|
type: "bi.absolute", |
||||||
|
items: [{ |
||||||
|
el: { |
||||||
|
type: "demo.parent" |
||||||
|
}, |
||||||
|
top: 100, |
||||||
|
left: 100 |
||||||
|
}], |
||||||
|
element: "#wrapper" |
||||||
|
}); |
||||||
|
</script> |
||||||
|
</body> |
||||||
|
</html> |
@ -0,0 +1,90 @@ |
|||||||
|
@import "../../index.less"; |
||||||
|
|
||||||
|
.tree-first-solid-line-conn-background { |
||||||
|
&:before { |
||||||
|
position: absolute; |
||||||
|
bottom: 0; |
||||||
|
left: -1px; |
||||||
|
width: 50%; |
||||||
|
height: 50%; |
||||||
|
border-right: 1px solid @border-color-dark-gray-line; |
||||||
|
content: ''; |
||||||
|
} |
||||||
|
|
||||||
|
&:after { |
||||||
|
position: absolute; |
||||||
|
top: 0; |
||||||
|
right: 0; |
||||||
|
height: 50%; |
||||||
|
width: 50%; |
||||||
|
border-bottom: 1px solid @border-color-dark-gray-line; |
||||||
|
content: ''; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
|
||||||
|
.tree-mid-solid-line-conn-background { |
||||||
|
&:before { |
||||||
|
position: absolute; |
||||||
|
top: 0; |
||||||
|
left: -1px; |
||||||
|
width: 50%; |
||||||
|
height: 100%; |
||||||
|
border-right: 1px solid @border-color-dark-gray-line; |
||||||
|
content: ''; |
||||||
|
} |
||||||
|
|
||||||
|
&:after { |
||||||
|
position: absolute; |
||||||
|
top: 0; |
||||||
|
right: 0; |
||||||
|
height: 50%; |
||||||
|
width: 50%; |
||||||
|
border-bottom: 1px solid @border-color-dark-gray-line; |
||||||
|
content: ''; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.tree-last-solid-line-conn-background { |
||||||
|
&:before { |
||||||
|
position: absolute; |
||||||
|
top: 0; |
||||||
|
left: -1px; |
||||||
|
width: 50%; |
||||||
|
height: 50%; |
||||||
|
border-right: 1px solid @border-color-dark-gray-line; |
||||||
|
content: ''; |
||||||
|
} |
||||||
|
|
||||||
|
&:after { |
||||||
|
position: absolute; |
||||||
|
top: 0; |
||||||
|
right: 1px; |
||||||
|
height: 50%; |
||||||
|
width: 50%; |
||||||
|
border-bottom: 1px solid @border-color-dark-gray-line; |
||||||
|
content: ''; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.bi-theme-dark { |
||||||
|
.tree-first-solid-line-conn-background, .tree-mid-solid-line-conn-background { |
||||||
|
&:before { |
||||||
|
border-right: 1px solid @border-color-dark-gray-line-theme-dark; |
||||||
|
} |
||||||
|
|
||||||
|
&:after { |
||||||
|
border-bottom: 1px solid @border-color-dark-gray-line-theme-dark; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
.tree-last-solid-line-conn-background { |
||||||
|
&:before { |
||||||
|
border-right: 1px solid @border-color-dark-gray-line-theme-dark; |
||||||
|
} |
||||||
|
|
||||||
|
&:after { |
||||||
|
border-bottom: 1px solid @border-color-dark-gray-line-theme-dark; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue