@giteeteam/apps-team-components 1.9.3 → 1.9.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.
@@ -12,7 +12,7 @@ const WorkspaceLabel = memo(props => {
12
12
  const SingleValueDisplay = memo(({ value, onClick, wrapperClassName, itemClassName }) => {
13
13
  const { t } = useI18n();
14
14
  const [workspace] = getArrayValue(value);
15
- return (jsx(WorkspaceLabel, { title: t('pages.fields.default.toWorkspacePage'), onClick: onClick, className: `${wrapperClassName} ${itemClassName}`, workspace: workspace }));
15
+ return (jsx(WorkspaceLabel, { title: t('pages.fields.default.toWorkspacePage'), onClick: onClick, className: `${wrapperClassName} ${itemClassName} single`, workspace: workspace }));
16
16
  });
17
17
  const MultipleValueDisplay = memo(({ value, onClick, itemClassName }) => {
18
18
  const { t } = useI18n();
@@ -1 +1 @@
1
- export declare const pointerStyle = "\n cursor: pointer;\n &:hover {\n color: #5ea1ff;\n }\n";
1
+ export declare const pointerStyle = "\n cursor: pointer;\n\n &.single {\n color: #0c62ff;\n }\n\n &:hover {\n color: #5ea1ff;\n }\n";
@@ -1,7 +1,12 @@
1
- import { blue4 } from '../../../../style/common.js';
1
+ import { blue6, blue4 } from '../../../../style/common.js';
2
2
 
3
3
  const pointerStyle = `
4
4
  cursor: pointer;
5
+
6
+ &.single {
7
+ color: ${blue6};
8
+ }
9
+
5
10
  &:hover {
6
11
  color: ${blue4};
7
12
  }
@@ -4,7 +4,6 @@ import { isEmpty, clone } from 'lodash-es';
4
4
  import { REG_EN_NUMBER } from '../regExp.js';
5
5
  import { dataQuoteState, currentDeleteState } from '../store/dataQuoteStore.js';
6
6
 
7
- const OBJECT_ID_LENGTH = 10;
8
7
  const useDataQuoteStore = (dataSources, getOptionsByValues) => {
9
8
  const [dataQuoteList, setDataQuoteList] = useAtom(dataQuoteState);
10
9
  const [currentDeleteItem, setCurrentDeleteItem] = useAtom(currentDeleteState);
@@ -53,8 +52,7 @@ const useDataQuoteStore = (dataSources, getOptionsByValues) => {
53
52
  const isNotExistedKeys = valuesArr.filter(val => val &&
54
53
  dataQuoteList.every(item => item.objectId !== val) &&
55
54
  val !== currentDeleteItem &&
56
- REG_EN_NUMBER.test(val) &&
57
- val.length === OBJECT_ID_LENGTH);
55
+ REG_EN_NUMBER.test(val));
58
56
  if (isNotExistedKeys.length) {
59
57
  getOptionsByValues(isNotExistedKeys).then(notExistedOpts => {
60
58
  if (notExistedOpts === null || notExistedOpts === void 0 ? void 0 : notExistedOpts.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@giteeteam/apps-team-components",
3
- "version": "1.9.3",
3
+ "version": "1.9.5",
4
4
  "description": "Gitee team components",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -108,4 +108,4 @@
108
108
  ]
109
109
  },
110
110
  "packageManager": "pnpm@7.32.5+sha512.4395951a16c3553123c8693f9e350e9ce18824f602b5af158fb17c2d6ee10a53251544522e31e3003d3b1b9bf5422d25ca14f86e8d10053c552674ee9e33fd15"
111
- }
111
+ }