antd-management-fast-develop 1.1.50 → 1.1.52

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. 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.50",
3
+ "version": "1.1.52",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
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,