mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Revamp document view using new layout
New master page system and UI framework implemented on document view. Sidebar contains ToC and Attachments.
This commit is contained in:
parent
b4b3dbcb4c
commit
7cdf97aa86
27 changed files with 348 additions and 263 deletions
|
@ -16,7 +16,6 @@ export default Component.extend({
|
|||
tagName: 'div',
|
||||
classNames: [],
|
||||
classNameBindings: ['calcClass'],
|
||||
|
||||
where: 'right',
|
||||
calcClass: computed(function() {
|
||||
return `dmz-button-gap-${this.where}`;
|
||||
|
|
|
@ -62,8 +62,8 @@ export default Component.extend({
|
|||
}),
|
||||
|
||||
click(e) {
|
||||
e.preventDefault();
|
||||
if (is.not.undefined(this.onClick)) {
|
||||
e.preventDefault();
|
||||
this.onClick(e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,17 +18,19 @@ export default Component.extend({
|
|||
tagName: 'i',
|
||||
classNames: ['dicon'],
|
||||
classNameBindings: ['calcClass'],
|
||||
|
||||
color: '',
|
||||
icon: '',
|
||||
tooltip: '',
|
||||
selected: false,
|
||||
|
||||
calcClass: computed(function() {
|
||||
calcClass: computed('selected', function() {
|
||||
let c = '';
|
||||
let icon = this.icon;
|
||||
|
||||
if (this.color !== '') c += this.color + ' ';
|
||||
|
||||
if (this.selected === true) c += 'icon-selected' + ' ';
|
||||
|
||||
if (icon !== '') c += icon + ' ';
|
||||
|
||||
return c.trim();
|
||||
|
|
|
@ -18,7 +18,6 @@ export default Component.extend({
|
|||
tagName: 'div',
|
||||
classNames: ['label'],
|
||||
classNameBindings: ['calcClass'],
|
||||
|
||||
color: '',
|
||||
label: '',
|
||||
tooltip: '',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue