shineout 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -97,24 +97,15 @@ function (_Component) {
97
97
  this.lastCursorOffset = (0, _element.getCursorOffset)(text.length);
98
98
  var t = this.getProcessedValue(text);
99
99
  this.props.onFilter(t);
100
- };
100
+ } // eslint-disable-next-line class-methods-use-this
101
+ ;
101
102
 
102
103
  _proto.handlePaste = function handlePaste(e) {
103
- var text = (e.clipboardData || window.clipboardData).getData('text/plain');
104
- if (!text) return;
105
- e.preventDefault();
106
- document.execCommand('insertText', false, text);
107
- this.handleInput({
108
- target: {
109
- innerText: text
110
- }
111
- });
104
+ (0, _element.preventPasteFile)(e);
112
105
  };
113
106
 
114
107
  _proto.render = function render() {
115
- var _this$props = this.props,
116
- focus = _this$props.focus,
117
- filterText = _this$props.filterText;
108
+ var focus = this.props.focus;
118
109
  var props = {
119
110
  className: (0, _styles.cascaderClass)('input', !focus && 'ellipsis'),
120
111
  ref: this.bindElement,
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react'
2
- import { RuleParamsType } from '../Rule'
3
2
  import { StandardProps, FormItemStandardProps, ListItemStandardProps } from '../@types/common'
4
3
 
5
4
  type ReactNode = React.ReactNode;
@@ -33,16 +32,6 @@ export interface CheckboxProps<T> extends StandardProps, FormItemStandardProps<T
33
32
  */
34
33
  htmlValue?: any;
35
34
 
36
-
37
- /**
38
- * Validation rules
39
- *
40
- * 校验规则
41
- *
42
- * default: -
43
- */
44
- rules?: RuleParamsType<T, CheckboxProps<T>>
45
-
46
35
  }
47
36
 
48
37
  // attention: checkbox group value is array
@@ -1,6 +1,5 @@
1
1
  import * as React from 'react'
2
2
  import { PopoverProps } from '../Popover'
3
- import { RuleParamsType } from '../Rule'
4
3
  import { StandardProps, RegularAttributes, FormItemStandardProps, CommonProps } from '../@types/common'
5
4
 
6
5
  type ReactNode = React.ReactNode;
@@ -144,15 +143,6 @@ FormItemStandardProps<Value> {
144
143
  */
145
144
  maxLength?: number;
146
145
 
147
- /**
148
- * Validation rules
149
- *
150
- * 校验规则
151
- *
152
- * default: -
153
- */
154
- rules?: RuleParamsType<Value, InputProps<Value>>;
155
-
156
146
  /**
157
147
  * get input element
158
148
  *
@@ -66,6 +66,10 @@
66
66
  flex-grow: 1;
67
67
  width: 0;
68
68
  }
69
+ .so-input-title-box-place .so-input-title-box-title {
70
+ padding-top: 0;
71
+ padding-bottom: 0;
72
+ }
69
73
  .so-input-title-box:not(.so-input-title-box-open) .so-input-title-box-hideable {
70
74
  opacity: 0;
71
75
  }
@@ -1,8 +1,6 @@
1
1
  import * as React from 'react'
2
- import { RuleParamsType } from '../Rule'
3
2
  import { StandardProps, StructDataStandardProps, ListItemStandardProps, FormItemStandardProps } from '../@types/common'
4
3
 
5
- type ReactNode = React.ReactNode;
6
4
 
7
5
  export interface RadioProps<Item = any> extends StandardProps {
8
6
 
package/css/Rate/Rate.js CHANGED
@@ -21,8 +21,6 @@ var _component = require("../component");
21
21
 
22
22
  var _numbers = require("../utils/numbers");
23
23
 
24
- var _element = require("../utils/dom/element");
25
-
26
24
  var _proptypes = require("../utils/proptypes");
27
25
 
28
26
  var _styles = require("./styles");
@@ -110,7 +108,7 @@ function (_PureComponent) {
110
108
  clearable = _this$props2.clearable,
111
109
  allowHalf = _this$props2.allowHalf;
112
110
 
113
- if (allowHalf && (0, _element.getParent)(e.target, "." + (0, _styles.rateClass)('allow-half'))) {
111
+ if (allowHalf && e.target.parentElement.querySelector("." + (0, _styles.rateClass)('allow-half'))) {
114
112
  value -= 0.5;
115
113
  }
116
114
 
@@ -377,8 +377,8 @@ so-select-rtl .so-select-box-list {
377
377
  background-color: var(--primary-color-fade-10, rgba(51, 153, 255, 0.1));
378
378
  }
379
379
  .so-select-tree .so-select-tree-wrapper .so-tree-content .so-select-tree-node.so-select-selected {
380
- background-color: var(--primary-color-fade-60, rgba(51, 153, 255, 0.6));
381
- color: white;
380
+ background-color: var(--primary-color-fade-10, rgba(51, 153, 255, 0.1));
381
+ color: var(--primary-color, #3399ff);
382
382
  }
383
383
  .so-select-tree .so-select-tree-wrapper .so-tree-content .so-select-tree-node.so-select-disabled {
384
384
  padding-right: var(--select-result-padding-horizontal, 4px);
@@ -1,5 +1,4 @@
1
1
  import * as React from 'react'
2
- import { RuleParamsType } from '../Rule'
3
2
  import { CommonProps, StandardProps } from '../@types/common'
4
3
 
5
4
  type ReactNode = React.ReactNode;
@@ -280,15 +279,6 @@ export interface TreeSelectProps<Value, Data> extends StandardProps,
280
279
  */
281
280
  onCollapse?: (collapse: boolean) => void;
282
281
 
283
- /**
284
- * Validation rules
285
- *
286
- * 校验规则
287
- *
288
- * default: -
289
- */
290
- rules?: RuleParamsType<Value, TreeSelectProps<Value, Data>>;
291
-
292
282
  /**
293
283
  * render unmatch value
294
284
  *
package/css/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Created by scripts/src-index.js.
2
2
  import * as utils from './utils'
3
3
 
4
- export default { utils, version: '1.9.1' }
4
+ export default { utils, version: '1.9.2' }
5
5
  export { utils }
6
6
  export { setLocale } from './locale'
7
7
  export { color, style } from './utils/expose'
package/css/index.js CHANGED
@@ -224,6 +224,6 @@ exports.Upload = _Upload.default;
224
224
  // Created by scripts/src-index.js.
225
225
  var _default = {
226
226
  utils: utils,
227
- version: '1.9.1'
227
+ version: '1.9.2'
228
228
  };
229
229
  exports.default = _default;