mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-19 15:29:51 +02:00
style improvement on Label, FileView, GridView, system menu and app Panel
This commit is contained in:
@ -468,7 +468,8 @@ namespace OS {
|
||||
v.text = v.text.substring(0, 9) + "...";
|
||||
}*/
|
||||
v.iconclass = v.iconclass ? v.iconclass : v.type;
|
||||
v.icon = v.icon;
|
||||
if(v.icon)
|
||||
v.iconclass = undefined;
|
||||
items.push(v);
|
||||
});
|
||||
(this.refs.listview as ListViewTag).data = items;
|
||||
@ -489,7 +490,10 @@ namespace OS {
|
||||
}
|
||||
if(!v.text)
|
||||
v.text = v.filename;
|
||||
|
||||
v.iconclass = v.iconclass ? v.iconclass : v.type;
|
||||
if(v.icon)
|
||||
v.iconclass = undefined;
|
||||
const row = [
|
||||
v,
|
||||
{
|
||||
@ -550,7 +554,8 @@ namespace OS {
|
||||
v.open = false;
|
||||
}
|
||||
v.iconclass = v.iconclass ? v.iconclass : v.type;
|
||||
v.icon = v.icon;
|
||||
if(v.icon)
|
||||
v.iconclass = undefined;
|
||||
return nodes.push(v);
|
||||
});
|
||||
return nodes;
|
||||
|
@ -346,6 +346,9 @@ namespace OS {
|
||||
* @memberof SimpleGridCellTag
|
||||
*/
|
||||
protected ondatachange(): void {
|
||||
const label = (this.refs.cell as LabelTag);
|
||||
label.icon = undefined;
|
||||
label.iconclass = undefined;
|
||||
(this.refs.cell as LabelTag).set(this.data);
|
||||
}
|
||||
|
||||
|
@ -386,14 +386,14 @@ namespace OS {
|
||||
* @memberof SimpleMenuEntryTag
|
||||
*/
|
||||
set icon(v: string) {
|
||||
$(this.refs.container).removeClass("fix_padding");
|
||||
//$(this.refs.container).removeClass("fix_padding");
|
||||
if (!v) {
|
||||
return;
|
||||
}
|
||||
//$(this).attr("icon", v);
|
||||
const label = this.refs.label as LabelTag;
|
||||
label.icon = v;
|
||||
$(this.refs.container).addClass("fix_padding");
|
||||
//$(this.refs.container).addClass("fix_padding");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user