2024-07-14 10:29:24 +08:00
|
|
|
|
<template>
|
2024-08-18 16:53:17 +08:00
|
|
|
|
<div class="snow-page">
|
2024-09-04 13:03:57 +08:00
|
|
|
|
<div class="snow-inner-page">
|
|
|
|
|
|
<a-space direction="vertical">
|
2024-10-26 22:40:52 +08:00
|
|
|
|
<div style="margin-top: -40px">
|
|
|
|
|
|
<a-typography id="myTypography">
|
|
|
|
|
|
<a-typography-title :heading="2">ArcoDesign</a-typography-title>
|
|
|
|
|
|
<a-typography-paragraph>
|
|
|
|
|
|
The ArcoDesign component library defines a set of default particle variables, and a custom theme is to
|
|
|
|
|
|
<a-typography-text mark>customize</a-typography-text> and
|
|
|
|
|
|
<a-typography-text underline>overwrite</a-typography-text> this variable list.
|
|
|
|
|
|
</a-typography-paragraph>
|
|
|
|
|
|
<a-typography-paragraph blockquote>
|
|
|
|
|
|
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
|
|
|
|
|
|
<a-typography-text code>prototype</a-typography-text>, <a-typography-text code>product</a-typography-text> or
|
|
|
|
|
|
<a-typography-text code>process</a-typography-text>. The verb to design expresses the process of developing a
|
|
|
|
|
|
design.
|
|
|
|
|
|
</a-typography-paragraph>
|
|
|
|
|
|
<a-typography-paragraph mark underline delete>
|
|
|
|
|
|
A design is a plan or specification for the construction of an object or system or for the implementation of an
|
|
|
|
|
|
activity or process.
|
|
|
|
|
|
</a-typography-paragraph>
|
|
|
|
|
|
<a-typography-paragraph>
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
<li>
|
|
|
|
|
|
Architectural blueprints
|
|
|
|
|
|
<ul>
|
|
|
|
|
|
<li>Architectural blueprints</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
<li>Engineering drawings</li>
|
|
|
|
|
|
<li>Business processes</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</a-typography-paragraph>
|
|
|
|
|
|
<a-typography-paragraph>
|
|
|
|
|
|
<ol>
|
|
|
|
|
|
<li>Architectural blueprints</li>
|
|
|
|
|
|
<li>Engineering drawings</li>
|
|
|
|
|
|
<li>Business processes</li>
|
|
|
|
|
|
</ol>
|
|
|
|
|
|
</a-typography-paragraph>
|
|
|
|
|
|
</a-typography>
|
|
|
|
|
|
</div>
|
2024-09-04 13:03:57 +08:00
|
|
|
|
<a-button type="primary" @click="onPrint">打印</a-button>
|
|
|
|
|
|
<div>采用开源打印库:<a-link href="https://printjs.crabbly.com/" target="_blank">printjs</a-link></div>
|
|
|
|
|
|
</a-space>
|
|
|
|
|
|
</div>
|
2024-07-14 13:16:55 +08:00
|
|
|
|
</div>
|
2024-07-14 10:29:24 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
2024-07-14 13:16:55 +08:00
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
import print from "print-js";
|
2024-07-14 10:29:24 +08:00
|
|
|
|
|
2024-07-14 13:16:55 +08:00
|
|
|
|
const onPrint = () => {
|
2024-10-26 22:40:52 +08:00
|
|
|
|
print({
|
|
|
|
|
|
printable: "myTypography", // id节点
|
|
|
|
|
|
type: "html", // 打印方式,这里选择html
|
|
|
|
|
|
header: "", // 是否定义头部,这里选择不定义
|
|
|
|
|
|
scanStyles: false, // 当设置为 false 时,库将不会处理应用于正在打印的 html 的样式,转而使用style自定义样式
|
|
|
|
|
|
maxWidth: 9999, // 页面最大宽度
|
|
|
|
|
|
targetStyles: ["*"]
|
|
|
|
|
|
});
|
2024-07-14 13:16:55 +08:00
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-size: $font-size-title-5;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|