refactor: register ant-design-vue components in main.js #28
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import MiniArea from '../chart/MiniArea' |
| | | import ATable from 'ant-design-vue/es/table' |
| | | |
| | | const searchData = [] |
| | | for (let i = 0; i < 50; i++) { |
| | |
| | | |
| | | export default { |
| | | name: 'HotSearch', |
| | | components: {ATable, MiniArea, AIcon, ARow, ACol}, |
| | | components: {MiniArea}, |
| | | data () { |
| | | return { |
| | | searchData, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ARadio from 'ant-design-vue/es/radio' |
| | | const DataSet = require('@antv/data-set') |
| | | |
| | | const ARadioGroup = ARadio.Group |
| | | const ARadioButton = ARadio.Button |
| | | |
| | | const sourceData = [ |
| | | { item: '事例一', count: 40 }, |
| | |
| | | const data = dv.rows |
| | | export default { |
| | | name: 'SalesData', |
| | | components: {ARadioGroup, ARadioButton}, |
| | | data () { |
| | | return { |
| | | data, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | export default { |
| | | name: 'ChartCard', |
| | | components: {ACard}, |
| | | props: ['title', 'total'] |
| | | } |
| | | </script> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ATooltip from 'ant-design-vue/es/tooltip/Tooltip' |
| | | export default { |
| | | name: 'MiniProgress', |
| | | components: {ATooltip}, |
| | | props: ['target', 'color', 'percent', 'height'] |
| | | } |
| | | </script> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'Trend', |
| | | components: {AIcon}, |
| | | props: { |
| | | term: { |
| | | type: String, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | |
| | | const Group = { |
| | | name: 'ColorCheckboxGroup', |
| | | props: { |
| | |
| | | export default { |
| | | name: 'ColorCheckbox', |
| | | Group: Group, |
| | | components: {AIcon}, |
| | | props: { |
| | | color: { |
| | | type: String, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | |
| | | const Group = { |
| | | name: 'ImgCheckboxGroup', |
| | | props: { |
| | |
| | | sChecked: this.checked |
| | | } |
| | | }, |
| | | components: {AIcon}, |
| | | inject: ['groupContext'], |
| | | watch: { |
| | | 'sChecked': function (val) { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import Config from './typeConfig' |
| | | |
| | | export default { |
| | | name: 'ExceptionPage', |
| | | props: ['type'], |
| | | components: {AButton}, |
| | | data () { |
| | | return { |
| | | config: Config |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AMenu from 'ant-design-vue/es/menu/index' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | const AMenuItem = AMenu.Item |
| | | export default { |
| | | name: 'Contextmenu', |
| | | components: {AIcon, AMenuItem, AMenu}, |
| | | props: { |
| | | visible: { |
| | | type: Boolean, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ALayoutSider from 'ant-design-vue/es/layout/Sider' |
| | | import IMenu from './menu' |
| | | export default { |
| | | name: 'SiderMenu', |
| | | components: {IMenu, ALayoutSider}, |
| | | components: {IMenu}, |
| | | props: { |
| | | collapsible: { |
| | | type: Boolean, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ABreadcrumb from 'ant-design-vue/es/breadcrumb' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | |
| | | const ABreadcrumbItem = ABreadcrumb.Item |
| | | export default { |
| | | name: 'PageHeader', |
| | | components: {AAvatar, ABreadcrumbItem, ABreadcrumb}, |
| | | props: { |
| | | title: { |
| | | type: String, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'Result', |
| | | components: {AIcon}, |
| | | props: ['isSuccess', 'title', 'description'] |
| | | } |
| | | </script> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ALayoutSider from 'ant-design-vue/es/layout/Sider' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import SettingItem from './SettingItem' |
| | | import StyleItem from './StyleItem' |
| | | import ADivider from 'ant-design-vue/es/divider/index' |
| | | import AList from 'ant-design-vue/es/list/index' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import ASwitch from 'ant-design-vue/es/switch/index' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import ColorCheckbox from '../checkbox/ColorCheckbox' |
| | | import ImgCheckbox from '../checkbox/ImgCheckbox' |
| | | import Clipboard from 'clipboard' |
| | | |
| | | const ASelectOption = ASelect.Option |
| | | const ColorCheckboxGroup = ColorCheckbox.Group |
| | | const ImgCheckboxGroup = ImgCheckbox.Group |
| | | |
| | | export default { |
| | | name: 'Setting', |
| | | components: { |
| | | ImgCheckboxGroup, |
| | | ImgCheckbox, |
| | | ColorCheckboxGroup, |
| | | ColorCheckbox, |
| | | ASelectOption, |
| | | ASelect, |
| | | ASwitch, |
| | | AButton, |
| | | AListItem, |
| | | AList, |
| | | ADivider, |
| | | StyleItem, |
| | | SettingItem, |
| | | AIcon, |
| | | ALayoutSider}, |
| | | components: {ImgCheckboxGroup, ImgCheckbox, ColorCheckboxGroup, ColorCheckbox, StyleItem, SettingItem}, |
| | | computed: { |
| | | multipage () { |
| | | return this.$store.state.setting.multipage |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'StyleItem', |
| | | props: ['selected', 'img'], |
| | | components: {AIcon} |
| | | props: ['selected', 'img'] |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AAlert from 'ant-design-vue/es/alert/index' |
| | | import ATable from 'ant-design-vue/es/table' |
| | | |
| | | export default { |
| | | name: 'StandardTable', |
| | | components: {ATable, AAlert}, |
| | | props: ['bordered', 'loading', 'columns', 'dataSource', 'rowKey', 'pagination', 'selectedRows'], |
| | | data () { |
| | | return { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import Draggable from 'vuedraggable' |
| | | |
| | | const dragOptions = { |
| | |
| | | |
| | | export default { |
| | | name: 'TaskGroup', |
| | | components: {AIcon, Draggable}, |
| | | components: {Draggable}, |
| | | props: ['title', 'group'], |
| | | data () { |
| | | return { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | export default { |
| | | name: 'TaskItem', |
| | | props: ['content'], |
| | | components: {ACard} |
| | | props: ['content'] |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | |
| | | const Group = { |
| | | name: 'AStepItemGroup', |
| | | render (h) { |
| | |
| | | export default { |
| | | name: 'AStepItem', |
| | | Group: Group, |
| | | components: {AIcon}, |
| | | props: ['title', 'icon', 'link', 'titleStyle', 'iconStyle'], |
| | | methods: { |
| | | go () { |
| | |
| | | } |
| | | export default { |
| | | name: 'AvatarList', |
| | | components: {ATooltip}, |
| | | Item: Item |
| | | } |
| | | </script> |
| | |
| | | |
| | | <script> |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | const Item = { |
| | | name: 'DetailListItem', |
| | | props: { |
| | |
| | | default: 'horizontal' |
| | | } |
| | | }, |
| | | components: {ARow, ACol}, |
| | | provide () { |
| | | return { |
| | | col: this.col > 4 ? 4 : this.col |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'Drawer', |
| | | components: {AIcon}, |
| | | data () { |
| | | return { |
| | | drawerWidth: 0 |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import ACheckableTag from 'ant-design-vue/es/tag/CheckableTag' |
| | | import TagSelectOption from './TagSelectOption' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'TagSelect', |
| | | Option: TagSelectOption, |
| | | components: {AIcon, TagSelectOption, ACheckableTag, ASelect}, |
| | | components: {TagSelectOption}, |
| | | data () { |
| | | return { |
| | | showTrigger: false, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACheckableTag from 'ant-design-vue/es/tag/CheckableTag' |
| | | export default { |
| | | name: 'TagSelectOption', |
| | | components: {ACheckableTag}, |
| | | props: { |
| | | size: { |
| | | type: String, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'GlobalFooter', |
| | | props: ['copyright', 'linkList'], |
| | | components: {AIcon} |
| | | props: ['copyright', 'linkList'] |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ALayout from 'ant-design-vue/es/layout' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import AInputSearch from 'ant-design-vue/es/input/Search' |
| | | import HeaderSearch from './HeaderSearch' |
| | | import HeaderNotice from './HeaderNotice' |
| | | import ATooltip from 'ant-design-vue/es/tooltip/Tooltip' |
| | | import HeaderAvatar from './HeaderlAvatar' |
| | | import ADivider from 'ant-design-vue/es/divider/index' |
| | | import IMenu from '../components/menu/menu' |
| | | |
| | | const ALayoutSider = ALayout.Sider |
| | | const ALayoutHeader = ALayout.Header |
| | | export default { |
| | | name: 'GlobalHeader', |
| | | components: { |
| | | IMenu, |
| | | ADivider, |
| | | HeaderAvatar, |
| | | ATooltip, |
| | | HeaderNotice, |
| | | HeaderSearch, |
| | | AInputSearch, |
| | | AIcon, |
| | | ALayout, |
| | | ALayoutSider, |
| | | ALayoutHeader}, |
| | | components: {IMenu, HeaderAvatar, HeaderNotice, HeaderSearch}, |
| | | props: ['collapsed', 'menuData'], |
| | | computed: { |
| | | isMobile () { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ALayout from 'ant-design-vue/es/layout' |
| | | import GlobalHeader from './GlobalHeader' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import GlobalFooter from './GlobalFooter' |
| | | import Drawer from '../components/tool/Drawer' |
| | | import SiderMenu from '../components/menu/SiderMenu' |
| | | import Setting from '../components/setting/Setting' |
| | | |
| | | const ALayoutSider = ALayout.Sider |
| | | const ALayoutHeader = ALayout.Header |
| | | const ALayoutContent = ALayout.Content |
| | | const ALayoutFooter = ALayout.Footer |
| | | const minHeight = window.innerHeight - 64 - 24 - 122 |
| | | |
| | | let menuData = [] |
| | | |
| | | export default { |
| | | name: 'GlobalLayout', |
| | | components: { |
| | | Setting, |
| | | SiderMenu, |
| | | Drawer, |
| | | GlobalFooter, |
| | | AIcon, |
| | | GlobalHeader, |
| | | ALayout, |
| | | ALayoutSider, |
| | | ALayoutHeader, |
| | | ALayoutContent, |
| | | ALayoutFooter}, |
| | | components: {Setting, SiderMenu, Drawer, GlobalFooter, GlobalHeader}, |
| | | data () { |
| | | return { |
| | | minHeight: minHeight + 'px', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import APopover from 'ant-design-vue/es/popover/index' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import ABadge from 'ant-design-vue/es/badge/Badge' |
| | | import ATabs from 'ant-design-vue/es/tabs' |
| | | import AList from 'ant-design-vue/es/list/index' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import ASpin from 'ant-design-vue/es/spin/Spin' |
| | | |
| | | const ATabPane = ATabs.TabPane |
| | | const AListItemMeta = AListItem.Meta |
| | | |
| | | export default { |
| | | name: 'HeaderNotice', |
| | | components: {ASpin, AAvatar, AListItem, AList, ATabs, ABadge, AIcon, APopover, ATabPane, AListItemMeta}, |
| | | data () { |
| | | return { |
| | | loadding: false |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import AAutoComplete from 'ant-design-vue/es/auto-complete/index' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | export default { |
| | | name: 'HeaderSearch', |
| | | components: {AInput, AAutoComplete, AIcon}, |
| | | data () { |
| | | return { |
| | | dataSource: ['选项一', '选项二'], |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ADropdown from 'ant-design-vue/es/dropdown' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import AMenu from 'ant-design-vue/es/menu/index' |
| | | |
| | | const AMenuItem = AMenu.Item |
| | | const AMenuDivider = AMenu.Divider |
| | | |
| | | export default { |
| | | name: 'HeaderAvatar', |
| | | components: {AMenu, AMenuItem, AMenuDivider, AIcon, AAvatar, ADropdown}, |
| | | computed: { |
| | | currUser () { |
| | | return this.$store.state.account.user |
| | |
| | | |
| | | <script> |
| | | import GlobalLayout from './GlobalLayout' |
| | | import ATabs from 'ant-design-vue/es/tabs' |
| | | import AMenu from 'ant-design-vue/es/menu/index' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import Contextmenu from '../components/menu/Contextmenu' |
| | | const ATabPane = ATabs.TabPane |
| | | const AMenuItem = AMenu.Item |
| | | export default { |
| | | name: 'MenuView', |
| | | components: {Contextmenu, AIcon, AMenuItem, AMenu, ATabPane, ATabs, GlobalLayout}, |
| | | components: {Contextmenu, GlobalLayout}, |
| | | data () { |
| | | return { |
| | | pageList: [], |
| | |
| | | |
| | | <script> |
| | | import PageHeader from '../components/page/PageHeader' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | export default { |
| | | name: 'PageLayout', |
| | | components: {AIcon, PageHeader}, |
| | | components: {PageHeader}, |
| | | props: ['desc', 'logo', 'title', 'avatar', 'linkList', 'extraImage'], |
| | | data () { |
| | | return { |
| | |
| | | import App from './App' |
| | | import router from './router/lazy' |
| | | import 'ant-design-vue/dist/antd.css' |
| | | import Antd from 'ant-design-vue' |
| | | import Viser from 'viser-vue' |
| | | import axios from 'axios' |
| | | import message from 'ant-design-vue/es/message' |
| | | import '@/mock' |
| | | import store from './store' |
| | | import PouchDB from 'pouchdb' |
| | | |
| | | Vue.prototype.$axios = axios |
| | | Vue.prototype.$message = message |
| | | Vue.config.productionTip = false |
| | | Vue.use(Viser) |
| | | Vue.use(Antd) |
| | | |
| | | /* eslint-disable no-new */ |
| | | new Vue({ |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ChartCard from '../../components/card/ChartCard' |
| | | import ATooltip from 'ant-design-vue/es/tooltip/Tooltip' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import MiniArea from '../../components/chart/MiniArea' |
| | | import MiniBar from '../../components/chart/MiniBar' |
| | | import MiniProgress from '../../components/chart/MiniProgress' |
| | | import ATabs from 'ant-design-vue/es/tabs' |
| | | import ADatePicker from 'ant-design-vue/es/date-picker' |
| | | import Bar from '../../components/chart/Bar' |
| | | import RankingList from '../../components/chart/RankingList' |
| | | import HotSearch from '../../components/analysis/HotSearch' |
| | |
| | | }) |
| | | } |
| | | |
| | | const ATabPane = ATabs.TabPane |
| | | const ARangePicker = ADatePicker.RangePicker |
| | | export default { |
| | | name: 'analysis', |
| | | data () { |
| | |
| | | rankList |
| | | } |
| | | }, |
| | | components: { |
| | | Trend, |
| | | SalesData, |
| | | HotSearch, |
| | | RankingList, |
| | | Bar, |
| | | ARangePicker, |
| | | ATabPane, |
| | | ATabs, |
| | | MiniProgress, |
| | | MiniBar, |
| | | MiniArea, |
| | | AIcon, |
| | | ATooltip, |
| | | ChartCard, |
| | | ACard, |
| | | ARow, |
| | | ACol} |
| | | components: {Trend, SalesData, HotSearch, RankingList, Bar, MiniProgress, MiniBar, MiniArea, ChartCard} |
| | | } |
| | | </script> |
| | | |
| | |
| | | <script> |
| | | import PageHeader from '../../components/page/PageHeader' |
| | | import PageLayout from '../../layouts/PageLayout' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import HeadInfo from '../../components/tool/HeadInfo' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ACardGrid from 'ant-design-vue/es/card/Grid' |
| | | import ACardMeta from 'ant-design-vue/es/card/Meta' |
| | | import AList from 'ant-design-vue/es/list/index' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import Radar from '../../components/chart/Radar' |
| | | |
| | | const AListItemMeta = AListItem.Meta |
| | | |
| | | export default { |
| | | name: 'WorkPlace', |
| | | components: { |
| | | Radar, |
| | | AIcon, |
| | | AButton, |
| | | AListItemMeta, |
| | | AListItem, |
| | | AList, |
| | | ACardMeta, |
| | | ACardGrid, |
| | | ACard, |
| | | ACol, |
| | | ARow, |
| | | HeadInfo, |
| | | AAvatar, |
| | | PageLayout, |
| | | PageHeader}, |
| | | components: {Radar, HeadInfo, PageLayout, PageHeader}, |
| | | data () { |
| | | return { |
| | | projects: [], |
| | |
| | | |
| | | <script> |
| | | import PageLayout from '../../layouts/PageLayout' |
| | | import AButtonGroup from 'ant-design-vue/es/button/button-group' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import DetailList from '../../components/tool/DetailList' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ASteps from 'ant-design-vue/es/steps/index' |
| | | import AStepItem from '../../components/tool/AStepItem' |
| | | import ADivider from 'ant-design-vue/es/divider/index' |
| | | import ATable from 'ant-design-vue/es/table' |
| | | import {operation1, operation2, operation3, operationColumns} from '../../mock/common/tableData' |
| | | |
| | | const DetailListItem = DetailList.Item |
| | | const AStep = ASteps.Step |
| | | const AStepItemGroup = AStepItem.Group |
| | | |
| | | const tabList = [ |
| | |
| | | console.log(key) |
| | | } |
| | | }, |
| | | components: { |
| | | ATable, |
| | | ADivider, |
| | | AStepItemGroup, |
| | | AStepItem, |
| | | AStep, |
| | | ASteps, |
| | | ACard, |
| | | ACol, |
| | | ARow, |
| | | DetailListItem, |
| | | DetailList, |
| | | AIcon, |
| | | AButton, |
| | | AButtonGroup, |
| | | PageLayout} |
| | | components: {AStepItemGroup, AStepItem, DetailListItem, DetailList, PageLayout} |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ATooltip from 'ant-design-vue/es/tooltip/Tooltip' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import DetailList from '../../components/tool/DetailList' |
| | | import ADivider from 'ant-design-vue/es/divider/index' |
| | | import ATable from 'ant-design-vue/es/table' |
| | | import PageLayout from '../../layouts/PageLayout' |
| | | |
| | | const DetailListItem = DetailList.Item |
| | |
| | | |
| | | export default { |
| | | name: 'BasicDetail', |
| | | components: {PageLayout, ATable, ADivider, DetailListItem, DetailList, AAvatar, ATooltip, ACard}, |
| | | components: {PageLayout, DetailListItem, DetailList}, |
| | | data () { |
| | | return { |
| | | goodsColumns, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import ADatePicker from 'ant-design-vue/es/date-picker' |
| | | import ATextarea from 'ant-design-vue/es/input/TextArea' |
| | | import AInputNumber from 'ant-design-vue/es/input-number/index' |
| | | import ARadioGroup from 'ant-design-vue/es/radio/Group' |
| | | import ARadio from 'ant-design-vue/es/radio/Radio' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | |
| | | const ARangePicker = ADatePicker.RangePicker |
| | | const ASelectOption = ASelect.Option |
| | | export default { |
| | | name: 'BasicForm', |
| | | components: { |
| | | AButton, |
| | | ASelectOption, |
| | | ASelect, |
| | | ARadio, |
| | | ARadioGroup, |
| | | AInputNumber, |
| | | ATextarea, |
| | | ARangePicker, |
| | | AInput, |
| | | AFormItem, |
| | | AForm, |
| | | ACard}, |
| | | data () { |
| | | return { |
| | | desc: '表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import RepositoryForm from './RepositoryForm' |
| | | import TaskForm from './TaskForm' |
| | | import TableForm from './TableForm' |
| | | import FooterToolBar from '../../../components/tool/FooterToolBar' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | |
| | | export default { |
| | | name: 'AdvancedForm', |
| | | components: {AButton, FooterToolBar, TableForm, TaskForm, RepositoryForm, ACard}, |
| | | components: {FooterToolBar, TableForm, TaskForm, RepositoryForm}, |
| | | data () { |
| | | return { |
| | | desc: '高级表单常见于一次性输入和提交大批量数据的场景。', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import ADatePicker from 'ant-design-vue/es/date-picker' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | |
| | | const ASelectOption = ASelect.Option |
| | | const ARangePicker = ADatePicker.RangePicker |
| | | |
| | | export default { |
| | | name: 'RepositoryForm', |
| | | props: ['showSubmit'], |
| | | components: {AButton, ARangePicker, ASelectOption, ASelect, AInput, ARow, ACol, AFormItem, AForm}, |
| | | methods: { |
| | | handleSubmit (e) { |
| | | e.preventDefault() |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ATable from 'ant-design-vue/es/table' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import ADivider from 'ant-design-vue/es/divider/index' |
| | | import APopconfirm from 'ant-design-vue/es/popconfirm/index' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | |
| | | const columns = [ |
| | | { |
| | | title: '成员姓名', |
| | |
| | | |
| | | export default { |
| | | name: 'TableForm', |
| | | components: {AFormItem, APopconfirm, ADivider, AInput, AButton, ATable}, |
| | | data () { |
| | | return { |
| | | columns, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import ATimePicker from 'ant-design-vue/es/time-picker/index' |
| | | |
| | | const ASelectOption = ASelect.Option |
| | | |
| | | export default { |
| | | name: 'TaskForm', |
| | | props: ['showSubmit'], |
| | | components: {ATimePicker, AButton, ASelectOption, ASelect, AInput, ARow, ACol, AFormItem, AForm}, |
| | | methods: { |
| | | handleSubmit (e) { |
| | | e.preventDefault() |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import AInputGroup from 'ant-design-vue/es/input/Group' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | |
| | | const ASelectOption = ASelect.Option |
| | | |
| | | export default { |
| | | name: 'Step1', |
| | | components: {AInput, AInputGroup, ASelectOption, ASelect, AButton, AFormItem, AForm}, |
| | | methods: { |
| | | nextStep () { |
| | | this.$emit('nextStep') |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AAlert from 'ant-design-vue/es/alert/index' |
| | | export default { |
| | | name: 'Step2', |
| | | components: {AAlert, AButton, AFormItem, AForm}, |
| | | data () { |
| | | return { |
| | | loading: false |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import Result from '../../../components/result/Result' |
| | | export default { |
| | | name: 'Step3', |
| | | components: {Result, AButton, AFormItem, AForm}, |
| | | components: {Result}, |
| | | methods: { |
| | | doOnceAgin () { |
| | | this.$emit('finish') |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ASteps from 'ant-design-vue/es/steps/index' |
| | | import Step1 from './Step1' |
| | | import Step2 from './Step2' |
| | | import Step3 from './Step3' |
| | | |
| | | const AStep = ASteps.Step |
| | | |
| | | export default { |
| | | name: 'StepForm', |
| | | components: {Step1, Step2, Step3, AStep, ASteps, ACard}, |
| | | components: {Step1, Step2, Step3}, |
| | | data () { |
| | | return { |
| | | desc: '将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AList from 'ant-design-vue/es/list/index' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ACardMeta from 'ant-design-vue/es/card/Meta' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | |
| | | const dataSource = [] |
| | | dataSource.push(null) |
| | | for (let i = 0; i < 11; i++) { |
| | |
| | | |
| | | export default { |
| | | name: 'CardList', |
| | | components: {AIcon, AButton, AAvatar, ACardMeta, ACard, AListItem, AList}, |
| | | data () { |
| | | return { |
| | | desc: '段落示意:蚂蚁金服务设计平台 ant.design,用最小的工作量,无缝接入蚂蚁金服生态, 提供跨越设计与开发的体验解决方案。', |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import AInputNumber from 'ant-design-vue/es/input-number/index' |
| | | import ADatePicker from 'ant-design-vue/es/date-picker/index' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import StandardTable from '../../components/table/StandardTable' |
| | | import ADropdown from 'ant-design-vue/es/dropdown' |
| | | import AMenu from 'ant-design-vue/es/menu/index' |
| | | |
| | | const ASelectOption = ASelect.Option |
| | | const AMenuItem = AMenu.Item |
| | | |
| | | const columns = [ |
| | | { |
| | | title: '规则编号', |
| | |
| | | |
| | | export default { |
| | | name: 'QueryList', |
| | | components: { |
| | | AMenuItem, |
| | | AMenu, |
| | | ADropdown, |
| | | StandardTable, |
| | | AIcon, |
| | | AButton, |
| | | ADatePicker, |
| | | AInputNumber, |
| | | ASelectOption, |
| | | ASelect, |
| | | ACard, |
| | | AInput, |
| | | AFormItem, |
| | | AForm, |
| | | ACol, |
| | | ARow}, |
| | | components: {StandardTable}, |
| | | data () { |
| | | return { |
| | | advanced: true, |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import HeadInfo from '../../components/tool/HeadInfo' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AList from 'ant-design-vue/es/list/index' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import AProgress from 'ant-design-vue/es/progress' |
| | | import ADropdown from 'ant-design-vue/es/dropdown' |
| | | import AMenu from 'ant-design-vue/es/menu/index' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import AButtonGroup from 'ant-design-vue/es/button/button-group' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import AInputSearch from 'ant-design-vue/es/input/Search' |
| | | import ARadioGroup from 'ant-design-vue/es/radio/Group' |
| | | import ARadio from 'ant-design-vue/es/radio' |
| | | |
| | | const AListItemMeta = AListItem.Meta |
| | | const AMenuItem = AMenu.Item |
| | | const ARadioButton = ARadio.Button |
| | | export default { |
| | | name: 'StandardList', |
| | | components: { |
| | | ARadioButton, |
| | | ARadio, |
| | | ARadioGroup, |
| | | AInputSearch, |
| | | AInput, |
| | | AButtonGroup, |
| | | AIcon, |
| | | AMenuItem, |
| | | AMenu, |
| | | ADropdown, |
| | | AProgress, |
| | | AAvatar, |
| | | AListItemMeta, |
| | | AListItem, |
| | | AList, |
| | | AButton, |
| | | HeadInfo, |
| | | ACol, |
| | | ARow, |
| | | ACard} |
| | | components: {HeadInfo} |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import SearchForm from './SearchForm' |
| | | import AList from 'ant-design-vue/es/list' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import ACardMeta from 'ant-design-vue/es/card/Meta' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import ATooltip from 'ant-design-vue/es/tooltip/Tooltip' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import ADropdown from 'ant-design-vue/es/dropdown' |
| | | import AMenu from 'ant-design-vue/es/menu/index' |
| | | |
| | | const AMenuItem = AMenu.Item |
| | | |
| | | export default { |
| | | name: 'ApplicationList', |
| | | components: {AMenuItem, AMenu, ADropdown, AIcon, ATooltip, AAvatar, ACardMeta, AListItem, AList, SearchForm, ACard} |
| | | components: {SearchForm} |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import SearchForm from './SearchForm' |
| | | import AList from 'ant-design-vue/es/list' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import ATag from 'ant-design-vue/es/tag/Tag' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | |
| | | const AListItemMeta = AListItem.Meta |
| | | export default { |
| | | name: 'ArticleList', |
| | | components: {AIcon, ATag, AAvatar, AListItem, AListItemMeta, AList, SearchForm, ACard} |
| | | components: {SearchForm} |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import SearchForm from './SearchForm' |
| | | import AList from 'ant-design-vue/es/list' |
| | | import AListItem from 'ant-design-vue/es/list/Item' |
| | | import ACardMeta from 'ant-design-vue/es/card/Meta' |
| | | import AAvatar from 'ant-design-vue/es/avatar/Avatar' |
| | | import AvatarList from '../../../components/tool/AvatarList' |
| | | import ATooltip from 'ant-design-vue/es/tooltip/Tooltip' |
| | | |
| | | const AvatarListItem = AvatarList.Item |
| | | |
| | | export default { |
| | | name: 'ProjectList', |
| | | components: {ATooltip, AvatarListItem, AvatarList, AAvatar, ACardMeta, AListItem, AList, SearchForm, ACard} |
| | | components: {AvatarListItem, AvatarList, SearchForm} |
| | | } |
| | | </script> |
| | | |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import TagSelect from '../../../components/tool/TagSelect' |
| | | import FormRow from '../../../components/form/FormRow' |
| | | import ASelect from 'ant-design-vue/es/select/index' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | |
| | | const TagSelectOption = TagSelect.Option |
| | | const ASelectOption = ASelect.Option |
| | | |
| | | export default { |
| | | name: 'SearchForm', |
| | | components: {ACol, ARow, ASelectOption, ASelect, FormRow, TagSelectOption, TagSelect, AInput, AFormItem, AForm, ACard}, |
| | | components: {FormRow, TagSelectOption, TagSelect}, |
| | | methods: { |
| | | lookMyself () { |
| | | this.form.setFieldsValue({ |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import AInputGroup from 'ant-design-vue/es/input/Group' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import AInputSearch from 'ant-design-vue/es/input/Search' |
| | | import ATabs from 'ant-design-vue/es/tabs' |
| | | |
| | | const ATabPane = ATabs.TabPane |
| | | |
| | | export default { |
| | | name: 'SearchLayout', |
| | | components: {ATabPane, ATabs, AInputSearch, AButton, AInputGroup, AInput}, |
| | | computed: { |
| | | activeKey () { |
| | | switch (this.$route.path) { |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import AForm from 'ant-design-vue/es/form/Form' |
| | | import ATabs from 'ant-design-vue/es/tabs' |
| | | import GlobalFooter from '../../layouts/GlobalFooter' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | import AInput from 'ant-design-vue/es/input/Input' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import AInputGroup from 'ant-design-vue/es/input/Group' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ACheckbox from 'ant-design-vue/es/checkbox/Checkbox' |
| | | import AAlert from 'ant-design-vue/es/alert/index' |
| | | |
| | | const ATabPane = ATabs.TabPane |
| | | |
| | | export default { |
| | | name: 'Login', |
| | | components: { |
| | | AAlert, |
| | | ACheckbox, |
| | | ACol, |
| | | ARow, |
| | | AButton, |
| | | AInputGroup, |
| | | AIcon, |
| | | AInput, |
| | | AFormItem, |
| | | GlobalFooter, |
| | | ATabPane, |
| | | ATabs, |
| | | AForm}, |
| | | components: {GlobalFooter}, |
| | | data () { |
| | | return { |
| | | logging: false, |
| | |
| | | |
| | | <script> |
| | | import Result from '../../components/result/Result' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | export default { |
| | | name: 'Error', |
| | | components: {AButton, AIcon, ACard, Result}, |
| | | components: {Result}, |
| | | data () { |
| | | return { |
| | | title: '提交失败', |
| | |
| | | |
| | | <script> |
| | | import Result from '../../components/result/Result' |
| | | import ACard from 'ant-design-vue/es/card/Card' |
| | | import AButton from 'ant-design-vue/es/button/button' |
| | | import ACol from 'ant-design-vue/es/grid/Col' |
| | | import ARow from 'ant-design-vue/es/grid/Row' |
| | | import ASteps from 'ant-design-vue/es/steps/index' |
| | | import AIcon from 'ant-design-vue/es/icon/icon' |
| | | import DetailList from '../../components/tool/DetailList' |
| | | import AStepItem from '../../components/tool/AStepItem' |
| | | |
| | | const AStep = ASteps.Step |
| | | const AStepItemGroup = AStepItem.Group |
| | | const DetailListItem = DetailList.Item |
| | | export default { |
| | | name: 'Success', |
| | | components: { |
| | | AStepItemGroup, |
| | | AStepItem, |
| | | DetailListItem, |
| | | DetailList, |
| | | AIcon, |
| | | AStep, |
| | | ASteps, |
| | | ARow, |
| | | ACol, |
| | | AButton, |
| | | ACard, |
| | | Result}, |
| | | components: {AStepItemGroup, AStepItem, DetailListItem, DetailList, Result}, |
| | | data () { |
| | | return { |
| | | title: '提交成功', |