antd-management-fast-develop 1.1.50 → 1.1.53
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/package.json +12 -12
- package/src/template.js +23 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "antd-management-fast-develop",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.53",
|
4
4
|
"description": "",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "",
|
@@ -57,17 +57,17 @@
|
|
57
57
|
"umi": "^4.0.89"
|
58
58
|
},
|
59
59
|
"devDependencies": {
|
60
|
-
"@babel/core": "^7.23.
|
60
|
+
"@babel/core": "^7.23.6",
|
61
61
|
"@babel/eslint-parser": "^7.23.3",
|
62
62
|
"@babel/plugin-external-helpers": "^7.23.3",
|
63
|
-
"@babel/plugin-proposal-decorators": "^7.23.
|
63
|
+
"@babel/plugin-proposal-decorators": "^7.23.6",
|
64
64
|
"@babel/plugin-transform-class-properties": "^7.23.3",
|
65
65
|
"@babel/plugin-transform-private-methods": "^7.23.3",
|
66
66
|
"@babel/plugin-transform-private-property-in-object": "^7.23.4",
|
67
|
-
"@babel/plugin-transform-runtime": "^7.23.
|
68
|
-
"@babel/preset-env": "^7.23.
|
67
|
+
"@babel/plugin-transform-runtime": "^7.23.6",
|
68
|
+
"@babel/preset-env": "^7.23.6",
|
69
69
|
"@babel/preset-react": "^7.23.3",
|
70
|
-
"@babel/runtime": "^7.23.
|
70
|
+
"@babel/runtime": "^7.23.6",
|
71
71
|
"@changesets/cli": "^2.27.1",
|
72
72
|
"@commitlint/cli": "^18.4.3",
|
73
73
|
"@commitlint/config-conventional": "^18.4.3",
|
@@ -76,13 +76,13 @@
|
|
76
76
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
77
77
|
"@types/jest": "^29.5.11",
|
78
78
|
"@types/node": "^20.10.4",
|
79
|
-
"@typescript-eslint/parser": "^6.
|
79
|
+
"@typescript-eslint/parser": "^6.14.0",
|
80
80
|
"babel-jest": "^29.7.0",
|
81
81
|
"commitizen": "^4.3.0",
|
82
82
|
"conventional-changelog-conventionalcommits": "^7.0.2",
|
83
83
|
"cross-env": "^7.0.3",
|
84
84
|
"documentation": "^14.0.2",
|
85
|
-
"easy-soft-develop": "^2.1.
|
85
|
+
"easy-soft-develop": "^2.1.50",
|
86
86
|
"eslint": "^8.55.0",
|
87
87
|
"eslint-config-airbnb": "^19.0.4",
|
88
88
|
"eslint-config-airbnb-typescript": "^17.1.0",
|
@@ -90,7 +90,7 @@
|
|
90
90
|
"eslint-formatter-pretty": "^6.0.0",
|
91
91
|
"eslint-import-resolver-typescript": "^3.6.1",
|
92
92
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
93
|
-
"eslint-plugin-import": "^2.29.
|
93
|
+
"eslint-plugin-import": "^2.29.1",
|
94
94
|
"eslint-plugin-jest": "^27.6.0",
|
95
95
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
96
96
|
"eslint-plugin-prettier": "^5.0.1",
|
@@ -102,14 +102,14 @@
|
|
102
102
|
"husky": "^8.0.3",
|
103
103
|
"jest": "^29.7.0",
|
104
104
|
"lint-staged": "^15.2.0",
|
105
|
-
"prettier": "^3.1.
|
105
|
+
"prettier": "^3.1.1",
|
106
106
|
"prettier-plugin-organize-imports": "^3.2.4",
|
107
107
|
"prettier-plugin-packagejson": "^2.4.7",
|
108
108
|
"react": "^18.2.0",
|
109
109
|
"react-dnd": "^16.0.1",
|
110
110
|
"rimraf": "^5.0.5",
|
111
|
-
"stylelint": "^
|
111
|
+
"stylelint": "^16.0.2",
|
112
112
|
"stylelint-config-prettier": "^9.0.5",
|
113
|
-
"stylelint-config-standard": "^
|
113
|
+
"stylelint-config-standard": "^35.0.0"
|
114
114
|
}
|
115
115
|
}
|
package/src/template.js
CHANGED
@@ -16,6 +16,7 @@ import {
|
|
16
16
|
unlimitedWithStringFlag,
|
17
17
|
} from 'antd-management-fast-common';
|
18
18
|
import {
|
19
|
+
buildDropdownMenu,
|
19
20
|
buildFlexRadio,
|
20
21
|
buildFlexSelect,
|
21
22
|
buildFormRadio,
|
@@ -90,6 +91,7 @@ export function renderSearch<%= o.functionSegment %>Select({
|
|
90
91
|
}
|
91
92
|
|
92
93
|
export function renderCustom<%= o.functionSegment %>Select({
|
94
|
+
style = {},
|
93
95
|
label = '<%= o.label %>',
|
94
96
|
separator = ':',
|
95
97
|
size = 'middle',
|
@@ -97,6 +99,7 @@ export function renderCustom<%= o.functionSegment %>Select({
|
|
97
99
|
innerProps: innerProperties = null,
|
98
100
|
}) {
|
99
101
|
return buildFlexSelect({
|
102
|
+
style,
|
100
103
|
label,
|
101
104
|
defaultValue: null,
|
102
105
|
separator,
|
@@ -109,6 +112,26 @@ export function renderCustom<%= o.functionSegment %>Select({
|
|
109
112
|
});
|
110
113
|
}
|
111
114
|
|
115
|
+
export function render<%= o.functionSegment %>DropDown({
|
116
|
+
label = '<%= o.label %>',
|
117
|
+
placement = 'bottomRight',
|
118
|
+
icon = null,
|
119
|
+
size = 'middle',
|
120
|
+
onClick: onClickCallback,
|
121
|
+
innerProps: innerProperties = null,
|
122
|
+
}) {
|
123
|
+
return buildDropdownMenu({
|
124
|
+
label,
|
125
|
+
placement,
|
126
|
+
icon,
|
127
|
+
size,
|
128
|
+
list: refit<%= o.functionSegment %>List({ withUnlimited: false }),
|
129
|
+
dataConvert: null,
|
130
|
+
onClick: onClickCallback,
|
131
|
+
innerProps: innerProperties || null,
|
132
|
+
});
|
133
|
+
}
|
134
|
+
|
112
135
|
export function renderForm<%= o.functionSegment %>Select({
|
113
136
|
helper = null,
|
114
137
|
onChange: onChangeCallback,
|