-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
52 lines (52 loc) · 1.17 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--button-height: 32px;
--font-size: 14px;
--button-bg: #fff;
--button-bg-active: #eee;
--border-radius: 4px;
--border-color: #999;
--border-color-hover: #666;
}
#app {
margin: 150px;
}
.line {
height: 1px;
background: #000;
margin: 20px auto;
}
.all {
height: 100vh;
}
.demo {
border: 1px solid red;
min-height: 100px;
}
</style>
</head>
<body>
<div id="app">
<xr-table :expand="true" :has-checkbox="true" :columns="columns" :data-source="dataSource" bordered :selected-items.sync="selectedItems" @sort="sort" :loading="loadingTable" height="300">
<template v-slot:op>
<xr-button @click="editTable">编辑</xr-button>
<xr-button @click="lookTable">查看</xr-button>
</template>
</xr-table>
{{selectedItems}}
</div>
<script src="./src/app.js"></script>
</body>
</html>