@bsgoal/common 2.13.0 → 2.13.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsgoal/common",
3
- "version": "2.13.0",
3
+ "version": "2.13.1",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -2,7 +2,7 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-06-20 09:20:51
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-06-25 10:06:54
5
+ * @LastEditTime: 2023-06-25 15:22:12
6
6
  * @FilePath: \common\src\components\bsgoal-base-tree-table\demo.vue
7
7
  * @Description: 树 + 列表 + 演示
8
8
  *
@@ -23,7 +23,7 @@ const props = defineProps({})
23
23
  // ---> S 树 <---
24
24
 
25
25
  const triggerTreeClick = (value, node, treeNode, event) => {
26
- console.log('triggerTreeClick =========================');
26
+ console.log('triggerTreeClick =========================')
27
27
  console.log('value', value)
28
28
  console.log('node', node)
29
29
  console.log('treeNode', treeNode)
@@ -787,19 +787,23 @@ const treeData = ref([
787
787
  label: 'label2-3'
788
788
  }
789
789
  ])
790
+ const BSGOAL_BASE_TREE_TABLE_REF = ref(null)
791
+ const test = () => {
792
+ BSGOAL_BASE_TREE_TABLE_REF.value.refreshList({ prop: 111 })
793
+ }
790
794
 
791
795
  // ---> E 列表 <---
792
796
  </script>
793
797
  <template>
794
798
  <div class="bsgoal-base-tree-table-demo">
795
799
  <div class="base_tree_table_demo">
800
+ <!-- <div @click="test">点击</div> -->
796
801
  <BsgoalBaseTreeTable
802
+ ref="BSGOAL_BASE_TREE_TABLE_REF"
797
803
  selection
798
804
  operation
799
805
  :tree-data="treeData"
800
806
  :page-size="40"
801
- :lazy-load="treeLazyLoad"
802
- :init-node="treeInitNode"
803
807
  :fetch="fetch"
804
808
  :config-options="configOptions"
805
809
  :expression="77"
@@ -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-06-25 09:52:47
5
+ * @LastEditTime: 2023-06-25 15:20:18
6
6
  * @FilePath: \common\src\components\bsgoal-base-tree-table\index.vue
7
7
  * @Description: 树结构 + 列表
8
8
  *
@@ -197,6 +197,20 @@ const triggerTreeClick = (value, node, treeNode, event) => {
197
197
 
198
198
  // ---> E 树 <---
199
199
 
200
+ // ---> S 表 <---
201
+ const BSGOAL_BASE_SEARCH_TABLE_REF = ref(null)
202
+ const refreshList = (params = {}) => {
203
+ console.log('params',params);
204
+ BSGOAL_BASE_SEARCH_TABLE_REF.value.refreshList(params)
205
+ }
206
+
207
+ // 暴露的属性
208
+ defineExpose({
209
+ refreshList
210
+ })
211
+
212
+ // ---> E 表 <---
213
+
200
214
  const tableStyler = computed(() => {
201
215
  const styler = {}
202
216
  const switchStatusValue = switchStatus.value
@@ -225,7 +239,7 @@ const tableStyler = computed(() => {
225
239
  </div>
226
240
  <div class="base_tree_table--table" :style="tableStyler">
227
241
  <!-- S 列表 -->
228
- <BsgoalBaseSearchTable v-bind="$props">
242
+ <BsgoalBaseSearchTable ref="BSGOAL_BASE_SEARCH_TABLE_REF" v-bind="$props">
229
243
  <template v-for="slotName of slotNames" v-slot:[slotName]="{ row = {} }">
230
244
  <slot :name="slotName" :row="row"></slot>
231
245
  </template>