@bsgoal/common 2.16.1 → 2.16.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/dist/index.mjs +576 -564
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-search-table/index.vue +3 -3
- package/src/components/bsgoal-base-table/demo.vue +3 -2
- package/src/components/bsgoal-base-table/index.vue +3 -3
- package/src/components/bsgoal-base-tree-table/index.vue +3 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-18 17:04:47
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-07-
|
|
5
|
+
* @LastEditTime: 2023-07-11 11:04:07
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-search-table\index.vue
|
|
7
7
|
* @Description: 查询+表格 基础组件
|
|
8
8
|
*
|
|
@@ -276,8 +276,8 @@ defineExpose({
|
|
|
276
276
|
>
|
|
277
277
|
<!-- S 顶部菜单 -->
|
|
278
278
|
|
|
279
|
-
<template v-for="slotName of slotNames" v-slot:[slotName]="{ row = {} }">
|
|
280
|
-
<slot :name="slotName" :row="row"></slot>
|
|
279
|
+
<template v-for="slotName of slotNames" v-slot:[slotName]="{ row = {} , column = {} , index = 0 }">
|
|
280
|
+
<slot :name="slotName" :row="row" :column="column" :index="index"></slot>
|
|
281
281
|
</template>
|
|
282
282
|
<!-- E 顶部菜单 -->
|
|
283
283
|
</BsgoalBaseTable>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-10 14:26:44
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-07-11 11:01:43
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-table\demo.vue
|
|
7
7
|
* @Description: 表格公共组件演示页面
|
|
8
8
|
*
|
|
@@ -282,9 +282,10 @@ const clearSelection = () => {
|
|
|
282
282
|
@selection-change="triggerSelectionChange"
|
|
283
283
|
>
|
|
284
284
|
<!-- S 操作项 -->
|
|
285
|
-
<template v-slot:operation="{ row }">
|
|
285
|
+
<template v-slot:operation="{ row , index }">
|
|
286
286
|
<div>
|
|
287
287
|
<!-- {{ row }} -->
|
|
288
|
+
{{ index }}
|
|
288
289
|
</div>
|
|
289
290
|
</template>
|
|
290
291
|
<!-- E 操作项 -->
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-10 11:29:04
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-07-
|
|
5
|
+
* @LastEditTime: 2023-07-11 11:01:20
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-table\index.vue
|
|
7
7
|
* @Description:
|
|
8
8
|
*
|
|
@@ -398,8 +398,8 @@ defineExpose({
|
|
|
398
398
|
:min-width="`${label.length * 14 + 30}px`"
|
|
399
399
|
:max-width="`${label.length * 14 + 30}px`"
|
|
400
400
|
>
|
|
401
|
-
<template v-slot:default="{ row }">
|
|
402
|
-
<slot :name="prop" :row="row">
|
|
401
|
+
<template v-slot:default="{ row ,column, $index }">
|
|
402
|
+
<slot :name="prop" :row="row" :column="column" :index="$index">
|
|
403
403
|
<BsgoalBaseTableContent :limit="limit" :tooltip="tooltip" :data="row[prop]" />
|
|
404
404
|
</slot>
|
|
405
405
|
</template>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-06-20 09:20:44
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-07-
|
|
5
|
+
* @LastEditTime: 2023-07-11 11:05:09
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-tree-table\index.vue
|
|
7
7
|
* @Description: 树结构 + 列表
|
|
8
8
|
*
|
|
@@ -323,8 +323,8 @@ const tableStyler = computed(() => {
|
|
|
323
323
|
@selection-change="triggerSelectionChange"
|
|
324
324
|
@on-total-change="triggerTotalChange"
|
|
325
325
|
>
|
|
326
|
-
<template v-for="slotName of slotNames" v-slot:[slotName]="{ row = {} }">
|
|
327
|
-
<slot :name="slotName" :row="row"></slot>
|
|
326
|
+
<template v-for="slotName of slotNames" v-slot:[slotName]="{ row = {} , column={} , index = 0 }">
|
|
327
|
+
<slot :name="slotName" :row="row" :column="column" :index="index"></slot>
|
|
328
328
|
</template>
|
|
329
329
|
</BsgoalBaseSearchTable>
|
|
330
330
|
<!-- E 列表 -->
|