    def get_bind_attr(self, attrs=None):
        """
        获取该控件需要绑定的变量参数
        :return:
        """
        if not attrs:
            self.bind_attr={}
            return
        for key, value in attrs.items():
            if key[0] == ":":
                if isinstance(value, str):
                    self.bind_attr[value] = ''
                elif isinstance(value, dict):
                    for a, b in value.items():
                        self.bind_attr[a] = b
                else:
                    continue
获取该控件需要绑定的变量参数
:return:
simpleui/widgets.py