diff --git a/.gitignore b/.gitignore
index 7c04f0e..32f62d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -19,6 +19,7 @@ coverage
# Editor directories and files
.idea
+.vscode
*.suo
*.ntvs*
*.njsproj
diff --git a/.vscode/settings.json b/.vscode/settings.json
index fed1394..5e453ae 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -2,7 +2,7 @@
"explorer.confirmDelete": false,
"editor.fontSize": 18,
"workbench.editorAssociations": {
- "*.ipynb": "jupyter.notebook.ipynb"
+ "*.ipynb": "jupyter.notebook.ipynb"
},
"window.zoomLevel": 1,
"workbench.iconTheme": "vscode-icons",
@@ -32,13 +32,14 @@
"editor.formatOnSave": true
},
"[vue]": {
- "editor.defaultFormatter": "octref.vetur",
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"css.validate": false, //用来校验CSS文件中的语法错误和潜在的问题
"less.validate": false, //用来校验LESS文件中的语法错误和潜在的问题
"scss.validate": false, //用来校验SCSS文件中的语法错误和潜在的问题
- "editor.codeActionsOnSave": { // 用于在保存文件时自动执行代码操作
+ "editor.codeActionsOnSave": {
+ // 用于在保存文件时自动执行代码操作
"source.fixAll.eslint": "explicit", // 自动执行ESlint
"source.fixAll.stylelint": "explicit" // 自动执行stylelint
},
@@ -54,15 +55,16 @@
"xml",
"gql",
"graphql",
- "astro",
+ "astro"
],
- "eslint.nodePath": "./node_modules/@yl/yili-fe-lint-config/node_modules", // 指定ESLint可执行文件路径
- "eslint.options": { // 用于配置
+ "eslint.nodePath": "./node_modules/@yl/yili-fe-lint-config/node_modules", // 指定ESLint可执行文件路径
+ "eslint.options": {
+ // 用于配置
"overrideConfigFile": "./node_modules/@yl/yili-fe-lint-config/eslintrc.vue3.js" //该选项指定了 ESLint 应使用的配置文件路径。此项设置会覆盖所有其他位置查找的 ESLint 配置文件。
},
"stylelint.configBasedir": "./node_modules/@yl/yili-fe-lint-config/", //该选项用于定义 Stylelint 配置文件所基于的基础目录。当您的配置文件中使用 extends、plugins 或其他引用时,这个基础目录将作为解析路径的起点
"stylelint.configFile": "./node_modules/@yl/yili-fe-lint-config/stylelintrc.js", // 该选项指定了 stylelint 应使用的配置文件路径。此项设置会覆盖所有其他位置查找的 stylelint 配置文件
- "stylelint.customSyntax": "postcss-scss", // 配置stylelint使用的预处理器
+ "stylelint.customSyntax": "postcss-scss", // 配置stylelint使用的预处理器
"stylelint.stylelintPath": "./node_modules/@yl/yili-fe-lint-config/node_modules/stylelint", // 指定stylelint安装路径
"stylelint.validate": ["html", "css", "scss", "less", "vue"]
-}
\ No newline at end of file
+}
diff --git a/components.d.ts b/components.d.ts
index d313a6c..2f649c1 100644
--- a/components.d.ts
+++ b/components.d.ts
@@ -7,16 +7,9 @@ export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
- ElButton: typeof import('element-plus/es')['ElButton']
- ElContainer: typeof import('element-plus/es')['ElContainer']
- ElHeader: typeof import('element-plus/es')['ElHeader']
- ElMain: typeof import('element-plus/es')['ElMain']
- Index: typeof import('./src/components/VanCellModel/Index.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
- Van: typeof import('vant/es')['default']
VanActionSheet: typeof import('vant/es')['ActionSheet']
- VanButton: typeof import('vant/es')['Button']
VanCell: typeof import('vant/es')['Cell']
VanCellGroup: typeof import('vant/es')['CellGroup']
VanCheckbox: typeof import('vant/es')['Checkbox']
@@ -24,5 +17,9 @@ declare module 'vue' {
VanDivider: typeof import('vant/es')['Divider']
VanField: typeof import('vant/es')['Field']
VanIcon: typeof import('vant/es')['Icon']
+ VanSearch: typeof import('vant/es')['Search']
+ VanSwitch: typeof import('vant/es')['Switch']
+ VanTabbar: typeof import('vant/es')['Tabbar']
+ VanTabbarItem: typeof import('vant/es')['TabbarItem']
}
}
diff --git a/src/assets/css/vant.scss b/src/assets/css/vant.scss
index 1eb55ab..75b5c47 100644
--- a/src/assets/css/vant.scss
+++ b/src/assets/css/vant.scss
@@ -1,3 +1,11 @@
.van-cell {
padding: 8px !important;
}
+
+.van-divider {
+ margin: 5px 0 !important;
+}
+
+.van-popup--bottom.van-popup--round {
+ border-radius: 10px 10px 0 0 !important;
+}
diff --git a/src/fonts/demo.css b/src/fonts/demo.css
index 18e8077..12ec742 100644
--- a/src/fonts/demo.css
+++ b/src/fonts/demo.css
@@ -4,11 +4,11 @@
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
src:
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix')
- format('embedded-opentype'),
+ format('embedded-opentype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont')
- format('svg');
+ format('svg');
}
.logo {
diff --git a/src/layouts/index.vue b/src/layouts/index.vue
index 2747132..f4105f7 100644
--- a/src/layouts/index.vue
+++ b/src/layouts/index.vue
@@ -26,39 +26,41 @@ import { RouterView } from 'vue-router';
import { ref } from 'vue';
const active = ref();
-const table = [{
- title: '首页',
- path: '/',
- icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u18.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
-
-}, {
- title: '问卷',
- path: '/survey',
- icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u21.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
-}, {
- title: '新建问卷',
- path: '/survey/create',
- icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/首页_1/u15.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
-
-}, {
- title: '模板',
- path: '/market',
- icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u24.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
-}];
+const table = [
+ {
+ title: '首页',
+ path: '/',
+ icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u18.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
+ },
+ {
+ title: '问卷',
+ path: '/survey',
+ icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u21.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
+ },
+ {
+ title: '新建问卷',
+ path: '/survey/create',
+ icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/首页_1/u15.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
+ },
+ {
+ title: '模板',
+ path: '/market',
+ icon: 'https://files.axshare.com/gsc/DR6075/de/a0/49/dea049d6ad3e4c2c80af44258c6c76d6/images/%E9%A6%96%E9%A1%B5_1/u24.png?pageId=74b3e5b2-848e-4258-8a34-9e220127c8a6'
+ }
+];
diff --git a/src/views/Design/components/Questions/Completion.vue b/src/views/Design/components/Questions/Completion.vue
new file mode 100644
index 0000000..1630174
--- /dev/null
+++ b/src/views/Design/components/Questions/Completion.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
diff --git a/src/views/Design/components/Questions/paging/Paging.vue b/src/views/Design/components/Questions/paging/Paging.vue
index 57eb0e1..62d9592 100644
--- a/src/views/Design/components/Questions/paging/Paging.vue
+++ b/src/views/Design/components/Questions/paging/Paging.vue
@@ -11,8 +11,7 @@
class="iconfont active-icon"
:style="{ marginRight: isLastPage ? '0' : '16px' }"
@click="activePage"
- >
+ >
diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue
index 3983147..16bfb79 100644
--- a/src/views/Home/Index.vue
+++ b/src/views/Home/Index.vue
@@ -1,23 +1,24 @@
@@ -34,26 +35,21 @@ const func = [{
-
-