mirror of
https://github.com/documize/community.git
synced 2025-07-24 07:39:43 +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
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue