We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a63d1 commit 5b177eeCopy full SHA for 5b177ee
src/Form/FormItem.php
@@ -196,6 +196,7 @@ public function componentRightComponent($component)
196
* 设置底部组件
197
* @param $component
198
* @return $this
199
+ * @deprecated
200
*/
201
public function footerComponent($component)
202
{
@@ -207,6 +208,21 @@ public function footerComponent($component)
207
208
return $this;
209
}
210
211
+ /**
212
+ * 设置底部组件
213
+ * @param $component
214
+ * @return $this
215
+ */
216
+ public function bottomComponent($component)
217
+ {
218
+ if ($component instanceof \Closure) {
219
+ $this->footerComponent = call_user_func($component);
220
+ } else {
221
+ $this->footerComponent = $component;
222
+ }
223
+ return $this;
224
225
+
226
/**
227
* 设置组件
228
0 commit comments