form->fill([ 'triggerPrice' => '', ]); } public function submit(): void { TriggerPrice::create([ 'price' => $this->triggerPrice, 'created_at' => now(), ]); $this->showSuccessModal = true; } public function form(Form $form): Form { return $form ->schema([ Forms\Components\TextInput::make('triggerPrice') ->label('触发价格') ->numeric() ->required(), ]) ->statePath(''); } }