Browse Source

REPORT-93628 fix:修改下文件上传的组件样式

feature/x
旭旭 2 years ago
parent
commit
b44835ef90
  1. 2
      src/modules/components/file_chooser/file_chooser.ts
  2. 8
      src/modules/components/file_upload/file_upload.ts

2
src/modules/components/file_chooser/file_chooser.ts

@ -41,7 +41,7 @@ export class FileChooser extends BI.Widget {
items: [ items: [
{ {
type: BI.SignEditor.xtype, type: BI.SignEditor.xtype,
cls: 'bi-border bi-focus-shadow', cls: 'bi-border-bottom bi-focus-shadow',
width, width,
height: 22, height: 22,
watermark, watermark,

8
src/modules/components/file_upload/file_upload.ts

@ -59,7 +59,7 @@ export class FileUpload extends BI.Widget {
items: [ items: [
{ {
type: BI.SignEditor.xtype, type: BI.SignEditor.xtype,
cls: 'bi-border bi-focus-shadow', cls: 'bi-border-bottom bi-focus-shadow',
width: 300, width: 300,
height: 22, height: 22,
watermark, watermark,
@ -144,9 +144,9 @@ export class FileUpload extends BI.Widget {
this.fileModified = _ref; this.fileModified = _ref;
}, },
}] }]
}], }],
}, },
tgap: 14, tgap: 14,
lgap: 4, lgap: 4,
@ -155,7 +155,7 @@ export class FileUpload extends BI.Widget {
type: BI.IconButton.xtype, type: BI.IconButton.xtype,
cls: "default-delete-font", cls: "default-delete-font",
handler: function () { handler: function () {
NProgress.set(0.0); NProgress.set(0.0);
self.xhr.abort(); self.xhr.abort();
self.store.setFileName(''); self.store.setFileName('');
self.clearInfo(); self.clearInfo();

Loading…
Cancel
Save