diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..4757163 Binary files /dev/null and b/dist.zip differ diff --git a/src/components.d.ts b/src/components.d.ts index c9223d2..0b4f673 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -15,6 +15,8 @@ declare module 'vue' { MainTransition: typeof import('./components/main-transition/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + SelectIcon: typeof import('./components/select-icon/index.vue')['default'] + SvgAndIcon: typeof import('./components/svg-and-icon/index.vue')['default'] SvgIcon: typeof import('./components/svg-icon/index.vue')['default'] VerifyCode: typeof import('./components/verify-code/index.vue')['default'] } diff --git a/src/components/select-icon/index.vue b/src/components/select-icon/index.vue new file mode 100644 index 0000000..7e9d4e5 --- /dev/null +++ b/src/components/select-icon/index.vue @@ -0,0 +1,103 @@ + + + + + diff --git a/src/components/svg-and-icon/index.vue b/src/components/svg-and-icon/index.vue new file mode 100644 index 0000000..7be1255 --- /dev/null +++ b/src/components/svg-and-icon/index.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/src/lang/modules/enUS.ts b/src/lang/modules/enUS.ts index f2f89e1..e1492be 100644 --- a/src/lang/modules/enUS.ts +++ b/src/lang/modules/enUS.ts @@ -28,6 +28,7 @@ export default { ["draggable"]: "draggable", ["editor"]: "editor", ["newbie"]: "newbie", + ["icon-component"]: "icon component", ["user-center"]: "user center", ["markdown"]: "Markdown", ["custom-instruction"]: "custom instruction", diff --git a/src/lang/modules/zhCN.ts b/src/lang/modules/zhCN.ts index dfc6ae9..595354d 100644 --- a/src/lang/modules/zhCN.ts +++ b/src/lang/modules/zhCN.ts @@ -28,6 +28,7 @@ export default { ["draggable"]: "拖拽", ["editor"]: "富文本", ["newbie"]: "新手指引", + ["icon-component"]: "icon组件", ["user-center"]: "用户中心", ["markdown"]: "Markdown", ["custom-instruction"]: "自定义指令", diff --git a/src/router/route.ts b/src/router/route.ts index be2bdca..8a20771 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -388,6 +388,23 @@ export const dynamicRoutes: RouteRecordRaw[] = [ sort: 5 } }, + { + path: "/common-component/icon-component", + name: "icon-component", + component: () => import("@/views/common-component/icon-component/icon-component.vue"), + meta: { + title: "icon-component", + hide: false, + disable: false, + keepAlive: true, + affix: false, + link: "", + iframe: false, + roles: ["admin"], + icon: "icon-menu", + sort: 6 + } + }, { path: "/common-component/user-center", name: "user-center", @@ -402,7 +419,7 @@ export const dynamicRoutes: RouteRecordRaw[] = [ iframe: false, roles: ["admin"], icon: "icon-menu", - sort: 6 + sort: 7 } } ] diff --git a/src/views/common-component/icon-component/icon-component.vue b/src/views/common-component/icon-component/icon-component.vue new file mode 100644 index 0000000..cd4828f --- /dev/null +++ b/src/views/common-component/icon-component/icon-component.vue @@ -0,0 +1,51 @@ + + + + + diff --git a/src/views/common-component/print/print.vue b/src/views/common-component/print/print.vue index d1689f1..deb817e 100644 --- a/src/views/common-component/print/print.vue +++ b/src/views/common-component/print/print.vue @@ -2,43 +2,46 @@
- - ArcoDesign - - The ArcoDesign component library defines a set of default particle variables, and a custom theme is to - customize and - overwrite this variable list. - - - A design is a plan or specification for the construction of an object or system or for the implementation of an - activity or process, or the result of that plan or specification in the form of a - prototype, product or - process. The verb to design expresses the process of developing a design. - - - A design is a plan or specification for the construction of an object or system or for the implementation of an - activity or process. - - -
    -
  • - Architectural blueprints -
      -
    • Architectural blueprints
    • -
    -
  • -
  • Engineering drawings
  • -
  • Business processes
  • -
-
- -
    -
  1. Architectural blueprints
  2. -
  3. Engineering drawings
  4. -
  5. Business processes
  6. -
-
-
+
+ + ArcoDesign + + The ArcoDesign component library defines a set of default particle variables, and a custom theme is to + customize and + overwrite this variable list. + + + A design is a plan or specification for the construction of an object or system or for the implementation of an + activity or process, or the result of that plan or specification in the form of a + prototype, product or + process. The verb to design expresses the process of developing a + design. + + + A design is a plan or specification for the construction of an object or system or for the implementation of an + activity or process. + + +
    +
  • + Architectural blueprints +
      +
    • Architectural blueprints
    • +
    +
  • +
  • Engineering drawings
  • +
  • Business processes
  • +
+
+ +
    +
  1. Architectural blueprints
  2. +
  3. Engineering drawings
  4. +
  5. Business processes
  6. +
+
+
+
打印
采用开源打印库:printjs
@@ -50,7 +53,14 @@ import print from "print-js"; const onPrint = () => { - print("myTypography", "html"); + print({ + printable: "myTypography", // id节点 + type: "html", // 打印方式,这里选择html + header: "", // 是否定义头部,这里选择不定义 + scanStyles: false, // 当设置为 false 时,库将不会处理应用于正在打印的 html 的样式,转而使用style自定义样式 + maxWidth: 9999, // 页面最大宽度 + targetStyles: ["*"] + }); };