-
+
+
+
+
+
+ Hi,开发者,欢迎使用 @codetrial/vue-cli-plugin-element 插件搭建你的后台!
+ 插件源码 |
+ 插件文档
+
+
+
+
+
+
+
+ 统计 A
+
+
+
+
+
+
+
+ 统计 B
+
+
+
+
+
+
+
+ 统计 C
+
+
+
+
+
+
+
+ 统计 D
+
+
+
+
+
+
+
+
+
+ 进度 A
+
+
+
+
+
+
+
+
+
+ 进度 B
+
+
+
+
+
+
+
+
+
+
diff --git a/template/structure/src/views/Login.vue b/template/structure/src/views/Login.vue
new file mode 100644
index 0000000..c0f51d8
--- /dev/null
+++ b/template/structure/src/views/Login.vue
@@ -0,0 +1,123 @@
+
+
+
+
+
+
+
+
+ 账号
+
+
+
+
+ 密码
+
+
+
+ 重置
+ 登录
+
+
+
+
+
+
+
+
+
+
diff --git a/template/structure/src/views/example/AdminAuthorized.vue b/template/structure/src/views/example/AdminAuthorized.vue
new file mode 100644
index 0000000..256d07b
--- /dev/null
+++ b/template/structure/src/views/example/AdminAuthorized.vue
@@ -0,0 +1,17 @@
+
+
+
+
+ 此页面需要
+ ADMIN
角色才能访问。
+
+
+
+
+
+
+
diff --git a/template/structure/src/views/example/Form.vue b/template/structure/src/views/example/Form.vue
new file mode 100644
index 0000000..b848777
--- /dev/null
+++ b/template/structure/src/views/example/Form.vue
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ -
+
+
+
+
+
+
+
+
+
+
+
+ 个人
+ 组织
+ 团队
+ 公司
+
+
+
+
+
+
+
+
+
+
+
+
+ 立即创建
+ 重置
+
+
+
+
+
+
+
+
+
diff --git a/template/structure/src/views/example/Table.vue b/template/structure/src/views/example/Table.vue
new file mode 100644
index 0000000..5f9917c
--- /dev/null
+++ b/template/structure/src/views/example/Table.vue
@@ -0,0 +1,229 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+ updatePageAndSearch({ orderBy: prop, order})"
+ @selection-change="rows => multipleSelection = rows"
+ >
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+ {{ scope.row.createUser }}
+
+
+ {{ scope.row.createUserName }}
+
+
+ {{ scope.row.createTime }}
+
+
+
+
+
+
+
+
+
+
+ {{ currentRow.id }}
+
+
+ {{ currentRow.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/template/structure/src/views/example/config.js b/template/structure/src/views/example/config.js
new file mode 100644
index 0000000..4fcbf97
--- /dev/null
+++ b/template/structure/src/views/example/config.js
@@ -0,0 +1,33 @@
+export const rules = {
+ name: [
+ { required: true, message: '请输入名称', trigger: 'blur' },
+ { min: 5, max: 20, message: '长度在 5 到 20 个字符', trigger: 'blur' }
+ ],
+ region: [{ required: true, message: '请选择地区', trigger: 'change' }],
+ date: [
+ {
+ type: 'date',
+ required: true,
+ message: '请选择日期',
+ trigger: 'change'
+ }
+ ],
+ time: [
+ {
+ type: 'date',
+ required: true,
+ message: '请选择时间',
+ trigger: 'change'
+ }
+ ],
+ type: [
+ {
+ type: 'array',
+ required: true,
+ message: '请至少选择一个类型',
+ trigger: 'change'
+ }
+ ],
+ status: [{ required: true, message: '请选择状态', trigger: 'change' }],
+ desc: [{ required: true, message: '请填写详细描述', trigger: 'blur' }]
+}
diff --git a/template/structure/tests/unit/example.spec.js b/template/structure/tests/unit/example.spec.js
new file mode 100644
index 0000000..7673c17
--- /dev/null
+++ b/template/structure/tests/unit/example.spec.js
@@ -0,0 +1,9 @@
+import { shallowMount } from '@vue/test-utils'
+import AppFooter from '@/components/layout/AppFooter.vue'
+
+describe('AppFooter.vue', () => {
+ it('render app footer', () => {
+ const wrapper = shallowMount(AppFooter, {})
+ expect(wrapper.text()).toMatch('Copyright')
+ })
+})