@king-design/intact 2.0.15 → 3.0.0-beta.0
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/components/button/styles.ts +4 -1
- package/components/card/styles.ts +3 -2
- package/components/checkbox/styles.ts +31 -6
- package/components/collapse/styles.ts +4 -1
- package/components/datepicker/styles.ts +3 -1
- package/components/dialog/base.vdt +4 -5
- package/components/dialog/styles.ts +18 -13
- package/components/drawer/styles.ts +20 -10
- package/components/dropdown/styles.ts +1 -1
- package/components/form/styles.ts +1 -1
- package/components/icon/demos/disabled.md +21 -0
- package/components/icon/demos/icons.md +87 -116
- package/components/icon/index.md +1 -0
- package/components/icon/index.ts +2 -0
- package/components/icon/index.vdt +6 -2
- package/components/icon/styles.ts +8 -1
- package/components/input/styles.ts +14 -20
- package/components/message/demos/basic.md +1 -1
- package/components/message/demos/duration.md +3 -3
- package/components/message/index.md +1 -1
- package/components/message/message.ts +2 -2
- package/components/message/message.vdt +6 -6
- package/components/message/styles.ts +10 -19
- package/components/pagination/index.vdt +9 -9
- package/components/pagination/styles.ts +11 -7
- package/components/radio/styles.ts +28 -9
- package/components/select/base.vdt +4 -5
- package/components/select/demos/basic.md +1 -1
- package/components/select/index.md +1 -1
- package/components/select/styles.ts +4 -27
- package/components/spinner/index.vdt +6 -4
- package/components/spinner/styles.ts +36 -36
- package/components/steps/demos/basic.md +2 -1
- package/components/steps/demos/clickable.md +6 -0
- package/components/steps/demos/error.md +25 -5
- package/components/steps/demos/line.md +7 -6
- package/components/steps/demos/simple.md +0 -6
- package/components/steps/index.md +1 -1
- package/components/steps/index.ts +4 -4
- package/components/steps/index.vdt +1 -0
- package/components/steps/step.vdt +16 -13
- package/components/steps/styles.ts +297 -259
- package/components/switch/demos/basic.md +1 -2
- package/components/switch/demos/disabled.md +20 -0
- package/components/switch/demos/onOff.md +5 -0
- package/components/switch/styles.ts +29 -37
- package/components/table/column.vdt +26 -10
- package/components/table/demos/rowExpandable.md +1 -1
- package/components/table/demos/selectedKeys.md +1 -1
- package/components/table/index.md +3 -3
- package/components/table/index.spec.ts +2 -2
- package/components/table/styles.ts +17 -6
- package/components/table/useGroup.ts +18 -2
- package/components/table/useSortable.ts +4 -1
- package/components/tabs/demos/basic.md +0 -1
- package/components/tabs/index.ts +2 -2
- package/components/tabs/index.vdt +3 -3
- package/components/tabs/styles.ts +202 -152
- package/components/tag/base.ts +1 -1
- package/components/tag/demos/border.md +2 -2
- package/components/tag/index.md +1 -1
- package/components/tag/styles.ts +12 -11
- package/components/tip/index.vdt +1 -3
- package/components/tip/styles.ts +8 -2
- package/components/tooltip/content.vdt +1 -1
- package/components/tooltip/styles.ts +8 -6
- package/components/transfer/index.vdt +3 -2
- package/components/transfer/styles.ts +1 -0
- package/components/transfer/useCheck.ts +9 -2
- package/components/upload/demos/manually.md +12 -13
- package/components/upload/index.vdt +40 -34
- package/components/upload/styles.ts +60 -64
- package/es/components/button/styles.js +2 -2
- package/es/components/card/styles.js +10 -2
- package/es/components/checkbox/styles.js +21 -10
- package/es/components/collapse/styles.js +6 -1
- package/es/components/datepicker/styles.d.ts +1 -1
- package/es/components/datepicker/styles.js +4 -1
- package/es/components/dialog/base.vdt.js +5 -6
- package/es/components/dialog/styles.js +16 -14
- package/es/components/drawer/styles.js +20 -5
- package/es/components/dropdown/styles.js +1 -1
- package/es/components/form/styles.js +1 -1
- package/es/components/icon/index.d.ts +1 -0
- package/es/components/icon/index.js +2 -1
- package/es/components/icon/index.vdt.js +4 -2
- package/es/components/icon/styles.js +10 -2
- package/es/components/input/styles.js +1 -11
- package/es/components/message/message.js +1 -1
- package/es/components/message/message.vdt.js +7 -6
- package/es/components/message/styles.js +8 -8
- package/es/components/pagination/index.vdt.js +8 -8
- package/es/components/pagination/styles.js +11 -2
- package/es/components/radio/styles.js +16 -6
- package/es/components/select/base.vdt.js +5 -6
- package/es/components/select/styles.js +4 -24
- package/es/components/spinner/index.vdt.js +6 -4
- package/es/components/spinner/styles.js +33 -5
- package/es/components/steps/index.d.ts +2 -2
- package/es/components/steps/index.js +2 -2
- package/es/components/steps/index.vdt.js +1 -0
- package/es/components/steps/step.vdt.js +17 -8
- package/es/components/steps/styles.d.ts +1 -1
- package/es/components/steps/styles.js +80 -75
- package/es/components/switch/styles.js +20 -34
- package/es/components/table/column.vdt.js +43 -7
- package/es/components/table/index.spec.js +2 -2
- package/es/components/table/styles.js +16 -5
- package/es/components/table/useGroup.d.ts +3 -0
- package/es/components/table/useGroup.js +24 -1
- package/es/components/table/useSortable.d.ts +3 -1
- package/es/components/table/useSortable.js +4 -1
- package/es/components/tabs/index.d.ts +1 -1
- package/es/components/tabs/index.js +1 -1
- package/es/components/tabs/index.vdt.js +1 -1
- package/es/components/tabs/styles.js +68 -22
- package/es/components/tag/base.js +1 -1
- package/es/components/tag/styles.js +15 -10
- package/es/components/tip/index.vdt.js +1 -3
- package/es/components/tip/styles.js +4 -3
- package/es/components/tooltip/content.vdt.js +4 -4
- package/es/components/tooltip/styles.js +12 -7
- package/es/components/transfer/index.vdt.js +3 -1
- package/es/components/transfer/styles.js +1 -1
- package/es/components/transfer/useCheck.d.ts +1 -0
- package/es/components/transfer/useCheck.js +8 -1
- package/es/components/upload/index.vdt.js +21 -20
- package/es/components/upload/styles.js +22 -30
- package/es/i18n/en-US.d.ts +2 -1
- package/es/i18n/en-US.js +2 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/site/data/components/icon/demos/disabled/index.d.ts +6 -0
- package/es/site/data/components/icon/demos/disabled/index.js +18 -0
- package/es/site/data/components/icon/demos/disabled/react.d.ts +5 -0
- package/es/site/data/components/icon/demos/disabled/react.js +33 -0
- package/es/site/data/components/icon/demos/icons/index.js +1 -1
- package/es/site/data/components/icon/demos/icons/react.js +1 -1
- package/es/site/data/components/menu/demos/collapse/react.d.ts +11 -0
- package/es/site/data/components/menu/demos/size/react.d.ts +7 -0
- package/es/site/data/components/message/demos/duration/index.js +2 -2
- package/es/site/data/components/message/demos/duration/react.js +2 -2
- package/es/site/data/components/select/demos/basic/react.js +1 -2
- package/es/site/data/components/steps/demos/basic/react.js +1 -1
- package/es/site/data/components/steps/demos/clickable/react.js +15 -0
- package/es/site/data/components/steps/demos/error/react.js +22 -2
- package/es/site/data/components/steps/demos/line/react.js +15 -11
- package/es/site/data/components/steps/demos/simple/react.js +1 -11
- package/es/site/data/components/switch/demos/basic/react.js +0 -2
- package/es/site/data/components/switch/demos/disabled/index.d.ts +6 -0
- package/es/site/data/components/switch/demos/disabled/index.js +18 -0
- package/es/site/data/components/switch/demos/disabled/react.d.ts +5 -0
- package/es/site/data/components/switch/demos/disabled/react.js +27 -0
- package/es/site/data/components/switch/demos/onOff/react.js +13 -0
- package/es/site/data/components/tag/demos/border/index.js +1 -1
- package/es/site/data/components/tag/demos/border/react.js +1 -1
- package/es/site/data/components/upload/demos/manually/react.js +5 -7
- package/es/site/src/pages/document/index.js +3 -2
- package/es/site/src/pages/document/styles.js +1 -1
- package/es/styles/fonts/iconfont.eot +0 -0
- package/es/styles/fonts/iconfont.js +1 -1
- package/es/styles/fonts/iconfont.svg +189 -369
- package/es/styles/fonts/iconfont.ttf +0 -0
- package/es/styles/fonts/iconfont.woff +0 -0
- package/es/styles/theme.d.ts +10 -2
- package/es/styles/theme.js +23 -21
- package/i18n/en-US.ts +2 -1
- package/index.ts +2 -2
- package/package.json +4 -3
- package/styles/fonts/iconfont.css +172 -289
- package/styles/fonts/iconfont.eot +0 -0
- package/styles/fonts/iconfont.svg +189 -369
- package/styles/fonts/iconfont.ts +255 -369
- package/styles/fonts/iconfont.ttf +0 -0
- package/styles/fonts/iconfont.woff +0 -0
- package/styles/fonts/iconfont.woff2 +0 -0
- package/styles/theme.ts +23 -19
|
@@ -10,13 +10,14 @@ import { _$ } from '../../i18n';
|
|
|
10
10
|
import { Icon } from '../icon';
|
|
11
11
|
import { UploadFileStatus } from './useUpload';
|
|
12
12
|
var _$tmp0 = {
|
|
13
|
-
'className': '
|
|
13
|
+
'className': 'k-icon-upload'
|
|
14
14
|
};
|
|
15
15
|
var _$tmp1 = {
|
|
16
|
-
'className': 'k-
|
|
16
|
+
'className': 'k-icon-add-big'
|
|
17
17
|
};
|
|
18
18
|
var _$tmp2 = {
|
|
19
|
-
'className': 'k-
|
|
19
|
+
'className': 'k-icon-add-big',
|
|
20
|
+
'size': 'large'
|
|
20
21
|
};
|
|
21
22
|
var _$tmp3 = {
|
|
22
23
|
'className': 'k-upload-file-icon ion-document'
|
|
@@ -28,7 +29,7 @@ var _$tmp5 = {
|
|
|
28
29
|
'className': 'k-upload-status-icon ion-ios-close-outline'
|
|
29
30
|
};
|
|
30
31
|
export default function ($props, $blocks, $__proto__) {
|
|
31
|
-
var _classNameObj, _$
|
|
32
|
+
var _classNameObj, _$cn2;
|
|
32
33
|
|
|
33
34
|
$blocks || ($blocks = {});
|
|
34
35
|
$props || ($props = {});
|
|
@@ -75,9 +76,10 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
75
76
|
|
|
76
77
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
77
78
|
}, __$blocks['children'](_$no)) : type !== 'gallery' ? type === 'select' ? _$cc(Button, {
|
|
78
|
-
'
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
'children': [_$cc(Icon, _$tmp0), _$('点击上传')]
|
|
80
|
+
}) : _$ce(2, 'div', [_$cc(Icon, _$tmp1), _$ce(2, 'div', null, 1, null, {
|
|
81
|
+
'innerHTML': _$('将文件拖到此处,或<a>点击上传</a>')
|
|
82
|
+
})], 4, 'k-upload-area') : _$ce(2, 'div', [_$cc(Icon, _$tmp2), _$ce(2, 'div', _$('上传图片'), 0)], 4, 'k-upload-picture-card k-upload-add');
|
|
81
83
|
}, __$blocks['content'] = function ($super, data) {
|
|
82
84
|
var block = $blocks['content'];
|
|
83
85
|
|
|
@@ -90,13 +92,9 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
90
92
|
|
|
91
93
|
var removeFile = this.files.removeFile;
|
|
92
94
|
|
|
93
|
-
var closeBtn = function closeBtn(value, index
|
|
94
|
-
var _$cn2;
|
|
95
|
-
|
|
95
|
+
var closeBtn = function closeBtn(value, index) {
|
|
96
96
|
return _$cc(Icon, {
|
|
97
|
-
'className':
|
|
98
|
-
"k-upload-close": true
|
|
99
|
-
}, _$cn2[icon] = true, _$cn2)),
|
|
97
|
+
'className': 'k-upload-close k-icon-delete',
|
|
100
98
|
'ev-click': function evClick() {
|
|
101
99
|
return removeFile(value, index);
|
|
102
100
|
},
|
|
@@ -129,10 +127,13 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
129
127
|
'percent': $value.percent,
|
|
130
128
|
'size': 'mini',
|
|
131
129
|
'className': 'k-upload-progress'
|
|
132
|
-
}), 2, 'k-upload-overlap', null, 'overlap') : _$ce(2, 'div', _$cc(Icon,
|
|
130
|
+
}), 2, 'k-upload-overlap', null, 'overlap') : _$ce(2, 'div', [_$cc(Icon, {
|
|
131
|
+
'className': 'k-upload-zoom ion-ios-eye-outline',
|
|
132
|
+
'size': 'large',
|
|
133
|
+
'hoverable': true,
|
|
133
134
|
'ev-click': linkEvent($value, show)
|
|
134
|
-
})
|
|
135
|
-
})
|
|
135
|
+
}), closeBtn($value, $key)], 0, 'k-upload-overlap k-upload-icons')
|
|
136
|
+
})], 4, _$cn({
|
|
136
137
|
"k-upload-picture k-upload-picture-card": true,
|
|
137
138
|
'k-error': $value.status === UploadFileStatus.Error
|
|
138
139
|
}), null, $value.uid);
|
|
@@ -149,13 +150,13 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
149
150
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
150
151
|
}, __$blocks['tip'](_$no)), 0, 'k-upload-tip') : undefined, type !== 'gallery' ? _$ce(2, 'div', _$cc(TransitionGroup, _extends({}, expandAnimationCallbacks, {
|
|
151
152
|
'children': _$ma(files, function ($value, $key) {
|
|
152
|
-
return _$ce(2, 'div', [_$ce(2, 'div', [_$cc(Icon, _$tmp3), _$ce(2, 'span', $value.name, 0, 'k-upload-file-name'),
|
|
153
|
+
return _$ce(2, 'div', [_$ce(2, 'div', [_$ce(2, 'div', [_$cc(Icon, _$tmp3), _$ce(2, 'span', $value.name, 0, 'k-upload-file-name'), $value.status === UploadFileStatus.Done ? _$cc(Icon, _$tmp4) : $value.status === UploadFileStatus.Error ? _$cc(Icon, _$tmp5) : undefined], 0, 'k-upload-name c-ellipsis'), _$cc(Transition, _extends({}, expandAnimationCallbacks, {
|
|
153
154
|
'children': $value.status === UploadFileStatus.Ready || $value.status === UploadFileStatus.Uploading ? _$cc(Progress, {
|
|
154
155
|
'percent': $value.percent,
|
|
155
156
|
'size': 'mini',
|
|
156
157
|
'className': 'k-upload-progress'
|
|
157
158
|
}) : undefined
|
|
158
|
-
}))], 4, _$cn({
|
|
159
|
+
}))], 4, 'k-upload-file-main'), closeBtn($value, $key)], 0, _$cn({
|
|
159
160
|
"k-upload-file": true,
|
|
160
161
|
'k-error': $value.status === UploadFileStatus.Error
|
|
161
162
|
}), null, $value.uid);
|
|
@@ -165,9 +166,9 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
165
166
|
'key': 'dialog',
|
|
166
167
|
'value': isShow.value,
|
|
167
168
|
'ev-close': close,
|
|
168
|
-
'className': _$cn((_$
|
|
169
|
+
'className': _$cn((_$cn2 = {
|
|
169
170
|
"k-upload-dialog": true
|
|
170
|
-
}, _$
|
|
171
|
+
}, _$cn2[makeUploadDialogStyles()] = true, _$cn2)),
|
|
171
172
|
'children': image.value ? _$ce(2, 'a', _$ce(2, 'img', null, 1, null, {
|
|
172
173
|
'src': image.value.url
|
|
173
174
|
}), 2, null, {
|
|
@@ -10,15 +10,14 @@ var defaults = {
|
|
|
10
10
|
},
|
|
11
11
|
|
|
12
12
|
fontSize: '12px',
|
|
13
|
-
tip: {
|
|
14
|
-
gap: '16px',
|
|
15
13
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
get color() {
|
|
15
|
+
return theme.color.lightBlack;
|
|
16
|
+
},
|
|
19
17
|
|
|
18
|
+
tip: {
|
|
19
|
+
gap: '8px'
|
|
20
20
|
},
|
|
21
|
-
closeFontSize: '24px',
|
|
22
21
|
// files list
|
|
23
22
|
filesGap: '16px',
|
|
24
23
|
file: {
|
|
@@ -45,12 +44,16 @@ var defaults = {
|
|
|
45
44
|
return theme.color.success;
|
|
46
45
|
},
|
|
47
46
|
|
|
48
|
-
gap: '8px',
|
|
49
|
-
|
|
50
47
|
get errorColor() {
|
|
51
48
|
return theme.color.danger;
|
|
52
|
-
}
|
|
49
|
+
},
|
|
53
50
|
|
|
51
|
+
offsetRight: '2px'
|
|
52
|
+
},
|
|
53
|
+
delete: {
|
|
54
|
+
width: '20px',
|
|
55
|
+
top: '7px',
|
|
56
|
+
right: '2px'
|
|
54
57
|
},
|
|
55
58
|
|
|
56
59
|
get errorColor() {
|
|
@@ -60,10 +63,6 @@ var defaults = {
|
|
|
60
63
|
},
|
|
61
64
|
// drag
|
|
62
65
|
drag: {
|
|
63
|
-
get color() {
|
|
64
|
-
return theme.color.lightBlack;
|
|
65
|
-
},
|
|
66
|
-
|
|
67
66
|
get border() {
|
|
68
67
|
return "1px dashed " + theme.color.border;
|
|
69
68
|
},
|
|
@@ -76,14 +75,14 @@ var defaults = {
|
|
|
76
75
|
return theme.color.primary;
|
|
77
76
|
},
|
|
78
77
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
get color() {
|
|
84
|
-
return theme.color.placeholder;
|
|
85
|
-
}
|
|
78
|
+
get bgColor() {
|
|
79
|
+
return theme.color.bg;
|
|
80
|
+
},
|
|
86
81
|
|
|
82
|
+
padding: "42px 0",
|
|
83
|
+
icon: {
|
|
84
|
+
fontSize: '40px',
|
|
85
|
+
gap: '16px'
|
|
87
86
|
},
|
|
88
87
|
|
|
89
88
|
get overBorderColor() {
|
|
@@ -112,18 +111,11 @@ var defaults = {
|
|
|
112
111
|
return theme.color.danger;
|
|
113
112
|
},
|
|
114
113
|
|
|
115
|
-
close: {
|
|
116
|
-
top: '-8px',
|
|
117
|
-
right: '-8px',
|
|
118
|
-
fontSize: '18px'
|
|
119
|
-
},
|
|
120
114
|
add: {
|
|
121
115
|
get border() {
|
|
122
116
|
return "1px dashed " + theme.color.border;
|
|
123
117
|
},
|
|
124
118
|
|
|
125
|
-
fontSize: '44px',
|
|
126
|
-
|
|
127
119
|
get hoverBorderColor() {
|
|
128
120
|
return theme.color.primary;
|
|
129
121
|
}
|
|
@@ -132,9 +124,9 @@ var defaults = {
|
|
|
132
124
|
},
|
|
133
125
|
// overlap
|
|
134
126
|
overlap: {
|
|
135
|
-
bgColor: 'rgba(
|
|
127
|
+
bgColor: 'rgba(21, 27, 30, .5)',
|
|
136
128
|
color: '#fff',
|
|
137
|
-
|
|
129
|
+
iconGap: '16px'
|
|
138
130
|
}
|
|
139
131
|
};
|
|
140
132
|
var upload;
|
|
@@ -144,7 +136,7 @@ setDefault(function () {
|
|
|
144
136
|
}).upload;
|
|
145
137
|
});
|
|
146
138
|
export function makeStyles() {
|
|
147
|
-
return /*#__PURE__*/css("font-size:", upload.fontSize, ";position:relative;.k-upload
|
|
139
|
+
return /*#__PURE__*/css("font-size:", upload.fontSize, ";position:relative;.k-icon-upload{position:relative;top:-1px;}.k-upload-handle{display:inline-block;vertical-align:middle;color:", upload.color, ";}.k-upload-tip{margin-top:", upload.tip.gap, ";color:", upload.color, ";}.k-upload-files{margin-top:", upload.filesGap, ";}.k-upload-file{margin:", upload.file.margin, ";padding-right:", upload.file.delete.width, ";position:relative;&:hover{.k-upload-close{display:inline-flex;position:absolute;right:", upload.file.delete.right, ";top:", upload.file.delete.top, ";}.k-upload-file-main{background:", upload.file.bgColor, ";}}}.k-upload-file-main{padding:", upload.file.padding, ";border-radius:", upload.file.borderRadius, ";}.k-upload-name{display:flex;align-items:center;height:", upload.file.height, ";}.k-upload-file-icon{margin-right:", upload.file.fileIconGap, ";}.k-upload-file-name{flex:1;}.k-upload-status-icon{color:", upload.file.status.color, ";margin-right:", upload.file.status.offsetRight, ";}.k-upload-close{display:none;}.k-upload-file.k-error{color:", upload.file.errorColor, ";.k-upload-status-icon{color:", upload.file.status.errorColor, ";}}.k-upload-progress{.k-progress-text{width:auto!important;}}&.k-drag{.k-upload-handle{display:block;border:", upload.drag.border, ";border-radius:", upload.drag.borderRadius, ";cursor:pointer;text-align:center;transition:border-color ", upload.transition, ";background:", upload.drag.bgColor, ";&:hover{border-color:", upload.drag.hoverBorderColor, ";}}.k-upload-area{padding:", upload.drag.padding, ";.k-icon{display:inline-block;font-size:", upload.drag.icon.fontSize, ";margin-bottom:", upload.drag.icon.gap, ";}}&.k-dragover{.k-upload-handle{border-color:", upload.drag.overBorderColor, ";}}}.k-upload-pictures{display:inline-block;vertical-align:middle;}.k-upload-picture{padding:", upload.gallery.padding, ";position:relative;vertical-align:middle;&.k-error{border-color:", upload.gallery.errorBorderColor, ";}.k-upload-close{display:inline-flex;}&:hover{.k-upload-icons{opacity:1;}}.k-upload-img{display:inline-block;width:100%;height:100%;}.k-upload-icons{opacity:0;transition:opacity ", upload.transition, ";}}.k-upload-picture-card{display:inline-flex;width:", upload.gallery.width, ";height:", upload.gallery.height, ";border-radius:", upload.gallery.borderRadius, ";border:", upload.gallery.border, ";margin:", upload.gallery.margin, ";background:", upload.gallery.bgColor, ";align-items:center;justify-content:center;flex-direction:column;}.k-upload-add{border:", upload.gallery.add.border, ";cursor:pointer;&:hover{border-color:", upload.gallery.add.hoverBorderColor, ";}}.k-upload-overlap{position:absolute;width:100%;height:100%;left:0;top:0;background:", upload.overlap.bgColor, ";display:flex;align-items:center;justify-content:center;gap:", upload.overlap.iconGap, ";color:", upload.overlap.color, ";.k-icon:not(:hover){color:inherit;}.k-upload-progress{position:absolute;width:100%;top:50%;padding:", upload.gallery.padding, ";transform:translateY(-50%);}}");
|
|
148
140
|
}
|
|
149
141
|
export function makeUploadDialogStyles() {
|
|
150
142
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
|
package/es/i18n/en-US.d.ts
CHANGED
|
@@ -82,8 +82,9 @@ declare const i18n: {
|
|
|
82
82
|
请输入或选择: string;
|
|
83
83
|
无数据: string;
|
|
84
84
|
点击上传: string;
|
|
85
|
-
'\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904\uFF0C\u6216
|
|
85
|
+
'\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904\uFF0C\u6216<a>\u70B9\u51FB\u4E0A\u4F20</a>': string;
|
|
86
86
|
查看图片: string;
|
|
87
|
+
上传图片: string;
|
|
87
88
|
'\u8D85\u51FA\u6587\u4EF6\u6570\u91CF\u6700\u5927\u9650\u5236\uFF1A{limit}': string;
|
|
88
89
|
'"{name}" \u8D85\u51FA\u6587\u4EF6\u6700\u5927\u9650\u5236\uFF1A{maxSize}kb': string;
|
|
89
90
|
'"{name}" \u6587\u4EF6\u7C7B\u578B\u4E0D\u5408\u6CD5': string;
|
package/es/i18n/en-US.js
CHANGED
|
@@ -92,8 +92,9 @@ var i18n = {
|
|
|
92
92
|
'无数据': 'No data',
|
|
93
93
|
// upload
|
|
94
94
|
'点击上传': 'Click to Upload',
|
|
95
|
-
'
|
|
95
|
+
'将文件拖到此处,或<a>点击上传</a>': 'Drag file to this area or <a>click to upload</a>',
|
|
96
96
|
'查看图片': 'View Image',
|
|
97
|
+
'上传图片': 'Upload Image',
|
|
97
98
|
'超出文件数量最大限制:{limit}': 'Exceed the maximum limit of the number of files: {limit}',
|
|
98
99
|
'"{name}" 超出文件最大限制:{maxSize}kb': '"{name}" exceeds the maximum size of file: {maxSize}kb',
|
|
99
100
|
'"{name}" 文件类型不合法': '"{name}" invalid file type',
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design
|
|
2
|
+
* @king-design v3.0.0-beta.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -57,4 +57,4 @@ export * from './components/tree';
|
|
|
57
57
|
export * from './components/treeSelect';
|
|
58
58
|
export * from './components/upload';
|
|
59
59
|
export * from './components/wave';
|
|
60
|
-
export declare const version = "
|
|
60
|
+
export declare const version = "3.0.0-beta.0";
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design
|
|
2
|
+
* @king-design v3.0.0-beta.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -59,5 +59,5 @@ export * from './components/tree';
|
|
|
59
59
|
export * from './components/treeSelect';
|
|
60
60
|
export * from './components/upload';
|
|
61
61
|
export * from './components/wave';
|
|
62
|
-
export var version = '
|
|
62
|
+
export var version = '3.0.0-beta.0';
|
|
63
63
|
/* generate end */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
export { default as data } from './index.json';
|
|
3
|
+
import { Component } from 'intact';
|
|
4
|
+
import template from './index.vdt';
|
|
5
|
+
import './index.styl';
|
|
6
|
+
|
|
7
|
+
var default_1 = /*#__PURE__*/function (_Component) {
|
|
8
|
+
_inheritsLoose(default_1, _Component);
|
|
9
|
+
|
|
10
|
+
function default_1() {
|
|
11
|
+
return _Component.apply(this, arguments) || this;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return default_1;
|
|
15
|
+
}(Component);
|
|
16
|
+
|
|
17
|
+
default_1.template = template;
|
|
18
|
+
export { default_1 as default };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Icon } from '@king-design/react';
|
|
4
|
+
import './index.styl';
|
|
5
|
+
|
|
6
|
+
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
7
|
+
_inheritsLoose(Demo, _React$Component);
|
|
8
|
+
|
|
9
|
+
function Demo() {
|
|
10
|
+
return _React$Component.apply(this, arguments) || this;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
var _proto = Demo.prototype;
|
|
14
|
+
|
|
15
|
+
_proto.render = function render() {
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Icon, {
|
|
17
|
+
className: "ion-happy-outline",
|
|
18
|
+
disabled: true
|
|
19
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
20
|
+
className: "ion-happy-outline",
|
|
21
|
+
disabled: true,
|
|
22
|
+
hoverable: true
|
|
23
|
+
}), /*#__PURE__*/React.createElement(Icon, {
|
|
24
|
+
className: "ion-happy-outline",
|
|
25
|
+
disabled: true,
|
|
26
|
+
color: "primary"
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return Demo;
|
|
31
|
+
}(React.Component);
|
|
32
|
+
|
|
33
|
+
export { Demo as default };
|
|
@@ -13,7 +13,7 @@ var default_1 = /*#__PURE__*/function (_Component) {
|
|
|
13
13
|
|
|
14
14
|
default_1.defaults = function defaults() {
|
|
15
15
|
return {
|
|
16
|
-
fonts: [
|
|
16
|
+
fonts: ["tag", "clone", "information-fill", "warning-fill", "success-fill", "error-fill", "question-fill", "information", "cloud", "pin", "home", "cut", "servers", "internet", "mail", "paper", "phone", "panel", "alarm", "notification-outline", "earphone", "settings-horizontal", "message", "heart-outline", "return-right", "picture", "logout", "all", "drag", "settings-vertical", "more", "more-circled", "folder", "unlock", "user", "folder-open", "lock", "users", "edit", "location", "delete", "edit2", "settings", "calendar", "search", "alert", "question", "zoom-in", "zoom-out", "fault-outline", "truth-circled", "hide", "visible", "time", "refresh", "batchsearch", "refresh2", "upload", "download", "left-squared", "right-squared", "down-squared", "up-squared", "arrow-right-circled", "arrow-down-circled", "arrow-left-circled", "arrow-up-circled", "arrow-up-big", "arrow-left-big", "arrow-down", "arrow-right-big", "arrow-right", "sortfill", "arrow-left", "arrow-up", "arrow-down-big", "sort", "sortbig", "truth", "check", "close-big", "add-small", "minus", "close", "minuss-mall", "add-big"]
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -19,7 +19,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
19
19
|
|
|
20
20
|
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
21
21
|
_this.state = {
|
|
22
|
-
fonts: [
|
|
22
|
+
fonts: ["tag", "clone", "information-fill", "warning-fill", "success-fill", "error-fill", "question-fill", "information", "cloud", "pin", "home", "cut", "servers", "internet", "mail", "paper", "phone", "panel", "alarm", "notification-outline", "earphone", "settings-horizontal", "message", "heart-outline", "return-right", "picture", "logout", "all", "drag", "settings-vertical", "more", "more-circled", "folder", "unlock", "user", "folder-open", "lock", "users", "edit", "location", "delete", "edit2", "settings", "calendar", "search", "alert", "question", "zoom-in", "zoom-out", "fault-outline", "truth-circled", "hide", "visible", "time", "refresh", "batchsearch", "refresh2", "upload", "download", "left-squared", "right-squared", "down-squared", "up-squared", "arrow-right-circled", "arrow-down-circled", "arrow-left-circled", "arrow-up-circled", "arrow-up-big", "arrow-left-big", "arrow-down", "arrow-right-big", "arrow-right", "sortfill", "arrow-left", "arrow-up", "arrow-down-big", "sort", "sortbig", "truth", "check", "close-big", "add-small", "minus", "close", "minuss-mall", "add-big"]
|
|
23
23
|
};
|
|
24
24
|
return _this;
|
|
25
25
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MenuProps } from '@king-design/react';
|
|
3
|
+
interface Props extends MenuProps {
|
|
4
|
+
}
|
|
5
|
+
export default class Demo extends React.Component<{}, Props> {
|
|
6
|
+
state: MenuProps<import("misstime").Key>;
|
|
7
|
+
private __test;
|
|
8
|
+
setTheme(theme?: string): void;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -16,11 +16,11 @@ var default_1 = /*#__PURE__*/function (_Component) {
|
|
|
16
16
|
var _proto = default_1.prototype;
|
|
17
17
|
|
|
18
18
|
_proto.showMessage1 = function showMessage1() {
|
|
19
|
-
Message.info('close after 10s',
|
|
19
|
+
Message.info('close after 10s', 1000000);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
_proto.showMessage2 = function showMessage2() {
|
|
23
|
-
Message.
|
|
23
|
+
Message.success('stick message', 0);
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
return default_1;
|
|
@@ -15,11 +15,11 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
15
15
|
var _proto = Demo.prototype;
|
|
16
16
|
|
|
17
17
|
_proto.showMessage1 = function showMessage1() {
|
|
18
|
-
Message.info('close after 10s',
|
|
18
|
+
Message.info('close after 10s', 1000000);
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
_proto.showMessage2 = function showMessage2() {
|
|
22
|
-
Message.
|
|
22
|
+
Message.success('stick message', 0);
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
_proto.render = function render() {
|
|
@@ -37,8 +37,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
37
37
|
return _this2.setState({
|
|
38
38
|
day: day
|
|
39
39
|
});
|
|
40
|
-
}
|
|
41
|
-
show: true
|
|
40
|
+
}
|
|
42
41
|
}, /*#__PURE__*/React.createElement(Option, {
|
|
43
42
|
value: "Monday"
|
|
44
43
|
}, "\u661F\u671F\u4E00"), /*#__PURE__*/React.createElement(Option, {
|
|
@@ -62,7 +62,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
62
62
|
}, "Previous Step"), /*#__PURE__*/React.createElement(Button, {
|
|
63
63
|
type: "primary",
|
|
64
64
|
onClick: this.next,
|
|
65
|
-
disabled: this.state.index ===
|
|
65
|
+
disabled: this.state.index === 3
|
|
66
66
|
}, "Next Step"));
|
|
67
67
|
};
|
|
68
68
|
|
|
@@ -56,6 +56,21 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
56
56
|
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
57
57
|
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
58
58
|
title: "\u8BBE\u7F6EVPC"
|
|
59
|
+
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Steps, {
|
|
60
|
+
value: this.state.index,
|
|
61
|
+
onChangeValue: function onChangeValue(index) {
|
|
62
|
+
return _this2.setState({
|
|
63
|
+
index: index
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
type: "line",
|
|
67
|
+
clickable: true
|
|
68
|
+
}, /*#__PURE__*/React.createElement(Step, {
|
|
69
|
+
title: "\u9009\u62E9\u914D\u7F6E"
|
|
70
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
71
|
+
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
72
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
73
|
+
title: "\u8BBE\u7F6EVPC"
|
|
59
74
|
})), /*#__PURE__*/React.createElement(Button, {
|
|
60
75
|
type: "primary",
|
|
61
76
|
onClick: this.previous,
|
|
@@ -12,7 +12,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
12
12
|
var _proto = Demo.prototype;
|
|
13
13
|
|
|
14
14
|
_proto.render = function render() {
|
|
15
|
-
return /*#__PURE__*/React.createElement(Steps, {
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Steps, {
|
|
16
16
|
value: 1,
|
|
17
17
|
status: "error"
|
|
18
18
|
}, /*#__PURE__*/React.createElement(Step, {
|
|
@@ -21,7 +21,27 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
21
21
|
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
22
22
|
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
23
23
|
title: "\u8BBE\u7F6EVPC"
|
|
24
|
-
}))
|
|
24
|
+
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Steps, {
|
|
25
|
+
value: 1,
|
|
26
|
+
status: "error",
|
|
27
|
+
type: "line"
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Step, {
|
|
29
|
+
title: "\u9009\u62E9\u914D\u7F6E"
|
|
30
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
31
|
+
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
32
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
33
|
+
title: "\u8BBE\u7F6EVPC"
|
|
34
|
+
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Steps, {
|
|
35
|
+
value: 1,
|
|
36
|
+
status: "error",
|
|
37
|
+
type: "simple"
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Step, {
|
|
39
|
+
title: "\u9009\u62E9\u914D\u7F6E"
|
|
40
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
41
|
+
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
42
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
43
|
+
title: "\u8BBE\u7F6EVPC"
|
|
44
|
+
})));
|
|
25
45
|
};
|
|
26
46
|
|
|
27
47
|
return Demo;
|
|
@@ -56,6 +56,20 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
56
56
|
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
57
57
|
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
58
58
|
title: "\u8BBE\u7F6EVPC"
|
|
59
|
+
})), /*#__PURE__*/React.createElement(Steps, {
|
|
60
|
+
value: this.state.index,
|
|
61
|
+
onChangeValue: function onChangeValue(index) {
|
|
62
|
+
return _this2.setState({
|
|
63
|
+
index: index
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
type: "line-compact"
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Step, {
|
|
68
|
+
title: "\u9009\u62E9\u914D\u7F6E"
|
|
69
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
70
|
+
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
71
|
+
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
72
|
+
title: "\u8BBE\u7F6EVPC"
|
|
59
73
|
})), /*#__PURE__*/React.createElement(Button, {
|
|
60
74
|
type: "primary",
|
|
61
75
|
onClick: this.previous,
|
|
@@ -64,17 +78,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
64
78
|
type: "primary",
|
|
65
79
|
onClick: this.next,
|
|
66
80
|
disabled: this.state.index === 2
|
|
67
|
-
}, "Next Step")
|
|
68
|
-
value: 1,
|
|
69
|
-
status: "error",
|
|
70
|
-
type: "line"
|
|
71
|
-
}, /*#__PURE__*/React.createElement(Step, {
|
|
72
|
-
title: "\u9009\u62E9\u914D\u7F6E"
|
|
73
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
74
|
-
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
75
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
76
|
-
title: "\u8BBE\u7F6EVPC"
|
|
77
|
-
})));
|
|
81
|
+
}, "Next Step"));
|
|
78
82
|
};
|
|
79
83
|
|
|
80
84
|
return Demo;
|
|
@@ -64,17 +64,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
64
64
|
type: "primary",
|
|
65
65
|
onClick: this.next,
|
|
66
66
|
disabled: this.state.index === 2
|
|
67
|
-
}, "Next Step")
|
|
68
|
-
value: 1,
|
|
69
|
-
status: "error",
|
|
70
|
-
type: "simple"
|
|
71
|
-
}, /*#__PURE__*/React.createElement(Step, {
|
|
72
|
-
title: "\u9009\u62E9\u914D\u7F6E"
|
|
73
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
74
|
-
title: "\u9009\u62E9\u5F39\u6027IP"
|
|
75
|
-
}, "\u8BF7\u9009\u62E9\u4E3B\u673A\u5F39\u6027IP\u7684\u914D\u7F6E\u4FE1\u606F"), /*#__PURE__*/React.createElement(Step, {
|
|
76
|
-
title: "\u8BBE\u7F6EVPC"
|
|
77
|
-
})));
|
|
67
|
+
}, "Next Step"));
|
|
78
68
|
};
|
|
79
69
|
|
|
80
70
|
return Demo;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
export { default as data } from './index.json';
|
|
3
|
+
import { Component } from 'intact';
|
|
4
|
+
import template from './index.vdt';
|
|
5
|
+
import './index.styl';
|
|
6
|
+
|
|
7
|
+
var default_1 = /*#__PURE__*/function (_Component) {
|
|
8
|
+
_inheritsLoose(default_1, _Component);
|
|
9
|
+
|
|
10
|
+
function default_1() {
|
|
11
|
+
return _Component.apply(this, arguments) || this;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return default_1;
|
|
15
|
+
}(Component);
|
|
16
|
+
|
|
17
|
+
default_1.template = template;
|
|
18
|
+
export { default_1 as default };
|