Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// iCircle: Circle,
Col,
// iCol: Col,
// Collapse,
// ColorPicker,
// DatePicker,
Dropdown,
DropdownItem: Dropdown.Item,
DropdownMenu: Dropdown.Menu,
iDropdown: Dropdown,
iDropdownItem: Dropdown.Item,
iDropdownMenu: Dropdown.Menu,
Form,
iForm: Form,
FormItem: Form.Item,
iFormItem: Form.Item,
Icon,
iIcon: Icon,
Input,
iInput: Input,
// InputNumber,
// LoadingBar,
Menu,
iMenu: Menu,
// MenuGroup: Menu.Group,
MenuItem: Menu.Item,
iMenuItem: Menu.Item,
// Submenu: Menu.Sub,
Message,
Modal,
iModal: Modal,
// Notice,
// import "iview/src/styles/components/tag.less"
// import "iview/src/styles/components/loading-bar.less"
localeManager.use(enLocale)
const nameToComponent: any = {
Row: grid.Row,
Col: grid.Col,
iCol: grid.Col,
MenuItem: (Menu as any).Item,
Menu,
Card,
Tag,
Form,
iForm: Form,
FormItem: Form.Item,
Input,
Button,
Tooltip,
iButton: Button,
}
for (const name of Object.keys(nameToComponent)) {
Vue.component(name, nameToComponent[name])
}
(Vue.prototype as any).$Loading = LoadingBar
// CheckboxGroup: Checkbox.Group,
// iCircle: Circle,
Col,
// iCol: Col,
// Collapse,
// ColorPicker,
// DatePicker,
Dropdown,
DropdownItem: Dropdown.Item,
DropdownMenu: Dropdown.Menu,
iDropdown: Dropdown,
iDropdownItem: Dropdown.Item,
iDropdownMenu: Dropdown.Menu,
Form,
iForm: Form,
FormItem: Form.Item,
iFormItem: Form.Item,
Icon,
iIcon: Icon,
Input,
iInput: Input,
// InputNumber,
// LoadingBar,
Menu,
iMenu: Menu,
// MenuGroup: Menu.Group,
MenuItem: Menu.Item,
iMenuItem: Menu.Item,
// Submenu: Menu.Sub,
Message,
Modal,
iModal: Modal,
iButton: Button,
Card,
iCard: Card,
Col,
iCol: Col,
Collapse,
iCollapse: Collapse,
Dropdown,
DropdownItem: Dropdown.Item,
DropdownMenu: Dropdown.Menu,
iDropdown: Dropdown,
iDropdownItem: Dropdown.Item,
iDropdownMenu: Dropdown.Menu,
Form,
iForm: Form,
FormItem: Form.Item,
iFormItem: Form.Item,
Icon,
iIcon: Icon,
Input,
iInput: Input,
Menu,
iMenu: Menu,
MenuGroup: Menu.Group,
iMenuGroup: Menu.Group,
MenuItem: Menu.Item,
iMenuItem: Menu.Item,
Submenu: Menu.Sub,
iSubmenu: Menu.Sub,
Message,
Option,
iOption: Option,
private: true,
summary: '',
content: '',
location: '',
poem: false
};
export default {
name: 'AdminEdit',
components: {
Message,
iButton: Button,
iInput: Input,
iForm: Form,
FormItem: Form.Item,
iSwitch: Switch,
Row,
iCol: Col,
Upload
},
data () {
return {
form: null
};
},
computed: {
...mapGetters('token', [ 'token', 'isLogin' ])
},
Card,
iCard: Card,
Col,
iCol: Col,
Collapse,
iCollapse: Collapse,
Dropdown,
DropdownItem: Dropdown.Item,
DropdownMenu: Dropdown.Menu,
iDropdown: Dropdown,
iDropdownItem: Dropdown.Item,
iDropdownMenu: Dropdown.Menu,
Form,
iForm: Form,
FormItem: Form.Item,
iFormItem: Form.Item,
Icon,
iIcon: Icon,
Input,
iInput: Input,
Menu,
iMenu: Menu,
MenuGroup: Menu.Group,
iMenuGroup: Menu.Group,
MenuItem: Menu.Item,
iMenuItem: Menu.Item,
Submenu: Menu.Sub,
iSubmenu: Menu.Sub,
Message,
Option,
iOption: Option,
Page,