@king-design/intact 3.4.3 → 3.4.5
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/demos/group.md +3 -3
- package/components/button/group.ts +5 -0
- package/components/button/group.vdt +2 -2
- package/components/button/index.md +2 -1
- package/components/button/styles.ts +4 -4
- package/components/table/cell.ts +2 -2
- package/components/table/cell.vdt +5 -3
- package/components/table/column.vdt +3 -3
- package/components/table/demos/asyncTree.md +3 -0
- package/components/table/demos/fixFooter.md +1 -1
- package/components/table/demos/tree.md +22 -10
- package/components/table/index.md +1 -0
- package/components/table/row.ts +1 -0
- package/components/table/row.vdt +2 -0
- package/components/table/styles.ts +3 -0
- package/components/table/table.ts +4 -3
- package/components/table/table.vdt +4 -2
- package/components/table/useColumns.ts +24 -1
- package/components/tip/demos/icon.md +53 -0
- package/components/tip/demos/size.md +39 -0
- package/components/tip/index.md +2 -0
- package/components/tip/index.ts +17 -1
- package/components/tip/index.vdt +38 -5
- package/components/tip/styles.ts +84 -3
- package/components/tooltip/demos/always.md +6 -0
- package/components/tooltip/tooltip.ts +2 -1
- package/components/transfer/index.vdt +2 -4
- package/components/tree/demos/loading.md +3 -0
- package/components/upload/demos/files.md +1 -0
- package/components/upload/index.vdt +4 -1
- package/components/upload/styles.ts +1 -0
- package/es/components/button/group.d.ts +1 -0
- package/es/components/button/group.js +4 -0
- package/es/components/button/group.vdt.js +3 -2
- package/es/components/button/styles.js +3 -3
- package/es/components/table/cell.d.ts +1 -0
- package/es/components/table/cell.vdt.js +5 -3
- package/es/components/table/column.vdt.js +15 -12
- package/es/components/table/row.d.ts +1 -0
- package/es/components/table/row.vdt.js +4 -2
- package/es/components/table/styles.d.ts +49 -0
- package/es/components/table/styles.js +2 -1
- package/es/components/table/table.d.ts +1 -0
- package/es/components/table/table.js +1 -0
- package/es/components/table/table.vdt.js +11 -2
- package/es/components/table/useColumns.d.ts +9 -0
- package/es/components/table/useColumns.js +29 -1
- package/es/components/tip/index.d.ts +6 -1
- package/es/components/tip/index.js +12 -1
- package/es/components/tip/index.vdt.js +25 -5
- package/es/components/tip/styles.js +44 -2
- package/es/components/tooltip/tooltip.js +5 -1
- package/es/components/transfer/index.vdt.js +2 -4
- package/es/components/upload/index.vdt.js +4 -1
- package/es/components/upload/styles.js +1 -1
- package/es/index.d.ts +2 -2
- package/es/index.js +2 -2
- package/es/site/data/components/button/demos/group/react.js +2 -2
- package/es/site/data/components/table/demos/tree/react.js +18 -2
- package/es/site/data/components/tip/demos/icon/index.d.ts +9 -0
- package/es/site/data/components/tip/demos/icon/index.js +19 -0
- package/es/site/data/components/tip/demos/icon/react.d.ts +8 -0
- package/es/site/data/components/tip/demos/icon/react.js +54 -0
- package/es/site/data/components/tip/demos/size/index.d.ts +9 -0
- package/es/site/data/components/tip/demos/size/index.js +19 -0
- package/es/site/data/components/tip/demos/size/react.d.ts +8 -0
- package/es/site/data/components/tip/demos/size/react.js +39 -0
- package/es/site/data/components/tooltip/demos/always/react.js +5 -0
- package/es/site/data/components/upload/demos/files/index.js +3 -0
- package/es/site/data/components/upload/demos/files/react.js +3 -0
- package/es/site/src/pages/font/index.js +1 -1
- package/es/site/src/pages/font/styles.js +1 -1
- package/index.ts +2 -2
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createUnknownComponentVNode as _$cc, className as _$cn, noop as _$no, superCall as _$su, extend as _$ex, EMPTY_OBJ as _$em, createElementVNode as _$ce } from 'intact';
|
|
2
2
|
import { Button } from '../button';
|
|
3
3
|
import { Icon } from '../icon';
|
|
4
4
|
import { makeStyles } from './styles';
|
|
5
5
|
export default function ($props, $blocks, $__proto__) {
|
|
6
|
-
var _classNameObj;
|
|
6
|
+
var _classNameObj, _$cn2;
|
|
7
7
|
$blocks || ($blocks = {});
|
|
8
8
|
$props || ($props = {});
|
|
9
9
|
var $this = this;
|
|
@@ -13,9 +13,28 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
13
13
|
children = _this$get.children,
|
|
14
14
|
closable = _this$get.closable,
|
|
15
15
|
type = _this$get.type,
|
|
16
|
-
disabled = _this$get.disabled
|
|
16
|
+
disabled = _this$get.disabled,
|
|
17
|
+
showIcon = _this$get.showIcon;
|
|
17
18
|
var k = this.config.k;
|
|
19
|
+
var iconMap = {
|
|
20
|
+
default: 'information-fill',
|
|
21
|
+
info: 'information-fill',
|
|
22
|
+
warning: 'warning-fill',
|
|
23
|
+
success: 'success-fill',
|
|
24
|
+
error: 'error-fill'
|
|
25
|
+
};
|
|
18
26
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-tip"] = true, _classNameObj[makeStyles(k)] = true, _classNameObj);
|
|
27
|
+
var iconWrapper = !$blocks.icon ? _$cc(Icon, {
|
|
28
|
+
'className': _$cn((_$cn2 = {}, _$cn2[k + "-icon-" + (iconMap[type] || iconMap.info)] = true, _$cn2[k + "-tip-icon"] = true, _$cn2))
|
|
29
|
+
}) : (_$blocks['icon'] = function ($super) {
|
|
30
|
+
return null;
|
|
31
|
+
}, __$blocks['icon'] = function ($super, data) {
|
|
32
|
+
var block = $blocks['icon'];
|
|
33
|
+
var callBlock = function callBlock() {
|
|
34
|
+
return _$blocks['icon'].call($this, $super, data);
|
|
35
|
+
};
|
|
36
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
37
|
+
}, __$blocks['icon'](_$no));
|
|
19
38
|
return _$su.call($this, {
|
|
20
39
|
'className': _$cn(classNameObj),
|
|
21
40
|
'name': 'k-fade'
|
|
@@ -23,7 +42,8 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
23
42
|
var _$blocks = {},
|
|
24
43
|
__$blocks = _$ex({}, $blocks);
|
|
25
44
|
return (_$blocks['body'] = function ($super) {
|
|
26
|
-
|
|
45
|
+
var _$cn3, _$cn4;
|
|
46
|
+
return _$ce(2, 'div', [!$blocks.title && (showIcon || $blocks.icon) ? iconWrapper : undefined, $blocks.title ? _$ce(2, 'div', [showIcon ? iconWrapper : undefined, _$ce(2, 'span', (_$blocks['title'] = function ($super) {
|
|
27
47
|
return null;
|
|
28
48
|
}, __$blocks['title'] = function ($super, data) {
|
|
29
49
|
var block = $blocks['title'];
|
|
@@ -31,7 +51,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
31
51
|
return _$blocks['title'].call($this, $super, data);
|
|
32
52
|
};
|
|
33
53
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
34
|
-
}, __$blocks['title'](_$no)), 0, _$cn(k + "-tip-title")) : undefined, children], 0, _$cn(k + "-tip-wrapper"));
|
|
54
|
+
}, __$blocks['title'](_$no)), 0, _$cn(k + "-title-content"))], 0, _$cn((_$cn3 = {}, _$cn3[k + "-tip-title"] = true, _$cn3[k + "-with-icon"] = showIcon, _$cn3))) : undefined, _$ce(2, 'div', children, 0, _$cn(k + "-tip-content"))], 0, _$cn((_$cn4 = {}, _$cn4[k + "-tip-wrapper"] = true, _$cn4[k + "-with-icon"] = !$blocks.title && (showIcon || $blocks.icon), _$cn4)));
|
|
35
55
|
}, __$blocks['body'] = function ($super, data) {
|
|
36
56
|
var block = $blocks['body'];
|
|
37
57
|
var callBlock = function callBlock() {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
|
|
1
2
|
import { theme, setDefault } from '../../styles/theme';
|
|
2
3
|
import { css } from '@emotion/css';
|
|
3
4
|
import '../../styles/global';
|
|
4
|
-
import { deepDefaults } from '../../styles/utils';
|
|
5
|
+
import { deepDefaults, sizes } from '../../styles/utils';
|
|
5
6
|
import { cache } from '../utils';
|
|
6
7
|
var defaults = {
|
|
7
8
|
title: {
|
|
@@ -14,6 +15,39 @@ var defaults = {
|
|
|
14
15
|
},
|
|
15
16
|
get padding() {
|
|
16
17
|
return "6px " + theme.default.padding;
|
|
18
|
+
},
|
|
19
|
+
content: {
|
|
20
|
+
padding: '7px 33px 8px 8px'
|
|
21
|
+
},
|
|
22
|
+
icon: {
|
|
23
|
+
fontSize: "18px",
|
|
24
|
+
left: "16px",
|
|
25
|
+
top: "6px"
|
|
26
|
+
},
|
|
27
|
+
large: {
|
|
28
|
+
padding: "12px",
|
|
29
|
+
get fontSize() {
|
|
30
|
+
return theme.default.fontSize;
|
|
31
|
+
},
|
|
32
|
+
close: {
|
|
33
|
+
height: '42px'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
small: {
|
|
37
|
+
padding: "4px 12px",
|
|
38
|
+
get fontSize() {
|
|
39
|
+
return theme.small.fontSize;
|
|
40
|
+
},
|
|
41
|
+
close: {
|
|
42
|
+
height: '26px'
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
mini: {
|
|
46
|
+
padding: "2px 12px",
|
|
47
|
+
fontSize: '11px',
|
|
48
|
+
close: {
|
|
49
|
+
height: '20px'
|
|
50
|
+
}
|
|
17
51
|
}
|
|
18
52
|
};
|
|
19
53
|
var tip;
|
|
@@ -24,5 +58,13 @@ setDefault(function () {
|
|
|
24
58
|
makeStyles == null || makeStyles.clearCache();
|
|
25
59
|
});
|
|
26
60
|
export var makeStyles = cache(function makeStyles(k) {
|
|
27
|
-
|
|
61
|
+
var _context;
|
|
62
|
+
return /*#__PURE__*/css("&.", k, "-tip{display:flex;height:auto;padding:0;color:", tip.color, "!important;align-items:flex-start;", _mapInstanceProperty(sizes).call(sizes, function (s) {
|
|
63
|
+
if (s === 'default') return;
|
|
64
|
+
var styles = tip[s];
|
|
65
|
+
return /*#__PURE__*/css("&.", k, "-", s, "{padding:0;height:auto;font-size:", styles.fontSize, ";.", k, "-tip-wrapper{padding:", styles.padding, ";}.", k, "-tip-close{height:", styles.close.height, ";}}");
|
|
66
|
+
}), ";}.", k, "-tip-wrapper{flex:1;padding:", tip.padding, ";}.", k, "-tip-title{font-size:", tip.title.fontSize, ";margin-bottom:", tip.title.gap, ";font-weight:", tip.title.fontWeight, " display:flex;align-items:center;}&.", k, "-fade-leave-active{position:relative;}.", k, "-tip-close{height:30px;&:hover{background:none;}}.", k, "-with-icon{display:flex;.", k, "-tip-icon{font-size:18px;vertical-align:middle;}.", k, "-title-content{display:inline-block;padding-left:8px;}.", k, "-tip-content{display:inline-block;padding-left:8px;vertical-align:middle;word-break:break-word;overflow-wrap:break-word;}}", _mapInstanceProperty(_context = ['primary', 'danger', 'success', 'warning']).call(_context, function (type) {
|
|
67
|
+
var color = theme.color[type];
|
|
68
|
+
return /*#__PURE__*/css("&.", k, "-", type, "{.", k, "-tip-icon{color:", color, ";}}");
|
|
69
|
+
}), ";");
|
|
28
70
|
});
|
|
@@ -54,7 +54,11 @@ export var Tooltip = /*#__PURE__*/function (_Dropdown) {
|
|
|
54
54
|
if (shouldFocus === void 0) {
|
|
55
55
|
shouldFocus = false;
|
|
56
56
|
}
|
|
57
|
-
|
|
57
|
+
var _this$get = this.get(),
|
|
58
|
+
disabled = _this$get.disabled,
|
|
59
|
+
always = _this$get.always,
|
|
60
|
+
value = _this$get.value;
|
|
61
|
+
if (disabled || always && !value) return;
|
|
58
62
|
clearTimeout(this.timer);
|
|
59
63
|
this.set('value', true);
|
|
60
64
|
};
|
|
@@ -128,8 +128,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
128
128
|
'icon': true,
|
|
129
129
|
'disabled': !enableRemove(),
|
|
130
130
|
'ev-click': remove,
|
|
131
|
-
'type': '
|
|
132
|
-
'size': 'large',
|
|
131
|
+
'type': 'secondary',
|
|
133
132
|
'children': _$cc(Icon, {
|
|
134
133
|
'className': _$cn(k + "-transfer-icon " + k + "-icon-left")
|
|
135
134
|
})
|
|
@@ -138,8 +137,7 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
138
137
|
'icon': true,
|
|
139
138
|
'disabled': !enableAdd(),
|
|
140
139
|
'ev-click': add,
|
|
141
|
-
'type': '
|
|
142
|
-
'size': 'large',
|
|
140
|
+
'type': 'secondary',
|
|
143
141
|
'children': _$cc(Icon, {
|
|
144
142
|
'className': _$cn(k + "-transfer-icon " + k + "-icon-right")
|
|
145
143
|
})
|
|
@@ -3,6 +3,7 @@ import { createVNode as _$cv, className as _$cn, noop as _$no, createUnknownComp
|
|
|
3
3
|
import { Button } from '../button';
|
|
4
4
|
import { Progress } from '../progress';
|
|
5
5
|
import { Dialog } from '../dialog';
|
|
6
|
+
import { Ellipsis } from '../ellipsis';
|
|
6
7
|
import { expandAnimationCallbacks, getRestProps } from '../utils';
|
|
7
8
|
import { makeStyles, makeUploadDialogStyles } from './styles';
|
|
8
9
|
import { TransitionGroup, Transition, linkEvent } from 'intact';
|
|
@@ -128,7 +129,9 @@ export default function ($props, $blocks, $__proto__) {
|
|
|
128
129
|
var _$cn3;
|
|
129
130
|
return _$ce(2, 'div', [_$ce(2, 'div', [_$ce(2, 'div', [_$cc(Icon, {
|
|
130
131
|
'className': _$cn(k + "-upload-file-icon ion-document")
|
|
131
|
-
}), _$ce(2, 'span',
|
|
132
|
+
}), _$ce(2, 'span', _$cc(Ellipsis, {
|
|
133
|
+
'children': $value.name
|
|
134
|
+
}), 2, _$cn(k + "-upload-file-name")), $value.status === UploadFileStatus.Done ? _$cc(Icon, {
|
|
132
135
|
'className': _$cn(k + "-upload-status-icon " + k + "-icon-success-fill")
|
|
133
136
|
}) : $value.status === UploadFileStatus.Error ? _$cc(Icon, {
|
|
134
137
|
'className': _$cn(k + "-upload-status-icon " + k + "-icon-error-fill")
|
|
@@ -113,7 +113,7 @@ setDefault(function () {
|
|
|
113
113
|
makeUploadDialogStyles == null || makeUploadDialogStyles.clearCache();
|
|
114
114
|
});
|
|
115
115
|
export var makeStyles = cache(function makeStyles(k) {
|
|
116
|
-
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%);}}&.", k, "-disabled{.", k, "-upload-add,.", k, "-upload-handle{cursor:auto;a{color:", upload.color, ";}&:hover{border-color:", theme.color.border, ";}}}");
|
|
116
|
+
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;min-width:0;}.", 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%);}}&.", k, "-disabled{.", k, "-upload-add,.", k, "-upload-handle{cursor:auto;a{color:", upload.color, ";}&:hover{border-color:", theme.color.border, ";}}}");
|
|
117
117
|
});
|
|
118
118
|
export var makeUploadDialogStyles = cache(function makeUploadDialogStyles(k) {
|
|
119
119
|
return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.4.
|
|
2
|
+
* @king-design v3.4.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -64,4 +64,4 @@ export * from './components/treeSelect';
|
|
|
64
64
|
export * from './components/upload';
|
|
65
65
|
export * from './components/view';
|
|
66
66
|
export * from './components/wave';
|
|
67
|
-
export declare const version = "3.4.
|
|
67
|
+
export declare const version = "3.4.5";
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.4.
|
|
2
|
+
* @king-design v3.4.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -65,5 +65,5 @@ export * from './components/treeSelect';
|
|
|
65
65
|
export * from './components/upload';
|
|
66
66
|
export * from './components/view';
|
|
67
67
|
export * from './components/wave';
|
|
68
|
-
export var version = '3.4.
|
|
68
|
+
export var version = '3.4.5';
|
|
69
69
|
/* generate end */
|
|
@@ -121,7 +121,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
121
121
|
city: city
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
|
-
|
|
124
|
+
separate: true
|
|
125
125
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
126
126
|
value: "beijing"
|
|
127
127
|
}, "\u5317\u4EAC"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -131,7 +131,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
131
131
|
}, "\u5E7F\u5DDE"), /*#__PURE__*/React.createElement(Button, {
|
|
132
132
|
value: "shenzhen"
|
|
133
133
|
}, "\u6DF1\u5733")), /*#__PURE__*/React.createElement(ButtonGroup, {
|
|
134
|
-
|
|
134
|
+
separate: true
|
|
135
135
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
136
136
|
value: "beijing",
|
|
137
137
|
type: "primary",
|
|
@@ -45,7 +45,7 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
45
45
|
}
|
|
46
46
|
var _proto = Demo.prototype;
|
|
47
47
|
_proto.render = function render() {
|
|
48
|
-
return /*#__PURE__*/React.createElement(Table, {
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Table, {
|
|
49
49
|
data: this.state.data,
|
|
50
50
|
rowKey: function rowKey(data) {
|
|
51
51
|
return data.name;
|
|
@@ -60,7 +60,23 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
60
60
|
var data = _ref[0];
|
|
61
61
|
return /*#__PURE__*/React.createElement(React.Fragment, null, data.size, "MB");
|
|
62
62
|
}
|
|
63
|
-
}))
|
|
63
|
+
})), /*#__PURE__*/React.createElement("h4", null, "\u81EA\u5B9A\u4E49\u5C55\u5F00Icon\u4F4D\u7F6E"), /*#__PURE__*/React.createElement(Table, {
|
|
64
|
+
data: this.state.data,
|
|
65
|
+
rowKey: function rowKey(data) {
|
|
66
|
+
return data.name;
|
|
67
|
+
},
|
|
68
|
+
spreadArrowIndex: 1
|
|
69
|
+
}, /*#__PURE__*/React.createElement(TableColumn, {
|
|
70
|
+
key: "name",
|
|
71
|
+
title: "Name"
|
|
72
|
+
}), /*#__PURE__*/React.createElement(TableColumn, {
|
|
73
|
+
key: "size",
|
|
74
|
+
title: "Size",
|
|
75
|
+
slotTemplate: function slotTemplate(_ref2) {
|
|
76
|
+
var data = _ref2[0];
|
|
77
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, data.size, "MB");
|
|
78
|
+
}
|
|
79
|
+
})));
|
|
64
80
|
};
|
|
65
81
|
return Demo;
|
|
66
82
|
}(React.Component);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as data } from './index.json';
|
|
2
|
+
import { Component } from 'intact';
|
|
3
|
+
import './index.styl';
|
|
4
|
+
export default class extends Component {
|
|
5
|
+
static template: string | import("intact").Template<any>;
|
|
6
|
+
static defaults(): {
|
|
7
|
+
types: readonly ["default", "primary", "success", "warning", "danger"];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
var default_1 = /*#__PURE__*/function (_Component) {
|
|
7
|
+
_inheritsLoose(default_1, _Component);
|
|
8
|
+
function default_1() {
|
|
9
|
+
return _Component.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
default_1.defaults = function defaults() {
|
|
12
|
+
return {
|
|
13
|
+
types: ['default', 'primary', 'success', 'warning', 'danger']
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
return default_1;
|
|
17
|
+
}(Component);
|
|
18
|
+
default_1.template = template;
|
|
19
|
+
export { default_1 as default };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
3
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Tip, Icon } from '@king-design/react';
|
|
6
|
+
import './index.styl';
|
|
7
|
+
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
8
|
+
_inheritsLoose(Demo, _React$Component);
|
|
9
|
+
function Demo() {
|
|
10
|
+
var _context;
|
|
11
|
+
var _this;
|
|
12
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13
|
+
args[_key] = arguments[_key];
|
|
14
|
+
}
|
|
15
|
+
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
16
|
+
_this.state = {
|
|
17
|
+
types: ['default', 'primary', 'success', 'warning', 'danger']
|
|
18
|
+
};
|
|
19
|
+
return _this;
|
|
20
|
+
}
|
|
21
|
+
var _proto = Demo.prototype;
|
|
22
|
+
_proto.render = function render() {
|
|
23
|
+
var _context2;
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", null, _mapInstanceProperty(_context2 = this.state.types).call(_context2, function ($value, $key) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(Tip, {
|
|
26
|
+
type: $value,
|
|
27
|
+
showIcon: true,
|
|
28
|
+
closable: true
|
|
29
|
+
}, $value);
|
|
30
|
+
}), /*#__PURE__*/React.createElement(Tip, {
|
|
31
|
+
type: "success",
|
|
32
|
+
showIcon: true,
|
|
33
|
+
closable: true
|
|
34
|
+
}, "\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\uFF0C\u8FD9\u662F\u4E00\u6761\u6D4B\u8BD5\u5185\u5BB9\u3002"), /*#__PURE__*/React.createElement("h3", null, "\u81EA\u5B9A\u4E49Icon"), /*#__PURE__*/React.createElement(Tip, {
|
|
35
|
+
slotIcon: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
|
|
36
|
+
className: "k-icon-internet"
|
|
37
|
+
}))
|
|
38
|
+
}, "custom Icon"), /*#__PURE__*/React.createElement("h3", null, "\u6807\u9898\u5E26Icon"), /*#__PURE__*/React.createElement(Tip, {
|
|
39
|
+
type: "primary",
|
|
40
|
+
showIcon: true,
|
|
41
|
+
slotTitle: /*#__PURE__*/React.createElement(React.Fragment, null, "\u8FD9\u662F\u6807\u9898")
|
|
42
|
+
}, "This is a tip."), /*#__PURE__*/React.createElement("h3", null, "\u6807\u9898\u81EA\u5B9A\u4E49Icon"), /*#__PURE__*/React.createElement(Tip, {
|
|
43
|
+
type: "primary",
|
|
44
|
+
showIcon: true,
|
|
45
|
+
closable: true,
|
|
46
|
+
slotIcon: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Icon, {
|
|
47
|
+
className: "k-icon-internet"
|
|
48
|
+
})),
|
|
49
|
+
slotTitle: /*#__PURE__*/React.createElement(React.Fragment, null, "\u8FD9\u662F\u6807\u9898")
|
|
50
|
+
}, "This is a tip."));
|
|
51
|
+
};
|
|
52
|
+
return Demo;
|
|
53
|
+
}(React.Component);
|
|
54
|
+
export { Demo as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as data } from './index.json';
|
|
2
|
+
import { Component } from 'intact';
|
|
3
|
+
import './index.styl';
|
|
4
|
+
export default class extends Component {
|
|
5
|
+
static template: string | import("intact").Template<any>;
|
|
6
|
+
static defaults(): {
|
|
7
|
+
sizes: readonly ["large", "default", "small", "mini"];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
var default_1 = /*#__PURE__*/function (_Component) {
|
|
7
|
+
_inheritsLoose(default_1, _Component);
|
|
8
|
+
function default_1() {
|
|
9
|
+
return _Component.apply(this, arguments) || this;
|
|
10
|
+
}
|
|
11
|
+
default_1.defaults = function defaults() {
|
|
12
|
+
return {
|
|
13
|
+
sizes: ['large', 'default', 'small', 'mini']
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
return default_1;
|
|
17
|
+
}(Component);
|
|
18
|
+
default_1.template = template;
|
|
19
|
+
export { default_1 as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
|
|
2
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js/instance/concat";
|
|
3
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js/instance/map";
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Tip } from '@king-design/react';
|
|
6
|
+
import './index.styl';
|
|
7
|
+
var Demo = /*#__PURE__*/function (_React$Component) {
|
|
8
|
+
_inheritsLoose(Demo, _React$Component);
|
|
9
|
+
function Demo() {
|
|
10
|
+
var _context;
|
|
11
|
+
var _this;
|
|
12
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13
|
+
args[_key] = arguments[_key];
|
|
14
|
+
}
|
|
15
|
+
_this = _React$Component.call.apply(_React$Component, _concatInstanceProperty(_context = [this]).call(_context, args)) || this;
|
|
16
|
+
_this.state = {
|
|
17
|
+
sizes: ['large', 'default', 'small', 'mini']
|
|
18
|
+
};
|
|
19
|
+
return _this;
|
|
20
|
+
}
|
|
21
|
+
var _proto = Demo.prototype;
|
|
22
|
+
_proto.render = function render() {
|
|
23
|
+
var _context2, _context3;
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", null, _mapInstanceProperty(_context2 = this.state.sizes).call(_context2, function ($value, $key) {
|
|
25
|
+
return /*#__PURE__*/React.createElement(Tip, {
|
|
26
|
+
type: "primary",
|
|
27
|
+
size: $value
|
|
28
|
+
}, $value);
|
|
29
|
+
}), /*#__PURE__*/React.createElement("h3", null, "\u5E26\u5173\u95ED\u6309\u94AE"), _mapInstanceProperty(_context3 = this.state.sizes).call(_context3, function ($value, $key) {
|
|
30
|
+
return /*#__PURE__*/React.createElement(Tip, {
|
|
31
|
+
type: "primary",
|
|
32
|
+
size: $value,
|
|
33
|
+
closable: true
|
|
34
|
+
}, $value);
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
37
|
+
return Demo;
|
|
38
|
+
}(React.Component);
|
|
39
|
+
export { Demo as default };
|
|
@@ -21,6 +21,11 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
21
21
|
value: true,
|
|
22
22
|
container: this.container
|
|
23
23
|
}, "always show this tootip"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Tooltip, {
|
|
24
|
+
content: "hide",
|
|
25
|
+
always: true,
|
|
26
|
+
value: false,
|
|
27
|
+
container: this.container
|
|
28
|
+
}, "always hide this tootip"), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Tooltip, {
|
|
24
29
|
content: "",
|
|
25
30
|
always: true,
|
|
26
31
|
value: true
|
|
@@ -20,6 +20,9 @@ var default_1 = /*#__PURE__*/function (_Component) {
|
|
|
20
20
|
}, {
|
|
21
21
|
name: 'test3.png',
|
|
22
22
|
status: UploadFileStatus.Error
|
|
23
|
+
}, {
|
|
24
|
+
name: 'test4-测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长.png',
|
|
25
|
+
url: 'http://www.example.com/test4.png'
|
|
23
26
|
}]
|
|
24
27
|
};
|
|
25
28
|
};
|
|
@@ -23,6 +23,9 @@ var Demo = /*#__PURE__*/function (_React$Component) {
|
|
|
23
23
|
}, {
|
|
24
24
|
name: 'test3.png',
|
|
25
25
|
status: UploadFileStatus.Error
|
|
26
|
+
}, {
|
|
27
|
+
name: 'test4-测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长测试超长.png',
|
|
28
|
+
url: 'http://www.example.com/test4.png'
|
|
26
29
|
}]
|
|
27
30
|
};
|
|
28
31
|
return _this;
|
|
@@ -9,7 +9,7 @@ var Index = /*#__PURE__*/function (_Layout) {
|
|
|
9
9
|
}
|
|
10
10
|
var _proto = Index.prototype;
|
|
11
11
|
_proto.handleDownLoad = function handleDownLoad() {
|
|
12
|
-
location.href = 'https://damife.ks3-cn-beijing.ksyuncs.com/kpc/
|
|
12
|
+
location.href = 'https://damife.ks3-cn-beijing.ksyuncs.com/kpc/Kingsoft_Cloud_Font_v1.0.1.ttf';
|
|
13
13
|
};
|
|
14
14
|
return Index;
|
|
15
15
|
}(Layout);
|
|
@@ -3,5 +3,5 @@ import source_nav_web from '../../imgs/font/banner-font.jpg';
|
|
|
3
3
|
import text_web from "../../imgs/font/text-web.png";
|
|
4
4
|
import text_h5 from "../../imgs/font/text-h5.png";
|
|
5
5
|
export function makeStyles() {
|
|
6
|
-
return /*#__PURE__*/css(".font-nav{height:600px;margin-top:-64px;background-image:url(", source_nav_web, ");background-size:cover;background-position:center;background-repeat:no-repeat;display:flex;justify-content:center;.bg-img{display:none;}.font-nav-content{height:536px;margin-top:64px;width:1200px;display:flex;align-items:center;.nav-content-img{img{width:380px;}.nav-btn-download{margin-top:30px;width:380px;height:60px;border:none;background:#006FFF;border-radius:14px;font-family:PingFangSC-Regular;font-size:18px;color:#FFFFFF;font-weight:400;cursor:pointer;transition:all .25s ease-in;outline:none;&:hover{background-color:#3D91FF;}&:active{background-color:#3D91FF;}}}}@media (max-width: 768px){background-image:none;height:900px;position:relative;height:auto;.bg-img{display:block;width:100%;}.font-nav-content{position:absolute;left:0;top:10px;width:100%;height:40%;justify-content:center;.nav-content-img{width:100%;text-align:center;img{width:65%;}.nav-btn-download{height:50px;width:65%;}}}}}.source-intro{margin:100px auto;background-image:url(", text_web, ");width:800px;height:590px;background-repeat:no-repeat;background-position:right bottom;background-size:cover;@media (max-width:768px){margin:13% auto;width:64%;background-image:url(", text_h5, ");background-size:contain;background-position:center;}}.font-info{background:#F7F8F9;margin-bottom:60px;padding:80px 0;text-align:center;img{width:400px;}@media (max-width:768px){margin-bottom:40px;padding:60px 0;img{width:80%;height:auto;}}}.designer-box{background:#F7F8F9;padding-top:40px;}.designer-part{width:1200px;margin:0 auto;.designer-title{display:flex;margin-bottom:60px;img{width:90px;}&>div:last-child{flex-grow:1;margin-left:24px;border-bottom:1px solid rgba(151, 151, 151, .3);}@media (max-width:768px){margin-bottom:40px;img{width:60px;height:auto;}}}.designer-list{width:100%;display:flex;flex-wrap:wrap;@media (max-width: 768px){justify-content:space-between;}.designer-item{img{width:200px;border-radius:16px;}&>div:last-child{text-align:center;font-size:18px;color:#000000;padding:20px 0 40px 0;font-family:PingFangSC-Regular;}@media (max-width: 768px){img{border-radius:8px;}&>div:last-child{font-size:12px;padding:10px 0 25px 0;}}}.designer-item:not(:nth-child(5n)){margin-right:50px;}}@media (max-width: 768px){width:90%;.designer-list{.designer-item{width:22%;img{width:100%!important;}}.designer-item:not(:nth-child(5n)){margin-right:0;}}}}.icon-list-box{/* padding-top: 60px;\n @media (max-width: 768px) {\n padding-top: 30px;\n } */}.icon-list{width:1200px;margin:0 auto;@media (max-width: 768px){width:98%;}.icon-box{margin-top:20px;.icon-box-title{margin-bottom:60px;display:flex;&>div{border-bottom:1px solid rgba(151, 151, 151, .3);}&>div:first-child{display:none;}img{height:30px;}&>div:last-child{width:100%;margin-left:24px;}@media (max-width: 768px){margin-bottom:40px;&>div:first-child{display:block;width:45%;margin-right:24px;}&>div:last-child{width:45%;margin-left:24px;}img{height:20px;}}}.icon-wrapper{display:flex;flex-wrap:wrap;img{width:60px;height:60px;}.icon-item{width:240px;display:flex;align-items:center;margin-bottom:60px;display:flex;&>div:last-child{margin-left:20px;font-family:PingFangSC-Regular;font-size:16px;color:#000000;}@media (max-width: 768px){text-align:center;display:block;margin-bottom:30px;width:33.33%;&>div:last-child{font-size:14px!important;margin-left:0px;margin-top:5px;}img{width:45%;height:auto;}}}}}}");
|
|
6
|
+
return /*#__PURE__*/css(".font-nav{height:600px;margin-top:-64px;background-image:url(", source_nav_web, ");background-size:cover;background-position:center;background-repeat:no-repeat;display:flex;justify-content:center;.bg-img{display:none;}.font-nav-content{height:536px;margin-top:64px;width:1200px;display:flex;align-items:center;.nav-content-img{img{width:380px;}.nav-content-notice{width:380px;margin-top:10px;text-align:center;font-size:14px;font-weight:500;}.nav-btn-download{margin-top:30px;width:380px;height:60px;border:none;background:#006FFF;border-radius:14px;font-family:PingFangSC-Regular;font-size:18px;color:#FFFFFF;font-weight:400;cursor:pointer;transition:all .25s ease-in;outline:none;&:hover{background-color:#3D91FF;}&:active{background-color:#3D91FF;}}}}@media (max-width: 768px){background-image:none;height:900px;position:relative;height:auto;.bg-img{display:block;width:100%;}.font-nav-content{position:absolute;left:0;top:10px;width:100%;height:40%;justify-content:center;.nav-content-img{width:100%;text-align:center;img{width:65%;}.nav-btn-download{height:50px;width:65%;}}}}}.source-intro{margin:100px auto;background-image:url(", text_web, ");width:800px;height:590px;background-repeat:no-repeat;background-position:right bottom;background-size:cover;@media (max-width:768px){margin:13% auto;width:64%;background-image:url(", text_h5, ");background-size:contain;background-position:center;}}.font-info{background:#F7F8F9;margin-bottom:60px;padding:80px 0;text-align:center;img{width:400px;}@media (max-width:768px){margin-bottom:40px;padding:60px 0;img{width:80%;height:auto;}}}.designer-box{background:#F7F8F9;padding-top:40px;}.designer-part{width:1200px;margin:0 auto;.designer-title{display:flex;margin-bottom:60px;img{width:90px;}&>div:last-child{flex-grow:1;margin-left:24px;border-bottom:1px solid rgba(151, 151, 151, .3);}@media (max-width:768px){margin-bottom:40px;img{width:60px;height:auto;}}}.designer-list{width:100%;display:flex;flex-wrap:wrap;@media (max-width: 768px){justify-content:space-between;}.designer-item{img{width:200px;border-radius:16px;}&>div:last-child{text-align:center;font-size:18px;color:#000000;padding:20px 0 40px 0;font-family:PingFangSC-Regular;}@media (max-width: 768px){img{border-radius:8px;}&>div:last-child{font-size:12px;padding:10px 0 25px 0;}}}.designer-item:not(:nth-child(5n)){margin-right:50px;}}@media (max-width: 768px){width:90%;.designer-list{.designer-item{width:22%;img{width:100%!important;}}.designer-item:not(:nth-child(5n)){margin-right:0;}}}}.icon-list-box{/* padding-top: 60px;\n @media (max-width: 768px) {\n padding-top: 30px;\n } */}.icon-list{width:1200px;margin:0 auto;@media (max-width: 768px){width:98%;}.icon-box{margin-top:20px;.icon-box-title{margin-bottom:60px;display:flex;&>div{border-bottom:1px solid rgba(151, 151, 151, .3);}&>div:first-child{display:none;}img{height:30px;}&>div:last-child{width:100%;margin-left:24px;}@media (max-width: 768px){margin-bottom:40px;&>div:first-child{display:block;width:45%;margin-right:24px;}&>div:last-child{width:45%;margin-left:24px;}img{height:20px;}}}.icon-wrapper{display:flex;flex-wrap:wrap;img{width:60px;height:60px;}.icon-item{width:240px;display:flex;align-items:center;margin-bottom:60px;display:flex;&>div:last-child{margin-left:20px;font-family:PingFangSC-Regular;font-size:16px;color:#000000;}@media (max-width: 768px){text-align:center;display:block;margin-bottom:30px;width:33.33%;&>div:last-child{font-size:14px!important;margin-left:0px;margin-top:5px;}img{width:45%;height:auto;}}}}}}");
|
|
7
7
|
}
|
package/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @king-design v3.4.
|
|
2
|
+
* @king-design v3.4.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Kingsoft Cloud
|
|
5
5
|
* Released under the MIT License
|
|
@@ -69,6 +69,6 @@ export * from './components/upload';
|
|
|
69
69
|
export * from './components/view';
|
|
70
70
|
export * from './components/wave';
|
|
71
71
|
|
|
72
|
-
export const version = '3.4.
|
|
72
|
+
export const version = '3.4.5';
|
|
73
73
|
|
|
74
74
|
/* generate end */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@king-design/intact",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.5",
|
|
4
4
|
"description": "A component library written in Intact for Intact, Vue, React and Angular",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
"@emotion/css": "^11.5.0",
|
|
181
181
|
"dayjs": "^1.10.7",
|
|
182
182
|
"enquire.js": "^2.1.6",
|
|
183
|
-
"intact": "^3.0.
|
|
183
|
+
"intact": "^3.0.39",
|
|
184
184
|
"monaco-editor": "^0.26.1",
|
|
185
185
|
"mxgraphx": "^4.0.7",
|
|
186
186
|
"resize-observer-polyfill": "^1.5.1",
|