@giteeteam/apps-team-components 1.6.0-alpha.1 → 1.6.0-alpha.2

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.
@@ -4,10 +4,10 @@ import EmptyField from '../../common/EmptyField.js';
4
4
  import SimpleOverflowToolTip from '../../common/overflow-tooltip/SimpleOverflowToolTip.js';
5
5
 
6
6
  const BaseLineItemVersionReadView = memo(props => {
7
- const { value: propsValue, readonly } = props;
8
- const showValue = propsValue.name;
7
+ const { value } = props;
8
+ const showValue = value === null || value === void 0 ? void 0 : value.name;
9
9
  if (!showValue) {
10
- return jsx(EmptyField, { readonly: readonly });
10
+ return jsx(EmptyField, { readonly: true });
11
11
  }
12
12
  return jsx(SimpleOverflowToolTip, { title: showValue, children: showValue });
13
13
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.6.0-alpha.1",
3
+ "version": "1.6.0-alpha.2",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -8,8 +8,6 @@
8
8
  "prepare": "husky install && pnpm build",
9
9
  "build": "rimraf dist && rollup -c",
10
10
  "publish:alpha": "npm publish --tag alpha",
11
- "prepack": "pnpm build",
12
- "prepublish": "pnpm build",
13
11
  "prepublishOnly": "pnpm build",
14
12
  "lint": "eslint . --ext ts --ext tsx --ext js --ext json",
15
13
  "pre-commit": "lint-staged",