@king-design/intact 2.0.0 → 2.0.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.
Files changed (126) hide show
  1. package/README.md +20 -118
  2. package/components/cascader/index.spec.ts +59 -0
  3. package/components/cascader/index.vdt +4 -4
  4. package/components/cascader/useLabel.ts +9 -9
  5. package/components/datepicker/index.vdt +7 -6
  6. package/components/dropdown/dropdown.ts +7 -6
  7. package/components/form/index.spec.ts +1 -1
  8. package/components/menu/demos/collapse.md +3 -1
  9. package/components/menu/index.spec.ts +10 -4
  10. package/components/menu/item.ts +5 -4
  11. package/components/menu/item.vdt +3 -3
  12. package/components/menu/menu.ts +4 -0
  13. package/components/menu/useExpanded.ts +1 -1
  14. package/components/menu/useHighlight.ts +45 -40
  15. package/components/portal.ts +1 -1
  16. package/components/skeleton/demos/animate.md +30 -0
  17. package/components/skeleton/demos/avator.md +30 -0
  18. package/components/skeleton/demos/basic.md +30 -0
  19. package/components/skeleton/demos/custom.md +39 -0
  20. package/components/skeleton/demos/rows.md +32 -0
  21. package/components/skeleton/index.md +24 -0
  22. package/components/skeleton/index.ts +2 -0
  23. package/components/skeleton/item.ts +30 -0
  24. package/components/skeleton/item.vdt +28 -0
  25. package/components/skeleton/skeleton.ts +33 -0
  26. package/components/skeleton/skeleton.vdt +32 -0
  27. package/components/skeleton/style.ts +105 -0
  28. package/components/tooltip/index.spec.ts +6 -1
  29. package/components/transfer/styles.ts +2 -8
  30. package/components/tree/useFilter.ts +1 -2
  31. package/es/components/cascader/index.spec.js +88 -0
  32. package/es/components/cascader/index.vdt.js +4 -4
  33. package/es/components/cascader/useLabel.js +8 -12
  34. package/es/components/datepicker/index.vdt.js +10 -5
  35. package/es/components/diagram/index.d.ts +1 -1
  36. package/es/components/dropdown/dropdown.js +8 -7
  37. package/es/components/form/index.spec.js +2 -4
  38. package/es/components/menu/index.spec.js +13 -6
  39. package/es/components/menu/item.d.ts +0 -1
  40. package/es/components/menu/item.js +6 -4
  41. package/es/components/menu/item.vdt.js +4 -4
  42. package/es/components/menu/menu.d.ts +3 -0
  43. package/es/components/menu/menu.js +4 -0
  44. package/es/components/menu/useExpanded.d.ts +1 -4
  45. package/es/components/menu/useHighlight.d.ts +5 -8
  46. package/es/components/menu/useHighlight.js +44 -33
  47. package/es/components/portal.js +1 -1
  48. package/es/components/skeleton/index.d.ts +2 -0
  49. package/es/components/skeleton/index.js +2 -0
  50. package/es/components/skeleton/item.d.ts +16 -0
  51. package/es/components/skeleton/item.js +26 -0
  52. package/es/components/skeleton/item.vdt.js +35 -0
  53. package/es/components/skeleton/skeleton.d.ts +17 -0
  54. package/es/components/skeleton/skeleton.js +30 -0
  55. package/es/components/skeleton/skeleton.vdt.js +37 -0
  56. package/es/components/skeleton/style.d.ts +6 -0
  57. package/es/components/skeleton/style.js +35 -0
  58. package/es/components/steps/context.d.ts +2 -2
  59. package/es/components/tooltip/index.spec.js +4 -1
  60. package/es/components/transfer/styles.js +2 -6
  61. package/es/components/tree/useFilter.js +1 -2
  62. package/es/i18n/en-US.d.ts +1 -0
  63. package/es/i18n/en-US.js +1 -0
  64. package/es/index.d.ts +3 -2
  65. package/es/index.js +3 -2
  66. package/es/packages/kpc-react/__tests__/components/form.spec.d.ts +1 -0
  67. package/es/packages/kpc-react/__tests__/components/form.spec.js +46 -0
  68. package/es/site/data/components/menu/demos/collapse/index.js +1 -0
  69. package/es/site/data/components/menu/demos/collapse/react.d.ts +1 -1
  70. package/es/site/data/components/menu/demos/collapse/react.js +7 -0
  71. package/es/site/data/components/menu/demos/size/react.d.ts +1 -1
  72. package/es/site/data/components/skeleton/demos/animate/index.d.ts +11 -0
  73. package/es/site/data/components/skeleton/demos/animate/index.js +23 -0
  74. package/es/site/data/components/skeleton/demos/animate/react.d.ts +11 -0
  75. package/es/site/data/components/skeleton/demos/animate/react.js +38 -0
  76. package/es/site/data/components/skeleton/demos/avator/index.d.ts +11 -0
  77. package/es/site/data/components/skeleton/demos/avator/index.js +23 -0
  78. package/es/site/data/components/skeleton/demos/avator/react.d.ts +11 -0
  79. package/es/site/data/components/skeleton/demos/avator/react.js +37 -0
  80. package/es/site/data/components/skeleton/demos/basic/index.d.ts +11 -0
  81. package/es/site/data/components/skeleton/demos/basic/index.js +23 -0
  82. package/es/site/data/components/skeleton/demos/basic/react.d.ts +11 -0
  83. package/es/site/data/components/skeleton/demos/basic/react.js +36 -0
  84. package/es/site/data/components/skeleton/demos/custom/index.d.ts +11 -0
  85. package/es/site/data/components/skeleton/demos/custom/index.js +23 -0
  86. package/es/site/data/components/skeleton/demos/custom/react.d.ts +11 -0
  87. package/es/site/data/components/skeleton/demos/custom/react.js +60 -0
  88. package/es/site/data/components/skeleton/demos/rows/index.d.ts +13 -0
  89. package/es/site/data/components/skeleton/demos/rows/index.js +24 -0
  90. package/es/site/data/components/skeleton/demos/rows/react.d.ts +13 -0
  91. package/es/site/data/components/skeleton/demos/rows/react.js +38 -0
  92. package/es/site/data/components/skeleton/index.d.ts +57 -0
  93. package/es/site/data/components/skeleton/index.js +42 -0
  94. package/es/site/src/client.js +4 -1
  95. package/es/site/src/components/footer/styles.js +1 -1
  96. package/es/site/src/pages/colorProcess/index.d.ts +21 -0
  97. package/es/site/src/pages/colorProcess/index.js +79 -0
  98. package/es/site/src/pages/colorProcess/style.d.ts +3 -0
  99. package/es/site/src/pages/colorProcess/style.js +53 -0
  100. package/es/site/src/pages/font/index.d.ts +12 -0
  101. package/es/site/src/pages/font/index.js +22 -0
  102. package/es/site/src/pages/font/styles.d.ts +1 -0
  103. package/es/site/src/pages/font/styles.js +9 -0
  104. package/es/site/src/pages/iframe/colorProcess/styles.js +2 -2
  105. package/es/site/src/pages/index/BestPractice/styles.js +1 -1
  106. package/es/site/src/pages/index/ColorProcess/styles.js +2 -2
  107. package/es/site/src/pages/index/KingVersion/styles.js +1 -1
  108. package/es/site/src/pages/index/NewFunction/index.d.ts +2 -0
  109. package/es/site/src/pages/index/NewFunction/index.js +8 -2
  110. package/es/site/src/pages/index/NewFunction/styles.js +1 -1
  111. package/es/site/src/pages/index/styles.js +2 -1
  112. package/es/site/src/pages/layout.d.ts +1 -0
  113. package/es/site/src/pages/layout.js +9 -1
  114. package/es/site/src/pages/resource/index.d.ts +1 -0
  115. package/es/site/src/pages/resource/index.js +7 -4
  116. package/es/site/src/pages/solution/index.js +1 -2
  117. package/es/site/src/pages/styles.js +2 -2
  118. package/es/site/src/router/index.js +75 -5
  119. package/i18n/en-US.ts +1 -0
  120. package/index.ts +3 -2
  121. package/package.json +5 -4
  122. package/es/components/cascader/index.d.ts +0 -34
  123. package/es/components/datepicker/index.d.ts +0 -63
  124. package/es/components/select/select.d.ts +0 -33
  125. package/es/components/timepicker/panelPicker.d.ts +0 -54
  126. package/es/components/treeSelect/index.d.ts +0 -27
