Browse Source

Merge branch 'master' of ssh://code.fineres.com:7999/~claire.tang/fineui

es6
Claire 3 years ago
parent
commit
b59872cb3b
  1. 44
      demo/js/base/button/demo.button.js
  2. 2
      package.json
  3. 5
      src/base/list/virtualgrouplist.js
  4. 8
      src/less/base/single/button/button.less
  5. 2
      typescript/base/single/label/abstract.label.ts

44
demo/js/base/button/demo.button.js

@ -193,6 +193,41 @@ Demo.Button = BI.inherit(BI.Widget, {
ghost: true, ghost: true,
height: 30 height: 30
} }
}, {
el: {
type: "bi.button",
iconCls: "plus-font",
text: "幽灵按钮(common)",
ghost: true,
height: 30
}
}, {
el: {
type: "bi.button",
iconCls: "plus-font",
text: "幽灵按钮(common)",
ghost: true,
level: "warning",
height: 30
}
}, {
el: {
type: "bi.button",
iconCls: "plus-font",
text: "幽灵按钮(common)",
ghost: true,
level: "error",
height: 30
}
}, {
el: {
type: "bi.button",
iconCls: "plus-font",
text: "幽灵按钮(common)",
ghost: true,
level: "success",
height: 30
}
}, { }, {
el: { el: {
type: "bi.button", type: "bi.button",
@ -246,7 +281,7 @@ Demo.Button = BI.inherit(BI.Widget, {
el: { el: {
type: "bi.button", type: "bi.button",
text: "浅色的一般按钮", text: "浅色的一般按钮",
iconCls: "close-font", iconCls: "plus-font",
light: true light: true
} }
}, { }, {
@ -254,7 +289,7 @@ Demo.Button = BI.inherit(BI.Widget, {
type: "bi.button", type: "bi.button",
text: "浅色的成功按钮", text: "浅色的成功按钮",
level: "success", level: "success",
iconCls: "close-font", iconCls: "plus-font",
light: true light: true
} }
}, { }, {
@ -262,15 +297,16 @@ Demo.Button = BI.inherit(BI.Widget, {
type: "bi.button", type: "bi.button",
text: "浅色的警告按钮", text: "浅色的警告按钮",
level: "warning", level: "warning",
iconCls: "close-font", iconCls: "plus-font",
light: true light: true
} }
}, { }, {
el: { el: {
type: "bi.button", type: "bi.button",
iconCls: "close-font", iconCls: "plus-font",
text: "浅色的失败按钮", text: "浅色的失败按钮",
level: "error", level: "error",
cls: "hover-mask",
light: true light: true
} }
}]; }];

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "fineui", "name": "fineui",
"version": "2.0.20220605160539", "version": "2.0.20220606111559",
"description": "fineui", "description": "fineui",
"main": "dist/fineui.min.js", "main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts", "types": "dist/lib/index.d.ts",

5
src/base/list/virtualgrouplist.js

@ -14,6 +14,7 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, {
scrollTop: 0, scrollTop: 0,
rowHeight: "auto", rowHeight: "auto",
items: [], items: [],
el: {},
itemFormatter: function (item, index) { itemFormatter: function (item, index) {
return item; return item;
} }
@ -39,10 +40,10 @@ BI.VirtualGroupList = BI.inherit(BI.Widget, {
ref: function () { ref: function () {
self.container = this; self.container = this;
}, },
layouts: [{ layouts: [BI.extend({
type: "bi.vertical", type: "bi.vertical",
scrolly: false scrolly: false
}] }, o.el)]
}, { }, {
type: "bi.layout", type: "bi.layout",
ref: function () { ref: function () {

8
src/less/base/single/button/button.less

@ -64,7 +64,7 @@ body .bi-button, #body .bi-button {
&, & .b-font:before { &, & .b-font:before {
color: @color-bi-text-common-ghost-button; color: @color-bi-text-common-ghost-button;
} }
&:hover, &:focus { &:hover, &:focus, &:hover .b-font:before, &:focus .b-font:before {
color: @color-bi-text; color: @color-bi-text;
background-color: @color-bi-background-hover-common-ghost-button; background-color: @color-bi-background-hover-common-ghost-button;
} }
@ -136,7 +136,7 @@ body .bi-button, #body .bi-button {
color: @color-bi-text-success-ghost-button; color: @color-bi-text-success-ghost-button;
} }
background-color: transparent; background-color: transparent;
&:hover, &:focus { &:hover, &:focus, &:hover .b-font:before, &:focus .b-font:before {
color: @color-bi-text; color: @color-bi-text;
background-color: @color-bi-background-success-button; background-color: @color-bi-background-success-button;
} }
@ -181,7 +181,7 @@ body .bi-button, #body .bi-button {
color: @color-bi-text-warning-ghost-button; color: @color-bi-text-warning-ghost-button;
} }
background-color: transparent; background-color: transparent;
&:hover, &:focus { &:hover, &:focus, &:hover .b-font:before, &:focus .b-font:before {
color: @color-bi-text; color: @color-bi-text;
background-color: @color-bi-background-warning-button; background-color: @color-bi-background-warning-button;
} }
@ -226,7 +226,7 @@ body .bi-button, #body .bi-button {
color: @color-bi-text-error-ghost-button; color: @color-bi-text-error-ghost-button;
} }
background-color: transparent; background-color: transparent;
&:hover, &:focus { &:hover, &:focus, &:hover .b-font:before, &:focus .b-font:before {
color: @color-bi-text; color: @color-bi-text;
background-color: @color-bi-background-error-button; background-color: @color-bi-background-error-button;
} }

2
typescript/base/single/label/abstract.label.ts

@ -4,7 +4,7 @@ export declare class AbstractLabel extends Single {
static xtype: string; static xtype: string;
props: { props: {
textAlign?: "left" | "center" | "right"; textAlign?: "left" | "center" | "right" | "justify";
whiteSpace?: "nowrap" | "normal"; whiteSpace?: "nowrap" | "normal";
textWidth?: number | null; textWidth?: number | null;
textHeight?: number | null; textHeight?: number | null;

Loading…
Cancel
Save