This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- coding: utf-8 -*-
"""
创建聊天模态窗状态
import reflex as rx
class CreateChatState(rx.State):
新建聊天状态
# 新建聊天模态窗打开状态,True表示打开,False表示关闭
is_open: bool = False
@rx.event
def toggle(self, is_open: bool) -> None:
打开/关闭模态窗
self.is_open = is_open