diff --git a/demo/el-table/App.vue b/demo/el-table/App.vue new file mode 100644 index 0000000..9c3d663 --- /dev/null +++ b/demo/el-table/App.vue @@ -0,0 +1,25 @@ + + diff --git a/demo/el-table/main.js b/demo/el-table/main.js new file mode 100644 index 0000000..2df3148 --- /dev/null +++ b/demo/el-table/main.js @@ -0,0 +1,7 @@ +import {createApp} from "vue"; +import App from "./App.vue" +import router from './router' +import ElementPlus from "element-plus" +import "element-plus/dist/index.css" + +createApp(App).use(ElementPlus).use(router).mount('#app') diff --git a/demo/el-table/router/index.js b/demo/el-table/router/index.js new file mode 100644 index 0000000..2435aa9 --- /dev/null +++ b/demo/el-table/router/index.js @@ -0,0 +1,122 @@ +// 引入必要的router组件 +import {createRouter, createWebHistory} from 'vue-router' +// 引入视图 +// const root = () => import('../App.vue') +const tableDemo1 = () => import('../views/Table_Demo1.vue') +const tableDemo2 = () => import('../views/Table_Demo2.vue') +const tableDemo3 = () => import('../views/Table_Demo3.vue') +const tableDemo4 = () => import('../views/Table_Demo4.vue') +const tableDemo5 = () => import('../views/Table_Demo5.vue') +const tableDemo6 = () => import('../views/Table_Demo6.vue') +const tableDemo7 = () => import('../views/Table_Demo7.vue') +const tableDemo8 = () => import('../views/Table_Demo8.vue') +const tableDemo9 = () => import('../views/Table_Demo9.vue') +const tableDemo10 = () => import('../views/Table_Demo10.vue') +const tableDemo11 = () => import('../views/Table_Demo11.vue') +const tableDemo12 = () => import('../views/Table_Demo12.vue') +const tableDemo13 = () => import('../views/Table_Demo13.vue') +const tableDemo14 = () => import('../views/Table_Demo14.vue') +const tableDemo15 = () => import('../views/Table_Demo15.vue') +const tableDemo16 = () => import('../views/Table_Demo16.vue') + +// 引入组件 + + +// 创建路由 +const routes = [ + // { + // path: "/", + // name: 'root', + // component: root + // }, + { + path: '/table1', + name: 'table1', + component: tableDemo1 + }, + { + path: '/table2', + name: 'table2', + component: tableDemo2 + }, + { + path: '/table3', + name: 'table3', + component: tableDemo3 + }, + { + path: '/table4', + name: 'table4', + component: tableDemo4 + }, + { + path: '/table5', + name: 'table5', + component: tableDemo5 + }, + { + path: '/table6', + name: 'table6', + component: tableDemo6 + }, + { + path: '/table7', + name: 'table7', + component: tableDemo7 + }, + { + path: '/table8', + name: 'table8', + component: tableDemo8 + }, + { + path: '/table9', + name: 'table9', + component: tableDemo9 + }, + { + path: '/table10', + name: 'table10', + component: tableDemo10 + }, + { + path: '/table11', + name: 'table11', + component: tableDemo11 + }, + { + path: '/table12', + name: 'table12', + component: tableDemo12 + }, + { + path: '/table13', + name: 'table13', + component: tableDemo13 + }, + { + path: '/table14', + name: 'table14', + component: tableDemo14 + }, + { + path: '/table15', + name: 'table15', + component: tableDemo15 + }, + { + path: '/table16', + name: 'table16', + component: tableDemo16 + }, +] + +// 创建路由器,使用createRouter方法,传入history(路由类型)和 创建好的路由routes +// 路由类型分为hash型和html5型,分别为createWebHashHistory和createWebHistory +const router = createRouter({ + history: createWebHistory(), + routes +}) + +// 导出路由 +export default router diff --git a/src/views/Table_Demo1.vue b/demo/el-table/views/Table_Demo1.vue similarity index 100% rename from src/views/Table_Demo1.vue rename to demo/el-table/views/Table_Demo1.vue diff --git a/src/views/Table_Demo10.vue b/demo/el-table/views/Table_Demo10.vue similarity index 100% rename from src/views/Table_Demo10.vue rename to demo/el-table/views/Table_Demo10.vue diff --git a/src/views/Table_Demo11.vue b/demo/el-table/views/Table_Demo11.vue similarity index 100% rename from src/views/Table_Demo11.vue rename to demo/el-table/views/Table_Demo11.vue diff --git a/src/views/Table_Demo12.vue b/demo/el-table/views/Table_Demo12.vue similarity index 100% rename from src/views/Table_Demo12.vue rename to demo/el-table/views/Table_Demo12.vue diff --git a/src/views/Table_Demo13.vue b/demo/el-table/views/Table_Demo13.vue similarity index 100% rename from src/views/Table_Demo13.vue rename to demo/el-table/views/Table_Demo13.vue diff --git a/src/views/Table_Demo14.vue b/demo/el-table/views/Table_Demo14.vue similarity index 100% rename from src/views/Table_Demo14.vue rename to demo/el-table/views/Table_Demo14.vue diff --git a/src/views/Table_Demo15.vue b/demo/el-table/views/Table_Demo15.vue similarity index 100% rename from src/views/Table_Demo15.vue rename to demo/el-table/views/Table_Demo15.vue diff --git a/src/views/Table_Demo16.vue b/demo/el-table/views/Table_Demo16.vue similarity index 100% rename from src/views/Table_Demo16.vue rename to demo/el-table/views/Table_Demo16.vue diff --git a/src/views/Table_Demo2.vue b/demo/el-table/views/Table_Demo2.vue similarity index 100% rename from src/views/Table_Demo2.vue rename to demo/el-table/views/Table_Demo2.vue diff --git a/src/views/Table_Demo3.vue b/demo/el-table/views/Table_Demo3.vue similarity index 100% rename from src/views/Table_Demo3.vue rename to demo/el-table/views/Table_Demo3.vue diff --git a/src/views/Table_Demo4.vue b/demo/el-table/views/Table_Demo4.vue similarity index 100% rename from src/views/Table_Demo4.vue rename to demo/el-table/views/Table_Demo4.vue diff --git a/src/views/Table_Demo5.vue b/demo/el-table/views/Table_Demo5.vue similarity index 100% rename from src/views/Table_Demo5.vue rename to demo/el-table/views/Table_Demo5.vue diff --git a/src/views/Table_Demo6.vue b/demo/el-table/views/Table_Demo6.vue similarity index 100% rename from src/views/Table_Demo6.vue rename to demo/el-table/views/Table_Demo6.vue diff --git a/src/views/Table_Demo7.vue b/demo/el-table/views/Table_Demo7.vue similarity index 100% rename from src/views/Table_Demo7.vue rename to demo/el-table/views/Table_Demo7.vue diff --git a/src/views/Table_Demo8.vue b/demo/el-table/views/Table_Demo8.vue similarity index 100% rename from src/views/Table_Demo8.vue rename to demo/el-table/views/Table_Demo8.vue diff --git a/src/views/Table_Demo9.vue b/demo/el-table/views/Table_Demo9.vue similarity index 100% rename from src/views/Table_Demo9.vue rename to demo/el-table/views/Table_Demo9.vue diff --git a/src/App.vue b/src/App.vue index 9c3d663..bd305ce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,22 +1,9 @@ diff --git a/src/router/index.js b/src/router/index.js index 2435aa9..0abf342 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2,112 +2,24 @@ import {createRouter, createWebHistory} from 'vue-router' // 引入视图 // const root = () => import('../App.vue') -const tableDemo1 = () => import('../views/Table_Demo1.vue') -const tableDemo2 = () => import('../views/Table_Demo2.vue') -const tableDemo3 = () => import('../views/Table_Demo3.vue') -const tableDemo4 = () => import('../views/Table_Demo4.vue') -const tableDemo5 = () => import('../views/Table_Demo5.vue') -const tableDemo6 = () => import('../views/Table_Demo6.vue') -const tableDemo7 = () => import('../views/Table_Demo7.vue') -const tableDemo8 = () => import('../views/Table_Demo8.vue') -const tableDemo9 = () => import('../views/Table_Demo9.vue') -const tableDemo10 = () => import('../views/Table_Demo10.vue') -const tableDemo11 = () => import('../views/Table_Demo11.vue') -const tableDemo12 = () => import('../views/Table_Demo12.vue') -const tableDemo13 = () => import('../views/Table_Demo13.vue') -const tableDemo14 = () => import('../views/Table_Demo14.vue') -const tableDemo15 = () => import('../views/Table_Demo15.vue') -const tableDemo16 = () => import('../views/Table_Demo16.vue') +const formDemo1 = () => import('../views/Form_Demo1.vue') +const formDemo2 = () => import('../views/Form_Demo2.vue') + // 引入组件 // 创建路由 const routes = [ - // { - // path: "/", - // name: 'root', - // component: root - // }, - { - path: '/table1', - name: 'table1', - component: tableDemo1 - }, - { - path: '/table2', - name: 'table2', - component: tableDemo2 - }, - { - path: '/table3', - name: 'table3', - component: tableDemo3 - }, - { - path: '/table4', - name: 'table4', - component: tableDemo4 - }, - { - path: '/table5', - name: 'table5', - component: tableDemo5 - }, - { - path: '/table6', - name: 'table6', - component: tableDemo6 - }, - { - path: '/table7', - name: 'table7', - component: tableDemo7 - }, - { - path: '/table8', - name: 'table8', - component: tableDemo8 - }, - { - path: '/table9', - name: 'table9', - component: tableDemo9 - }, - { - path: '/table10', - name: 'table10', - component: tableDemo10 - }, - { - path: '/table11', - name: 'table11', - component: tableDemo11 - }, - { - path: '/table12', - name: 'table12', - component: tableDemo12 - }, - { - path: '/table13', - name: 'table13', - component: tableDemo13 - }, - { - path: '/table14', - name: 'table14', - component: tableDemo14 - }, { - path: '/table15', - name: 'table15', - component: tableDemo15 + path: '/form1', + name: 'form1', + component: formDemo1 }, { - path: '/table16', - name: 'table16', - component: tableDemo16 + path: '/form2', + name: 'form2', + component: formDemo2 }, ] diff --git a/src/views/Form_Demo1.vue b/src/views/Form_Demo1.vue new file mode 100644 index 0000000..b5080e5 --- /dev/null +++ b/src/views/Form_Demo1.vue @@ -0,0 +1,102 @@ + + + + + \ No newline at end of file diff --git a/src/views/Form_Demo2.vue b/src/views/Form_Demo2.vue new file mode 100644 index 0000000..7a140bc --- /dev/null +++ b/src/views/Form_Demo2.vue @@ -0,0 +1,43 @@ + + + + + \ No newline at end of file diff --git a/src/views/Form_Demo3.vue b/src/views/Form_Demo3.vue new file mode 100644 index 0000000..375d5d5 --- /dev/null +++ b/src/views/Form_Demo3.vue @@ -0,0 +1,109 @@ + + + + + \ No newline at end of file