yootd 0.0.40 → 0.0.41
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/areas/index.js +13 -6
- package/dist/areas/types/types.d.ts +40 -39
- package/dist/modal/index.js +1 -1
- package/dist/modal/index.scss +76 -73
- package/package.json +101 -101
package/dist/areas/index.js
CHANGED
@@ -23,7 +23,9 @@ export var Areas = function Areas(_ref) {
|
|
23
23
|
_ref$level = _ref.level1,
|
24
24
|
level1 = _ref$level === void 0 ? true : _ref$level,
|
25
25
|
areaType = _ref.areaType,
|
26
|
-
areaSubType = _ref.areaSubType
|
26
|
+
areaSubType = _ref.areaSubType,
|
27
|
+
_ref$disabled = _ref.disabled,
|
28
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
27
29
|
var mb = useBem('Areas');
|
28
30
|
var request = useRequest();
|
29
31
|
// level1选择值
|
@@ -261,7 +263,8 @@ export var Areas = function Areas(_ref) {
|
|
261
263
|
},
|
262
264
|
options: level1AreaOptions,
|
263
265
|
onChange: changeLevel1Select,
|
264
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0]
|
266
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[0],
|
267
|
+
disabled: disabled
|
265
268
|
}), /*#__PURE__*/React.createElement(Select, {
|
266
269
|
value: level2Value,
|
267
270
|
allowClear: allowClear,
|
@@ -274,7 +277,8 @@ export var Areas = function Areas(_ref) {
|
|
274
277
|
},
|
275
278
|
options: level2AreaOptions,
|
276
279
|
onChange: changeLevel2Select,
|
277
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1]
|
280
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[1],
|
281
|
+
disabled: disabled
|
278
282
|
}), /*#__PURE__*/React.createElement(Select, {
|
279
283
|
value: level3Value,
|
280
284
|
allowClear: allowClear,
|
@@ -287,7 +291,8 @@ export var Areas = function Areas(_ref) {
|
|
287
291
|
},
|
288
292
|
options: level3AreaOptions,
|
289
293
|
onChange: changeLevel3Select,
|
290
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[2]
|
294
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[2],
|
295
|
+
disabled: disabled
|
291
296
|
}), /*#__PURE__*/React.createElement(Select, {
|
292
297
|
value: level4Value,
|
293
298
|
allowClear: allowClear,
|
@@ -300,7 +305,8 @@ export var Areas = function Areas(_ref) {
|
|
300
305
|
},
|
301
306
|
options: level4AreaOptions,
|
302
307
|
onChange: changeLevel4Select,
|
303
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[3]
|
308
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[3],
|
309
|
+
disabled: disabled
|
304
310
|
}), /*#__PURE__*/React.createElement(Select, {
|
305
311
|
value: level5Value,
|
306
312
|
allowClear: allowClear,
|
@@ -312,6 +318,7 @@ export var Areas = function Areas(_ref) {
|
|
312
318
|
},
|
313
319
|
options: level5AreaOptions,
|
314
320
|
onChange: changeLevel5Select,
|
315
|
-
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[4]
|
321
|
+
placeholder: placeholder === null || placeholder === void 0 ? void 0 : placeholder[4],
|
322
|
+
disabled: disabled
|
316
323
|
}));
|
317
324
|
};
|
@@ -1,39 +1,40 @@
|
|
1
|
-
export interface PageData<T> {
|
2
|
-
content: T[];
|
3
|
-
page: {
|
4
|
-
number: number;
|
5
|
-
size: number;
|
6
|
-
totalElements: number;
|
7
|
-
totalPages: number;
|
8
|
-
};
|
9
|
-
}
|
10
|
-
type SchoolProps = {
|
11
|
-
level1?: boolean;
|
12
|
-
areaType?: number;
|
13
|
-
areaSubType?: number;
|
14
|
-
style?: React.CSSProperties;
|
15
|
-
showSearch?: boolean;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
1
|
+
export interface PageData<T> {
|
2
|
+
content: T[];
|
3
|
+
page: {
|
4
|
+
number: number;
|
5
|
+
size: number;
|
6
|
+
totalElements: number;
|
7
|
+
totalPages: number;
|
8
|
+
};
|
9
|
+
}
|
10
|
+
type SchoolProps = {
|
11
|
+
level1?: boolean;
|
12
|
+
areaType?: number;
|
13
|
+
areaSubType?: number;
|
14
|
+
style?: React.CSSProperties;
|
15
|
+
showSearch?: boolean;
|
16
|
+
disabled?: boolean;
|
17
|
+
value?: {
|
18
|
+
level1?: number;
|
19
|
+
level2?: number;
|
20
|
+
level3?: number;
|
21
|
+
level4?: number;
|
22
|
+
level5?: number;
|
23
|
+
};
|
24
|
+
onChange?: (record: {
|
25
|
+
level1?: number;
|
26
|
+
level2?: number;
|
27
|
+
level3?: number;
|
28
|
+
level4?: number;
|
29
|
+
level5?: number;
|
30
|
+
}) => void;
|
31
|
+
allowClear?: boolean;
|
32
|
+
placeholder?: string[];
|
33
|
+
};
|
34
|
+
// 查询位置接口返回的数据类型
|
35
|
+
export interface IareaItem {
|
36
|
+
areaId: number;
|
37
|
+
areaLevel: number;
|
38
|
+
areaName: string;
|
39
|
+
areaType: number;
|
40
|
+
}
|
package/dist/modal/index.js
CHANGED
@@ -18,7 +18,7 @@ var ModalComponent = function ModalComponent(_ref) {
|
|
18
18
|
// title content block
|
19
19
|
var tcb = mb.b('title').b('content');
|
20
20
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("svg", {
|
21
|
-
className: "".concat(mb.e('color-defs')
|
21
|
+
className: "".concat(mb.e('color-defs'))
|
22
22
|
}, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
23
23
|
id: "paint0_linear_589_9609",
|
24
24
|
x1: "132.5",
|
package/dist/modal/index.scss
CHANGED
@@ -1,73 +1,76 @@
|
|
1
|
-
.yot-modal {
|
2
|
-
padding-top: 13px;
|
3
|
-
position: relative;
|
4
|
-
max-width: calc(2 / 3 * 100vw) !important;
|
5
|
-
|
6
|
-
& > div:first-child {
|
7
|
-
box-sizing: border-box;
|
8
|
-
padding: 4px;
|
9
|
-
background: linear-gradient(180deg, #3a8cff 0%, #c4ddff 100%);
|
10
|
-
border-radius: 24px;
|
11
|
-
}
|
12
|
-
|
13
|
-
.ant-modal-header {
|
14
|
-
width: 100%;
|
15
|
-
position: absolute;
|
16
|
-
left: 0;
|
17
|
-
top: -13px;
|
18
|
-
background-color: transparent;
|
19
|
-
}
|
20
|
-
|
21
|
-
.ant-modal-content {
|
22
|
-
padding: var(--ant-margin-xl);
|
23
|
-
padding-top: 71px;
|
24
|
-
border-radius: 24px;
|
25
|
-
}
|
26
|
-
|
27
|
-
.ant-modal-body {
|
28
|
-
max-height: 529px;
|
29
|
-
overflow-y: auto;
|
30
|
-
}
|
31
|
-
|
32
|
-
.ant-modal-footer {
|
33
|
-
margin-top: 40px;
|
34
|
-
}
|
35
|
-
|
36
|
-
&-title {
|
37
|
-
&-content {
|
38
|
-
width: 100%;
|
39
|
-
display: flex;
|
40
|
-
justify-content: center;
|
41
|
-
align-items: center;
|
42
|
-
|
43
|
-
&__body {
|
44
|
-
position: absolute;
|
45
|
-
color: var(--ant-color-bg-base);
|
46
|
-
font-size: var(--ant-font-size-heading-3);
|
47
|
-
}
|
48
|
-
|
49
|
-
&__icon {
|
50
|
-
.path-1 {
|
51
|
-
fill: var(--yot-modal-color-tertiary);
|
52
|
-
}
|
53
|
-
.path-2 {
|
54
|
-
fill: var(--yot-modal-color-tertiary);
|
55
|
-
}
|
56
|
-
.stop-color-1 {
|
57
|
-
stop-color: var(--yot-modal-color-secondary);
|
58
|
-
}
|
59
|
-
.stop-color-2 {
|
60
|
-
stop-color: var(--yot-modal-color-primary);
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
}
|
65
|
-
&__color-defs {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
.stop-color-
|
70
|
-
stop-color: var(--yot-modal-color-
|
71
|
-
}
|
72
|
-
|
73
|
-
|
1
|
+
.yot-modal {
|
2
|
+
padding-top: 13px;
|
3
|
+
position: relative;
|
4
|
+
max-width: calc(2 / 3 * 100vw) !important;
|
5
|
+
|
6
|
+
& > div:first-child {
|
7
|
+
box-sizing: border-box;
|
8
|
+
padding: 4px;
|
9
|
+
background: linear-gradient(180deg, #3a8cff 0%, #c4ddff 100%);
|
10
|
+
border-radius: 24px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.ant-modal-header {
|
14
|
+
width: 100%;
|
15
|
+
position: absolute;
|
16
|
+
left: 0;
|
17
|
+
top: -13px;
|
18
|
+
background-color: transparent;
|
19
|
+
}
|
20
|
+
|
21
|
+
.ant-modal-content {
|
22
|
+
padding: var(--ant-margin-xl);
|
23
|
+
padding-top: 71px;
|
24
|
+
border-radius: 24px;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ant-modal-body {
|
28
|
+
max-height: 529px;
|
29
|
+
overflow-y: auto;
|
30
|
+
}
|
31
|
+
|
32
|
+
.ant-modal-footer {
|
33
|
+
margin-top: 40px;
|
34
|
+
}
|
35
|
+
|
36
|
+
&-title {
|
37
|
+
&-content {
|
38
|
+
width: 100%;
|
39
|
+
display: flex;
|
40
|
+
justify-content: center;
|
41
|
+
align-items: center;
|
42
|
+
|
43
|
+
&__body {
|
44
|
+
position: absolute;
|
45
|
+
color: var(--ant-color-bg-base);
|
46
|
+
font-size: var(--ant-font-size-heading-3);
|
47
|
+
}
|
48
|
+
|
49
|
+
&__icon {
|
50
|
+
.path-1 {
|
51
|
+
fill: var(--yot-modal-color-tertiary);
|
52
|
+
}
|
53
|
+
.path-2 {
|
54
|
+
fill: var(--yot-modal-color-tertiary);
|
55
|
+
}
|
56
|
+
.stop-color-1 {
|
57
|
+
stop-color: var(--yot-modal-color-secondary);
|
58
|
+
}
|
59
|
+
.stop-color-2 {
|
60
|
+
stop-color: var(--yot-modal-color-primary);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
&__color-defs {
|
66
|
+
position: fixed;
|
67
|
+
top: -1000px;
|
68
|
+
left: -1000px;
|
69
|
+
.stop-color-1 {
|
70
|
+
stop-color: var(--yot-modal-color-secondary);
|
71
|
+
}
|
72
|
+
.stop-color-2 {
|
73
|
+
stop-color: var(--yot-modal-color-primary);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
package/package.json
CHANGED
@@ -1,101 +1,101 @@
|
|
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
|
-
"devDependencies": {
|
48
|
-
"@commitlint/cli": "^17.1.2",
|
49
|
-
"@commitlint/config-conventional": "^17.1.0",
|
50
|
-
"@dnd-kit/core": "^6.1.0",
|
51
|
-
"@dnd-kit/modifiers": "^7.0.0",
|
52
|
-
"@dnd-kit/sortable": "^8.0.0",
|
53
|
-
"@dnd-kit/utilities": "^3.2.2",
|
54
|
-
"@tanstack/react-query": "^5.59.15",
|
55
|
-
"@types/lodash": "^4.17.12",
|
56
|
-
"@types/react": "^18.0.0",
|
57
|
-
"@types/react-dom": "^18.0.0",
|
58
|
-
"@umijs/lint": "^4.0.0",
|
59
|
-
"@vladmandic/face-api": "^1.7.14",
|
60
|
-
"antd": "^5.21.4",
|
61
|
-
"axios": "^1.7.7",
|
62
|
-
"dayjs": "^1.11.13",
|
63
|
-
"dumi": "^2.3.0",
|
64
|
-
"dumi-theme-antd": "^0.4.2",
|
65
|
-
"eslint": "^8.23.0",
|
66
|
-
"father": "^4.1.0",
|
67
|
-
"husky": "^8.0.1",
|
68
|
-
"lint-staged": "^13.0.3",
|
69
|
-
"lodash": "^4.17.21",
|
70
|
-
"nanoid": "^5.0.8",
|
71
|
-
"prettier": "^2.7.1",
|
72
|
-
"prettier-plugin-organize-imports": "^3.0.0",
|
73
|
-
"prettier-plugin-packagejson": "^2.2.18",
|
74
|
-
"react": "^18.0.0",
|
75
|
-
"react-dom": "^18.0.0",
|
76
|
-
"sass": "^1.80.0",
|
77
|
-
"stylelint": "^14.9.1",
|
78
|
-
"yootd-webrtc-sdk": "^1.0.1"
|
79
|
-
},
|
80
|
-
"peerDependencies": {
|
81
|
-
"@dnd-kit/core": ">=6.1.0",
|
82
|
-
"@dnd-kit/modifiers": ">=7.0.0",
|
83
|
-
"@dnd-kit/sortable": ">=8.0.0",
|
84
|
-
"@dnd-kit/utilities": ">=3.2.2",
|
85
|
-
"@tanstack/react-query": ">=5.59.15",
|
86
|
-
"@vladmandic/face-api": "^1.7.14",
|
87
|
-
"@xyflow/react": ">=12.3.3",
|
88
|
-
"antd": ">=5.21.4",
|
89
|
-
"axios": ">=1.7.7",
|
90
|
-
"dayjs": ">=1.11.13",
|
91
|
-
"lodash": ">=4.17.21",
|
92
|
-
"nanoid": ">=5.0.8",
|
93
|
-
"react": ">=16.9.0",
|
94
|
-
"react-dom": ">=16.9.0",
|
95
|
-
"yootd-webrtc-sdk": "^1.0.1"
|
96
|
-
},
|
97
|
-
"publishConfig": {
|
98
|
-
"access": "public"
|
99
|
-
},
|
100
|
-
"authors": []
|
101
|
-
}
|
1
|
+
{
|
2
|
+
"name": "yootd",
|
3
|
+
"version": "0.0.41",
|
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
|
+
"devDependencies": {
|
48
|
+
"@commitlint/cli": "^17.1.2",
|
49
|
+
"@commitlint/config-conventional": "^17.1.0",
|
50
|
+
"@dnd-kit/core": "^6.1.0",
|
51
|
+
"@dnd-kit/modifiers": "^7.0.0",
|
52
|
+
"@dnd-kit/sortable": "^8.0.0",
|
53
|
+
"@dnd-kit/utilities": "^3.2.2",
|
54
|
+
"@tanstack/react-query": "^5.59.15",
|
55
|
+
"@types/lodash": "^4.17.12",
|
56
|
+
"@types/react": "^18.0.0",
|
57
|
+
"@types/react-dom": "^18.0.0",
|
58
|
+
"@umijs/lint": "^4.0.0",
|
59
|
+
"@vladmandic/face-api": "^1.7.14",
|
60
|
+
"antd": "^5.21.4",
|
61
|
+
"axios": "^1.7.7",
|
62
|
+
"dayjs": "^1.11.13",
|
63
|
+
"dumi": "^2.3.0",
|
64
|
+
"dumi-theme-antd": "^0.4.2",
|
65
|
+
"eslint": "^8.23.0",
|
66
|
+
"father": "^4.1.0",
|
67
|
+
"husky": "^8.0.1",
|
68
|
+
"lint-staged": "^13.0.3",
|
69
|
+
"lodash": "^4.17.21",
|
70
|
+
"nanoid": "^5.0.8",
|
71
|
+
"prettier": "^2.7.1",
|
72
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
73
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
74
|
+
"react": "^18.0.0",
|
75
|
+
"react-dom": "^18.0.0",
|
76
|
+
"sass": "^1.80.0",
|
77
|
+
"stylelint": "^14.9.1",
|
78
|
+
"yootd-webrtc-sdk": "^1.0.1"
|
79
|
+
},
|
80
|
+
"peerDependencies": {
|
81
|
+
"@dnd-kit/core": ">=6.1.0",
|
82
|
+
"@dnd-kit/modifiers": ">=7.0.0",
|
83
|
+
"@dnd-kit/sortable": ">=8.0.0",
|
84
|
+
"@dnd-kit/utilities": ">=3.2.2",
|
85
|
+
"@tanstack/react-query": ">=5.59.15",
|
86
|
+
"@vladmandic/face-api": "^1.7.14",
|
87
|
+
"@xyflow/react": ">=12.3.3",
|
88
|
+
"antd": ">=5.21.4",
|
89
|
+
"axios": ">=1.7.7",
|
90
|
+
"dayjs": ">=1.11.13",
|
91
|
+
"lodash": ">=4.17.21",
|
92
|
+
"nanoid": ">=5.0.8",
|
93
|
+
"react": ">=16.9.0",
|
94
|
+
"react-dom": ">=16.9.0",
|
95
|
+
"yootd-webrtc-sdk": "^1.0.1"
|
96
|
+
},
|
97
|
+
"publishConfig": {
|
98
|
+
"access": "public"
|
99
|
+
},
|
100
|
+
"authors": []
|
101
|
+
}
|