@@ -0,0 +1,57 @@
1
+ import { Component } from 'intact';
2
+ import Article from '~/../src/components/article';
3
+ export default class extends Article {
4
+ static sidebar: {
5
+ 组件: {
6
+ title: string;
7
+ category: string;
8
+ order: number;
9
+ sidebar: string;
10
+ path: string;
11
+ }[];
12
+ undefined: ({
13
+ title: string;
14
+ order: number;
15
+ sidebar: string;
16
+ disabled: boolean;
17
+ path: string;
18
+ } | {
19
+ title: string;
20
+ order: number;
21
+ sidebar: string;
22
+ path: string;
23
+ disabled?: undefined;
24
+ })[];
25
+ };
26
+ static data: {
27
+ setting: {
28
+ title: string;
29
+ category: string;
30
+ order: number;
31
+ sidebar: string;
32
+ };
33
+ contents: string;
34
+ index: string;
35
+ catalogs: {
36
+ text: string;
37
+ level: number;
38
+ id: string;
39
+ }[];
40
+ };
41
+ static defaults: () => {
42
+ demos: Component<any, {}, {}, {}>[];
43
+ setting: {
44
+ title: string;
45
+ category: string;
46
+ order: number;
47
+ sidebar: string;
48
+ };
49
+ contents: string;
50
+ index: string;
51
+ catalogs: {
52
+ text: string;
53
+ level: number;
54
+ id: string;
55
+ }[];
56
+ };
57
+ }
@@ -0,0 +1,42 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
3
+ import _keysInstanceProperty from "@babel/runtime-corejs3/core-js/instance/keys";
4
+ import _startsWithInstanceProperty from "@babel/runtime-corejs3/core-js/instance/starts-with";
5
+ import Article from '~/../src/components/article';
6
+ import data from './index.json';
7
+ import sidebar from '~/doc.json';
8
+
9
+ var r = require.context('./', true, /demos.*(index|demo).ts/);
10
+
11
+ var keys = _keysInstanceProperty(r).call(r);
12
+
13
+ var demos = [];
14
+
15
+ for (var i = 0; i < keys.length; i++) {
16
+ var file = keys[i];
17
+ if (!_startsWithInstanceProperty(file).call(file, '.')) continue; // if we found demo.js then ignore index.js
18
+
19
+ if (/demo.ts$/.test(file)) i++;
20
+ demos.push(r(file));
21
+ }
22
+
23
+ var default_1 = /*#__PURE__*/function (_Article) {
24
+ _inheritsLoose(default_1, _Article);
25
+
26
+ function default_1() {
27
+ return _Article.apply(this, arguments) || this;
28
+ }
29
+
30
+ return default_1;
31
+ }(Article);
32
+
33
+ default_1.sidebar = sidebar;
34
+ default_1.data = data;
35
+
36
+ default_1.defaults = function () {
37
+ return _extends({}, Article.defaults, data, {
38
+ demos: demos
39
+ });
40
+ };
41
+
42
+ export { default_1 as default };
@@ -2,7 +2,10 @@ import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
3
3
  import router from './router';
4
4
  import { render, createVNode as h } from 'intact';
5
- import { history } from './history';
5
+ import { history } from './history'; // import {localize} from 'kpc';
6
+ // import i18n from 'kpc/i18n/en-US';
7
+ // localize(i18n);
8
+
6
9
  var container = document.getElementById('page');
7
10
  var unlisten;
8
11
 
@@ -4,5 +4,5 @@ import { mainBlock } from '../../styles/default';
4
4
  export function makeStyles() {
5
5
  var tableBorder = '1px solid #C4C4C4';
6
6
  var leftPadding = '16px';
7
- return /*#__PURE__*/css("background:#FFFFFF;", mainBlock(420), ";letter-spacing:-0.05em;color:#5B5A5A;font-size:14px;a{color:#5B5A5A;text-decoration:none;}.footer-box{width:100%;display:flex;align-items:center;}.footer-table{width:100%;height:300px;border:", tableBorder, ";.info-box{height:209px;border-bottom:", tableBorder, ";}.info-left{border-right:", tableBorder, ";padding-left:", leftPadding, ";padding-top:37px;.title{font-size:30px;color:#000000;margin-bottom:16px;}span{margin-right:50px;}.qrcode-box{display:flex;&>div{padding-left:20px;display:flex;flex-direction:column;justify-content:space-around;}}}.info-right{.k-row:first-child{border-bottom:", tableBorder, ";}.k-row{padding:25px 0 0 30px;}.title{color:#000000;}}.quick-access-box{height:101px;}.link-list{margin-top:15px;display:flex;&>div{margin-right:25px;}}}.copy-right-info{display:flex;align-items:center;padding-left:", leftPadding, ";height:30px;font-size:12px;}.footer-logo-box{height:60px;display:flex;align-items:center;padding-left:16px;border-bottom:", tableBorder, ";.logo{width:181px;height:40px;background-image:url(", footer_logo, ");background-size:cover;}}@media (max-width: 768px){height:auto;.footer-table{height:auto;.info-box{height:auto;}.info-left{border:none;.title{font-size:24px;}span{display:block;}}.info-right{.k-row{padding:20px;&:first-child{border:none;}}}.link-list{gap:20px;>div{margin-right:0;}}}.copy-right-info{padding:20px;height:auto;}}");
7
+ return /*#__PURE__*/css("background:#FFFFFF;", mainBlock(420), ";letter-spacing:-0.05em;color:#5B5A5A;font-size:14px;.web-info{display:block;}.h5-info{display:none;}a{color:#5B5A5A;text-decoration:none;}.footer-box{width:100%;display:flex;align-items:center;}.footer-table{width:100%;height:300px;border:", tableBorder, ";.info-box{height:209px;border-bottom:", tableBorder, ";}.info-left{border-right:", tableBorder, ";padding-left:", leftPadding, ";padding-top:37px;.title{font-size:30px;color:#000000;margin-bottom:16px;}span{margin-right:50px;}.qrcode-box{display:flex;&>div{padding-left:20px;display:flex;flex-direction:column;justify-content:space-around;}}}.info-right{.k-row:first-child{border-bottom:", tableBorder, ";}.k-row{padding:25px 0 0 30px;}.title{color:#000000;}}.quick-access-box{height:101px;}.link-list{margin-top:15px;display:flex;&>div{margin-right:25px;}}}.copy-right-info{display:flex;align-items:center;padding-left:", leftPadding, ";height:30px;font-size:12px;}.footer-logo-box{height:60px;display:flex;align-items:center;padding-left:16px;border-bottom:", tableBorder, ";.logo{width:226px;height:40px;background-image:url(", footer_logo, ");background-size:cover;}}@media (max-width: 768px){height:auto;.web-info{display:none;}.h5-info{display:block;}.h5-footer{padding:30px 20px 20px 20px;&>div{text-align:center;}&>div:nth-child(2){margin:20px 0;font-size:16px;}&>div:nth-child(4){margin:16px 0 30px 0;font-size:14px;}&>div:last-child{font-size:10px;color:#5B5A5A;line-height:16px;}}.footer-table{height:auto;.info-box{height:auto;}.info-left{border:none;.title{font-size:24px;}span{display:block;}}.info-right{.k-row{padding:20px;&:first-child{border:none;}}}.link-list{gap:20px;>div{margin-right:0;}}}.copy-right-info{padding:20px;height:auto;}}");
8
8
  }
