|
|
@ -17,258 +17,268 @@ import { |
|
|
|
i18nText, |
|
|
|
i18nText, |
|
|
|
KeyCode, |
|
|
|
KeyCode, |
|
|
|
isPlainObject, |
|
|
|
isPlainObject, |
|
|
|
SIZE_CONSANTS |
|
|
|
SIZE_CONSANTS, |
|
|
|
|
|
|
|
CenterAdaptLayout, |
|
|
|
|
|
|
|
VerticalLayout, |
|
|
|
|
|
|
|
HTapeLayout, |
|
|
|
|
|
|
|
RightVerticalAdaptLayout |
|
|
|
} from "../../core"; |
|
|
|
} from "../../core"; |
|
|
|
import { Toast } from "../single"; |
|
|
|
import { Button, IconLabel, Label, Toast } from "../single"; |
|
|
|
|
|
|
|
|
|
|
|
export const Msg = (() => { |
|
|
|
let $mask, $pop; |
|
|
|
let $mask, $pop; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const messageShows = []; |
|
|
|
const messageShows = []; |
|
|
|
|
|
|
|
|
|
|
|
const toastStack = []; |
|
|
|
const toastStack = []; |
|
|
|
|
|
|
|
|
|
|
|
const defaultConfig = { |
|
|
|
const AlertLevel = { |
|
|
|
buttonHeight: 24, |
|
|
|
WARNING: 'warning', |
|
|
|
}; |
|
|
|
INFO: 'info', |
|
|
|
|
|
|
|
ERROR: 'error', |
|
|
|
|
|
|
|
SUCCESS: 'success', |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
function getIconCls(level) { |
|
|
|
alert(title, message, callback, config = defaultConfig) { |
|
|
|
switch (level) { |
|
|
|
this._show(false, title, message, callback, config); |
|
|
|
case AlertLevel.ERROR: |
|
|
|
}, |
|
|
|
return 'alert-error-font'; |
|
|
|
confirm(title, message, callback, config = defaultConfig) { |
|
|
|
case AlertLevel.SUCCESS: |
|
|
|
this._show(true, title, message, callback, config); |
|
|
|
return 'alert-success-font'; |
|
|
|
}, |
|
|
|
case AlertLevel.INFO: |
|
|
|
prompt(title, message, value, callback, min_width) { |
|
|
|
return 'alert-info-font'; |
|
|
|
// Msg.prompt(title, message, value, callback, min_width);
|
|
|
|
case AlertLevel.WARNING: |
|
|
|
}, |
|
|
|
default: |
|
|
|
toast(message, options, context) { |
|
|
|
return 'alert-warning-font'; |
|
|
|
isString(options) && (options = { level: options }); |
|
|
|
} |
|
|
|
options = options || {}; |
|
|
|
} |
|
|
|
context = context || Widget._renderEngine.createElement("body"); |
|
|
|
|
|
|
|
const level = options.level || "common"; |
|
|
|
|
|
|
|
const autoClose = isNull(options.autoClose) ? true : options.autoClose; |
|
|
|
|
|
|
|
const callback = isFunction(options.callback) ? options.callback : emptyFn; |
|
|
|
|
|
|
|
const toast = createWidget({ |
|
|
|
|
|
|
|
type: "bi.toast", |
|
|
|
|
|
|
|
cls: "bi-message-animate bi-message-leave", |
|
|
|
|
|
|
|
level, |
|
|
|
|
|
|
|
autoClose, |
|
|
|
|
|
|
|
closable: options.closable, |
|
|
|
|
|
|
|
text: message, |
|
|
|
|
|
|
|
listeners: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
eventName: Toast.EVENT_DESTORY, |
|
|
|
|
|
|
|
action() { |
|
|
|
|
|
|
|
remove(toastStack, toast.element); |
|
|
|
|
|
|
|
let _height = SIZE_CONSANTS.TOAST_TOP; |
|
|
|
|
|
|
|
each(toastStack, (i, element) => { |
|
|
|
|
|
|
|
element.css({ top: _height }); |
|
|
|
|
|
|
|
_height += element.outerHeight() + 10; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
callback(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
let height = SIZE_CONSANTS.TOAST_TOP; |
|
|
|
|
|
|
|
each(toastStack, (i, element) => { |
|
|
|
|
|
|
|
height += element.outerHeight() + 10; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
createWidget({ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
element: context, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
el: toast, |
|
|
|
|
|
|
|
left: "50%", |
|
|
|
|
|
|
|
top: height, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
toastStack.push(toast.element); |
|
|
|
|
|
|
|
toast.element.css({ "margin-left": (-1 * toast.element.outerWidth()) / 2 }); |
|
|
|
|
|
|
|
toast.element.removeClass("bi-message-leave").addClass("bi-message-enter"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autoClose && |
|
|
|
|
|
|
|
delay(() => { |
|
|
|
|
|
|
|
toast.element.removeClass("bi-message-enter").addClass("bi-message-leave"); |
|
|
|
|
|
|
|
toast.destroy?.(); |
|
|
|
|
|
|
|
}, 5000); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return function() { |
|
|
|
export const Msg = { |
|
|
|
toast.element.removeClass("bi-message-enter").addClass("bi-message-leave"); |
|
|
|
alert(title, message, callback, config) { |
|
|
|
toast.destroy?.(); |
|
|
|
_show(false, title, message, callback, config); |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
confirm(title, message, callback, config) { |
|
|
|
_show(hasCancel, title, message, callback, config) { |
|
|
|
_show(true, title, message, callback, config); |
|
|
|
isNull($mask) && |
|
|
|
}, |
|
|
|
($mask = Widget._renderEngine |
|
|
|
toast(message, options, context) { |
|
|
|
.createElement("<div class=\"bi-z-index-mask\">") |
|
|
|
isString(options) && (options = { level: options }); |
|
|
|
.css({ |
|
|
|
options = options || {}; |
|
|
|
position: "absolute", |
|
|
|
context = context || Widget._renderEngine.createElement("body"); |
|
|
|
zIndex: zIndex_tip - 2, |
|
|
|
const level = options.level || "common"; |
|
|
|
top: 0, |
|
|
|
const autoClose = isNull(options.autoClose) ? true : options.autoClose; |
|
|
|
left: 0, |
|
|
|
const callback = isFunction(options.callback) ? options.callback : emptyFn; |
|
|
|
right: 0, |
|
|
|
const toast = createWidget({ |
|
|
|
bottom: 0, |
|
|
|
type: "bi.toast", |
|
|
|
opacity: 0.5, |
|
|
|
cls: "bi-message-animate bi-message-leave", |
|
|
|
}) |
|
|
|
level, |
|
|
|
.appendTo("body")); |
|
|
|
autoClose, |
|
|
|
$pop = Widget._renderEngine |
|
|
|
closable: options.closable, |
|
|
|
.createElement("<div class=\"bi-message-depend\">") |
|
|
|
text: message, |
|
|
|
.css({ |
|
|
|
listeners: [ |
|
|
|
position: "absolute", |
|
|
|
{ |
|
|
|
zIndex: zIndex_tip - 1, |
|
|
|
eventName: Toast.EVENT_DESTORY, |
|
|
|
top: 0, |
|
|
|
action() { |
|
|
|
left: 0, |
|
|
|
remove(toastStack, toast.element); |
|
|
|
right: 0, |
|
|
|
let _height = SIZE_CONSANTS.TOAST_TOP; |
|
|
|
bottom: 0, |
|
|
|
each(toastStack, (i, element) => { |
|
|
|
}) |
|
|
|
element.css({ top: _height }); |
|
|
|
.appendTo("body"); |
|
|
|
_height += element.outerHeight() + 10; |
|
|
|
|
|
|
|
}); |
|
|
|
function close() { |
|
|
|
callback(); |
|
|
|
messageShows[messageShows.length - 1].destroy(); |
|
|
|
}, |
|
|
|
messageShows.pop(); |
|
|
|
|
|
|
|
if (messageShows.length === 0) { |
|
|
|
|
|
|
|
$mask.remove(); |
|
|
|
|
|
|
|
$mask = null; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
let height = SIZE_CONSANTS.TOAST_TOP; |
|
|
|
|
|
|
|
each(toastStack, (i, element) => { |
|
|
|
|
|
|
|
height += element.outerHeight() + 10; |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
createWidget({ |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
element: context, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
el: toast, |
|
|
|
|
|
|
|
left: "50%", |
|
|
|
|
|
|
|
top: height, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
toastStack.push(toast.element); |
|
|
|
|
|
|
|
toast.element.css({ "margin-left": (-1 * toast.element.outerWidth()) / 2 }); |
|
|
|
|
|
|
|
toast.element.removeClass("bi-message-leave").addClass("bi-message-enter"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
autoClose && |
|
|
|
|
|
|
|
delay(() => { |
|
|
|
|
|
|
|
toast.element.removeClass("bi-message-enter").addClass("bi-message-leave"); |
|
|
|
|
|
|
|
toast.destroy?.(); |
|
|
|
|
|
|
|
}, 5000); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return function() { |
|
|
|
|
|
|
|
toast.element.removeClass("bi-message-enter").addClass("bi-message-leave"); |
|
|
|
|
|
|
|
toast.destroy?.(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const controlItems = []; |
|
|
|
function _show(hasCancel, title, message, callback, config = {}) { |
|
|
|
if (hasCancel === true) { |
|
|
|
config = { |
|
|
|
controlItems.push({ |
|
|
|
buttonHeight: 24, |
|
|
|
el: { |
|
|
|
cancelText: i18nText("BI-Basic_Cancel"), |
|
|
|
type: "bi.button", |
|
|
|
sureText: i18nText("BI-Basic_OK"), |
|
|
|
height: config.buttonHeight, |
|
|
|
level: AlertLevel.WARNING, |
|
|
|
text: i18nText("BI-Basic_Cancel"), |
|
|
|
...config, |
|
|
|
light: true, |
|
|
|
} |
|
|
|
handler() { |
|
|
|
isNull($mask) && |
|
|
|
|
|
|
|
($mask = Widget._renderEngine |
|
|
|
|
|
|
|
.createElement("<div class=\"bi-z-index-mask\">") |
|
|
|
|
|
|
|
.css({ |
|
|
|
|
|
|
|
position: "absolute", |
|
|
|
|
|
|
|
zIndex: zIndex_tip - 2, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
opacity: 0.5, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.appendTo("body")); |
|
|
|
|
|
|
|
$pop = Widget._renderEngine |
|
|
|
|
|
|
|
.createElement("<div class=\"bi-message-depend\">") |
|
|
|
|
|
|
|
.css({ |
|
|
|
|
|
|
|
position: "absolute", |
|
|
|
|
|
|
|
zIndex: zIndex_tip - 1, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
.appendTo("body"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function close() { |
|
|
|
|
|
|
|
messageShows[messageShows.length - 1].destroy(); |
|
|
|
|
|
|
|
messageShows.pop(); |
|
|
|
|
|
|
|
if (messageShows.length === 0) { |
|
|
|
|
|
|
|
$mask.remove(); |
|
|
|
|
|
|
|
$mask = null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const controlItems = []; |
|
|
|
|
|
|
|
if (hasCancel === true) { |
|
|
|
|
|
|
|
controlItems.push({ |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: Button.xtype, |
|
|
|
|
|
|
|
height: config.buttonHeight, |
|
|
|
|
|
|
|
text: config.cancelText, |
|
|
|
|
|
|
|
light: true, |
|
|
|
|
|
|
|
handler() { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [false]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
controlItems.push({ |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: Button.xtype, |
|
|
|
|
|
|
|
height: config.buttonHeight, |
|
|
|
|
|
|
|
text: config.sureText, |
|
|
|
|
|
|
|
handler() { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [true]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
const conf = { |
|
|
|
|
|
|
|
element: $pop, |
|
|
|
|
|
|
|
type: CenterAdaptLayout.xtype, |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
type: VerticalLayout.xtype, |
|
|
|
|
|
|
|
cls: "bi-card bi-border-radius", |
|
|
|
|
|
|
|
width: 450, |
|
|
|
|
|
|
|
hgap: 32, |
|
|
|
|
|
|
|
attributes: { |
|
|
|
|
|
|
|
tabIndex: 1, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
this.element.keyup(e => { |
|
|
|
|
|
|
|
if (e.keyCode === KeyCode.ENTER) { |
|
|
|
close(); |
|
|
|
close(); |
|
|
|
if (isFunction(callback)) { |
|
|
|
if (isFunction(callback)) { |
|
|
|
callback.apply(null, [false]); |
|
|
|
callback.apply(null, [true]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (e.keyCode === KeyCode.ESCAPE) { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (hasCancel === true) { |
|
|
|
|
|
|
|
if (isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [false]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
controlItems.push({ |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.button", |
|
|
|
|
|
|
|
height: config.buttonHeight, |
|
|
|
|
|
|
|
text: i18nText("BI-Basic_OK"), |
|
|
|
|
|
|
|
handler() { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [true]); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
this.element.focus(); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
const conf = { |
|
|
|
|
|
|
|
element: $pop, |
|
|
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
|
|
|
items: [ |
|
|
|
items: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
type: "bi.border", |
|
|
|
el: { |
|
|
|
attributes: { |
|
|
|
type: HTapeLayout.xtype, |
|
|
|
tabIndex: 1, |
|
|
|
height: 24, |
|
|
|
}, |
|
|
|
items: [ |
|
|
|
mounted() { |
|
|
|
{ |
|
|
|
this.element.keyup(e => { |
|
|
|
type: IconLabel.xtype, |
|
|
|
if (e.keyCode === KeyCode.ENTER) { |
|
|
|
cls: `${getIconCls(config.level)} icon-size-20`, |
|
|
|
close(); |
|
|
|
width: 24, |
|
|
|
if (isFunction(callback)) { |
|
|
|
height: 24, |
|
|
|
callback.apply(null, [true]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (e.keyCode === KeyCode.ESCAPE) { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (hasCancel === true) { |
|
|
|
|
|
|
|
if (isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [false]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
this.element.focus(); |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
cls: "bi-card", |
|
|
|
|
|
|
|
items: { |
|
|
|
|
|
|
|
north: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.border", |
|
|
|
|
|
|
|
cls: "bi-message-title bi-background", |
|
|
|
|
|
|
|
items: { |
|
|
|
|
|
|
|
center: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
cls: "bi-font-bold", |
|
|
|
|
|
|
|
text: title || i18nText("BI-Basic_Prompt"), |
|
|
|
|
|
|
|
textAlign: "left", |
|
|
|
|
|
|
|
hgap: 20, |
|
|
|
|
|
|
|
height: 40, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
east: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.icon_button", |
|
|
|
|
|
|
|
cls: "bi-message-close close-font", |
|
|
|
|
|
|
|
// height: 50,
|
|
|
|
|
|
|
|
handler() { |
|
|
|
|
|
|
|
close(); |
|
|
|
|
|
|
|
if (isFunction(callback)) { |
|
|
|
|
|
|
|
callback.apply(null, [false]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
width: 56, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 40, |
|
|
|
{ |
|
|
|
}, |
|
|
|
type: Label.xtype, |
|
|
|
center: { |
|
|
|
css: { "font-size": 16 }, |
|
|
|
el: isPlainObject(message) |
|
|
|
cls: 'bi-font-bold', // 16px
|
|
|
|
? message |
|
|
|
textAlign: 'left', |
|
|
|
: { |
|
|
|
width: 'fill', |
|
|
|
type: "bi.label", |
|
|
|
text: title || i18nText('BI-Basic_Prompt'), |
|
|
|
vgap: 10, |
|
|
|
lgap: 16, |
|
|
|
hgap: 20, |
|
|
|
|
|
|
|
whiteSpace: "normal", |
|
|
|
|
|
|
|
text: message, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
south: { |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
el: { |
|
|
|
|
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
|
|
|
lgap: 10, |
|
|
|
|
|
|
|
items: controlItems, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
left: 20, |
|
|
|
|
|
|
|
right: 20, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 44, |
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
tgap: 32, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
el: isPlainObject(message) |
|
|
|
|
|
|
|
? message |
|
|
|
|
|
|
|
: { |
|
|
|
|
|
|
|
type: Label.xtype, |
|
|
|
|
|
|
|
css: { "font-size": 14 }, |
|
|
|
|
|
|
|
cls: 'alert-content', |
|
|
|
|
|
|
|
textAlign: 'left', |
|
|
|
|
|
|
|
text: message, |
|
|
|
|
|
|
|
whiteSpace: 'normal', |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
height: 'fill', |
|
|
|
|
|
|
|
tgap: 12, |
|
|
|
|
|
|
|
lgap: 40, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
el: config.footer && isFunction(config.footer) ? config.footer(close) : { |
|
|
|
|
|
|
|
type: RightVerticalAdaptLayout.xtype, |
|
|
|
|
|
|
|
lgap: 12, |
|
|
|
|
|
|
|
items: controlItems, |
|
|
|
}, |
|
|
|
}, |
|
|
|
width: 450, |
|
|
|
tgap: 32, |
|
|
|
height: 200, |
|
|
|
bgap: 24, |
|
|
|
} |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
messageShows[messageShows.length] = createWidget(conf); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
messageShows[messageShows.length] = createWidget(conf); |
|
|
|
|
|
|
|
} |
|
|
|