x-star-design 0.0.27 → 0.0.28

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.
@@ -75,7 +75,7 @@ var CodeDetailModal = function CodeDetailModal(_ref) {
75
75
  key: 'download',
76
76
  align: 'center',
77
77
  title: t('File'),
78
- dataIndex: 'link',
78
+ dataIndex: 'source',
79
79
  width: 60,
80
80
  render: function render(v) {
81
81
  return /*#__PURE__*/React.createElement(Button, {
@@ -125,6 +125,10 @@ var CodeDetailModal = function CodeDetailModal(_ref) {
125
125
  icon: /*#__PURE__*/React.createElement(DownloadOutlined, null),
126
126
  href: codeData === null || codeData === void 0 ? void 0 : codeData.source
127
127
  }, t('Download_File')) : /*#__PURE__*/React.createElement(CodeMirrorWrapper, {
128
+ style: {
129
+ height: '50vh',
130
+ minHeight: 200
131
+ },
128
132
  lang: codeData === null || codeData === void 0 ? void 0 : codeData.language,
129
133
  theme: Theme.LIGHT,
130
134
  value: codeData === null || codeData === void 0 ? void 0 : codeData.source
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-star-design",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "A react component library developed by turingstar",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",