yootd 0.2.25 → 0.2.27
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/go-back/index.d.ts +1 -0
- package/dist/go-back/index.js +8 -4
- package/dist/go-back/index.scss +12 -3
- package/package.json +92 -92
package/dist/go-back/index.d.ts
CHANGED
package/dist/go-back/index.js
CHANGED
@@ -6,7 +6,9 @@ export var GoBack = function GoBack(props) {
|
|
6
6
|
var style = props.style,
|
7
7
|
className = props.className,
|
8
8
|
children = props.children,
|
9
|
-
onClick = props.onClick
|
9
|
+
onClick = props.onClick,
|
10
|
+
_props$title = props.title,
|
11
|
+
title = _props$title === void 0 ? '返回' : _props$title;
|
10
12
|
var bem = useBem('goback');
|
11
13
|
var handleClick = function handleClick() {
|
12
14
|
onClick === null || onClick === void 0 || onClick();
|
@@ -17,7 +19,9 @@ export var GoBack = function GoBack(props) {
|
|
17
19
|
}, /*#__PURE__*/React.createElement("div", {
|
18
20
|
className: "".concat(bem.b('content')),
|
19
21
|
onClick: handleClick
|
20
|
-
}, /*#__PURE__*/React.createElement(
|
21
|
-
className: "".concat(bem.b('content').
|
22
|
-
},
|
22
|
+
}, /*#__PURE__*/React.createElement("div", {
|
23
|
+
className: "".concat(bem.b('content').b('icon'))
|
24
|
+
}, /*#__PURE__*/React.createElement(GoBackIcon, null)), /*#__PURE__*/React.createElement("div", {
|
25
|
+
className: "".concat(bem.b('content').b('title'))
|
26
|
+
}, title)), children);
|
23
27
|
};
|
package/dist/go-back/index.scss
CHANGED
@@ -9,16 +9,25 @@
|
|
9
9
|
|
10
10
|
&-content {
|
11
11
|
width: fit-content;
|
12
|
-
max-width: 60px;
|
13
12
|
height: 100%;
|
14
13
|
display: flex;
|
15
14
|
align-items: center;
|
16
15
|
cursor: pointer;
|
17
|
-
|
18
|
-
|
16
|
+
overflow: hidden;
|
17
|
+
&-title {
|
19
18
|
font-size: 18px;
|
20
19
|
margin-left: 5px;
|
21
20
|
font-weight: bold;
|
21
|
+
white-space: nowrap;
|
22
|
+
text-overflow: ellipsis;
|
23
|
+
overflow: hidden;
|
24
|
+
}
|
25
|
+
&-icon {
|
26
|
+
width: 16px;
|
27
|
+
height: 100%;
|
28
|
+
display: flex;
|
29
|
+
justify-content: center;
|
30
|
+
align-items: center;
|
22
31
|
}
|
23
32
|
}
|
24
33
|
}
|
package/package.json
CHANGED
@@ -1,92 +1,92 @@
|
|
1
|
-
{
|
2
|
-
"name": "yootd",
|
3
|
-
"version": "0.2.
|
4
|
-
"description": "基于 Antd 二次开发的组件库",
|
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
|
-
"@ant-design/icons": "^6.0.0",
|
49
|
-
"@babel/runtime": "^7.26.9"
|
50
|
-
},
|
51
|
-
"devDependencies": {
|
52
|
-
"@commitlint/cli": "^17.1.2",
|
53
|
-
"@commitlint/config-conventional": "^17.1.0",
|
54
|
-
"@types/lodash": "^4.17.12",
|
55
|
-
"@types/react": "^18.0.0",
|
56
|
-
"@types/react-dom": "^18.0.0",
|
57
|
-
"@umijs/lint": "^4.0.0",
|
58
|
-
"dumi": "^2.3.0",
|
59
|
-
"dumi-theme-antd": "^0.4.2",
|
60
|
-
"eslint": "^8.23.0",
|
61
|
-
"father": "^4.1.0",
|
62
|
-
"husky": "^8.0.1",
|
63
|
-
"lint-staged": "^13.0.3",
|
64
|
-
"prettier": "^2.7.1",
|
65
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
66
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
67
|
-
"sass": "^1.80.0",
|
68
|
-
"stylelint": "^14.9.1"
|
69
|
-
},
|
70
|
-
"peerDependencies": {
|
71
|
-
"@dnd-kit/core": ">=6.1.0",
|
72
|
-
"@dnd-kit/modifiers": ">=7.0.0",
|
73
|
-
"@dnd-kit/sortable": ">=8.0.0",
|
74
|
-
"@dnd-kit/utilities": ">=3.2.2",
|
75
|
-
"@tanstack/react-query": ">=5.59.15",
|
76
|
-
"@tensorflow-models/pose-detection": ">=2.1.3",
|
77
|
-
"@tensorflow/tfjs": ">=4.22.0",
|
78
|
-
"@vladmandic/face-api": ">=1.7.14",
|
79
|
-
"@xyflow/react": ">=12.3.3",
|
80
|
-
"antd": ">=5.21.4",
|
81
|
-
"axios": ">=1.7.7",
|
82
|
-
"dayjs": ">=1.11.13",
|
83
|
-
"lodash": ">=4.17.21",
|
84
|
-
"react": ">=18.0.0",
|
85
|
-
"react-dom": ">=18.0.0",
|
86
|
-
"yootd-webrtc-sdk": ">=1.0.1"
|
87
|
-
},
|
88
|
-
"publishConfig": {
|
89
|
-
"access": "public"
|
90
|
-
},
|
91
|
-
"authors": []
|
92
|
-
}
|
1
|
+
{
|
2
|
+
"name": "yootd",
|
3
|
+
"version": "0.2.27",
|
4
|
+
"description": "基于 Antd 二次开发的组件库",
|
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
|
+
"@ant-design/icons": "^6.0.0",
|
49
|
+
"@babel/runtime": "^7.26.9"
|
50
|
+
},
|
51
|
+
"devDependencies": {
|
52
|
+
"@commitlint/cli": "^17.1.2",
|
53
|
+
"@commitlint/config-conventional": "^17.1.0",
|
54
|
+
"@types/lodash": "^4.17.12",
|
55
|
+
"@types/react": "^18.0.0",
|
56
|
+
"@types/react-dom": "^18.0.0",
|
57
|
+
"@umijs/lint": "^4.0.0",
|
58
|
+
"dumi": "^2.3.0",
|
59
|
+
"dumi-theme-antd": "^0.4.2",
|
60
|
+
"eslint": "^8.23.0",
|
61
|
+
"father": "^4.1.0",
|
62
|
+
"husky": "^8.0.1",
|
63
|
+
"lint-staged": "^13.0.3",
|
64
|
+
"prettier": "^2.7.1",
|
65
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
66
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
67
|
+
"sass": "^1.80.0",
|
68
|
+
"stylelint": "^14.9.1"
|
69
|
+
},
|
70
|
+
"peerDependencies": {
|
71
|
+
"@dnd-kit/core": ">=6.1.0",
|
72
|
+
"@dnd-kit/modifiers": ">=7.0.0",
|
73
|
+
"@dnd-kit/sortable": ">=8.0.0",
|
74
|
+
"@dnd-kit/utilities": ">=3.2.2",
|
75
|
+
"@tanstack/react-query": ">=5.59.15",
|
76
|
+
"@tensorflow-models/pose-detection": ">=2.1.3",
|
77
|
+
"@tensorflow/tfjs": ">=4.22.0",
|
78
|
+
"@vladmandic/face-api": ">=1.7.14",
|
79
|
+
"@xyflow/react": ">=12.3.3",
|
80
|
+
"antd": ">=5.21.4",
|
81
|
+
"axios": ">=1.7.7",
|
82
|
+
"dayjs": ">=1.11.13",
|
83
|
+
"lodash": ">=4.17.21",
|
84
|
+
"react": ">=18.0.0",
|
85
|
+
"react-dom": ">=18.0.0",
|
86
|
+
"yootd-webrtc-sdk": ">=1.0.1"
|
87
|
+
},
|
88
|
+
"publishConfig": {
|
89
|
+
"access": "public"
|
90
|
+
},
|
91
|
+
"authors": []
|
92
|
+
}
|