Star_fly
Star_fly
在/simpleui/templates/admin/includes/js-part.html中加入: ` {% load static simpletags %} ELEMENT.locale(ELEMENT.lang.en) `
可以自己重写get_actions 函数,找到那个action动作更新它的layer. ` def get_actions(self, request): actions = super().get_actions(request) actions['test'][0].layer = { 'title': 'test', 'confirm_button': 'OK', 'cancel_button': 'Cancel', 'width': '50%', 'labelWidth': "80px", 'params': [ { 'type': 'select', 'key': 'site', 'label':...