Browse Source

无jira refact:base重新跑一下脚本

es6
Treecat 1 year ago
parent
commit
c7d43e0a70
  1. 7
      src/base/1.pane.js
  2. 14
      src/base/layer/layer.drawer.js
  3. 6
      src/base/layer/layer.popover.js
  4. 2
      src/base/single/0.single.js
  5. 2
      src/base/single/editor/editor.js
  6. 2
      src/base/single/editor/editor.textarea.js

7
src/base/1.pane.js

@ -1,5 +1,5 @@
import { Label, Text } from "./single";
import { import {
AbsoluteCenterLayout,
CenterAdaptLayout, CenterAdaptLayout,
HorizontalAdaptLayout, HorizontalAdaptLayout,
VerticalLayout, VerticalLayout,
@ -12,7 +12,8 @@ import {
createWidget, createWidget,
Providers Providers
} from "@/core"; } from "@/core";
import { Layers } from "@/base"; import { Label, Text } from "./single";
import { Layers } from "@/base/0.base";
/** /**
* 当没有元素时有提示信息的view * 当没有元素时有提示信息的view
@ -43,7 +44,7 @@ export class Pane extends Widget {
_assertTip() { _assertTip() {
if (!this._tipText) { if (!this._tipText) {
createWidget({ createWidget({
type: "bi.absolute_center_adapt", type: AbsoluteCenterLayout.xtype,
element: this, element: this,
items: [ items: [
{ {

14
src/base/layer/layer.drawer.js

@ -1,4 +1,14 @@
import { HTapeLayout, AbsoluteLayout, Layout, VerticalLayout, Widget, shortcut, isPlainObject, extend } from "@/core"; import {
VTapeLayout,
HTapeLayout,
AbsoluteLayout,
Layout,
VerticalLayout,
Widget,
shortcut,
isPlainObject,
extend
} from "@/core";
import { Label, IconButton } from "../single"; import { Label, IconButton } from "../single";
/** /**
@ -128,7 +138,7 @@ export class Drawer extends Widget {
return extend( return extend(
{ {
type: "bi.vtape", type: VTapeLayout.xtype,
items, items,
}, },
this._getSuitableSize() this._getSuitableSize()

6
src/base/layer/layer.popover.js

@ -1,4 +1,6 @@
import { import {
VTapeLayout,
RightVerticalAdaptLayout,
HTapeLayout, HTapeLayout,
AbsoluteLayout, AbsoluteLayout,
VerticalLayout, VerticalLayout,
@ -202,7 +204,7 @@ export class Popover extends Widget {
scrolly: false, scrolly: false,
} }
: { : {
type: "bi.vtape", type: VTapeLayout.xtype,
height: this._getSuitableHeight(size.height), height: this._getSuitableHeight(size.height),
} }
); );
@ -302,7 +304,7 @@ export class BarPopover extends Popover {
const { footer, warningTitle } = this.options; const { footer, warningTitle } = this.options;
footer || footer ||
(this.options.footer = { (this.options.footer = {
type: "bi.right_vertical_adapt", type: RightVerticalAdaptLayout.xtype,
lgap: 10, lgap: 10,
items: [ items: [
{ {

2
src/base/single/0.single.js

@ -1,5 +1,5 @@
import { Widget, shortcut, Actions, extend, isKey, isNotNull, isFunction, isPlainObject, isNull, delay } from "@/core"; import { Widget, shortcut, Actions, extend, isKey, isNotNull, isFunction, isPlainObject, isNull, delay } from "@/core";
import { Tooltips } from "@/base"; import { Tooltips } from "@/base/0.base";
/** /**
* guy * guy

2
src/base/single/editor/editor.js

@ -13,7 +13,7 @@ import {
} from "@/core"; } from "@/core";
import { Label } from "../label"; import { Label } from "../label";
import { Single } from "../0.single"; import { Single } from "../0.single";
import { Bubbles } from "@/base"; import { Bubbles } from "@/base/0.base";
/** /**
* Created by GUY on 2015/4/15. * Created by GUY on 2015/4/15.

2
src/base/single/editor/editor.textarea.js

@ -16,7 +16,7 @@ import {
} from "@/core"; } from "@/core";
import { Label } from "../label"; import { Label } from "../label";
import { Single } from "../0.single"; import { Single } from "../0.single";
import { Bubbles } from "@/base"; import { Bubbles } from "@/base/0.base";
/** /**
* *

Loading…
Cancel
Save