Browse Source

style: 冒号后面加空格

qufenxi
alan 6 years ago
parent
commit
6f4ac86489
  1. 2
      src/app/app.component.ts
  2. 6
      src/app/app.model.ts
  3. 2
      src/app/link_status/left/left.component.ts
  4. 6
      src/app/link_status/left/left.item.component.ts
  5. 2
      src/app/link_status/left/left.model.ts
  6. 4
      src/app/title/title_item/title_item.component.ts
  7. 10
      src/demo/plugin.redis.preview.ts
  8. 4
      src/demo/plugin.tedis.pool.ts
  9. 30
      src/shared/service/dialog.service.ts

2
src/app/app.component.ts

@ -26,7 +26,7 @@ const Widget = BI.inherit(BI.Widget, {
height: 40, height: 40,
}, },
{ {
type:linkSet, type: linkSet,
}, },
{ {
type: linkStatus, type: linkStatus,

6
src/app/app.model.ts

@ -11,9 +11,9 @@ const Model: ModelType = {
linkList, linkList,
linkSelected: {}, linkSelected: {},
linkUpdate: {}, linkUpdate: {},
moreLinkSelected:'', moreLinkSelected: '',
statusSelected:'', statusSelected: '',
connectionNameErr:'', connectionNameErr: '',
}; };
}, },
computed: { computed: {

2
src/app/link_status/left/left.component.ts

@ -8,7 +8,7 @@ const Widget: WidgetType = {
_store() { _store() {
return BI.Models.getModel(Model); return BI.Models.getModel(Model);
}, },
watch:{ watch: {
linkList(linkList: LinkType[]) { linkList(linkList: LinkType[]) {
const title = linkList.length > 0 ? linkList[0].connectionName : ''; const title = linkList.length > 0 ? linkList[0].connectionName : '';
this.store.setStatusSelected(title); this.store.setStatusSelected(title);

6
src/app/link_status/left/left.item.component.ts

@ -3,8 +3,8 @@ import Model from './left.model';
const className = 'fr.component.linkStatus.left.item'; const className = 'fr.component.linkStatus.left.item';
const Widget: WidgetType = { const Widget: WidgetType = {
props: { props: {
title:'', title: '',
id:'', id: '',
creator: '', creator: '',
}, },
_store() { _store() {
@ -20,7 +20,7 @@ const Widget: WidgetType = {
items: [ items: [
{ {
type: TextButton, type: TextButton,
cls:'link-title', cls: 'link-title',
textAlign: 'left', textAlign: 'left',
text: title, text: title,
title, title,

2
src/app/link_status/left/left.model.ts

@ -4,7 +4,7 @@ const Model: ModelType = {
context: ['tab', 'linkList', 'statusSelected'], context: ['tab', 'linkList', 'statusSelected'],
state () { state () {
return { return {
selected:'', selected: '',
}; };
}, },
actions: { actions: {

4
src/app/title/title_item/title_item.component.ts

@ -4,12 +4,12 @@ import {getSelectStyle} from './title_item.service';
const className = 'fr.title.item'; const className = 'fr.title.item';
const Widget = BI.inherit(BI.BasicButton, { const Widget = BI.inherit(BI.BasicButton, {
props: { props: {
text:'', text: '',
}, },
_store() { _store() {
return BI.Models.getModel(tableItemModel); return BI.Models.getModel(tableItemModel);
}, },
watch:{ watch: {
tab(tab: string) { tab(tab: string) {
const {text} = this.options; const {text} = this.options;
this.element.css(getSelectStyle(text, tab)); this.element.css(getSelectStyle(text, tab));

10
src/demo/plugin.redis.preview.ts

@ -6,8 +6,8 @@ const Widget = BI.inherit(BI.Widget, {
render() { render() {
return { return {
type: 'bi.vertical', type: 'bi.vertical',
cls:'bi-plugin-redis', cls: 'bi-plugin-redis',
bgap:10, bgap: 10,
items: [ items: [
{ {
type: 'bi.left', type: 'bi.left',
@ -22,7 +22,7 @@ const Widget = BI.inherit(BI.Widget, {
}, },
{ {
type: 'bi.label', type: 'bi.label',
text:form.url, text: form.url,
height: 24, height: 24,
}], }],
}, },
@ -39,7 +39,7 @@ const Widget = BI.inherit(BI.Widget, {
}, },
{ {
type: 'bi.label', type: 'bi.label',
text:form.port, text: form.port,
height: 24, height: 24,
}], }],
}, },
@ -56,7 +56,7 @@ const Widget = BI.inherit(BI.Widget, {
}, },
{ {
type: 'bi.label', type: 'bi.label',
text:'********', text: '********',
height: 24, height: 24,
}], }],
}, },

4
src/demo/plugin.tedis.pool.ts

@ -13,11 +13,11 @@ const WidgetPool = BI.inherit(BI.Widget, {
items: [ items: [
{ {
type: 'bi.vertical', type: 'bi.vertical',
cls:'right-status-board', cls: 'right-status-board',
items: [ items: [
{ {
type: 'bi.vertical', type: 'bi.vertical',
cls:'right-status-board-item', cls: 'right-status-board-item',
items: [ items: [
{ {
type: 'bi.label', type: 'bi.label',

30
src/shared/service/dialog.service.ts

@ -54,7 +54,7 @@ class Dialog {
items: [ items: [
{ {
type: Vertical, type: Vertical,
items:[ items: [
{ {
type: 'bi.layout', type: 'bi.layout',
cls: 'loading-icon', cls: 'loading-icon',
@ -80,7 +80,7 @@ class Dialog {
items: [ items: [
{ {
type: Vertical, type: Vertical,
items:[ items: [
{ {
type: 'bi.layout', type: 'bi.layout',
cls: 'success-icon', cls: 'success-icon',
@ -105,7 +105,7 @@ class Dialog {
items: [ items: [
{ {
type: Vertical, type: Vertical,
items:[ items: [
{ {
type: 'bi.layout', type: 'bi.layout',
cls: 'error-icon', cls: 'error-icon',
@ -135,11 +135,11 @@ class Dialog {
{ {
type: 'bi.center_adapt', type: 'bi.center_adapt',
cls: 'show-content', cls: 'show-content',
tgap:10, tgap: 10,
items: [ items: [
{ {
type: Vertical, type: Vertical,
items:[ items: [
{ {
type: Layout, type: Layout,
cls: 'error-icon', cls: 'error-icon',
@ -152,14 +152,14 @@ class Dialog {
}, },
{ {
type: Left, type: Left,
cls:'buttons', cls: 'buttons',
items:[ items: [
{ {
type: Button, type: Button,
text: BI.i18nText('Dec-Dcm_Connection_Detailed_Information'), text: BI.i18nText('Dec-Dcm_Connection_Detailed_Information'),
level: 'ignore', level: 'ignore',
handler() { handler() {
const isHide = this.getText() === BI.i18nText('Dec-Dcm_Connection_Detailed_Information'); const isHide = !More.isVisible();
Popover.element.css({ Popover.element.css({
height: isHide ? '290' : '220', height: isHide ? '290' : '220',
}); });
@ -191,9 +191,11 @@ class Dialog {
], ],
}, { }, {
type: Label, type: Label,
cls:'show-more', cls: 'show-more',
text:more, text: more,
invisible: true, invisible: true,
height: 73,
value: false,
ref(ref: any) { ref(ref: any) {
More = ref; More = ref;
}, },
@ -202,8 +204,8 @@ class Dialog {
}; };
BI.Popovers.create(id, { BI.Popovers.create(id, {
type: 'bi.popover', type: 'bi.popover',
cls:'popover-notitle', cls: 'popover-notitle',
extraCls:'bi-custom-show', extraCls: 'bi-custom-show',
size: 'normal', size: 'normal',
width: 450, width: 450,
height: 220, height: 220,
@ -223,8 +225,8 @@ class Dialog {
const id = BI.UUID(); const id = BI.UUID();
BI.Popovers.create(id, { BI.Popovers.create(id, {
type: 'bi.popover', type: 'bi.popover',
cls:'popover-notitle', cls: 'popover-notitle',
extraCls:'bi-custom-show', extraCls: 'bi-custom-show',
size: 'normal', size: 'normal',
width: 450, width: 450,
height: 220, height: 220,

Loading…
Cancel
Save