1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| <template>
| <el-main>
| <el-card shadow="never">
| <sc-water-mark ref="wm" text="欢迎体验SCUI" subtext="admin@scui.com">
| <el-table :data="tableData" border stripe style="width: 100%">
| <el-table-column prop="date" label="Date" width="180" />
| <el-table-column prop="name" label="Name" width="180" />
| <el-table-column prop="address" label="Address" />
| </el-table>
| </sc-water-mark>
| </el-card>
| <el-card shadow="never" style="margin-top: 15px;">
| <el-button type="primary" @click="create">创建水印</el-button>
| <el-button type="primary" @click="clear">移除水印</el-button>
| </el-card>
| </el-main>
| </template>
|
| <script>
| export default {
| name: 'watermark',
| data() {
| return {
| tableData: [
| {
| date: '2016-05-03',
| name: 'Tom',
| address: 'No. 189, Grove St, Los Angeles',
| },
| {
| date: '2016-05-02',
| name: 'Tom',
| address: 'No. 189, Grove St, Los Angeles',
| },
| {
| date: '2016-05-04',
| name: 'Tom',
| address: 'No. 189, Grove St, Los Angeles',
| },
| {
| date: '2016-05-01',
| name: 'Tom',
| address: 'No. 189, Grove St, Los Angeles',
| },
| ]
| }
| },
| mounted() {
|
| },
| methods: {
| create(){
| this.$refs.wm.create()
| },
| clear(){
| this.$refs.wm.clear()
| }
| }
| }
| </script>
|
| <style>
| </style>
|
|