Browse Source

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

es6
Treecat 2 years 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 {
AbsoluteCenterLayout,
CenterAdaptLayout,
HorizontalAdaptLayout,
VerticalLayout,
@ -12,7 +12,8 @@ import {
createWidget,
Providers
} from "@/core";
import { Layers } from "@/base";
import { Label, Text } from "./single";
import { Layers } from "@/base/0.base";
/**
* 当没有元素时有提示信息的view
@ -43,7 +44,7 @@ export class Pane extends Widget {
_assertTip() {
if (!this._tipText) {
createWidget({
type: "bi.absolute_center_adapt",
type: AbsoluteCenterLayout.xtype,
element: this,
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";
/**
@ -128,7 +138,7 @@ export class Drawer extends Widget {
return extend(
{
type: "bi.vtape",
type: VTapeLayout.xtype,
items,
},
this._getSuitableSize()

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

@ -1,4 +1,6 @@
import {
VTapeLayout,
RightVerticalAdaptLayout,
HTapeLayout,
AbsoluteLayout,
VerticalLayout,
@ -202,7 +204,7 @@ export class Popover extends Widget {
scrolly: false,
}
: {
type: "bi.vtape",
type: VTapeLayout.xtype,
height: this._getSuitableHeight(size.height),
}
);
@ -302,7 +304,7 @@ export class BarPopover extends Popover {
const { footer, warningTitle } = this.options;
footer ||
(this.options.footer = {
type: "bi.right_vertical_adapt",
type: RightVerticalAdaptLayout.xtype,
lgap: 10,
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 { Tooltips } from "@/base";
import { Tooltips } from "@/base/0.base";
/**
* guy

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

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

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

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

Loading…
Cancel
Save