@@ -0,0 +1,21 @@
1
+ import { Component } from 'intact';
2
+ interface ColorProcessProps {
3
+ inputColor: string;
4
+ theme: string;
5
+ colorType: string;
6
+ pickerColor: string;
7
+ contrastMenu: boolean;
8
+ preColor: string;
9
+ bacColor: string;
10
+ }
11
+ export default class Index extends Component<ColorProcessProps> {
12
+ static template: string | import("intact").Template<any>;
13
+ static defaults: () => Partial<ColorProcessProps>;
14
+ _palette(color: string, level: number): string;
15
+ _changeColor(e: InputEvent): void;
16
+ _changeTheme(val: string): void;
17
+ _changeColorType(val: string): void;
18
+ _changeContrastShow(val: boolean): void;
19
+ _switchColor(): void;
20
+ }
21
+ export {};
@@ -0,0 +1,79 @@
1
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
2
+ import _trimInstanceProperty from "@babel/runtime-corejs3/core-js/instance/trim";
3
+ import template from './index.vdt';
4
+ import { Component } from 'intact';
5
+ import Chroma from 'chroma-js';
6
+ import { Message } from 'kpc';
7
+
8
+ var Index = /*#__PURE__*/function (_Component) {
9
+ _inheritsLoose(Index, _Component);
10
+
11
+ function Index() {
12
+ return _Component.apply(this, arguments) || this;
13
+ }
14
+
15
+ var _proto = Index.prototype;
16
+
17
+ _proto._palette = function _palette(color, level) {
18
+ var _Chroma$hsv = Chroma(color).hsv(),
19
+ h = _Chroma$hsv[0],
20
+ s = _Chroma$hsv[1],
21
+ b = _Chroma$hsv[2];
22
+
23
+ var deS = s < 0.1 ? 0 : (s - 0.1) / 4;
24
+ var inS = (1 - s) / 4;
25
+ var deB = (1 - b) / 4;
26
+ var inB = b <= 0.4 ? 0 : (b - 0.4) / 4;
27
+ if (level < 0 && level >= -4) return Chroma.hsv(h + level, s + level * deS, b - level * deB).hex();else if (level > 0 && level <= 4) return Chroma.hsv(h + level, s + level * inS, b - level * inB).hex();else return color;
28
+ };
29
+
30
+ _proto._changeColor = function _changeColor(e) {
31
+ var _context;
32
+
33
+ var target = e.target;
34
+
35
+ var value = _trimInstanceProperty(_context = target.value).call(_context);
36
+
37
+ if (/#[0-9A-Fa-f]{6}/i.test(value)) {
38
+ this.set('inputColor', target.value);
39
+ } else {
40
+ Message.error('请输入hex格式颜色值');
41
+ }
42
+ };
43
+
44
+ _proto._changeTheme = function _changeTheme(val) {
45
+ this.set('theme', val);
46
+ };
47
+
48
+ _proto._changeColorType = function _changeColorType(val) {
49
+ this.set('colorType', val);
50
+ };
51
+
52
+ _proto._changeContrastShow = function _changeContrastShow(val) {
53
+ this.set('contrastMenu', val);
54
+ };
55
+
56
+ _proto._switchColor = function _switchColor() {
57
+ var temp = this.get('preColor');
58
+ this.set('preColor', this.get('bacColor'));
59
+ this.set('bacColor', temp);
60
+ };
61
+
62
+ return Index;
63
+ }(Component);
64
+
65
+ Index.template = template;
66
+
67
+ Index.defaults = function () {
68
+ return {
69
+ inputColor: '#0091EA',
70
+ theme: 'light',
71
+ colorType: 'HEX',
72
+ pickerColor: '#0091EA',
73
+ contrastMenu: false,
74
+ preColor: '#fd0009',
75
+ bacColor: '#d1d1d1'
76
+ };
77
+ };
78
+
79
+ export { Index as default };
@@ -0,0 +1,3 @@
1
+ export declare function makeStyles(theme: string): string;
2
+ export declare function changeTheme(theme: string): string;
3
+ export declare function DiaStyles(): string;
@@ -0,0 +1,53 @@
1
+ function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
2
+
3
+ import { css } from '@emotion/css';
4
+ export function makeStyles(theme) {
5
+ if (theme == 'light') return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
6
+ name: "c6wrgo",
7
+ styles: "height:100%;.k-btn{font-size:16px;}.k-layout-wrapper{height:100%;}.k-layout-header{background:white;position:relative;display:flex;align-items:center;font-family:Roboto;font-weight:500;font-size:12px;justify-content:space-between;&>div{flex-grow:1;}&>div:last-child{display:flex;justify-content:flex-end;}.header-title{text-align:center;font-size:30px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:black;}.header-logo{display:flex;padding-left:25px;img{width:50px;}}.header-options{line-height:70px;color:black;vertical-align:middle;&>div{margin-left:10px;}.contrast{cursor:pointer;text-align:center;}.theme,.color-type{&>button{background-color:white;}&>button:first-child{border-right:none;}&>button:last-child{border-left:none;}.checkout{background-color:blue;color:white;}}}}.cp-body{.card-title{font-size:40px;}.k-card{background:#ececec;}.input{margin-top:40px;margin-bottom:20px;}.Color-RGB{display:flex;align-items:center;&>div:last-child{margin-left:10px;}}.recomend{.recomend-item{margin-top:40px;.recomend-item-title{font-size:24px;margin-bottom:20px;}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}"
8
+ } : {
9
+ name: "c6wrgo",
10
+ styles: "height:100%;.k-btn{font-size:16px;}.k-layout-wrapper{height:100%;}.k-layout-header{background:white;position:relative;display:flex;align-items:center;font-family:Roboto;font-weight:500;font-size:12px;justify-content:space-between;&>div{flex-grow:1;}&>div:last-child{display:flex;justify-content:flex-end;}.header-title{text-align:center;font-size:30px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:black;}.header-logo{display:flex;padding-left:25px;img{width:50px;}}.header-options{line-height:70px;color:black;vertical-align:middle;&>div{margin-left:10px;}.contrast{cursor:pointer;text-align:center;}.theme,.color-type{&>button{background-color:white;}&>button:first-child{border-right:none;}&>button:last-child{border-left:none;}.checkout{background-color:blue;color:white;}}}}.cp-body{.card-title{font-size:40px;}.k-card{background:#ececec;}.input{margin-top:40px;margin-bottom:20px;}.Color-RGB{display:flex;align-items:center;&>div:last-child{margin-left:10px;}}.recomend{.recomend-item{margin-top:40px;.recomend-item-title{font-size:24px;margin-bottom:20px;}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}",
11
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
12
+ });else {
13
+ return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
14
+ name: "1h0d5ue",
15
+ styles: "height:100%;.k-btn{font-size:16px;}.k-layout-wrapper{height:100%;}.k-layout-header{background:black;position:relative;display:flex;align-items:center;font-family:Roboto;font-weight:500;font-size:12px;justify-content:space-between;&>div{flex-grow:1;}&>div:last-child{display:flex;justify-content:flex-end;}.header-title{text-align:center;font-size:30px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;}.header-logo{display:flex;padding-left:25px;img{width:50px;}}.header-options{line-height:70px;color:white;vertical-align:middle;&>div{margin-left:10px;}.contrast{cursor:pointer;text-align:center;}.theme,.color-type{&>button{background-color:white;}&>button:first-child{border-right:none;}&>button:last-child{border-left:none;}.checkout{background-color:blue;color:white;}}}}.cp-body{background:#373737;.k-card{background:#373737;}.card-title{font-size:40px;color:white;}.input{margin-top:40px;margin-bottom:20px;color:white;}.Color-RGB{display:flex;align-items:center;&>div:last-child{margin-left:10px;}}.recomend{.recomend-item{margin-top:40px;.recomend-item-title{color:white;font-size:24px;margin-bottom:20px;}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}"
16
+ } : {
17
+ name: "1h0d5ue",
18
+ styles: "height:100%;.k-btn{font-size:16px;}.k-layout-wrapper{height:100%;}.k-layout-header{background:black;position:relative;display:flex;align-items:center;font-family:Roboto;font-weight:500;font-size:12px;justify-content:space-between;&>div{flex-grow:1;}&>div:last-child{display:flex;justify-content:flex-end;}.header-title{text-align:center;font-size:30px;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:white;}.header-logo{display:flex;padding-left:25px;img{width:50px;}}.header-options{line-height:70px;color:white;vertical-align:middle;&>div{margin-left:10px;}.contrast{cursor:pointer;text-align:center;}.theme,.color-type{&>button{background-color:white;}&>button:first-child{border-right:none;}&>button:last-child{border-left:none;}.checkout{background-color:blue;color:white;}}}}.cp-body{background:#373737;.k-card{background:#373737;}.card-title{font-size:40px;color:white;}.input{margin-top:40px;margin-bottom:20px;color:white;}.Color-RGB{display:flex;align-items:center;&>div:last-child{margin-left:10px;}}.recomend{.recomend-item{margin-top:40px;.recomend-item-title{color:white;font-size:24px;margin-bottom:20px;}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}}.color-pelette{display:flex;align-items:center;&>div:nth-child(n+5){color:white;}&>div:nth-child(5){margin-right:2px;height:50px!important;line-height:50px!important;}.color-pelette-item{flex-grow:1;width:100px;height:46px;text-align:center;line-height:46px;vertical-align:middle;}}}",
19
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
20
+ });
21
+ }
22
+ }
23
+ export function changeTheme(theme) {
24
+ if (theme == 'light') {
25
+ return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
26
+ name: "11g67yz",
27
+ styles: ".k-layout-header{background-color:white!important;.header-title{color:black;}}"
28
+ } : {
29
+ name: "11g67yz",
30
+ styles: ".k-layout-header{background-color:white!important;.header-title{color:black;}}",
31
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
32
+ });
33
+ }
34
+
35
+ return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
36
+ name: "zxl79f",
37
+ styles: ".k-layout-header{background-color:white!important;.header-title{color:white;}}"
38
+ } : {
39
+ name: "zxl79f",
40
+ styles: ".k-layout-header{background-color:white!important;.header-title{color:white;}}",
41
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
42
+ });
43
+ }
44
+ export function DiaStyles() {
45
+ return /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
46
+ name: "1nikfdi",
47
+ styles: ".k-dialog-body{display:flex;&>div:first-child{width:50%;padding:10px 5px;&>div:last-child{font-size:18px;}}&>div:last-child{width:50%;.contrast-box>div{margin-left:50px;margin-top:20px;}.contrast-box{border:1px solid gray;width:100%;height:300px;&>div:nth-child(n+2){font-size:12px;display:flex;}}.title{font-size:20px;}.contrast-number{&>div:first-child{font-size:30px;}&>div:last-child{vertical-align:bottom;line-height:45px;margin-left:5px;}}.choose-box{display:flex;justify-content:space-between;align-items:center;}}}.k-dialog-cancel{display:none;}"
48
+ } : {
49
+ name: "1nikfdi",
50
+ styles: ".k-dialog-body{display:flex;&>div:first-child{width:50%;padding:10px 5px;&>div:last-child{font-size:18px;}}&>div:last-child{width:50%;.contrast-box>div{margin-left:50px;margin-top:20px;}.contrast-box{border:1px solid gray;width:100%;height:300px;&>div:nth-child(n+2){font-size:12px;display:flex;}}.title{font-size:20px;}.contrast-number{&>div:first-child{font-size:30px;}&>div:last-child{vertical-align:bottom;line-height:45px;margin-left:5px;}}.choose-box{display:flex;justify-content:space-between;align-items:center;}}}.k-dialog-cancel{display:none;}",
51
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__
52
+ });
53
+ }
@@ -0,0 +1,12 @@
1
+ import Layout from '../layout';
2
+ export default class Index extends Layout {
3
+ static template: string | import("vdt").Template<any>;
4
+ static defaults: () => {
5
+ version?: string | undefined;
6
+ themeColor?: string | undefined;
7
+ colorList?: string[] | undefined;
8
+ showThemeColor?: boolean | undefined;
9
+ curLang?: string | undefined;
10
+ videoLevel?: number | undefined;
11
+ };
12
+ }
@@ -0,0 +1,22 @@
1
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
+ import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
3
+ import template from './index.vdt';
4
+ import Layout from '../layout';
5
+
6
+ var Index = /*#__PURE__*/function (_Layout) {
7
+ _inheritsLoose(Index, _Layout);
8
+
9
+ function Index() {
10
+ return _Layout.apply(this, arguments) || this;
11
+ }
12
+
13
+ return Index;
14
+ }(Layout);
15
+
16
+ Index.template = template;
17
+
18
+ Index.defaults = function () {
19
+ return _extends({}, Layout.defaults());
20
+ };
21
+
22
+ export { Index as default };
@@ -0,0 +1 @@
1
+ export declare function makeStyles(): string;
@@ -0,0 +1,9 @@
1
+ import { css } from '@emotion/css';
2
+ import source_nav_web from '../../imgs/font/banner-web.jpg';
3
+ import source_nav_h5 from '../../imgs/font/banner-h5.jpg';
4
+ import title_web from "../../imgs/font/title-web.png";
5
+ import text_web from "../../imgs/font/text-web.png";
6
+ import text_h5 from "../../imgs/font/text-h5.png";
7
+ export function makeStyles() {
8
+ return /*#__PURE__*/css(".source-nav{display:flex;justify-content:center;position:relative;height:800px;width:100%;overflow:hidden;background-image:url(", source_nav_web, ");background-repeat:no-repeat;background-position:left;background-size:cover;@media (max-width: 768px){overflow:hidden;background-image:url(", source_nav_h5, ");width:100%;background-position:center;}@media (min-width: 1920px){width:100%;}.content-img{height:151px;width:440px;margin-top:26px;display:flex;justify-content:center;background-image:url(", title_web, ");background-repeat:no-repeat;background-position:right bottom;background-size:100%;position:absolute;left:21%;bottom:356px;@media (max-width: 768px){left:50%;transform:translate(-50%,0);bottom:75%;width:57%;}}.dowload{width:440px;height:80px;position:absolute;left:21%;bottom:254px;border:none;background:#006FFF;border-radius:14px;font-family:PingFangSC-Regular;font-size:30px;color:#FFFFFF;font-weight:400;cursor:pointer;&:hover{background-color:#3D91FF;}&:active{background-color:#3D91FF;}@media (max-width: 768px){left:50%;transform:translate(-50%,0);bottom:58%;width:57%;height:60px;}}}.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;}}.source-designer{background-color:#FAFAFA;padding-top:30px;padding-bottom:100px;position:relative;@media (max-width:768px){padding-top:4%;padding-bottom:13.4%;}.designer-title{position:relative;width:800px;height:120px;margin:30px auto 40px;img{width:100%;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);}@media (max-width:768px){width:72%;height:40px;margin:3.8% auto 4.8%;}}.designer-content{margin:0 15%;@media (max-width:768px){margin:0 5.8%;}.designer-show{display:grid;grid-template-columns:repeat(auto-fill, 200px);grid-template-rows:repeat(auto-fill, 290px);grid-gap:40px 50px;justify-content:center;@media (max-width:768px){grid-template-columns:repeat(3, 1fr);grid-template-rows:repeat(6, 1fr);grid-gap:5.3% 6.7%;}.designer-item{img{width:100%;}&>div{margin-top:20px;font-family:PingFangSC-Regular;font-size:20px;color:#000000;letter-spacing:0;text-align:center;line-height:30px;font-weight:400;}}}}}");
9
+ }
@@ -11,11 +11,11 @@ export function makeStyles(bgTheme, theme) {
11
11
  document.head.appendChild(style);
12
12
  }
