bugfix
This commit is contained in:
parent
af8ae4c961
commit
e8d6d40375
@ -189,7 +189,7 @@ bricks.AudioRecorder = class extends bricks.HBox {
|
|||||||
});
|
});
|
||||||
this.recClose();
|
this.recClose();
|
||||||
}
|
}
|
||||||
upload = async function(){
|
async upload(){
|
||||||
var running = new bricks.Running({target:this});
|
var running = new bricks.Running({target:this});
|
||||||
if(!this.recordData){
|
if(!this.recordData){
|
||||||
bricks.debug("DUTn::请先录音,然后停止后再上传");
|
bricks.debug("DUTn::请先录音,然后停止后再上传");
|
||||||
|
@ -35,10 +35,10 @@ bricks.MdWidget = class extends bricks.JsWidget {
|
|||||||
show_scroll(event){
|
show_scroll(event){
|
||||||
bricks.debug('scrollY=', window.scrollY);
|
bricks.debug('scrollY=', window.scrollY);
|
||||||
}
|
}
|
||||||
build = async function(){
|
async build(){
|
||||||
this._build(this.opts.md_url);
|
this._build(this.opts.md_url);
|
||||||
}
|
}
|
||||||
_build = async function(md_url){
|
async _build(md_url){
|
||||||
var md_content = await (bricks.tget(md_url));
|
var md_content = await (bricks.tget(md_url));
|
||||||
this.md_content = md_content;
|
this.md_content = md_content;
|
||||||
this._build1();
|
this._build1();
|
||||||
@ -100,7 +100,7 @@ bricks.MarkdownViewer = class extends bricks.VBox {
|
|||||||
show_scroll(event){
|
show_scroll(event){
|
||||||
bricks.debug('scrollY=', window.scrollY);
|
bricks.debug('scrollY=', window.scrollY);
|
||||||
}
|
}
|
||||||
createBackButton = async function(){
|
async createBackButton(){
|
||||||
var desc = {
|
var desc = {
|
||||||
"widgettype":"HBox",
|
"widgettype":"HBox",
|
||||||
"options":{},
|
"options":{},
|
||||||
@ -126,7 +126,7 @@ bricks.MarkdownViewer = class extends bricks.VBox {
|
|||||||
var url = event.params.url;
|
var url = event.params.url;
|
||||||
this.back_stack.push(url);
|
this.back_stack.push(url);
|
||||||
}
|
}
|
||||||
go_back = async function(event){
|
async go_back(event){
|
||||||
if (this.back_stack.length < 2){
|
if (this.back_stack.length < 2){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -137,10 +137,10 @@ bricks.MarkdownViewer = class extends bricks.VBox {
|
|||||||
await this.mdtext._build(url);
|
await this.mdtext._build(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
build = async function(){
|
async build(){
|
||||||
this._build(this.opts.md_url);
|
await this._build(this.opts.md_url);
|
||||||
}
|
}
|
||||||
_build = async function(md_url){
|
assync _build(md_url){
|
||||||
var md_content = await (bricks.tget(md_url));
|
var md_content = await (bricks.tget(md_url));
|
||||||
this.md_el.innerHTML = marked.parse(md_content);
|
this.md_el.innerHTML = marked.parse(md_content);
|
||||||
// this.md_el.baseURI = md_url;
|
// this.md_el.baseURI = md_url;
|
||||||
|
@ -42,7 +42,7 @@ bricks.Toolbar = class extends bricks.Layout {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createTools = async function(){
|
async createTools(){
|
||||||
var l = this.opts.tools.length;
|
var l = this.opts.tools.length;
|
||||||
for (var i=0;i<l; i++){
|
for (var i=0;i<l; i++){
|
||||||
await this.createTool(this.opts.tools[i]);
|
await this.createTool(this.opts.tools[i]);
|
||||||
@ -51,7 +51,7 @@ bricks.Toolbar = class extends bricks.Layout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
createTool = async function(desc){
|
async createTool(desc){
|
||||||
var options = {
|
var options = {
|
||||||
"widgettype":"Button",
|
"widgettype":"Button",
|
||||||
"options":{
|
"options":{
|
||||||
|
Loading…
Reference in New Issue
Block a user