diff --git a/README.md b/README.md index 04ea99ce..160956a1 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,10 @@ element plus - + typescript - + license @@ -117,6 +117,7 @@ cnpm run build - cropperjs - @antv/g6 - qrcodejs +- print-js #### 特别感谢 diff --git a/package.json b/package.json index fa978db0..b1a86cd2 100644 --- a/package.json +++ b/package.json @@ -7,32 +7,33 @@ "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/" }, "dependencies": { - "@antv/g6": "^4.2.0", + "@antv/g6": "^4.2.1", "axios": "^0.21.1", "clipboard": "^2.0.8", "countup.js": "^2.0.7", "cropperjs": "^1.5.11", "echarts": "^5.0.2", "echarts-wordcloud": "^2.0.0", - "element-plus": "^1.0.2-beta.34", + "element-plus": "^1.0.2-beta.35", "mitt": "^2.1.0", "nprogress": "^0.2.0", + "print-js": "^1.6.0", "qrcodejs2-fixes": "^0.0.2", "screenfull": "^5.1.0", "sortablejs": "^1.13.0", "vue": "^3.0.5", "vue-router": "^4.0.2", "vuex": "^4.0.0-rc.2", - "wangeditor": "^4.6.9" + "wangeditor": "^4.6.10" }, "devDependencies": { "@types/axios": "^0.14.0", "@types/clipboard": "^2.0.1", - "@types/node": "^14.14.34", + "@types/node": "^14.14.35", "@types/nprogress": "^0.2.0", "@types/sortablejs": "^1.10.6", - "@typescript-eslint/eslint-plugin": "^4.17.0", - "@typescript-eslint/parser": "^4.17.0", + "@typescript-eslint/eslint-plugin": "^4.18.0", + "@typescript-eslint/parser": "^4.18.0", "@vitejs/plugin-vue": "^1.1.5", "@vue/compiler-sfc": "^3.0.7", "dotenv": "^8.2.0", @@ -42,7 +43,7 @@ "sass": "^1.32.8", "sass-loader": "^11.0.1", "typescript": "^4.2.3", - "vite": "^2.0.5", + "vite": "^2.1.2", "vue-eslint-parser": "^7.6.0" } } diff --git a/src/router/index.ts b/src/router/index.ts index 52dacdd5..6e2b5486 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -452,6 +452,21 @@ export const dynamicRoutes = [ icon: 'iconfont icon-ditu', }, }, + { + path: '/fun/printJs', + name: 'printJs', + component: () => import('/@/views/fun/printJs/index.vue'), + meta: { + title: '页面打印', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'el-icon-printer', + }, + }, ], }, { @@ -605,6 +620,21 @@ export const dynamicRoutes = [ icon: 'iconfont icon-chazhaobiaodanliebiao', }, }, + { + path: '/pages/waterfall', + name: 'waterfall', + component: () => import('/@/views/pages/waterfall/index.vue'), + meta: { + title: '瀑布屏', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: false, + isIframe: false, + auth: ['admin', 'test'], + icon: 'iconfont icon-zidingyibuju', + }, + }, { path: '/pages/steps', name: 'steps', diff --git a/src/theme/element.scss b/src/theme/element.scss index c3b5803b..64bfb07a 100644 --- a/src/theme/element.scss +++ b/src/theme/element.scss @@ -127,6 +127,27 @@ .el-button--danger:active { @include Button(whites, danger, danger); } +// 第三方字体图标大小 +.el-button i.iconfont, +.el-button i.fa { + font-size: 14px !important; + margin-right: 5px; +} +.el-button--medium i.iconfont, +.el-button--medium i.fa { + font-size: 14px !important; + margin-right: 5px; +} +.el-button--small i.iconfont, +.el-button--small i.fa { + font-size: 12px !important; + margin-right: 5px; +} +.el-button--mini i.iconfont, +.el-button--mini i.fa { + font-size: 12px !important; + margin-right: 5px; +} /* Link 文字链接 ------------------------------- */ @@ -604,6 +625,9 @@ .el-alert--error.is-light .el-alert__description { color: set-color(danger); } +.el-alert__title { + word-break: break-all; +} /* Loading 加载 ------------------------------- */ diff --git a/src/utils/setIconfont.ts b/src/utils/setIconfont.ts index 4220cb61..2a0b9e36 100644 --- a/src/utils/setIconfont.ts +++ b/src/utils/setIconfont.ts @@ -1,6 +1,6 @@ // 字体图标 url const cssCdnUrlList: Array = [ - '//at.alicdn.com/t/font_2298093_1pnb6uhuq4e.css', + '//at.alicdn.com/t/font_2298093_o73r8wjdhlg.css', '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css', ]; // 第三方 js url diff --git a/src/views/fun/printJs/index.vue b/src/views/fun/printJs/index.vue new file mode 100644 index 00000000..ad5e824c --- /dev/null +++ b/src/views/fun/printJs/index.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/views/pages/waterfall/index.vue b/src/views/pages/waterfall/index.vue new file mode 100644 index 00000000..d239ac4e --- /dev/null +++ b/src/views/pages/waterfall/index.vue @@ -0,0 +1,179 @@ + + + + +