13
13
 
14
- return /*#__PURE__*/css("height:100%;.k-btn{font-size:16px;}.k-layout-wrapper{height:100%;}.cp-body{padding:20px;background:", bgTheme.bgColor, ";}.k-layout-aside{background:", bgTheme.menuColor, ";}.k-layout-header{display:flex;align-items:center;font-family:Roboto;font-weight:500;font-size:24px;&>div:first-child{flex-grow:1;}.header-logo{display:flex;padding-left:25px;img{width:320px;}}.header-menu{display:flex;align-items:center;padding-right:60px;&>div{cursor:pointer;height:100%;align-items:center;margin-left:82px;display:flex;align-items:center;justify-content:center;transition:all .25s ease-in-out;color:", theme.textColor, ";}&>div:not(:last-child){opacity:", theme.opacity, ";}&>div:not(:last-child):hover{opacity:1;color:", theme.textColor, ";}&>div:last-child{width:60px;height:60px;border-radius:50%;background:#ffffff;}}}.k-menu{height:100%;.k-menu-header{font-family:Roboto;font-weight:500;font-size:32px;letter-spacing:-0.05em;color:#C6C6C6;height:100px;&>div:first-child{width:100%;display:flex;align-items:center;&>span{flex-grow:1;}}.k-icon{font-size:50px;}}}.menu-footer{", center(), ";height:86px;border-top:1px solid #696969;background:", bgTheme.menuColor, ";&>div{width:280px;border:1px solid ", theme.mainColor, ";color:", theme.mainColor, ";display:flex;align-items:center;padding:12px 20px;", function () {
14
+ return /*#__PURE__*/css("height:100%;.k-btn{font-size:16px;}.k-layout-wrapper{height:100%;}.cp-body{padding:20px;background:", bgTheme.bgColor, ";}.k-layout-aside{background:", bgTheme.menuColor, ";}.k-layout-header{display:flex;align-items:center;font-family:Roboto;font-weight:500;font-size:24px;&>div:first-child{flex-grow:1;}.header-logo{display:flex;padding-left:25px;img{width:400px;}}.header-menu{display:flex;align-items:center;padding-right:60px;&>div{cursor:pointer;height:100%;align-items:center;margin-left:82px;display:flex;align-items:center;justify-content:center;transition:all .25s ease-in-out;color:", theme.textColor, ";}&>div:not(:last-child){opacity:", theme.opacity, ";}&>div:not(:last-child):hover{opacity:1;color:", theme.textColor, ";}&>div:last-child{width:60px;height:60px;border-radius:50%;background:#ffffff;}}}.k-menu{height:100%;.k-menu-header{font-family:Roboto;font-weight:500;font-size:32px;letter-spacing:-0.05em;color:#C6C6C6;height:100px;&>div:first-child{width:100%;display:flex;align-items:center;&>span{flex-grow:1;}}.k-icon{font-size:50px;}}}.menu-footer{", center(), ";height:86px;border-top:1px solid #696969;background:", bgTheme.menuColor, ";&>div{width:280px;border:1px solid ", theme.mainColor, ";color:", theme.mainColor, ";display:flex;align-items:center;padding:12px 20px;", function () {
15
15
  var _context;
16
16
 
17
17
  if (_includesInstanceProperty(_context = theme.mainColor).call(_context, 'linear-gradient')) {
18
18
  return "\n border: 1px solid transparent;\n background-image: " + theme.mainColor + ";\n background-clip: text; \n text-fill-color: transparent;\n border-image: " + theme.mainColor + " 10 10 stretch;\n ";
19
19
  }
20
- }(), ";&>div:first-child{flex-grow:1;}}}.cp-content{padding-left:20px;.img-box{width:100%;height:500px;background-size:cover;}.card-box{font-family:Roboto;padding-top:20px;display:flex;font-weight:500;overflow:hidden;letter-spacing:-0.1em;&>div{height:350px;flex-grow:1;width:0;padding:23px 40px 0 40px;}&>div:first-child{margin-right:10px;}&>div:last-child{margin-left:10px;}.card-title{font-size:32px;color:#C6C6C6;display:flex;align-items:center;&>div:first-child{flex-grow:1;}.k-icon{font-size:56px;}}.title-secondary:not(:last-child){border-bottom:1px solid #696969;}.title-secondary{padding:15px 0;&>div:first-child{display:flex;align-items:center;&>span:first-child{font-size:30px;color:", bgTheme.cardTextColor, ";flex-grow:1;}&>span:last-child{font-size:20px;color:#A5A5A5;}}p{font-size:20px;width:570px;color:#A5A5A5;margin:0;}}.collection-box{display:flex;margin-top:40px;&>div{width:200px;height:200px;margin-right:16px;background:", theme.mainColor, ";color:", theme.collectionsColor, ";text-align:center;&>div:first-child{font-size:50px;margin:62px auto 10px auto;}&>div:last-child{font-size:20px;}}}}}");
20
+ }(), ";&>div:first-child{flex-grow:1;}}}.cp-content{padding-left:20px;.img-box{width:100%;height:500px;position:relative;.img-item{width:100%;height:500px;background-size:cover;position:absolute;top:0;left:0;}.img-seld{z-index:1;}.img-noseld{z-index:0;}}.card-box{font-family:Roboto;padding-top:20px;display:flex;font-weight:500;overflow:hidden;letter-spacing:-0.1em;&>div{height:350px;flex-grow:1;width:0;padding:23px 40px 0 40px;}&>div:first-child{margin-right:10px;}&>div:last-child{margin-left:10px;}.card-title{font-size:32px;color:#C6C6C6;display:flex;align-items:center;&>div:first-child{flex-grow:1;}.k-icon{font-size:56px;}}.title-secondary:not(:last-child){border-bottom:1px solid #696969;}.title-secondary{padding:15px 0;&>div:first-child{display:flex;align-items:center;&>span:first-child{font-size:30px;color:", bgTheme.cardTextColor, ";flex-grow:1;}&>span:last-child{font-size:20px;color:#A5A5A5;}}p{font-size:20px;width:570px;color:#A5A5A5;margin:0;}}.collection-box{display:flex;margin-top:40px;&>div{width:200px;height:200px;margin-right:16px;background:", theme.mainColor, ";color:", theme.collectionsColor, ";text-align:center;&>div:first-child{font-size:50px;margin:62px auto 10px auto;}&>div:last-child{font-size:20px;}}}}}");
21
21
  }
