|
@@ -16,6 +16,47 @@ Ext.define('uas.view.main.Main', {
|
|
|
],
|
|
|
|
|
|
items: [{
|
|
|
+ region: 'north',
|
|
|
+ xtype: 'toolbar',
|
|
|
+ dock: 'top',
|
|
|
+ height:48,
|
|
|
+ items:[{
|
|
|
+ xtype:'displayfield',
|
|
|
+ value:'<h2 style="margin-top: 7px;">UAS2.0组件库</h2>',
|
|
|
+ },'->',{
|
|
|
+ xtype:'combo',
|
|
|
+ width: 220,
|
|
|
+ labelWidth:80,
|
|
|
+ editable: false,
|
|
|
+ fieldLabel:'当前主题',
|
|
|
+ store: Ext.create('Ext.data.Store', {
|
|
|
+ fields: ['display', 'value'],
|
|
|
+ data : [
|
|
|
+ {"display":"时尚蓝", "value": 'triton'},
|
|
|
+ {"display":"时尚灰", "value": 'crisp'},
|
|
|
+ {"display":"商务蓝", "value": 'neptune'},
|
|
|
+ {"display":"深邃黑", "value": 'aria'},
|
|
|
+ {"display":"经典灰", "value": 'gray'},
|
|
|
+ {"display":"经典蓝", "value": 'classic'}
|
|
|
+ ]
|
|
|
+ }),
|
|
|
+ cls:'x-desktop-combo',
|
|
|
+ triggerAction: 'all',
|
|
|
+ forceSelection: true,
|
|
|
+ queryMode: 'local',
|
|
|
+ displayField: 'display',
|
|
|
+ valueField: 'value',
|
|
|
+ listeners: {
|
|
|
+ select: function(combo, records, obj){
|
|
|
+ setCookie('theme',combo.value,0);
|
|
|
+ window.location.reload();
|
|
|
+ },
|
|
|
+ beforerender:function(c){
|
|
|
+ c.setValue(getCookie('theme'))
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }]
|
|
|
+ },{
|
|
|
region: 'west',
|
|
|
collapsible: true,
|
|
|
title: '目录',
|