Browse Source

Pull request #1912: BI-86802 fix: 鼠标样式 && 报错

Merge in VISUAL/fineui from ~WINDY/fui:master to master

* commit 'e6152e3f6d47eafe57d65a81547a5260311446c1':
  update
  BI-86802 fix: 鼠标样式 && 报错
  无JIRA任务 回滚
es6
windy 4 years ago
parent
commit
b08610bcd5
  1. 6
      src/base/single/editor/editor.textarea.js
  2. 5
      src/less/core/utils/cursor.less

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

@ -87,7 +87,7 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
if (!this.watermark) {
this.watermark = BI.createWidget({
type: "bi.label",
cls: "bi-water-mark cursor-default textarea-watermark",
cls: "bi-water-mark textarea-watermark",
textAlign: "left",
whiteSpace: "normal",
text: o.watermark,
@ -99,9 +99,9 @@ BI.TextAreaEditor = BI.inherit(BI.Single, {
this.watermark.element.bind({
mousedown: function (e) {
if (self.isEnabled()) {
self.editor.focus();
self.focus();
} else {
self.editor.blur();
self.blur();
}
e.stopEvent();
}

5
src/less/core/utils/cursor.less

@ -8,4 +8,9 @@
.cursor-move{
cursor: move;
}
.cursor-text{
cursor: text;
}
/*****************cursor*****************/
Loading…
Cancel
Save