@@ -1,5 +1,5 @@
1
1
  import { css } from '@emotion/css';
2
2
  import global, { mainBlock, center } from '../../../styles/default';
3
3
  export function makeStyles(themeColor) {
4
- return /*#__PURE__*/css("background:#F0F4FA;", mainBlock(657), ";padding-top:35px;padding-bottom:50px;.best-box{&>div:first-child{display:flex;justify-content:center;.title-box div{text-align:center;}.main-title{font-weight:600;font-size:24px;color:#000000;margin-bottom:14px;}.sub-title{font-size:16px;color:#7A7A7A;}}&>div:nth-child(2){display:flex;justify-content:center;.imgs-box{margin:30px 0;display:flex;justify-content:space-between;width:600px;font-family:Roboto;font-size:16px;&>div{cursor:pointer;border-radius:8px;width:99px;height:99px;text-align:center;img{margin:20px auto 5px auto;display:block;width:40px;}}&>div:not(.active):hover{background:#E5EAF4;}&>div.active{color:#ffffff;background:", themeColor, ";}}}&>div:last-child{display:flex;height:315px;&>div{height:100%;border-radius:8px;}.code-pen{width:455px;margin-right:20px;background:#212121;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;&>div:first-child{padding:20px 45px;color:#B8B8B8;font-size:14px;font-family:Roboto;background:#212121;}&>div:last-child{flex-grow:1;.mtk1,.mtk22{color:#FACD11;}.mtk5{color:#04E1D1;}}}.optional-box{width:725px;background:#FFFFFF;padding:27px 28px 27px 19px;display:flex;&:hover{box-shadow:", global.cardBoxShadow, ";}}.left{width:326px;height:261px;background:#F0F0F0;border-radius:8px;overflow:hidden;position:relative;.row{position:absolute;width:100%;border-bottom:1px dashed #ccc;left:0;top:20px;}.column{position:absolute;height:100%;top:0;left:20px;border:1px dashed #D5D5D5;}", center(), " iframe{z-index:10;}.k-btn{width:120px;height:40px;font-family:Roboto;font-size:16px;}}.right{padding-left:60px;padding-top:15px;.input-box{input:hover{border-color:#36acef;}}.item{display:flex;align-items:center;margin-bottom:30px;&>div:first-child{color:#4F4F4F;width:110px;}&>div:last-child{flex-grow:1;width:0;&>*{width:160px;height:32px;}}}.radius-box{display:flex;align-items:center;color:#000000;.k-slider{flex-grow:1;}.radius-value:first-child{padding-right:10px;}.radius-value:last-child{padding-left:10px;}}}}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.best-box{width:auto!important;&>div:first-child{.title-box{padding:20px;}}&>div:nth-child(2){.imgs-box{width:auto;}}&>div:last-child{flex-direction:column;height:auto;.code-pen{width:auto;margin-right:0;}.optional-box{flex-direction:column;width:auto;margin:12px 0 20px;padding:20px;}.left{height:100px;width:100%;}.right{padding-left:20px;.item{&:last-of-type{margin-bottom:0;}>div:first-child{width:80px;}}}}}}");
4
+ return /*#__PURE__*/css("background:#F0F4FA;", mainBlock(657), ";padding-top:35px;padding-bottom:50px;.best-box{&>div:first-child{display:flex;justify-content:center;.title-box div{text-align:center;.h5-info{display:none;}}.main-title{font-weight:600;font-size:24px;color:#000000;margin-bottom:14px;}.sub-title{font-size:16px;color:#7A7A7A;}}&>div:nth-child(2){display:flex;justify-content:center;.imgs-box{margin:30px 0;display:flex;justify-content:space-between;width:600px;font-family:Roboto;font-size:16px;&>div{cursor:pointer;border-radius:8px;width:99px;height:99px;text-align:center;img{margin:20px auto 5px auto;display:block;width:40px;}}&>div:not(.active):hover{background:#E5EAF4;}&>div.active{color:#ffffff;background:", themeColor, ";}}}&>div:last-child{display:flex;height:315px;&>div{height:100%;border-radius:8px;}.code-pen{width:455px;margin-right:20px;background:#212121;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;&>div:first-child{padding:20px 45px;color:#B8B8B8;font-size:14px;font-family:Roboto;background:#212121;}&>div:last-child{flex-grow:1;.mtk1,.mtk22{color:#FACD11;}.mtk5{color:#04E1D1;}}}.optional-box{width:725px;background:#FFFFFF;padding:27px 28px 27px 19px;display:flex;&:hover{box-shadow:", global.cardBoxShadow, ";}}.left{width:326px;height:261px;background:#F0F0F0;border-radius:8px;overflow:hidden;position:relative;.row{position:absolute;width:100%;border-bottom:1px dashed #ccc;left:0;top:20px;}.column{position:absolute;height:100%;top:0;left:20px;border:1px dashed #D5D5D5;}", center(), " iframe{z-index:10;}.k-btn{width:120px;height:40px;font-family:Roboto;font-size:16px;}}.right{padding-left:60px;padding-top:15px;.input-box{input:hover{border-color:#36acef;}}.item{display:flex;align-items:center;margin-bottom:30px;&>div:first-child{color:#4F4F4F;width:110px;}&>div:last-child{flex-grow:1;width:0;&>*{width:160px;height:32px;}}}.radius-box{display:flex;align-items:center;color:#000000;.k-slider{flex-grow:1;}.radius-value:first-child{padding-right:10px;}.radius-value:last-child{padding-left:10px;}}}}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.best-box{width:auto!important;&>div:first-child{.title-box{padding:20px;.web-info{display:none;}.h5-info{display:block;}}}&>div:nth-child(2){.imgs-box{width:auto;}}&>div:last-child{flex-direction:column;height:auto;.code-pen{width:auto;margin-right:0;}.optional-box{flex-direction:column;width:auto;margin:12px 0 20px;padding:20px;}.left{height:100px;width:100%;}.right{padding-left:20px;.item{&:last-of-type{margin-bottom:0;}>div:first-child{width:80px;}}}}}}");
5
5
  }
@@ -9,9 +9,9 @@ export function makeStyles(colorList) {
9
9
  return _includesInstanceProperty(_context = item.color).call(_context, 'linear-gradient') ? item.color.match(/#\w{6}/)[0] : item.color;
10
10
  });
11
11
 
