@bsgoal/common 1.4.6 → 1.4.8

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/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.bsgoal-base-form .base_form{padding:16px 6px 8px 16px}.bsgoal-base-form .base_form .el-form-item{margin-right:10px}.bsgoal-base-form .base_form div.el-input,.bsgoal-base-form .base_form div.el-select{width:100%}.bsgoal-base-table-pagination{text-align:right}.bsgoal-base-table-pagination .base_table_pagination{display:inline-block;margin-top:16px}.bsgoal-base-table .base_table{padding:16px}.bsgoal-base-table .base_table_menu{margin-bottom:8px}.bsgoal-base-table .el-table__body-wrapper{overflow-y:hidden!important}.bsgoal-base-line .base_line{height:10px;background-color:#f0f2f5}.bsgoal-base-line .bsgoal-base-line__vertical{display:inline-block;height:100%}.bsgoal-base-line .base_line__vertical{width:10px;height:100%}.bsgoal-base-search-operation{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.bsgoal-base-search-operation .operation_fold{margin-left:12px;cursor:pointer;min-width:3em}.bsgoal-base-cascader{width:100%}.bsgoal-base-cascader .base_cascader{width:inherit}.bsgoal-base-search .base_search{padding:16px 6px 8px 16px}.bsgoal-base-search .base_search .el-form-item{margin-bottom:8px;margin-right:10px}.bsgoal-base-search .base_search div.el-input,.bsgoal-base-search .base_search div.el-select{width:100%}.bsgoal-base-tree-fold .base_tree_fold{position:absolute;top:0;bottom:0;right:10px;margin:auto;width:14px;height:38px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:10px;background-color:#409eff}.bsgoal-base-tree-fold .base_tree_fold--hide{right:0px}.bsgoal-base-tree{display:inline-block}.bsgoal-base-tree .base_tree{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;min-width:14px}.bsgoal-base-tree .base_tree_main{width:221px;padding:16px;scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:auto}.bsgoal-base-tree .base_tree_main::-webkit-scrollbar{width:6px;height:6px}.bsgoal-base-tree .base_tree_main::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.2);width:20px}.bsgoal-base-tree .base_tree_main::-webkit-scrollbar-track{background-color:#fff}.bsgoal-base-tree .base_tree_main_input{margin-bottom:10px}.bsgoal-base-tree .base_tree .el-tree-node__content>i.el-tree-node__expand-icon{padding-left:0}.bsgoal-base-dialog .base_dialog_header{font-weight:500;color:#303133;font-size:16px}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__header{padding:16px 30px;margin-right:0;background-color:#f5f7fa}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__header .el-dialog__headerbtn{top:0px;right:8px}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__body{padding:0 0 30px 30px}
1
+ @charset "UTF-8";.bsgoal-base-form .base_form{padding:16px 6px 8px 16px}.bsgoal-base-form .base_form .el-form-item{margin-right:10px}.bsgoal-base-form .base_form div.el-input,.bsgoal-base-form .base_form div.el-select{width:100%}.bsgoal-base-table-pagination{text-align:right}.bsgoal-base-table-pagination .base_table_pagination{display:inline-block;margin-top:16px}.bsgoal-base-table-empty .base_table_empty{text-align:center}.bsgoal-base-table-empty .base_table_empty_img{padding-top:16px;line-height:initial}.bsgoal-base-table-empty .base_table_empty_text{display:inline-block}.bsgoal-base-table .base_table{padding:16px}.bsgoal-base-table .base_table_menu{margin-bottom:8px}.bsgoal-base-table .el-table__body-wrapper{overflow-y:hidden!important}.bsgoal-base-table .el-scrollbar__view{height:100%}.bsgoal-base-line .base_line{height:10px;background-color:#f0f2f5}.bsgoal-base-line .bsgoal-base-line__vertical{display:inline-block;height:100%}.bsgoal-base-line .base_line__vertical{width:10px;height:100%}.bsgoal-base-search-operation{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.bsgoal-base-search-operation .operation_fold{margin-left:12px;cursor:pointer;min-width:3em}.bsgoal-base-cascader{width:100%}.bsgoal-base-cascader .base_cascader{width:inherit}.bsgoal-base-search .base_search{padding:16px 6px 8px 16px}.bsgoal-base-search .base_search .el-form-item{margin-bottom:8px;margin-right:10px}.bsgoal-base-search .base_search div.el-input,.bsgoal-base-search .base_search div.el-select{width:100%}.bsgoal-base-tree-fold .base_tree_fold{position:absolute;top:0;bottom:0;right:10px;margin:auto;width:14px;height:38px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:10px;background-color:#409eff}.bsgoal-base-tree-fold .base_tree_fold--hide{right:0px}.bsgoal-base-tree{display:inline-block}.bsgoal-base-tree .base_tree{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;min-width:14px}.bsgoal-base-tree .base_tree_main{width:221px;padding:16px;scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:auto}.bsgoal-base-tree .base_tree_main::-webkit-scrollbar{width:6px;height:6px}.bsgoal-base-tree .base_tree_main::-webkit-scrollbar-thumb{border-radius:10px;background:rgba(0,0,0,.2);width:20px}.bsgoal-base-tree .base_tree_main::-webkit-scrollbar-track{background-color:#fff}.bsgoal-base-tree .base_tree_main_input{margin-bottom:10px}.bsgoal-base-tree .base_tree .el-tree-node__content>i.el-tree-node__expand-icon{padding-left:0}.bsgoal-base-dialog .base_dialog_header{font-weight:500;color:#303133;font-size:16px}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__header{padding:16px 30px;margin-right:0;background-color:#f5f7fa}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__header .el-dialog__headerbtn{top:0px;right:8px}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__body{padding:0 0 30px 30px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsgoal/common",
3
- "version": "1.4.6",
3
+ "version": "1.4.8",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -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-04-27 14:16:07
5
+ * @LastEditTime: 2023-04-28 08:46:38
6
6
  * @FilePath: \common\src\components\bsgoal-base-search-table\index.vue
7
7
  * @Description: 查询+表格 基础组件
8
8
  *
@@ -31,6 +31,8 @@ const props = defineProps({
31
31
  *
32
32
  * value: '' // 初始值 (查询)
33
33
  * type : '' // 查询组件的类型 (查询)
34
+ * item : false // 只为查询项
35
+ * single : false // 机构选择器配置为单个值输出
34
36
  *
35
37
  *
36
38
  * width: 0 // 列宽度 (表格)
@@ -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-04-25 11:06:42
5
+ * @LastEditTime: 2023-04-28 09:37:59
6
6
  * @FilePath: \common\src\components\bsgoal-base-table\demo.vue
7
7
  * @Description: 表格公共组件演示页面
8
8
  *
@@ -246,10 +246,19 @@ const options = ref([
246
246
  prop: 'prop6'
247
247
  },
248
248
  ])
249
+
250
+ const clearData = () => {
251
+
252
+ data.value = []
253
+ }
254
+
255
+
256
+
249
257
  </script>
250
258
  <template>
251
259
  <div class="bsgoal-base-table-demo">
252
260
  <!-- <BsgoalBaseSearch :config-options="searchOptions" /> -->
261
+ <el-button type="primary" @click="clearData">设置为空数据</el-button>
253
262
  <BsgoalBaseTable operation operationWidth="200" selection :config-options="options" :data="data" >
254
263
  <template v-slot:operation="{ row }">
255
264
  <div>
@@ -257,6 +266,7 @@ const options = ref([
257
266
  </div>
258
267
  </template>
259
268
  </BsgoalBaseTable>
269
+ <hr />
260
270
 
261
271
  </div>
262
272
  </template>
@@ -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-04-27 18:02:13
5
+ * @LastEditTime: 2023-04-28 09:27:13
6
6
  * @FilePath: \common\src\components\bsgoal-base-table\index.vue
7
7
  * @Description:
8
8
  *
@@ -19,6 +19,7 @@ export default {
19
19
  import { ref, computed, unref, inject, watchEffect, watch } from 'vue'
20
20
  import BsgoalBaseTableContent from '../bsgoal-base-table-content/index.vue'
21
21
  import BsgoalBaseTablePagination from '../bsgoal-base-table-pagination/index.vue'
22
+ import BsgoalBaseTableEmpty from '../bsgoal-base-table-empty/index.vue'
22
23
  import { useAutoHeight } from '../../combines/useComs.js'
23
24
  import { useFetch } from '../../combines/useFetchs.js'
24
25
 
@@ -103,8 +104,8 @@ const props = defineProps({
103
104
  /**
104
105
  * 表格高度 下边距值
105
106
  */
106
- expression:{
107
- type:[Number],
107
+ expression: {
108
+ type: [Number],
108
109
  default: 75
109
110
  }
110
111
  })
@@ -137,7 +138,7 @@ const transferFoldStatus = inject('transferFoldStatus')
137
138
  watchEffect(() => {
138
139
  const status = transferFoldStatus ? transferFoldStatus.value : false
139
140
  const expressionVal = unref(props.expression)
140
- useAutoHeight(EL_TABLE_WRAP_REF, { arg: status, expression:expressionVal })
141
+ useAutoHeight(EL_TABLE_WRAP_REF, { arg: status, expression: expressionVal })
141
142
  })
142
143
 
143
144
  // 触发搜索
@@ -221,7 +222,7 @@ defineExpose({
221
222
  >
222
223
  <!-- / 无数据展示内容 -->
223
224
  <template #empty>
224
- <!-- <BsgBaseTableEmpty /> -->
225
+ <BsgoalBaseTableEmpty />
225
226
  </template>
226
227
  <!-- / 无数据展示内容 -->
227
228
  <!-- / 多选 -->
@@ -275,7 +276,11 @@ defineExpose({
275
276
  margin-bottom: 8px;
276
277
  }
277
278
  .el-table__body-wrapper {
278
- overflow-y: hidden !important;
279
+ overflow-y: hidden !important;
280
+ }
281
+
282
+ .el-scrollbar__view {
283
+ height: 100%;
279
284
  }
280
285
  }
281
286
  </style>
@@ -0,0 +1,38 @@
1
+ <!--
2
+ * @Author: canlong.shen
3
+ * @Date: 2023-04-28 08:47:41
4
+ * @LastEditors: canlong.shen
5
+ * @LastEditTime: 2023-04-28 09:21:12
6
+ * @FilePath: \common\src\components\bsgoal-base-table-empty\demo.vue
7
+ * @Description: 表格空数据 公共组件 展示
8
+ *
9
+ -->
10
+
11
+ <script>
12
+ export default {
13
+ name: 'BsgoalBaseTableEmptyDemo'
14
+ }
15
+ </script>
16
+ <script setup>
17
+ /* setup模板
18
+ ---------------------------------------------------------------- */
19
+ import { ref } from 'vue'
20
+ import BsgoalBaseTableEmpty from './index.vue'
21
+ // props
22
+ const props = defineProps({})
23
+ </script>
24
+ <template>
25
+ <div class="bsgoal-base-table-empty-demo">
26
+ <div class="base_table_empty_demo">
27
+ <BsgoalBaseTableEmpty />
28
+ </div>
29
+ </div>
30
+ </template>
31
+ <style lang="scss" scoped>
32
+ /* 自定义样式
33
+ ---------------------------------------------------------------- */
34
+ </style>
35
+ <style lang="scss">
36
+ /* 覆盖样式
37
+ ---------------------------------------------------------------- */
38
+ </style>
@@ -0,0 +1,48 @@
1
+ <!--
2
+ * @Author: canlong.shen
3
+ * @Date: 2023-04-28 08:47:31
4
+ * @LastEditors: canlong.shen
5
+ * @LastEditTime: 2023-04-28 09:21:54
6
+ * @FilePath: \common\src\components\bsgoal-base-table-empty\index.vue
7
+ * @Description: 表格 无数据展示内容
8
+ *
9
+ -->
10
+
11
+ <script>
12
+ export default {
13
+ name: 'BsgoalBaseTableEmpty'
14
+ }
15
+ </script>
16
+
17
+ <template>
18
+ <div class="bsgoal-base-table-empty">
19
+ <div class="base_table_empty">
20
+ <div class="base_table_empty_img">
21
+ <img
22
+ src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCAxKSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxlbGxpcHNlIGZpbGw9IiNGNUY1RjUiIGN4PSIzMiIgY3k9IjMzIiByeD0iMzIiIHJ5PSI3Ii8+CiAgICA8ZyBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iI0Q5RDlEOSI+CiAgICAgIDxwYXRoIGQ9Ik01NSAxMi43Nkw0NC44NTQgMS4yNThDNDQuMzY3LjQ3NCA0My42NTYgMCA0Mi45MDcgMEgyMS4wOTNjLS43NDkgMC0xLjQ2LjQ3NC0xLjk0NyAxLjI1N0w5IDEyLjc2MVYyMmg0NnYtOS4yNHoiLz4KICAgICAgPHBhdGggZD0iTTQxLjYxMyAxNS45MzFjMC0xLjYwNS45OTQtMi45MyAyLjIyNy0yLjkzMUg1NXYxOC4xMzdDNTUgMzMuMjYgNTMuNjggMzUgNTIuMDUgMzVoLTQwLjFDMTAuMzIgMzUgOSAzMy4yNTkgOSAzMS4xMzdWMTNoMTEuMTZjMS4yMzMgMCAyLjIyNyAxLjMyMyAyLjIyNyAyLjkyOHYuMDIyYzAgMS42MDUgMS4wMDUgMi45MDEgMi4yMzcgMi45MDFoMTQuNzUyYzEuMjMyIDAgMi4yMzctMS4zMDggMi4yMzctMi45MTN2LS4wMDd6IiBmaWxsPSIjRkFGQUZBIi8+CiAgICA8L2c+CiAgPC9nPgo8L3N2Zz4K"
23
+ alt=""
24
+ />
25
+ </div>
26
+
27
+ <div class="base_table_empty_text">暂无数据</div>
28
+ </div>
29
+ </div>
30
+ </template>
31
+ <style lang="scss">
32
+ /* 覆盖样式
33
+ ---------------------------------------------------------------- */
34
+ .bsgoal-base-table-empty {
35
+ .base_table_empty {
36
+ text-align: center;
37
+ }
38
+
39
+ .base_table_empty_img {
40
+ padding-top: 16px;
41
+ line-height: initial;
42
+ }
43
+
44
+ .base_table_empty_text {
45
+ display: inline-block;
46
+ }
47
+ }
48
+ </style>
@@ -20,47 +20,52 @@ const router = createRouter({
20
20
  children: [
21
21
  {
22
22
  path: '/bsgoal-base-table-demo',
23
- name: '表格公共组件',
23
+ name: '表格',
24
24
  component: import('@/components/bsgoal-base-table/demo.vue')
25
25
  },
26
+ {
27
+ path: '/bsgoal-base-table-empty-demo',
28
+ name: '表格空内容',
29
+ component: import('@/components/bsgoal-base-table-empty/demo.vue')
30
+ },
26
31
  {
27
32
  path: '/bsgoal-base-search-demo',
28
- name: '查询公共组件',
33
+ name: '查询',
29
34
  component: import('@/components/bsgoal-base-search/demo.vue')
30
35
  },
31
36
  {
32
37
  path: '/bsgoal-base-search-table-demo',
33
- name: '查询+表格公共组件',
38
+ name: '查询+表格',
34
39
  component: import('@/components/bsgoal-base-search-table/demo.vue')
35
40
  },
36
41
  {
37
42
  path: '/bsgoal-base-form-demo',
38
- name: '表单公共组件',
43
+ name: '表单',
39
44
  component: import('@/components/bsgoal-base-form/demo.vue')
40
45
  },
41
46
  {
42
47
  path: '/bsgoal-base-frame-demo',
43
- name: '内容框架公共组件',
48
+ name: '内容框架',
44
49
  component: import('@/components/bsgoal-base-frame/demo.vue')
45
50
  },
46
51
  {
47
52
  path: '/bsgoal-base-line-demo',
48
- name: '分割线公共组件',
53
+ name: '分割线',
49
54
  component: import('@/components/bsgoal-base-line/demo.vue')
50
55
  },
51
56
  {
52
57
  path: '/bsgoal-base-tree-demo',
53
- name: '虚拟结构树公共组件',
58
+ name: '虚拟结构树',
54
59
  component: import('@/components/bsgoal-base-tree/demo.vue')
55
60
  },
56
61
  {
57
62
  path: '/bsgoal-base-dialog-demo',
58
- name: '弹窗公共组件',
63
+ name: '弹窗',
59
64
  component: import('@/components/bsgoal-base-dialog/demo.vue')
60
65
  },
61
66
  {
62
67
  path: '/bsgoal-base-cascader-demo',
63
- name: '级联选择公共组件',
68
+ name: '级联选择',
64
69
  component: import('@/components/bsgoal-base-cascader/demo.vue')
65
70
  },
66
71
  ]