bi-element-ui 1.1.0 → 1.1.2
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/lib/bi-element-ui.common.js +388 -498
- package/lib/bi-element-ui.css +1 -1
- package/lib/bi-element-ui.umd.js +388 -498
- package/lib/bi-element-ui.umd.min.js +44 -44
- package/package.json +1 -1
- package/src/components/BiTableColumn/index.vue +0 -11
- package/src/views/Home.vue +5 -4
- package/src/views/Table.vue +0 -4
package/package.json
CHANGED
@@ -252,7 +252,6 @@ export default {
|
|
252
252
|
}
|
253
253
|
},
|
254
254
|
mounted() {
|
255
|
-
// console.log(this.tableColumn)
|
256
255
|
const params = {
|
257
256
|
type: this.listType
|
258
257
|
}
|
@@ -260,22 +259,15 @@ export default {
|
|
260
259
|
this.getList(params)
|
261
260
|
this.returnColumn()
|
262
261
|
},
|
263
|
-
// created() {
|
264
|
-
// this.list = this.colList
|
265
|
-
// },
|
266
262
|
beforeDestroy() {
|
267
263
|
this.visible = false
|
268
264
|
},
|
269
265
|
methods: {
|
270
266
|
// 获取列表
|
271
267
|
defaultColumnInit() {
|
272
|
-
// console.log('defaultColumnInit')
|
273
268
|
const localData = this.getLocalStorage()
|
274
269
|
const { left, center, right } = localData || this.defaultColumn
|
275
270
|
|
276
|
-
// this.leftColumnList = []
|
277
|
-
// this.columnList = []
|
278
|
-
// this.rightColumnList = []
|
279
271
|
left.map((prop) => {
|
280
272
|
this.checkList.push(prop)
|
281
273
|
const column = this.tableColumnList.find((item) => item.prop === prop)
|
@@ -291,11 +283,8 @@ export default {
|
|
291
283
|
const column = this.tableColumnList.find((item) => item.prop === prop)
|
292
284
|
column && this.rightColumnList.push(column)
|
293
285
|
})
|
294
|
-
// console.log(this.checkList)
|
295
286
|
},
|
296
287
|
async getList(params) {
|
297
|
-
// const res = await getTheadList(params)
|
298
|
-
// if (res.status_code === 1) {
|
299
288
|
this.colList = [
|
300
289
|
{
|
301
290
|
content: '分组1',
|
package/src/views/Home.vue
CHANGED
@@ -23,12 +23,12 @@
|
|
23
23
|
|
24
24
|
<bi-table
|
25
25
|
:loading="tableLoading"
|
26
|
+
:headerPopperType="$options.name"
|
26
27
|
border
|
27
28
|
stripe
|
28
29
|
:data="data"
|
29
30
|
pagination
|
30
31
|
:sticky-top="0"
|
31
|
-
header-popper-type="test2"
|
32
32
|
:column="basicColumn"
|
33
33
|
:total="100"
|
34
34
|
show-summary
|
@@ -276,6 +276,7 @@ import TableData from '@/table.js'
|
|
276
276
|
// import BiTableColumn from '@/components/BiTableColumn'
|
277
277
|
import BiTooltipIcon from '@/components/BiTooltipIcon'
|
278
278
|
export default {
|
279
|
+
name: 'HomePage',
|
279
280
|
components: {
|
280
281
|
BiTooltipIcon
|
281
282
|
// BiTable
|
@@ -341,6 +342,9 @@ export default {
|
|
341
342
|
dialogVisible: false
|
342
343
|
}
|
343
344
|
},
|
345
|
+
mounted() {
|
346
|
+
console.log(this.$options.name)
|
347
|
+
},
|
344
348
|
methods: {
|
345
349
|
selectionChange(rows) {
|
346
350
|
console.log('selected', rows)
|
@@ -361,9 +365,6 @@ export default {
|
|
361
365
|
|
362
366
|
getSummaries() {
|
363
367
|
return ['合计', '2016-05-03', '王小虎', '上海', '普陀区', '上海市普陀区金沙江路 1518 弄', '上海市普陀区金沙江路 1518 弄', 200333]
|
364
|
-
},
|
365
|
-
handleHeaderClick(column, event) {
|
366
|
-
console.log('🚀 ~ handleHeaderClick ~ column, event:', column, event)
|
367
368
|
}
|
368
369
|
}
|
369
370
|
}
|
package/src/views/Table.vue
CHANGED
@@ -280,15 +280,11 @@
|
|
280
280
|
</template>
|
281
281
|
|
282
282
|
<script>
|
283
|
-
// import CryptoJS from 'crypto-js/md5'
|
284
283
|
import TableData from '@/table.js'
|
285
|
-
import BiTableColumn from '@/components/BiTableColumn'
|
286
284
|
import BiTooltipIcon from '@/components/BiTooltipIcon'
|
287
285
|
export default {
|
288
286
|
components: {
|
289
287
|
BiTooltipIcon
|
290
|
-
// BiTableColumn
|
291
|
-
// BiTable
|
292
288
|
},
|
293
289
|
mixins: [TableData],
|
294
290
|
data() {
|