12
- return /*#__PURE__*/css("background:linear-gradient(94.17deg, #F1DEFF 35.58%, rgba(0, 194, 255, 0) 99.19%);", mainBlock(450), ";position:relative;.bg-layer{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;img{position:absolute;filter:blur(40px);}img:first-child{left:760px;top:120px;}img:nth-child(2){left:1270px;top:-10px;opacity:.67;}img:last-child{left:1220px;top:230px;opacity:.67;}}.cp-content{position:relative;z-index:5;display:flex;&>div:first-child{flex-grow:1;}&>div:last-child{width:625px;display:flex;align-items:center;}.cp-logo{margin-top:30px;}.cp-desc{font-size:16px;line-height:22px;color:#2E2E2E;width:374px;}.info-box{display:flex;align-items:center;&>div:first-child{font-size:14px;color:#000000;font-family:Roboto;a{text-decoration:none;color:#000000;border-bottom:1px solid #000000;}}&>div:last-child a:hover{color:#0191EA;}}.color-box{padding-top:20px;.color-wrapper{width:407px;height:112px;background:#000000;border:1px solid #6E64E0;box-sizing:border-box;border-radius:8px;display:flex;.color-item-box{display:flex;justify-content:space-around;flex-grow:1;align-items:center;color:#CDCDCD;", function () {
12
+ return /*#__PURE__*/css("background:linear-gradient(94.17deg, #F1DEFF 35.58%, rgba(0, 194, 255, 0) 99.19%);", mainBlock(450), ";position:relative;.web-info{display:block;}.h5-info{display:none;}.bg-layer{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;img{position:absolute;filter:blur(40px);}img:first-child{left:760px;top:120px;}img:nth-child(2){left:1270px;top:-10px;opacity:.67;}img:last-child{left:1220px;top:230px;opacity:.67;}}.cp-content{position:relative;z-index:5;display:flex;&>div:first-child{flex-grow:1;}&>div:last-child{width:625px;display:flex;align-items:center;}.cp-logo{margin-top:30px;}.cp-desc{font-size:16px;line-height:22px;color:#2E2E2E;width:374px;}.info-box{display:flex;align-items:center;&>div:first-child{font-size:14px;color:#000000;font-family:Roboto;a{text-decoration:none;color:#000000;border-bottom:1px solid #000000;}}&>div:last-child a:hover{color:#0191EA;}}.color-box{padding-top:20px;.color-wrapper{width:407px;height:112px;background:#000000;border:1px solid #6E64E0;box-sizing:border-box;border-radius:8px;display:flex;.color-item-box{display:flex;justify-content:space-around;flex-grow:1;align-items:center;color:#CDCDCD;", function () {
13
13
  return _mapInstanceProperty(boxShadowColorList).call(boxShadowColorList, function (color, index) {
14
14
  return "\n .color-item:nth-child(" + (index + 1) + ") {\n & > div:first-child:hover {\n box-shadow: 0 0 16px " + color + ";\n }\n }\n ";
15
15
  });
16
- }(), ";.color-item{margin-top:20px;&>div:first-child{width:33px;height:33px;border-radius:50%;background:#ffffff;", center(), ";margin:0 auto;color:#ffffff;cursor:pointer;}&>div:last-child{padding-top:10px;text-align:center;color:#737373;}}}.color-swtich-box{width:69px;margin-top:10px;.theme-type-switch{width:60px;height:20px;background:#777777;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;&>div{", center(), ";width:27px;height:13px;border-radius:4px;cursor:pointer;}&>div.active{background:#414141;color:#ffffff;}}}}}.cp-box{width:625px;height:360px;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background:#3D3D3D;&>div:first-child{flex-grow:1;display:flex;align-items:center;justify-content:flex-end;padding-right:15px;background:#3D3D3D;&>div{width:9px;height:9px;border-radius:50%;margin-left:5px;}&>div:nth-child(1){background:#F93E3E;}&>div:nth-child(2){background:#FAAB11;}&>div:last-child{background:#37CD02;}}iframe{transform-origin:0 0;}}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.cp-content{width:auto!important;flex-direction:column;img{max-width:100%;}.cp-desc{width:100%;}.color-box{.color-wrapper{width:auto;}}&>div:last-child{width:auto;}.cp-box{display:block;height:auto;margin:12px 0 20px;&>div:first-child{height:20px;}}}}");
16
+ }(), ";.color-item{margin-top:20px;&>div:first-child{width:33px;height:33px;border-radius:50%;background:#ffffff;", center(), ";margin:0 auto;color:#ffffff;cursor:pointer;}&>div:last-child{padding-top:10px;text-align:center;color:#737373;}}}.color-swtich-box{width:69px;margin-top:10px;.theme-type-switch{width:60px;height:20px;background:#777777;border-radius:4px;overflow:hidden;display:flex;align-items:center;justify-content:center;&>div{", center(), ";width:27px;height:13px;border-radius:4px;cursor:pointer;}&>div.active{background:#414141;color:#ffffff;}}}}}.cp-box{width:625px;height:360px;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background:#3D3D3D;&>div:first-child{flex-grow:1;display:flex;align-items:center;justify-content:flex-end;padding-right:15px;background:#3D3D3D;&>div{width:9px;height:9px;border-radius:50%;margin-left:5px;}&>div:nth-child(1){background:#F93E3E;}&>div:nth-child(2){background:#FAAB11;}&>div:last-child{background:#37CD02;}}iframe{transform-origin:0 0;}}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.web-info{display:none;}.h5-info{display:block;}.cp-content{width:auto!important;flex-direction:column;img{max-width:100%;}.cp-desc-box{text-align:center;}.info-box{&>div{margin:0 auto;}&>div:first-child{font-size:12px;a{border:none;}}&>div:last-child a:hover{color:#0191EA;}}.cp-desc{width:100%;text-align:center;font-size:16px;&>p{margin:0;}}.color-box{.color-wrapper{width:auto;}}&>div:last-child{width:auto;}.cp-box{display:block;height:auto;margin:12px 0 20px;&>div:first-child{height:20px;}}}}");
17
17
  }
@@ -4,5 +4,5 @@ import kingVisionBgInner from '../../../imgs/kingvision_bg_inner.png';
4
4
  import kingVisionBgOuter from '../../../imgs/kingvision_bg_outer.png';
5
5
  import kingvision from '../../../imgs/kingvision.png';
6
6
  export function makeStyles() {
7
- return /*#__PURE__*/css("background:#F8F8F8;", mainBlock(450), ";background-image:url(", kingVisionBgOuter, ");background-repeat:no-repeat;background-position:84% 106%;.king-vis-wrapper{background-image:url(", kingVisionBgInner, ");background-repeat:no-repeat;background-position:400px -12px;display:flex;img{cursor:pointer;}&>div:first-child{flex-grow:1;width:0;padding-top:53px;}&>div:last-child{width:625px;display:flex;align-items:center;&>div{width:100%;height:350px;background-image:url(", kingvision, ");border-radius:8px;overflow:hidden;background-repeat:no-repeat;background-size:contain;filter:drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.25));}}.main-logo{margin-bottom:15px;}.vis-title{margin-bottom:18px;}.vis-description{width:374px;font-size:16px;margin-bottom:65px;color:#2E2E2E;a{text-decoration:none;color:#0191EA;}}.visit-king-vision{width:370px;height:61px;justify-content:flex-start;font-size:18px;}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.visit-king-vision,.vis-description{width:100%!important;}.king-vis-wrapper{width:auto!important;flex-direction:column;img{max-width:100%;}&>div:first-child{width:auto;}.vis-description{margin-bottom:20px;}&>div:last-child{width:auto;&>div{background-position:left center;height:260px;}}}}");
7
+ return /*#__PURE__*/css("background:#F8F8F8;", mainBlock(450), ";background-image:url(", kingVisionBgOuter, ");background-repeat:no-repeat;background-position:84% 106%;.web-info{display:block;}.h5-info{display:none;}.king-vis-wrapper{background-image:url(", kingVisionBgInner, ");background-repeat:no-repeat;background-position:400px -12px;display:flex;img{cursor:pointer;}&>div:first-child{flex-grow:1;width:0;padding-top:53px;}&>div:last-child{width:625px;display:flex;align-items:center;&>div{width:100%;height:350px;background-image:url(", kingvision, ");border-radius:8px;overflow:hidden;background-repeat:no-repeat;background-size:contain;filter:drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.25));}}.main-logo{margin-bottom:15px;}.vis-title{margin-bottom:18px;}.vis-description{width:374px;font-size:16px;margin-bottom:65px;color:#2E2E2E;a{text-decoration:none;color:#0191EA;}}.visit-king-vision{width:370px;height:61px;justify-content:flex-start;font-size:18px;}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.web-info{display:none;}.h5-info{display:block;}.visit-king-vision,.vis-description{width:100%!important;}.king-vis-wrapper{width:auto!important;flex-direction:column;img{max-width:100%;}&>div:first-child{width:auto;}.vis-description{margin-bottom:20px;text-align:center;}.main-logo,.vis-title{text-align:center;}&>div:last-child{width:auto;&>div{background-position:left center;height:260px;}}}}");
8
8
  }
@@ -15,12 +15,14 @@ export interface NewFunctionProps {
15
15
  curTreeValue: string[];
16
16
  selectedMenu: string;
17
17
  themeColor: string;
18
+ documentWidth: number;
18
19
  }
