bi-element-ui 0.1.47 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +3 -3
- package/.eslintrc.js +287 -287
- package/.prettierrc +7 -7
- package/README.md +148 -148
- package/cypress.json +3 -3
- package/lib/bi-element-ui.common.js +21717 -22152
- package/lib/bi-element-ui.css +1 -1
- package/lib/bi-element-ui.umd.js +21717 -22152
- package/lib/bi-element-ui.umd.min.js +150 -150
- package/lib/static/img/swiperBg.png +0 -0
- package/package.json +57 -57
- package/src/App.vue +42 -42
- package/src/components/BiDatePicker/datePickerOption.js +229 -229
- package/src/components/BiDatePicker/index.vue +74 -74
- package/src/components/BiTable/columu.vue +104 -104
- package/src/components/BiTable/forced.js +76 -76
- package/src/components/BiTable/index.js +6 -6
- package/src/components/BiTable/render.vue +13 -13
- package/src/components/BiTable/table.vue +202 -202
- package/src/components/BiTableColumn/Group.vue +277 -277
- package/src/components/BiTableColumn/api.js +16 -16
- package/src/components/BiTableColumn/index.vue +614 -614
- package/src/components/BiTooltipIcon/index.vue +71 -71
- package/src/components/EditBtn.vue +15 -15
- package/src/components/FreeButton/index.vue +69 -69
- package/src/components/Pagination/index.vue +104 -104
- package/src/components/Pagination/scrollTo.js +69 -69
- package/src/main.js +18 -18
- package/src/router/index.js +39 -39
- package/src/store/index.js +11 -11
- package/src/table.js +463 -463
- package/src/views/Date.vue +132 -132
- package/src/views/Home.vue +330 -330
- package/src/views/Scene.vue +140 -140
- package/src/views/Table.vue +220 -220
- package/src/views/showData.vue +455 -455
- package/tests/e2e/.eslintrc.js +10 -10
- package/tests/e2e/plugins/index.js +25 -25
- package/tests/e2e/specs/test.js +8 -8
- package/tests/e2e/support/commands.js +25 -25
- package/tests/e2e/support/index.js +20 -20
- package/tests/unit/example.spec.js +13 -13
- package/dist/css/about.6cfcc147.css +0 -1
- package/dist/css/chunk-vendors.8140bef9.css +0 -1
- package/dist/css/index.59a106c6.css +0 -1
- package/dist/favicon.ico +0 -0
- package/dist/fonts/element-icons.535877f5.woff +0 -0
- package/dist/fonts/element-icons.732389de.ttf +0 -0
- package/dist/index.html +0 -1
- package/dist/js/about.a5370aa0.js +0 -2
- package/dist/js/chunk-vendors.a9a38d93.js +0 -318
- package/dist/js/index.8837e62a.js +0 -2
package/src/views/Scene.vue
CHANGED
@@ -1,140 +1,140 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="free-table-container">
|
3
|
-
<free-button @search="search"></free-button>
|
4
|
-
|
5
|
-
<free-table
|
6
|
-
v-loading="loading"
|
7
|
-
style="min-height: 50vh"
|
8
|
-
border
|
9
|
-
pagination
|
10
|
-
:data="data"
|
11
|
-
:column="column"
|
12
|
-
:total="total"
|
13
|
-
:page.sync="params.page"
|
14
|
-
:limit.sync="params.limit"
|
15
|
-
@pagination="getList"
|
16
|
-
></free-table>
|
17
|
-
|
18
|
-
<el-dialog
|
19
|
-
title="收货地址"
|
20
|
-
:visible.sync="dialogVisible"
|
21
|
-
>
|
22
|
-
<el-form
|
23
|
-
:model="editForm"
|
24
|
-
label-width="100px"
|
25
|
-
>
|
26
|
-
<el-form-item label="名称">
|
27
|
-
<el-input
|
28
|
-
v-model="editForm.title"
|
29
|
-
autocomplete="off"
|
30
|
-
></el-input>
|
31
|
-
</el-form-item>
|
32
|
-
<el-form-item
|
33
|
-
v-if="editForm.author"
|
34
|
-
label="作者"
|
35
|
-
>
|
36
|
-
<el-input v-model="editForm.author.loginname"></el-input>
|
37
|
-
</el-form-item>
|
38
|
-
</el-form>
|
39
|
-
<div
|
40
|
-
slot="footer"
|
41
|
-
class="dialog-footer"
|
42
|
-
>
|
43
|
-
<el-button @click="dialogVisible = false">取 消</el-button>
|
44
|
-
<el-button
|
45
|
-
type="primary"
|
46
|
-
@click="dialogVisible = false"
|
47
|
-
>确 定</el-button>
|
48
|
-
</div>
|
49
|
-
</el-dialog>
|
50
|
-
</div>
|
51
|
-
</template>
|
52
|
-
|
53
|
-
<script>
|
54
|
-
import FreeButton from '@/components/FreeButton'
|
55
|
-
import FreeTable from '@/components/FreeTable'
|
56
|
-
import axios from 'axios'
|
57
|
-
|
58
|
-
export default {
|
59
|
-
components: {
|
60
|
-
FreeButton,
|
61
|
-
FreeTable
|
62
|
-
},
|
63
|
-
data() {
|
64
|
-
return {
|
65
|
-
column: [
|
66
|
-
{ prop: 'title', label: '名称', minWidth: 200 },
|
67
|
-
{
|
68
|
-
prop: 'author',
|
69
|
-
label: '作者',
|
70
|
-
render: (h, scope) => {
|
71
|
-
return <span>{scope.row.author.loginname}</span>
|
72
|
-
}
|
73
|
-
},
|
74
|
-
{ prop: 'tab', label: '类目' },
|
75
|
-
{ prop: 'reply_count', label: '回复数', width: 100 },
|
76
|
-
{ prop: 'visit_count', label: '预览量', width: 100 },
|
77
|
-
{
|
78
|
-
prop: 'action',
|
79
|
-
label: '操作',
|
80
|
-
render: (h, scope) => {
|
81
|
-
return (
|
82
|
-
<div>
|
83
|
-
<el-button type="text" size="small" class="el-icon-edit" onClick={() => this.openDialog(scope)}>
|
84
|
-
编辑
|
85
|
-
</el-button>
|
86
|
-
<el-button type="text" size="small" class="el-icon-delete" onClick={() => this.delHandle(scope)}>
|
87
|
-
删除
|
88
|
-
</el-button>
|
89
|
-
</div>
|
90
|
-
)
|
91
|
-
}
|
92
|
-
}
|
93
|
-
],
|
94
|
-
loading: false,
|
95
|
-
data: [],
|
96
|
-
total: 0,
|
97
|
-
params: {
|
98
|
-
tab: 'share',
|
99
|
-
page: 1,
|
100
|
-
limit: 10
|
101
|
-
},
|
102
|
-
editForm: {},
|
103
|
-
dialogVisible: false
|
104
|
-
}
|
105
|
-
},
|
106
|
-
mounted() {
|
107
|
-
this.getList()
|
108
|
-
},
|
109
|
-
methods: {
|
110
|
-
async getList() {
|
111
|
-
this.loading = true
|
112
|
-
const { params } = this
|
113
|
-
const url = 'https://cnodejs.org/api/v1/topics'
|
114
|
-
const { data } = await axios({ method: 'get', url, params })
|
115
|
-
this.data = data.data || []
|
116
|
-
this.total = 500
|
117
|
-
this.loading = false
|
118
|
-
},
|
119
|
-
|
120
|
-
async delHandle({ row }) {
|
121
|
-
console.log(row)
|
122
|
-
await this.$message.success('这是一条删除成功提示')
|
123
|
-
},
|
124
|
-
|
125
|
-
openDialog({ row }) {
|
126
|
-
this.editForm = Object.assign({}, row)
|
127
|
-
this.dialogVisible = true
|
128
|
-
},
|
129
|
-
search() {
|
130
|
-
alert(12)
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
</script>
|
135
|
-
|
136
|
-
<style>
|
137
|
-
.free-table-container {
|
138
|
-
margin: 20px 50px;
|
139
|
-
}
|
140
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="free-table-container">
|
3
|
+
<free-button @search="search"></free-button>
|
4
|
+
|
5
|
+
<free-table
|
6
|
+
v-loading="loading"
|
7
|
+
style="min-height: 50vh"
|
8
|
+
border
|
9
|
+
pagination
|
10
|
+
:data="data"
|
11
|
+
:column="column"
|
12
|
+
:total="total"
|
13
|
+
:page.sync="params.page"
|
14
|
+
:limit.sync="params.limit"
|
15
|
+
@pagination="getList"
|
16
|
+
></free-table>
|
17
|
+
|
18
|
+
<el-dialog
|
19
|
+
title="收货地址"
|
20
|
+
:visible.sync="dialogVisible"
|
21
|
+
>
|
22
|
+
<el-form
|
23
|
+
:model="editForm"
|
24
|
+
label-width="100px"
|
25
|
+
>
|
26
|
+
<el-form-item label="名称">
|
27
|
+
<el-input
|
28
|
+
v-model="editForm.title"
|
29
|
+
autocomplete="off"
|
30
|
+
></el-input>
|
31
|
+
</el-form-item>
|
32
|
+
<el-form-item
|
33
|
+
v-if="editForm.author"
|
34
|
+
label="作者"
|
35
|
+
>
|
36
|
+
<el-input v-model="editForm.author.loginname"></el-input>
|
37
|
+
</el-form-item>
|
38
|
+
</el-form>
|
39
|
+
<div
|
40
|
+
slot="footer"
|
41
|
+
class="dialog-footer"
|
42
|
+
>
|
43
|
+
<el-button @click="dialogVisible = false">取 消</el-button>
|
44
|
+
<el-button
|
45
|
+
type="primary"
|
46
|
+
@click="dialogVisible = false"
|
47
|
+
>确 定</el-button>
|
48
|
+
</div>
|
49
|
+
</el-dialog>
|
50
|
+
</div>
|
51
|
+
</template>
|
52
|
+
|
53
|
+
<script>
|
54
|
+
import FreeButton from '@/components/FreeButton'
|
55
|
+
import FreeTable from '@/components/FreeTable'
|
56
|
+
import axios from 'axios'
|
57
|
+
|
58
|
+
export default {
|
59
|
+
components: {
|
60
|
+
FreeButton,
|
61
|
+
FreeTable
|
62
|
+
},
|
63
|
+
data() {
|
64
|
+
return {
|
65
|
+
column: [
|
66
|
+
{ prop: 'title', label: '名称', minWidth: 200 },
|
67
|
+
{
|
68
|
+
prop: 'author',
|
69
|
+
label: '作者',
|
70
|
+
render: (h, scope) => {
|
71
|
+
return <span>{scope.row.author.loginname}</span>
|
72
|
+
}
|
73
|
+
},
|
74
|
+
{ prop: 'tab', label: '类目' },
|
75
|
+
{ prop: 'reply_count', label: '回复数', width: 100 },
|
76
|
+
{ prop: 'visit_count', label: '预览量', width: 100 },
|
77
|
+
{
|
78
|
+
prop: 'action',
|
79
|
+
label: '操作',
|
80
|
+
render: (h, scope) => {
|
81
|
+
return (
|
82
|
+
<div>
|
83
|
+
<el-button type="text" size="small" class="el-icon-edit" onClick={() => this.openDialog(scope)}>
|
84
|
+
编辑
|
85
|
+
</el-button>
|
86
|
+
<el-button type="text" size="small" class="el-icon-delete" onClick={() => this.delHandle(scope)}>
|
87
|
+
删除
|
88
|
+
</el-button>
|
89
|
+
</div>
|
90
|
+
)
|
91
|
+
}
|
92
|
+
}
|
93
|
+
],
|
94
|
+
loading: false,
|
95
|
+
data: [],
|
96
|
+
total: 0,
|
97
|
+
params: {
|
98
|
+
tab: 'share',
|
99
|
+
page: 1,
|
100
|
+
limit: 10
|
101
|
+
},
|
102
|
+
editForm: {},
|
103
|
+
dialogVisible: false
|
104
|
+
}
|
105
|
+
},
|
106
|
+
mounted() {
|
107
|
+
this.getList()
|
108
|
+
},
|
109
|
+
methods: {
|
110
|
+
async getList() {
|
111
|
+
this.loading = true
|
112
|
+
const { params } = this
|
113
|
+
const url = 'https://cnodejs.org/api/v1/topics'
|
114
|
+
const { data } = await axios({ method: 'get', url, params })
|
115
|
+
this.data = data.data || []
|
116
|
+
this.total = 500
|
117
|
+
this.loading = false
|
118
|
+
},
|
119
|
+
|
120
|
+
async delHandle({ row }) {
|
121
|
+
console.log(row)
|
122
|
+
await this.$message.success('这是一条删除成功提示')
|
123
|
+
},
|
124
|
+
|
125
|
+
openDialog({ row }) {
|
126
|
+
this.editForm = Object.assign({}, row)
|
127
|
+
this.dialogVisible = true
|
128
|
+
},
|
129
|
+
search() {
|
130
|
+
alert(12)
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
</script>
|
135
|
+
|
136
|
+
<style>
|
137
|
+
.free-table-container {
|
138
|
+
margin: 20px 50px;
|
139
|
+
}
|
140
|
+
</style>
|