yootd 0.0.74 → 0.0.75
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/dist/holiday/types/types.d.ts +22 -22
- package/dist/tree/index.js +7 -6
- package/dist/tree/index.scss +9 -0
- package/package.json +106 -106
@@ -1,22 +1,22 @@
|
|
1
|
-
import { SelectProps } from 'yootd';
|
2
|
-
|
3
|
-
export interface PageData<T> {
|
4
|
-
content: T[];
|
5
|
-
page: {
|
6
|
-
number: number;
|
7
|
-
size: number;
|
8
|
-
totalElements: number;
|
9
|
-
totalPages: number;
|
10
|
-
};
|
11
|
-
}
|
12
|
-
// 查询职务返回的数据类型
|
13
|
-
export interface IjobTitleItem {
|
14
|
-
titleId: number;
|
15
|
-
titleName: string;
|
16
|
-
}
|
17
|
-
// 查询角色返回的数据类型
|
18
|
-
export interface IHolidayItem {
|
19
|
-
vacationId: number;
|
20
|
-
vacationName: string;
|
21
|
-
}
|
22
|
-
export type HolidayProps = SelectProps;
|
1
|
+
import { SelectProps } from 'yootd';
|
2
|
+
|
3
|
+
export interface PageData<T> {
|
4
|
+
content: T[];
|
5
|
+
page: {
|
6
|
+
number: number;
|
7
|
+
size: number;
|
8
|
+
totalElements: number;
|
9
|
+
totalPages: number;
|
10
|
+
};
|
11
|
+
}
|
12
|
+
// 查询职务返回的数据类型
|
13
|
+
export interface IjobTitleItem {
|
14
|
+
titleId: number;
|
15
|
+
titleName: string;
|
16
|
+
}
|
17
|
+
// 查询角色返回的数据类型
|
18
|
+
export interface IHolidayItem {
|
19
|
+
vacationId: number;
|
20
|
+
vacationName: string;
|
21
|
+
}
|
22
|
+
export type HolidayProps = SelectProps;
|
package/dist/tree/index.js
CHANGED
@@ -215,18 +215,19 @@ export var TreeInternal = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
215
215
|
expandAllNodes(treeData);
|
216
216
|
}
|
217
217
|
}, [treeData]);
|
218
|
-
return /*#__PURE__*/React.createElement("div",
|
219
|
-
|
220
|
-
|
221
|
-
|
218
|
+
return /*#__PURE__*/React.createElement("div", {
|
219
|
+
className: "".concat(mb)
|
220
|
+
}, showSearch ? /*#__PURE__*/React.createElement("div", {
|
221
|
+
className: "".concat(mb.e('search'))
|
222
|
+
}, /*#__PURE__*/React.createElement(Search, {
|
222
223
|
placeholder: placeholder,
|
223
224
|
onChange: onChange
|
224
|
-
}) : null, /*#__PURE__*/React.createElement(AntTree, _extends({
|
225
|
+
})) : null, /*#__PURE__*/React.createElement(AntTree, _extends({
|
225
226
|
ref: ref,
|
226
227
|
onExpand: onExpand,
|
227
228
|
expandedKeys: expandedKeys,
|
228
229
|
autoExpandParent: autoExpandParent,
|
229
|
-
className: "".concat(
|
230
|
+
className: "".concat(className),
|
230
231
|
treeData: titleRender ? _treeData : formatTreeData(_treeData),
|
231
232
|
showIcon: showIcon
|
232
233
|
}, props)));
|
package/dist/tree/index.scss
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
.yot-tree {
|
2
|
+
position: relative;
|
3
|
+
overflow: auto;
|
4
|
+
height: 100%;
|
2
5
|
.ant-tree-node-content-wrapper.ant-tree-node-selected {
|
3
6
|
background-color: var(--ant-color-primary-bg);
|
4
7
|
.ant-tree-title {
|
@@ -22,4 +25,10 @@
|
|
22
25
|
}
|
23
26
|
}
|
24
27
|
}
|
28
|
+
&__search {
|
29
|
+
position: sticky;
|
30
|
+
top: 0px;
|
31
|
+
z-index: 1;
|
32
|
+
margin-bottom: 10px;
|
33
|
+
}
|
25
34
|
}
|
package/package.json
CHANGED
@@ -1,106 +1,106 @@
|
|
1
|
-
{
|
2
|
-
"name": "yootd",
|
3
|
-
"version": "0.0.
|
4
|
-
"description": "A react library developed with dumi",
|
5
|
-
"license": "MIT",
|
6
|
-
"module": "dist/index.js",
|
7
|
-
"types": "dist/index.d.ts",
|
8
|
-
"files": [
|
9
|
-
"dist"
|
10
|
-
],
|
11
|
-
"scripts": {
|
12
|
-
"build": "father build",
|
13
|
-
"build:watch": "father dev",
|
14
|
-
"dev": "dumi dev",
|
15
|
-
"docs:build": "dumi build",
|
16
|
-
"docs:preview": "dumi preview",
|
17
|
-
"doctor": "father doctor",
|
18
|
-
"lint": "npm run lint:es && npm run lint:css",
|
19
|
-
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
20
|
-
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
21
|
-
"prepare": "husky install && dumi setup",
|
22
|
-
"prepublishOnly": "father doctor && npm run build",
|
23
|
-
"start": "npm run dev"
|
24
|
-
},
|
25
|
-
"commitlint": {
|
26
|
-
"extends": [
|
27
|
-
"@commitlint/config-conventional"
|
28
|
-
]
|
29
|
-
},
|
30
|
-
"lint-staged": {
|
31
|
-
"*.{md,json}": [
|
32
|
-
"prettier --write --no-error-on-unmatched-pattern"
|
33
|
-
],
|
34
|
-
"*.{css,less}": [
|
35
|
-
"stylelint --fix",
|
36
|
-
"prettier --write"
|
37
|
-
],
|
38
|
-
"*.{js,jsx}": [
|
39
|
-
"eslint --fix",
|
40
|
-
"prettier --write"
|
41
|
-
],
|
42
|
-
"*.{ts,tsx}": [
|
43
|
-
"eslint --fix",
|
44
|
-
"prettier --parser=typescript --write"
|
45
|
-
]
|
46
|
-
},
|
47
|
-
"dependencies": {
|
48
|
-
"@tensorflow-models/pose-detection": "^2.1.3",
|
49
|
-
"@tensorflow/tfjs": "^4.22.0"
|
50
|
-
},
|
51
|
-
"devDependencies": {
|
52
|
-
"@commitlint/cli": "^17.1.2",
|
53
|
-
"@commitlint/config-conventional": "^17.1.0",
|
54
|
-
"@dnd-kit/core": "^6.1.0",
|
55
|
-
"@dnd-kit/modifiers": "^7.0.0",
|
56
|
-
"@dnd-kit/sortable": "^8.0.0",
|
57
|
-
"@dnd-kit/utilities": "^3.2.2",
|
58
|
-
"@tanstack/react-query": "^5.59.15",
|
59
|
-
"@types/lodash": "^4.17.12",
|
60
|
-
"@types/react": "^18.0.0",
|
61
|
-
"@types/react-dom": "^18.0.0",
|
62
|
-
"@umijs/lint": "^4.0.0",
|
63
|
-
"@vladmandic/face-api": "^1.7.14",
|
64
|
-
"antd": "^5.21.4",
|
65
|
-
"axios": "^1.7.7",
|
66
|
-
"dayjs": "^1.11.13",
|
67
|
-
"dumi": "^2.3.0",
|
68
|
-
"dumi-theme-antd": "^0.4.2",
|
69
|
-
"eslint": "^8.23.0",
|
70
|
-
"father": "^4.1.0",
|
71
|
-
"husky": "^8.0.1",
|
72
|
-
"lint-staged": "^13.0.3",
|
73
|
-
"lodash": "^4.17.21",
|
74
|
-
"nanoid": "^5.0.8",
|
75
|
-
"prettier": "^2.7.1",
|
76
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
77
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
78
|
-
"react": "^18.0.0",
|
79
|
-
"react-dom": "^18.0.0",
|
80
|
-
"sass": "^1.80.0",
|
81
|
-
"stylelint": "^14.9.1",
|
82
|
-
"yootd-webrtc-sdk": "^1.0.1"
|
83
|
-
},
|
84
|
-
"peerDependencies": {
|
85
|
-
"@dnd-kit/core": ">=6.1.0",
|
86
|
-
"@dnd-kit/modifiers": ">=7.0.0",
|
87
|
-
"@dnd-kit/sortable": ">=8.0.0",
|
88
|
-
"@dnd-kit/utilities": ">=3.2.2",
|
89
|
-
"@tanstack/react-query": ">=5.59.15",
|
90
|
-
"@vladmandic/face-api": "^1.7.14",
|
91
|
-
"@xyflow/react": ">=12.3.3",
|
92
|
-
"antd": ">=5.21.4",
|
93
|
-
"axios": ">=1.7.7",
|
94
|
-
"dayjs": ">=1.11.13",
|
95
|
-
"lodash": ">=4.17.21",
|
96
|
-
"nanoid": ">=5.0.8",
|
97
|
-
"react": ">=16.9.0",
|
98
|
-
"react-dom": ">=16.9.0",
|
99
|
-
"react-router-dom": ">=6.25.0",
|
100
|
-
"yootd-webrtc-sdk": "^1.0.1"
|
101
|
-
},
|
102
|
-
"publishConfig": {
|
103
|
-
"access": "public"
|
104
|
-
},
|
105
|
-
"authors": []
|
106
|
-
}
|
1
|
+
{
|
2
|
+
"name": "yootd",
|
3
|
+
"version": "0.0.75",
|
4
|
+
"description": "A react library developed with dumi",
|
5
|
+
"license": "MIT",
|
6
|
+
"module": "dist/index.js",
|
7
|
+
"types": "dist/index.d.ts",
|
8
|
+
"files": [
|
9
|
+
"dist"
|
10
|
+
],
|
11
|
+
"scripts": {
|
12
|
+
"build": "father build",
|
13
|
+
"build:watch": "father dev",
|
14
|
+
"dev": "dumi dev",
|
15
|
+
"docs:build": "dumi build",
|
16
|
+
"docs:preview": "dumi preview",
|
17
|
+
"doctor": "father doctor",
|
18
|
+
"lint": "npm run lint:es && npm run lint:css",
|
19
|
+
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
|
20
|
+
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
|
21
|
+
"prepare": "husky install && dumi setup",
|
22
|
+
"prepublishOnly": "father doctor && npm run build",
|
23
|
+
"start": "npm run dev"
|
24
|
+
},
|
25
|
+
"commitlint": {
|
26
|
+
"extends": [
|
27
|
+
"@commitlint/config-conventional"
|
28
|
+
]
|
29
|
+
},
|
30
|
+
"lint-staged": {
|
31
|
+
"*.{md,json}": [
|
32
|
+
"prettier --write --no-error-on-unmatched-pattern"
|
33
|
+
],
|
34
|
+
"*.{css,less}": [
|
35
|
+
"stylelint --fix",
|
36
|
+
"prettier --write"
|
37
|
+
],
|
38
|
+
"*.{js,jsx}": [
|
39
|
+
"eslint --fix",
|
40
|
+
"prettier --write"
|
41
|
+
],
|
42
|
+
"*.{ts,tsx}": [
|
43
|
+
"eslint --fix",
|
44
|
+
"prettier --parser=typescript --write"
|
45
|
+
]
|
46
|
+
},
|
47
|
+
"dependencies": {
|
48
|
+
"@tensorflow-models/pose-detection": "^2.1.3",
|
49
|
+
"@tensorflow/tfjs": "^4.22.0"
|
50
|
+
},
|
51
|
+
"devDependencies": {
|
52
|
+
"@commitlint/cli": "^17.1.2",
|
53
|
+
"@commitlint/config-conventional": "^17.1.0",
|
54
|
+
"@dnd-kit/core": "^6.1.0",
|
55
|
+
"@dnd-kit/modifiers": "^7.0.0",
|
56
|
+
"@dnd-kit/sortable": "^8.0.0",
|
57
|
+
"@dnd-kit/utilities": "^3.2.2",
|
58
|
+
"@tanstack/react-query": "^5.59.15",
|
59
|
+
"@types/lodash": "^4.17.12",
|
60
|
+
"@types/react": "^18.0.0",
|
61
|
+
"@types/react-dom": "^18.0.0",
|
62
|
+
"@umijs/lint": "^4.0.0",
|
63
|
+
"@vladmandic/face-api": "^1.7.14",
|
64
|
+
"antd": "^5.21.4",
|
65
|
+
"axios": "^1.7.7",
|
66
|
+
"dayjs": "^1.11.13",
|
67
|
+
"dumi": "^2.3.0",
|
68
|
+
"dumi-theme-antd": "^0.4.2",
|
69
|
+
"eslint": "^8.23.0",
|
70
|
+
"father": "^4.1.0",
|
71
|
+
"husky": "^8.0.1",
|
72
|
+
"lint-staged": "^13.0.3",
|
73
|
+
"lodash": "^4.17.21",
|
74
|
+
"nanoid": "^5.0.8",
|
75
|
+
"prettier": "^2.7.1",
|
76
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
77
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
78
|
+
"react": "^18.0.0",
|
79
|
+
"react-dom": "^18.0.0",
|
80
|
+
"sass": "^1.80.0",
|
81
|
+
"stylelint": "^14.9.1",
|
82
|
+
"yootd-webrtc-sdk": "^1.0.1"
|
83
|
+
},
|
84
|
+
"peerDependencies": {
|
85
|
+
"@dnd-kit/core": ">=6.1.0",
|
86
|
+
"@dnd-kit/modifiers": ">=7.0.0",
|
87
|
+
"@dnd-kit/sortable": ">=8.0.0",
|
88
|
+
"@dnd-kit/utilities": ">=3.2.2",
|
89
|
+
"@tanstack/react-query": ">=5.59.15",
|
90
|
+
"@vladmandic/face-api": "^1.7.14",
|
91
|
+
"@xyflow/react": ">=12.3.3",
|
92
|
+
"antd": ">=5.21.4",
|
93
|
+
"axios": ">=1.7.7",
|
94
|
+
"dayjs": ">=1.11.13",
|
95
|
+
"lodash": ">=4.17.21",
|
96
|
+
"nanoid": ">=5.0.8",
|
97
|
+
"react": ">=16.9.0",
|
98
|
+
"react-dom": ">=16.9.0",
|
99
|
+
"react-router-dom": ">=6.25.0",
|
100
|
+
"yootd-webrtc-sdk": "^1.0.1"
|
101
|
+
},
|
102
|
+
"publishConfig": {
|
103
|
+
"access": "public"
|
104
|
+
},
|
105
|
+
"authors": []
|
106
|
+
}
|