19
20
  export declare class NewFunction extends Component<NewFunctionProps> {
20
21
  static template: string | import("intact").Template<any>;
21
22
  static typeDefs: Required<TypeDefs<NewFunctionProps>>;
22
23
  static defaults: () => Partial<NewFunctionProps>;
23
24
  private cardBoxRef;
25
+ mounted(): void;
24
26
  init(): void;
25
27
  setCardBoxPosition(): void;
26
28
  showTransition(): void;
@@ -20,7 +20,8 @@ var typeDefs = {
20
20
  editableText: String,
21
21
  curTreeValue: Array,
22
22
  selectedMenu: String,
23
- themeColor: String
23
+ themeColor: String,
24
+ documentWidth: Number
24
25
  };
25
26
 
26
27
  var defaults = function defaults() {
@@ -38,7 +39,8 @@ var defaults = function defaults() {
38
39
  editableText: 'Editable text',
39
40
  curTreeValue: ['设计师小蓝'],
40
41
  selectedMenu: '1',
41
- themeColor: ''
42
+ themeColor: '',
43
+ documentWidth: 0
42
44
  };
43
45
  };
44
46
 
@@ -66,6 +68,10 @@ export var NewFunction = /*#__PURE__*/function (_Component) {
66
68
 
67
69
  var _proto = NewFunction.prototype;
68
70
 
71
+ _proto.mounted = function mounted() {
72
+ this.set('documentWidth', document.documentElement.offsetWidth);
73
+ };
74
+
69
75
  _proto.init = function init() {
70
76
  var _this2 = this;
71
77
 
@@ -2,5 +2,5 @@ import { css } from '@emotion/css';
2
2
  import global, { mainBlock, fullfill, center } from '../../../styles/default';
3
3
  import { theme } from 'kpc/styles/theme';
4
4
  export function makeStyles(themeColor) {
5
- return /*#__PURE__*/css("background:#ffffff;", mainBlock(544), ";.white-card{transition:box-shadow ", theme.transition.middle, ";&:hover{box-shadow:", global.cardBoxShadow, ";}}.resource-img-box img{width:170px;}.new-fn-box{.title-box{margin-top:34px;&>div{text-align:center;}&>div:first-child{font-weight:600;font-size:24px;color:#000;line-height:34px;}&>div:last-child{font-size:16px;color:#7A7A7A;line-height:22px;margin-top:12px;}}.card-wrapper{position:relative;height:355px;margin-top:42px;&>div:first-child{overflow:hidden;height:100%;position:relative;width:1220px;margin-left:-10px;.card-box{margin-left:10px;padding:10px 0;left:0;top:0;position:absolute;height:100%;white-space:nowrap;display:inline-block;transition:left .5s ease-out;&>div{height:335px;}}}.resource-box{", fullfill(), " display:flex;flex-direction:column;justify-content:space-between;color:#4B4B4B;font-size:16px;img{cursor:pointer;}.comp-download{img{border-radius:8px;width:48px;height:48px;transition:box-shadow ", theme.transition.middle, ";}img:hover{box-shadow:", global.cardBoxShadow, ";}}&>div{background:#FFFFFF;border-radius:8px;height:80px;display:flex;align-items:center;padding:0 22px;gap:10px;&>div:first-child{flex-grow:1;}&>div:last-child{width:182px;display:flex;align-items:center;}}&>div:first-child{&>div:last-child{justify-content:space-between;}}}.component-box{", fullfill(), " background:#FFFFFF;border-radius:8px;position:relative;&>.k-btn{position:absolute;transition:color .25s linear;right:10px;top:5px;color:#818181;font-size:12px;display:flex;align-items:center;.k-icon{color:#0191EA;height:20px;}}&>.k-btn:hover{color:", themeColor, ";}.comp-content{", fullfill(), " padding:35px 47px;.switch-box{padding-left:40px;padding-top:8px;}.comp-list-btn{margin-right:20px;}.select-box{.k-select{width:170px;height:40px;}}.input-box{.k-input,.k-input-inner{width:170px;height:40px;}}.menu-tree-box{height:124px;display:flex;&>div{height:100%;}.tree-box{border:1px solid #DCDCDC;background:#F9F9F9;padding:10px 5px;margin-right:9px;height:124px;width:170px;}.menu-box{margin-left:9px;border:1px solid #DCDCDC;overflow:hidden;height:124px;width:170px;}.k-tree{border:none;}.k-tree-label{margin:2px 0;}.k-tree-text{color:#595959;}.k-menu-name{font-size:12px;}.k-menu-item:not(.k-active){.k-menu-name{color:#868686;}}.k-tree-text:first-child{color:red;}.k-tree-label,.k-tree-node,.k-menu{background:#F9F9F9;}.k-menu-header{height:28px;}.k-menu-item,.k-menu-title{height:32px;}}.rate-box,.radio-box{padding-left:20px;}.rate-box{padding-top:2px;}.slider-radio-box{margin-top:15px;}.select-input{margin-top:5px;}&>div{height:60px;width:100%;display:flex;align-items:center;.comp-item{height:100%;flex-grow:1;}}.input-select{.k-select,.k-input{width:170px;height:40px;}.k-input-inner{height:40px;}}.k-datepicker{width:170px;}.k-editable{.k-input{width:170px;}}}}.animate-box{display:flex;justify-content:space-between;height:100%;.animate-left{background:#ffffff;border-radius:8px;}&>div{height:100%;}.animate-left{width:176px;overflow:hidden;}.animate-right{background:#ffffff;border-radius:8px;width:300px;display:flex;justify-content:space-between;flex-direction:column;&>div{padding-left:19px;padding-right:15px;}&>div:first-child{font-size:14px;color:#4F4F4F;height:57px;display:flex;align-items:center;.animate-title{flex-grow:1;}&>div:last-child{width:160px;}}&>div:last-child{height:100px;display:flex;margin-bottom:12px;flex-direction:column;}.tab-content{flex-grow:1;background:#F5F5F9;&>div{", center(), ";", fullfill(), ";overflow:hidden;.k-btn{margin:0 8px;width:80px;}.tab-text{width:224px;white-space:pre-wrap;}}}.k-select{border-color:#F0F4FA;background:#F0F4FA;}.k-tabs{border:none;.k-tabs-scroll{display:flex;justify-content:center;}}}}.arrow-btn{position:absolute;top:50%;transform:translateY(-50%);}.next-arrow{right:-60px;}.prev-arrow{left:-60px;}}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.resource-img-box img{width:140px;}.new-fn-box{width:auto!important;.card-wrapper{height:auto;>div:first-child{width:100%;.card-box{position:relative;display:block;>div{height:auto;}}}.resource-box{gap:12px;}.component-box{.comp-content{padding:35px 12px 12px;.select-box{.k-select{width:60px;}}.slider-radio-box{flex-direction:column;gap:10px;margin:0 0 15px;align-items:start;}.radio-box{padding-left:0;}}}.animate-box{display:block;.animate-left{width:auto;height:176px;}.animate-right{width:auto;margin-top:12px;}}}.arrow-btn{display:none;}}}");
5
+ return /*#__PURE__*/css("background:#ffffff;", mainBlock(544), ";.white-card{transition:box-shadow ", theme.transition.middle, ";&:hover{box-shadow:", global.cardBoxShadow, ";}}.resource-img-box img{width:170px;}.new-fn-box{.title-box{margin-top:34px;&>div{text-align:center;}&>div:first-child{font-weight:600;font-size:24px;color:#000;line-height:34px;}&>div:last-child{font-size:16px;color:#7A7A7A;line-height:22px;margin-top:12px;}}.card-wrapper{position:relative;height:355px;margin-top:42px;&>div:first-child{overflow:hidden;height:100%;position:relative;width:1220px;margin-left:-10px;.card-box{margin-left:10px;padding:10px 0;left:0;top:0;position:absolute;height:100%;white-space:nowrap;display:inline-block;transition:left .5s ease-out;&>div{height:335px;}}}.resource-box{", fullfill(), " display:flex;flex-direction:column;justify-content:space-between;color:#4B4B4B;font-size:16px;img{cursor:pointer;}.comp-download{img{border-radius:8px;width:48px;height:48px;transition:box-shadow ", theme.transition.middle, ";}img:hover{box-shadow:", global.cardBoxShadow, ";}}&>div{background:#FFFFFF;border-radius:8px;height:80px;display:flex;align-items:center;padding:0 22px;gap:10px;&>div:first-child{flex-grow:1;}&>div:last-child{width:200px;display:flex;align-items:center;}}&>div:first-child{&>div:last-child{justify-content:space-between;}}}.component-box{", fullfill(), " background:#FFFFFF;border-radius:8px;position:relative;&>.k-btn{position:absolute;transition:color .25s linear;right:10px;top:5px;color:#818181;font-size:12px;display:flex;align-items:center;.k-icon{color:#0191EA;height:20px;}}&>.k-btn:hover{color:", themeColor, ";}.comp-content{", fullfill(), " padding:35px 47px;.switch-box{padding-left:40px;padding-top:8px;}.comp-list-btn{margin-right:20px;}.select-box{.k-select{width:170px;height:40px;}}.input-box{.k-input,.k-input-inner{width:170px;height:40px;}}.menu-tree-box{height:124px;display:flex;margin-top:10px;&>div{height:100%;}.tree-box{border:1px solid #DCDCDC;background:#F9F9F9;padding:10px 5px;margin-right:9px;height:124px;width:170px;}.menu-box{margin-left:9px;border:1px solid #DCDCDC;overflow:hidden;height:124px;width:170px;}.k-tree{border:none;}.k-tree-label{margin:2px 0;}.k-tree-text{color:#595959;}.k-menu-name{font-size:12px;}.k-menu-item:not(.k-active){.k-menu-name{color:#868686;}}.k-tree-text:first-child{color:red;}.k-tree-label,.k-tree-node,.k-menu{background:#F9F9F9;}.k-menu-header{height:28px;}.k-menu-item,.k-menu-title{height:32px;}}.rate-box,.radio-box{padding-left:20px;}.rate-box{padding-top:2px;}.slider-radio-box{margin-top:15px;}.select-input{margin-top:5px;}&>div{height:60px;width:100%;display:flex;align-items:center;.comp-item{height:100%;flex-grow:1;}}.input-select{.k-select,.k-input{width:170px;height:40px;}.k-input-inner{height:40px;}}.k-datepicker{width:170px;}.k-editable{.k-input{width:170px;}}}}.animate-box{display:flex;justify-content:space-between;height:100%;.animate-left{background:#ffffff;border-radius:8px;}&>div{height:100%;}.animate-left{width:176px;overflow:hidden;}.animate-right{background:#ffffff;border-radius:8px;width:300px;display:flex;justify-content:space-between;flex-direction:column;&>div{padding-left:19px;padding-right:15px;}&>div:first-child{font-size:14px;color:#4F4F4F;height:57px;display:flex;align-items:center;.animate-title{flex-grow:1;}&>div:last-child{width:160px;}}&>div:last-child{height:100px;display:flex;margin-bottom:12px;flex-direction:column;}.tab-content{flex-grow:1;background:#F5F5F9;&>div{", center(), ";", fullfill(), ";overflow:hidden;.k-btn{margin:0 8px;width:80px;}.tab-text{width:224px;white-space:pre-wrap;}}}.k-select{border-color:#F0F4FA;background:#F0F4FA;}.k-tabs{border:none;.k-tabs-scroll{display:flex;justify-content:center;}}}}.arrow-btn{position:absolute;top:50%;transform:translateY(-50%);}.next-arrow{right:-60px;}.prev-arrow{left:-60px;}}}@media (max-width: 768px){display:block;padding:0 20px;height:auto;.k-none:hover,.k-none:active,.k-none:focus{background:transparent!important;}.k-none{-webkit-tap-highlight-color:transparent;}.resource-img-box img{width:140px;}.comp-menu-box{margin-top:5px;}.new-fn-box{width:auto!important;.card-wrapper{height:auto;>div:first-child{width:100%;.card-box{position:relative;display:block;>div{height:auto;}}}.resource-box{gap:12px;}.component-box{.comp-content{padding:35px 12px 12px;.select-box{.k-select{width:60px;}}.slider-radio-box{flex-direction:column;gap:10px;margin:0 0 15px;align-items:start;}.radio-box{padding-left:0;}}.h5-swap-btn{color:#0091ea;}}.animate-box{display:block;.animate-left{width:auto;height:176px;}.animate-right{width:auto;margin-top:12px;}}}.arrow-btn{display:none;}}}");
6
6
  }
@@ -1,6 +1,7 @@
1
1
  import { css } from '@emotion/css';
2
2
  import global from '../../styles/default';
3
3
  import banner from '../../imgs/banner.jpg';
4
+ import h5banner from '../../imgs/h5banner.jpg';
4
5
  export function makeStyles() {
5
- return /*#__PURE__*/css("font-family:", global.fontFamily, ";.nav{height:460px;position:relative;margin-top:-64px;.nav-bg,.nav-content-box{width:100%;height:100%;position:absolute;left:0;top:0;}.nav-bg{z-index:1;background-image:url(", banner, ");background-repeat:no-repeat;background-size:1920px 460px;}.nav-video-box{width:100%;height:100%;overflow:hidden;position:absolute;left:0;top:0;.nav-video-bg{width:1920px;height:460px;}}.nav-content-box{z-index:10;background:linear-gradient(270deg, rgba(248,252,255,0) 32%, rgba(244,249,255,0.96) 73%);display:flex;align-items:center;justify-content:center;padding-left:20px;}.nav-content{width:", global.contentWidth, "px;color:#000000;height:100%;position:relative;&>div{position:absolute;}&>div:first-child{font-size:45px;font-weight:500;top:164px;}&>div:nth-child(2){font-size:22px;top:237px;}&>div:nth-child(3){top:340px;.k-btn{margin-right:16px;}}}}@media (max-width: 768px){.nav{.nav-content{width:100%;&>div:first-child{font-size:34px;}&>div:nth-child(2){width:300px;background-size:contain;background-position:center;font-size:16px;}}}}");
6
+ return /*#__PURE__*/css("font-family:", global.fontFamily, ";.nav{height:460px;position:relative;margin-top:-64px;.nav-bg,.nav-content-box{width:100%;height:100%;position:absolute;left:0;top:0;}.nav-bg{z-index:1;background-image:url(", banner, ");background-repeat:no-repeat;background-size:cover;}.nav-video-box{width:100%;height:100%;overflow:hidden;position:absolute;left:0;top:0;.nav-video-bg{width:1920px;height:460px;}}.nav-content-box{z-index:10;background:linear-gradient(270deg, rgba(248,252,255,0) 32%, rgba(244,249,255,0.96) 73%);display:flex;align-items:center;justify-content:center;padding:0 20px;}.nav-content{width:", global.contentWidth, "px;color:#000000;height:100%;position:relative;.main-title.h5-title{font-size:40px;}.h5-title{display:none;}.web-title{display:block;}.h5-title{width:100%;text-align:center;}&>div{position:absolute;}.main-title{font-size:45px;font-weight:500;top:164px;}.sub-title{font-size:22px;top:237px;}&>div:last-child{top:340px;.k-btn{margin-right:16px;}}}}@media (min-width: 1920px){.nav{.nav-video-box{.nav-video-bg{width:100%;height:auto;}}}}@media (max-width: 768px){.nav{.nav-content{width:100%;.h5-title{display:block;}.web-title{display:none;}.sub-title{margin-top:10px;}&>div:last-child{width:100%;text-align:center;}}.nav-bg{background-image:url(", h5banner, ");background-size:cover;background-position:center;}.nav-video-box{&,& video{display:none;}}}}");
6
7
  }
@@ -14,4 +14,5 @@ export default class Layout<T extends LayoutProps = LayoutProps> extends Compone
14
14
  showColorList(): void;
15
15
  hideColorList(): void;
16
16
  setLang(langType: string): void;
17
+ onChangeVersion(version: string): void;
17
18
  }
@@ -59,6 +59,12 @@ var Layout = /*#__PURE__*/function (_Component) {
59
59
  this.set('curLang', langType);
60
60
  };
61
61
 
62
+ _proto.onChangeVersion = function onChangeVersion(version) {
63
+ if (version === 'v1') {
64
+ location.href = '/v1/';
65
+ }
66
+ };
67
+
62
68
  return Layout;
63
69
  }(Component);
64
70
 
@@ -79,4 +85,6 @@ export { Layout as default };
79
85
 
80
86
  __decorate([bind], Layout.prototype, "showColorList", null);
81
87
 
82
- __decorate([bind], Layout.prototype, "hideColorList", null);
88
+ __decorate([bind], Layout.prototype, "hideColorList", null);
89
+
90
+ __decorate([bind], Layout.prototype, "onChangeVersion", null);
@@ -2,6 +2,7 @@ import Layout from '../layout';
2
2
  export declare const getAxure: () => void;
3
3
  export declare const getSketch: () => void;
4
4
  export declare const getFigma: () => void;
5
+ export declare const getDesign: () => void;
5
6
  export declare const getWeights: () => void;
6
7
  export default class Index extends Layout {
7
8
  static template: string | import("vdt").Template<any>;
@@ -4,16 +4,19 @@ import template from './index.vdt';
4
4
  import Layout from '../layout';
5
5
  import { Link } from '../../components/link';
6
6
  export var getAxure = function getAxure() {
7
- Link.to('https://damife.ks3-cn-beijing.ksyuncs.com/kpc/KingDesign.rplib');
7
+ location.href = 'https://damife.ks3-cn-beijing.ksyuncs.com/kpc/KingDesign-Axure.zip';
8
8
  };
9
9
  export var getSketch = function getSketch() {
10
- Link.to('https://damife.ks3-cn-beijing.ksyuncs.com/kpc/KingDesing-1.4.1.sketch');
10
+ location.href = 'https://damife.ks3-cn-beijing.ksyuncs.com/kpc/KingDesign-Sketch.zip';
11
11
  };
12
12
  export var getFigma = function getFigma() {
13
- Link.to('https://www.figma.com/file/Uo5AKEmBXT4HOD41CDWliK/King-Design-V1.0.0?node-id=0%3A1');
13
+ window.open('https://www.figma.com/community/file/1121633180544246876');
14
+ };
15
+ export var getDesign = function getDesign() {
16
+ window.open('https://js.design/resourceDetails?id=62c6c0834835c771da15dfe0&source=ksd&plan=web');
14
17
  };
15
18
  export var getWeights = function getWeights() {
16
- Link.to('https://damife.ks3-cn-beijing.ksyuncs.com/kpc/度量工具.xlsx');
19
+ location.href = 'https://damife.ks3-cn-beijing.ksyuncs.com/kpc/度量工具.xlsx';
17
20
  };
18
21
 
19
22
  var Index = /*#__PURE__*/function (_Layout) {
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime-corejs3/helpers/extends";
2
2
  import _inheritsLoose from "@babel/runtime-corejs3/helpers/inheritsLoose";
3
3
  import template from './index.vdt';
4
4
  import Layout from '../layout';
5
- import { Link } from '../../components/link';
6
5
 
7
6
  var Index = /*#__PURE__*/function (_Layout) {
8
7
  _inheritsLoose(Index, _Layout);
@@ -30,7 +29,7 @@ var Index = /*#__PURE__*/function (_Layout) {
30
29
  };
31
30
 
32
31
  _proto.downloadSketch = function downloadSketch(info) {
33
- Link.to("https://damife.ks3-cn-beijing.ksyuncs.com/kpc/" + info.downloadFileName);
32
+ location.href = "https://damife.ks3-cn-beijing.ksyuncs.com/kpc/" + info.downloadFileName;
34
33
  };
35
34
 
36
35
  return Index;