shineout 1.9.0 → 1.9.3
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.
- package/css/Alert/styles/index.js +0 -2
- package/css/AnimationList/styles/index.js +0 -2
- package/css/Breadcrumb/styles/index.js +0 -2
- package/css/Button/styles/index.js +0 -2
- package/css/Card/styles/index.js +0 -2
- package/css/CardGroup/styles/index.js +0 -2
- package/css/Carousel/styles/index.js +0 -2
- package/css/Cascader/Input.js +4 -13
- package/css/Cascader/styles/index.js +0 -2
- package/css/Checkbox/index.d.ts +0 -11
- package/css/Checkbox/styles/index.js +0 -2
- package/css/DataList/styles/index.js +0 -2
- package/css/DatePicker/styles/index.js +0 -2
- package/css/Datum/hoc.js +7 -7
- package/css/Divider/styles/index.js +0 -2
- package/css/Dropdown/styles/index.js +0 -2
- package/css/EditableArea/styles/index.js +0 -2
- package/css/Form/styles/index.js +0 -2
- package/css/Gap/styles/index.js +0 -2
- package/css/Icon/styles/index.js +0 -2
- package/css/Image/styles/index.js +0 -2
- package/css/Input/index.d.ts +0 -10
- package/css/Input/styles/index.js +0 -2
- package/css/InputTitle/styles/inputTitle.css +4 -0
- package/css/Lazyload/styles/index.js +0 -2
- package/css/Menu/styles/index.js +0 -2
- package/css/Message/styles/index.js +0 -2
- package/css/Modal/styles/index.js +0 -2
- package/css/Pagination/Jumper.js +1 -1
- package/css/Pagination/styles/index.js +0 -2
- package/css/Popover/styles/index.js +0 -2
- package/css/Progress/styles/index.js +0 -2
- package/css/Radio/index.d.ts +0 -2
- package/css/Radio/styles/index.js +0 -2
- package/css/Rate/Rate.js +1 -3
- package/css/Rate/styles/index.js +0 -2
- package/css/Rule/styles/index.js +0 -2
- package/css/Scroll/styles/index.js +0 -2
- package/css/Select/styles/index.js +0 -2
- package/css/Select/styles/select.css +2 -2
- package/css/Slider/styles/index.js +0 -2
- package/css/Spin/styles/index.js +0 -2
- package/css/Sticky/styles/index.js +0 -2
- package/css/Table/SimpleTable.js +3 -1
- package/css/Table/styles/index.js +0 -2
- package/css/Tabs/styles/index.js +0 -2
- package/css/Tag/styles/index.js +0 -2
- package/css/Tooltip/styles/index.js +0 -2
- package/css/Transfer/styles/index.js +0 -2
- package/css/Tree/styles/index.js +0 -2
- package/css/TreeSelect/index.d.ts +9 -10
- package/css/TreeSelect/styles/index.js +0 -2
- package/css/Upload/styles/index.js +0 -2
- package/css/hoc/styles/index.js +0 -2
- package/css/index.d.ts +3 -1
- package/css/index.js +4 -1
- package/css/utils/zoom.js +9 -3
- package/dist/shineout.js +813 -293
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/theme.antd.css +1 -3
- package/dist/theme.antd2.css +1 -3
- package/dist/theme.default.css +1 -3
- package/dist/theme.shineout.css +1 -3
- package/es/@types/common.d.ts +19 -0
- package/es/Alert/styles/index.js +0 -1
- package/es/AnimationList/styles/index.js +0 -1
- package/es/Breadcrumb/styles/index.js +0 -1
- package/es/Button/styles/index.js +0 -1
- package/es/Card/styles/index.js +0 -1
- package/es/CardGroup/styles/index.js +0 -1
- package/es/Carousel/styles/index.js +0 -1
- package/es/Cascader/Input.js +5 -14
- package/es/Cascader/styles/index.js +0 -1
- package/es/Checkbox/index.d.ts +0 -11
- package/es/Checkbox/styles/index.js +0 -1
- package/es/DataList/styles/index.js +0 -1
- package/es/DatePicker/styles/index.js +0 -1
- package/es/Datum/hoc.js +7 -7
- package/es/Divider/styles/index.js +0 -1
- package/es/Dropdown/styles/index.js +0 -1
- package/es/EditableArea/styles/index.js +0 -1
- package/es/Form/styles/index.js +0 -1
- package/es/Gap/styles/index.js +0 -1
- package/es/Icon/styles/index.js +0 -1
- package/es/Image/styles/index.js +0 -1
- package/es/Input/index.d.ts +0 -10
- package/es/Input/styles/index.js +0 -1
- package/es/InputTitle/styles/inputTitle.less +4 -0
- package/es/Lazyload/styles/index.js +0 -1
- package/es/Menu/styles/index.js +0 -1
- package/es/Message/styles/index.js +0 -1
- package/es/Modal/styles/index.js +0 -1
- package/es/Pagination/Jumper.js +1 -1
- package/es/Pagination/styles/index.js +0 -1
- package/es/Popover/styles/index.js +0 -1
- package/es/Progress/styles/index.js +0 -1
- package/es/Radio/index.d.ts +0 -2
- package/es/Radio/styles/index.js +0 -1
- package/es/Rate/Rate.js +1 -2
- package/es/Rate/styles/index.js +0 -1
- package/es/Rule/styles/index.js +0 -1
- package/es/Scroll/styles/index.js +0 -1
- package/es/Select/styles/index.js +0 -1
- package/es/Select/styles/select.less +2 -2
- package/es/Slider/styles/index.js +0 -1
- package/es/Spin/styles/index.js +0 -1
- package/es/Sticky/styles/index.js +0 -1
- package/es/Table/SimpleTable.js +3 -1
- package/es/Table/styles/index.js +0 -1
- package/es/Tabs/styles/index.js +0 -1
- package/es/Tag/styles/index.js +0 -1
- package/es/Tooltip/styles/index.js +0 -1
- package/es/Transfer/styles/index.js +0 -1
- package/es/Tree/styles/index.js +0 -1
- package/es/TreeSelect/index.d.ts +9 -10
- package/es/TreeSelect/styles/index.js +0 -1
- package/es/Upload/styles/index.js +0 -1
- package/es/hoc/styles/index.js +0 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +4 -1
- package/es/utils/zoom.js +9 -3
- package/lib/@types/common.d.ts +19 -0
- package/lib/Alert/styles/index.js +0 -2
- package/lib/AnimationList/styles/index.js +0 -2
- package/lib/Breadcrumb/styles/index.js +0 -2
- package/lib/Button/styles/index.js +0 -2
- package/lib/Card/styles/index.js +0 -2
- package/lib/CardGroup/styles/index.js +0 -2
- package/lib/Carousel/styles/index.js +0 -2
- package/lib/Cascader/Input.js +4 -13
- package/lib/Cascader/styles/index.js +0 -2
- package/lib/Checkbox/index.d.ts +0 -11
- package/lib/Checkbox/styles/index.js +0 -2
- package/lib/DataList/styles/index.js +0 -2
- package/lib/DatePicker/styles/index.js +0 -2
- package/lib/Datum/hoc.js +7 -7
- package/lib/Divider/styles/index.js +0 -2
- package/lib/Dropdown/styles/index.js +0 -2
- package/lib/EditableArea/styles/index.js +0 -2
- package/lib/Form/styles/index.js +0 -2
- package/lib/Gap/styles/index.js +0 -2
- package/lib/Icon/styles/index.js +0 -2
- package/lib/Image/styles/index.js +0 -2
- package/lib/Input/index.d.ts +0 -10
- package/lib/Input/styles/index.js +0 -2
- package/lib/InputTitle/styles/inputTitle.less +4 -0
- package/lib/Lazyload/styles/index.js +0 -2
- package/lib/Menu/styles/index.js +0 -2
- package/lib/Message/styles/index.js +0 -2
- package/lib/Modal/styles/index.js +0 -2
- package/lib/Pagination/Jumper.js +1 -1
- package/lib/Pagination/styles/index.js +0 -2
- package/lib/Popover/styles/index.js +0 -2
- package/lib/Progress/styles/index.js +0 -2
- package/lib/Radio/index.d.ts +0 -2
- package/lib/Radio/styles/index.js +0 -2
- package/lib/Rate/Rate.js +1 -3
- package/lib/Rate/styles/index.js +0 -2
- package/lib/Rule/styles/index.js +0 -2
- package/lib/Scroll/styles/index.js +0 -2
- package/lib/Select/styles/index.js +0 -2
- package/lib/Select/styles/select.less +2 -2
- package/lib/Slider/styles/index.js +0 -2
- package/lib/Spin/styles/index.js +0 -2
- package/lib/Sticky/styles/index.js +0 -2
- package/lib/Table/SimpleTable.js +3 -1
- package/lib/Table/styles/index.js +0 -2
- package/lib/Tabs/styles/index.js +0 -2
- package/lib/Tag/styles/index.js +0 -2
- package/lib/Tooltip/styles/index.js +0 -2
- package/lib/Transfer/styles/index.js +0 -2
- package/lib/Tree/styles/index.js +0 -2
- package/lib/TreeSelect/index.d.ts +9 -10
- package/lib/TreeSelect/styles/index.js +0 -2
- package/lib/Upload/styles/index.js +0 -2
- package/lib/hoc/styles/index.js +0 -2
- package/lib/index.d.ts +3 -1
- package/lib/index.js +4 -1
- package/lib/utils/zoom.js +9 -3
- package/package.json +1 -1
package/es/@types/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
+
import { RuleParamsType } from '../Rule'
|
|
2
3
|
|
|
3
4
|
export interface StandardProps {
|
|
4
5
|
/**
|
|
@@ -79,6 +80,24 @@ export interface FormItemStandardProps<Value = any> {
|
|
|
79
80
|
* default: false
|
|
80
81
|
*/
|
|
81
82
|
filterSameChange?: boolean;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Validation rules
|
|
86
|
+
*
|
|
87
|
+
* 校验规则
|
|
88
|
+
*
|
|
89
|
+
* default: -
|
|
90
|
+
*/
|
|
91
|
+
rules?: RuleParamsType<Value>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Binding validation field name. When the value changes, the bound field validation is triggered.
|
|
95
|
+
*
|
|
96
|
+
* 绑定校验字段名。当值变化后,触发绑定的字段校验。
|
|
97
|
+
*
|
|
98
|
+
* default: -
|
|
99
|
+
*/
|
|
100
|
+
bind?: string[];
|
|
82
101
|
}
|
|
83
102
|
export interface ListItemStandardProps<Item = any, Value = any> {
|
|
84
103
|
/**
|
package/es/Alert/styles/index.js
CHANGED
package/es/Card/styles/index.js
CHANGED
package/es/Cascader/Input.js
CHANGED
|
@@ -3,7 +3,7 @@ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized
|
|
|
3
3
|
import React, { Component } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { cascaderClass } from './styles';
|
|
6
|
-
import { focusElement, getCursorOffset } from '../utils/dom/element';
|
|
6
|
+
import { focusElement, getCursorOffset, preventPasteFile } from '../utils/dom/element';
|
|
7
7
|
|
|
8
8
|
var handleFocus = function handleFocus(e) {
|
|
9
9
|
e.stopPropagation();
|
|
@@ -83,24 +83,15 @@ function (_Component) {
|
|
|
83
83
|
this.lastCursorOffset = getCursorOffset(text.length);
|
|
84
84
|
var t = this.getProcessedValue(text);
|
|
85
85
|
this.props.onFilter(t);
|
|
86
|
-
}
|
|
86
|
+
} // eslint-disable-next-line class-methods-use-this
|
|
87
|
+
;
|
|
87
88
|
|
|
88
89
|
_proto.handlePaste = function handlePaste(e) {
|
|
89
|
-
|
|
90
|
-
if (!text) return;
|
|
91
|
-
e.preventDefault();
|
|
92
|
-
document.execCommand('insertText', false, text);
|
|
93
|
-
this.handleInput({
|
|
94
|
-
target: {
|
|
95
|
-
innerText: text
|
|
96
|
-
}
|
|
97
|
-
});
|
|
90
|
+
preventPasteFile(e);
|
|
98
91
|
};
|
|
99
92
|
|
|
100
93
|
_proto.render = function render() {
|
|
101
|
-
var
|
|
102
|
-
focus = _this$props.focus,
|
|
103
|
-
filterText = _this$props.filterText;
|
|
94
|
+
var focus = this.props.focus;
|
|
104
95
|
var props = {
|
|
105
96
|
className: cascaderClass('input', !focus && 'ellipsis'),
|
|
106
97
|
ref: this.bindElement,
|
package/es/Checkbox/index.d.ts
CHANGED
|
@@ -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
|
package/es/Datum/hoc.js
CHANGED
|
@@ -85,13 +85,6 @@ export default curry(function (options, Origin) {
|
|
|
85
85
|
if (prevProps.onChange !== this.props.onChange) {
|
|
86
86
|
this.datum.onChange = this.props.onChange;
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
var values = this.props[key];
|
|
90
|
-
|
|
91
|
-
if (values !== this.prevValues) {
|
|
92
|
-
this.setValue(this.props.initValidate ? undefined : IGNORE_VALIDATE);
|
|
93
|
-
this.prevValues = values;
|
|
94
|
-
}
|
|
95
88
|
};
|
|
96
89
|
|
|
97
90
|
_proto.setValue = function setValue(t) {
|
|
@@ -111,6 +104,13 @@ export default curry(function (options, Origin) {
|
|
|
111
104
|
this.datum.setDisabled(props.disabled);
|
|
112
105
|
}
|
|
113
106
|
|
|
107
|
+
var values = this.props[key];
|
|
108
|
+
|
|
109
|
+
if (values !== this.prevValues) {
|
|
110
|
+
this.setValue(this.props.initValidate ? undefined : IGNORE_VALIDATE);
|
|
111
|
+
this.prevValues = values;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
114
|
if (type === 'list') this.setValue(WITH_OUT_DISPATCH); // delete props[key]
|
|
115
115
|
|
|
116
116
|
return React.createElement(Origin, _extends({}, props, {
|
package/es/Form/styles/index.js
CHANGED
package/es/Gap/styles/index.js
CHANGED
package/es/Icon/styles/index.js
CHANGED
package/es/Image/styles/index.js
CHANGED
package/es/Input/index.d.ts
CHANGED
|
@@ -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
|
*
|
package/es/Input/styles/index.js
CHANGED
package/es/Menu/styles/index.js
CHANGED
package/es/Modal/styles/index.js
CHANGED
package/es/Pagination/Jumper.js
CHANGED
|
@@ -32,7 +32,7 @@ function (_PureComponent) {
|
|
|
32
32
|
var _this$props = this.props,
|
|
33
33
|
total = _this$props.total,
|
|
34
34
|
pageSize = _this$props.pageSize;
|
|
35
|
-
return Math.ceil(total / pageSize);
|
|
35
|
+
return Math.ceil(total / pageSize) || 1;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
_proto.handleKeyDown = function handleKeyDown(e) {
|
package/es/Radio/index.d.ts
CHANGED
|
@@ -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/es/Radio/styles/index.js
CHANGED
package/es/Rate/Rate.js
CHANGED
|
@@ -6,7 +6,6 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { PureComponent } from '../component';
|
|
8
8
|
import { range } from '../utils/numbers';
|
|
9
|
-
import { getParent } from '../utils/dom/element';
|
|
10
9
|
import { getProps, defaultProps } from '../utils/proptypes';
|
|
11
10
|
import { rateClass } from './styles';
|
|
12
11
|
import getDataset from '../utils/dom/getDataset';
|
|
@@ -91,7 +90,7 @@ function (_PureComponent) {
|
|
|
91
90
|
clearable = _this$props2.clearable,
|
|
92
91
|
allowHalf = _this$props2.allowHalf;
|
|
93
92
|
|
|
94
|
-
if (allowHalf &&
|
|
93
|
+
if (allowHalf && e.target.parentElement.querySelector("." + rateClass('allow-half'))) {
|
|
95
94
|
value -= 0.5;
|
|
96
95
|
}
|
|
97
96
|
|
package/es/Rate/styles/index.js
CHANGED
package/es/Rule/styles/index.js
CHANGED
|
@@ -335,8 +335,8 @@
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
&.@{select-prefix}-selected {
|
|
338
|
-
background-color: @primary-color-fade-
|
|
339
|
-
color:
|
|
338
|
+
background-color: @primary-color-fade-10;
|
|
339
|
+
color: @colors-primary;
|
|
340
340
|
}
|
|
341
341
|
&.@{select-prefix}-disabled {
|
|
342
342
|
padding-right: @select-result-space;
|
package/es/Spin/styles/index.js
CHANGED
package/es/Table/SimpleTable.js
CHANGED
|
@@ -108,7 +108,9 @@ function (_PureComponent) {
|
|
|
108
108
|
var colgroup = [];
|
|
109
109
|
|
|
110
110
|
var _loop = function _loop(i, count) {
|
|
111
|
-
var
|
|
111
|
+
var _tds$i$getBoundingCli = tds[i].getBoundingClientRect(),
|
|
112
|
+
width = _tds$i$getBoundingCli.width;
|
|
113
|
+
|
|
112
114
|
var colSpan = parseInt(tds[i].getAttribute('colspan'), 10);
|
|
113
115
|
|
|
114
116
|
if (colSpan > 1) {
|
package/es/Table/styles/index.js
CHANGED
package/es/Tabs/styles/index.js
CHANGED
package/es/Tag/styles/index.js
CHANGED
package/es/Tree/styles/index.js
CHANGED
package/es/TreeSelect/index.d.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -306,6 +296,15 @@ export interface TreeSelectProps<Value, Data> extends StandardProps,
|
|
|
306
296
|
* default: -
|
|
307
297
|
*/
|
|
308
298
|
innerTitle?: ReactNode;
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* 点击父节点后展开节点
|
|
302
|
+
*
|
|
303
|
+
* Click on the parent node to expand the node
|
|
304
|
+
*
|
|
305
|
+
* default: -
|
|
306
|
+
*/
|
|
307
|
+
parentClickExpand?: boolean
|
|
309
308
|
}
|
|
310
309
|
|
|
311
310
|
|
package/es/hoc/styles/index.js
CHANGED
package/es/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Created by scripts/src-index.js.
|
|
2
2
|
import * as utils from './utils'
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
require('./styles/normalize.less')
|
|
5
|
+
|
|
6
|
+
export default { utils, version: '1.9.3' }
|
|
5
7
|
export { utils }
|
|
6
8
|
export { setLocale } from './locale'
|
|
7
9
|
export { color, style } from './utils/expose'
|
package/es/index.js
CHANGED
package/es/utils/zoom.js
CHANGED
|
@@ -19,9 +19,15 @@ var updatePixelRatio = function updatePixelRatio(e) {
|
|
|
19
19
|
dispatch(pr);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
window.matchMedia
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
if (window.matchMedia) {
|
|
23
|
+
var media = window.matchMedia("(resolution: " + pr + "dppx)");
|
|
24
|
+
|
|
25
|
+
if (media.addEventListener) {
|
|
26
|
+
media.addEventListener('change', updatePixelRatio, {
|
|
27
|
+
once: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
25
31
|
};
|
|
26
32
|
|
|
27
33
|
updatePixelRatio();
|
package/lib/@types/common.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react'
|
|
2
|
+
import { RuleParamsType } from '../Rule'
|
|
2
3
|
|
|
3
4
|
export interface StandardProps {
|
|
4
5
|
/**
|
|
@@ -79,6 +80,24 @@ export interface FormItemStandardProps<Value = any> {
|
|
|
79
80
|
* default: false
|
|
80
81
|
*/
|
|
81
82
|
filterSameChange?: boolean;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Validation rules
|
|
86
|
+
*
|
|
87
|
+
* 校验规则
|
|
88
|
+
*
|
|
89
|
+
* default: -
|
|
90
|
+
*/
|
|
91
|
+
rules?: RuleParamsType<Value>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Binding validation field name. When the value changes, the bound field validation is triggered.
|
|
95
|
+
*
|
|
96
|
+
* 绑定校验字段名。当值变化后,触发绑定的字段校验。
|
|
97
|
+
*
|
|
98
|
+
* default: -
|
|
99
|
+
*/
|
|
100
|
+
bind?: string[];
|
|
82
101
|
}
|
|
83
102
|
export interface ListItemStandardProps<Item = any, Value = any> {
|
|
84
103
|
/**
|
|
@@ -5,8 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.alertClass = void 0;
|
|
7
7
|
|
|
8
|
-
require("../../styles/normalize.less");
|
|
9
|
-
|
|
10
8
|
var _classname = _interopRequireDefault(require("../../utils/classname"));
|
|
11
9
|
|
|
12
10
|
var _alert = _interopRequireDefault(require("./alert.less"));
|
|
@@ -5,8 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.listClass = void 0;
|
|
7
7
|
|
|
8
|
-
require("../../styles/normalize.less");
|
|
9
|
-
|
|
10
8
|
var _classname = _interopRequireDefault(require("../../utils/classname"));
|
|
11
9
|
|
|
12
10
|
var _list = _interopRequireDefault(require("./list.less"));
|
|
@@ -5,8 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.breadcrumbClass = void 0;
|
|
7
7
|
|
|
8
|
-
require("../../styles/normalize.less");
|
|
9
|
-
|
|
10
8
|
var _breadcrumb = _interopRequireDefault(require("./breadcrumb.less"));
|
|
11
9
|
|
|
12
10
|
var _classname = _interopRequireDefault(require("../../utils/classname"));
|
|
@@ -5,8 +5,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
exports.__esModule = true;
|
|
6
6
|
exports.buttonClass = void 0;
|
|
7
7
|
|
|
8
|
-
require("../../styles/normalize.less");
|
|
9
|
-
|
|
10
8
|
var _button = _interopRequireDefault(require("./button.less"));
|
|
11
9
|
|
|
12
10
|
var _classname = _interopRequireDefault(require("../../utils/classname"));
|