@bsgoal/common 2.16.4 → 2.17.0

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.
Files changed (80) hide show
  1. package/dist/index.mjs +812 -798
  2. package/dist/index.mjs.map +1 -1
  3. package/dist/index.umd.js +6 -6
  4. package/dist/index.umd.js.map +1 -1
  5. package/package.json +2 -3
  6. package/src/App.vue +0 -9
  7. package/src/combines/useComs.js +0 -41
  8. package/src/combines/useFetchs.js +0 -55
  9. package/src/components/bsgoal-baes-popover/demo.vue +0 -35
  10. package/src/components/bsgoal-baes-popover/index.vue +0 -66
  11. package/src/components/bsgoal-base-alert/demo.vue +0 -39
  12. package/src/components/bsgoal-base-alert/index.vue +0 -49
  13. package/src/components/bsgoal-base-button/demo.vue +0 -54
  14. package/src/components/bsgoal-base-button/index.vue +0 -166
  15. package/src/components/bsgoal-base-cascader/demo.vue +0 -128
  16. package/src/components/bsgoal-base-cascader/index.vue +0 -95
  17. package/src/components/bsgoal-base-dialog/demo.vue +0 -350
  18. package/src/components/bsgoal-base-dialog/index.vue +0 -260
  19. package/src/components/bsgoal-base-form/demo.vue +0 -289
  20. package/src/components/bsgoal-base-form/index.vue +0 -723
  21. package/src/components/bsgoal-base-frame/demo.vue +0 -35
  22. package/src/components/bsgoal-base-frame/index.vue +0 -28
  23. package/src/components/bsgoal-base-input/demo.vue +0 -48
  24. package/src/components/bsgoal-base-input/index.vue +0 -150
  25. package/src/components/bsgoal-base-item/demo.vue +0 -46
  26. package/src/components/bsgoal-base-item/index.vue +0 -66
  27. package/src/components/bsgoal-base-layout/demo.vue +0 -48
  28. package/src/components/bsgoal-base-layout/index.vue +0 -57
  29. package/src/components/bsgoal-base-line/demo.vue +0 -41
  30. package/src/components/bsgoal-base-line/index.vue +0 -70
  31. package/src/components/bsgoal-base-link/demo.vue +0 -38
  32. package/src/components/bsgoal-base-link/index.vue +0 -73
  33. package/src/components/bsgoal-base-search/demo.vue +0 -215
  34. package/src/components/bsgoal-base-search/index.vue +0 -534
  35. package/src/components/bsgoal-base-search-operation/index.vue +0 -77
  36. package/src/components/bsgoal-base-search-table/demo.vue +0 -784
  37. package/src/components/bsgoal-base-search-table/index.vue +0 -291
  38. package/src/components/bsgoal-base-select/demo.vue +0 -71
  39. package/src/components/bsgoal-base-select/index.vue +0 -111
  40. package/src/components/bsgoal-base-sizes/demo.vue +0 -34
  41. package/src/components/bsgoal-base-sizes/index.vue +0 -178
  42. package/src/components/bsgoal-base-switch/demo.vue +0 -39
  43. package/src/components/bsgoal-base-switch/index.vue +0 -76
  44. package/src/components/bsgoal-base-table/demo.vue +0 -302
  45. package/src/components/bsgoal-base-table/index.vue +0 -461
  46. package/src/components/bsgoal-base-table-content/index.vue +0 -64
  47. package/src/components/bsgoal-base-table-empty/demo.vue +0 -37
  48. package/src/components/bsgoal-base-table-empty/index.vue +0 -48
  49. package/src/components/bsgoal-base-table-pagination/demo.vue +0 -35
  50. package/src/components/bsgoal-base-table-pagination/index.vue +0 -110
  51. package/src/components/bsgoal-base-tabs/debug.log +0 -1
  52. package/src/components/bsgoal-base-tabs/demo.vue +0 -65
  53. package/src/components/bsgoal-base-tabs/index.vue +0 -122
  54. package/src/components/bsgoal-base-time/demo.vue +0 -69
  55. package/src/components/bsgoal-base-time/index.vue +0 -177
  56. package/src/components/bsgoal-base-time-range/demo.vue +0 -62
  57. package/src/components/bsgoal-base-time-range/index.vue +0 -170
  58. package/src/components/bsgoal-base-tooltip/demo.vue +0 -38
  59. package/src/components/bsgoal-base-tooltip/index.vue +0 -103
  60. package/src/components/bsgoal-base-tree/demo.vue +0 -141
  61. package/src/components/bsgoal-base-tree/index.vue +0 -286
  62. package/src/components/bsgoal-base-tree-fold/index.vue +0 -64
  63. package/src/components/bsgoal-base-tree-table/debug.log +0 -1
  64. package/src/components/bsgoal-base-tree-table/demo.vue +0 -859
  65. package/src/components/bsgoal-base-tree-table/index.vue +0 -351
  66. package/src/components/bsgoal-base-viewer/assets/upload_default.svg +0 -13
  67. package/src/components/bsgoal-base-viewer/demo.vue +0 -35
  68. package/src/components/bsgoal-base-viewer/index.vue +0 -66
  69. package/src/components/layout/layout-home.vue +0 -60
  70. package/src/components/layout/layout-left-menu.vue +0 -54
  71. package/src/components/layout/layout-right-container.vue +0 -39
  72. package/src/components/layout/layout-top-header.vue +0 -38
  73. package/src/debug.log +0 -1
  74. package/src/directives/directiveBase.js +0 -96
  75. package/src/entry.js +0 -77
  76. package/src/enums/componentTypeEnums.js +0 -35
  77. package/src/main.js +0 -11
  78. package/src/router/index.js +0 -161
  79. package/src/styles/index.css +0 -14
  80. package/src/utils/common.js +0 -56
@@ -1,461 +0,0 @@
1
- <!--
2
- * @Author: canlong.shen
3
- * @Date: 2023-04-10 11:29:04
4
- * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-07-11 11:01:20
6
- * @FilePath: \common\src\components\bsgoal-base-table\index.vue
7
- * @Description:
8
- *
9
- -->
10
-
11
- <script setup>
12
- /* setup模板
13
- ---------------------------------------------------------------- */
14
- import { ref, computed, unref, inject, watchEffect, watch } from 'vue'
15
- import BsgoalBaseTableContent from '../bsgoal-base-table-content/index.vue'
16
- import BsgoalBaseTablePagination from '../bsgoal-base-table-pagination/index.vue'
17
- import BsgoalBaseTableEmpty from '../bsgoal-base-table-empty/index.vue'
18
- import { useAutoHeight } from '../../combines/useComs.js'
19
- import { useFetch } from '../../combines/useFetchs.js'
20
- import { isBoolean } from '@/utils/common.js'
21
-
22
- defineOptions({
23
- name: 'BsgoalBaseTable'
24
- })
25
-
26
- const props = defineProps({
27
- /**
28
- * >----------props----------<
29
- * {
30
- * label: '' // 列名
31
- * prop: '' // 绑定字段
32
- * }
33
- * >----------slots----------<
34
- *
35
- * menu: 顶部操作区域
36
- * operation: 列表右侧操作区域
37
- *
38
- */
39
- configOptions: {
40
- type: [Array],
41
- default: () => []
42
- },
43
- /**
44
- * 表格数据
45
- */
46
- data: {
47
- type: [Array],
48
- default: () => []
49
- },
50
- /**
51
- * 是否包含多选列
52
- */
53
- selection: {
54
- type: [Boolean],
55
- default: false
56
- },
57
- /**
58
- * 是否包含操作列
59
- */
60
- operation: {
61
- type: [Boolean],
62
- default: false
63
- },
64
- /**
65
- * 操作列宽度
66
- */
67
- operationWidth: {
68
- type: [String, Number],
69
- default: 100
70
- },
71
- /**
72
- * 表格 loading 状态
73
- */
74
- loading: {
75
- type: [Boolean],
76
- default: false
77
- },
78
- /**
79
- * 请求的 promise
80
- */
81
- fetch: {
82
- type: [Object, Function],
83
- default: null
84
- },
85
- /**
86
- * 响应的 call
87
- */
88
- call: {
89
- type: [Object, Function],
90
- default: null
91
- },
92
- /**
93
- * 映射字段
94
- */
95
- mapProps: {
96
- type: [Object],
97
- default: () => ({
98
- currentPage: 'currentPage',
99
- pageSize: 'pageSize',
100
- rows: 'rows',
101
- total: 'total'
102
- })
103
- },
104
- /**
105
- * 表格高度 下边距值
106
- */
107
- expression: {
108
- type: [Number],
109
- default: 75
110
- },
111
- /**
112
- * 表格高度
113
- *
114
- * 默认 : 自动计算
115
- * 布尔值 : 默认表格高度
116
- * 字符串 : 直接赋值给 height
117
- * 数字 : 直接赋值给 height + 'px'
118
- */
119
- height: {
120
- type: [Number, String, Boolean],
121
- default: ''
122
- },
123
- /**
124
- * 是否显示分页
125
- */
126
- hasPage: {
127
- type: Boolean,
128
- default: true
129
- },
130
- /**
131
- * 每页显示条目个数
132
- */
133
- pageSize: {
134
- type: [Number],
135
- default: 20
136
- },
137
- /**
138
- * 是否显示合计
139
- */
140
- showSummary: {
141
- type: [Boolean],
142
- default: false
143
- },
144
- /**
145
- * 合计的列
146
- */
147
- summaryProps: {
148
- type: [Array],
149
- default: () => []
150
- },
151
- /**
152
- * 序号 列
153
- */
154
- serial: {
155
- type: [Boolean],
156
- default: false
157
- },
158
- /**
159
- * 主体style
160
- */
161
- bodyStyle: {
162
- type: [Object],
163
- default: () => ({})
164
- }
165
- })
166
-
167
- const emits = defineEmits(['select', 'select-all', 'selection-change', 'on-total-change'])
168
-
169
- /**
170
- * @Author: canlong.shen
171
- * @description:
172
- * @param {*} computed
173
- * @default:
174
- * @return {*}
175
- */
176
- const configOptionsGet = computed(() => {
177
- const { configOptions = [], operation = false, operationWidth = 0 } = props
178
- const options = unref(configOptions)
179
- const extraOptions = []
180
- if (operation) {
181
- extraOptions.push({
182
- label: '操作',
183
- fixed: 'right',
184
- prop: 'operation',
185
- width: operationWidth
186
- })
187
- }
188
- return [...options, ...extraOptions]
189
- })
190
- // 表格包裹元素
191
- const EL_TABLE_WRAP_REF = ref(null)
192
- // 折叠状态响应值
193
- const transferFoldStatus = inject('transferFoldStatus')
194
- watchEffect(() => {
195
- const { height } = props
196
- const status = transferFoldStatus ? transferFoldStatus.value : false
197
- const expressionVal = unref(props.expression)
198
- // 默认是打开表格高度自动计算的
199
- if (!isBoolean(height)) {
200
- useAutoHeight(EL_TABLE_WRAP_REF, { arg: status, expression: expressionVal, height })
201
- }
202
- })
203
-
204
- // 触发搜索
205
- const mapPropsVal = unref(props.mapProps)
206
- const mapPropsFuse = {
207
- currentPage: 'currentPage',
208
- pageSize: 'pageSize',
209
- rows: 'rows',
210
- total: 'total',
211
- ...mapPropsVal
212
- }
213
-
214
- const currentPage = ref(1)
215
- const curPageSize = ref(props.pageSize)
216
- const total = ref(0)
217
- const searchParams = ref({})
218
- const tableLoading = ref(props.loading)
219
- const tableData = ref()
220
- const resData = ref({})
221
- const ping = () => {
222
- const { fetch, call, hasPage } = props
223
- const searchParamsVal = searchParams.value
224
- const currentPageVal = currentPage.value
225
- const pageSizeVal = curPageSize.value
226
- const fetchParams = { ...searchParamsVal }
227
- // 显示分页的注入分页参数
228
- if (hasPage) {
229
- fetchParams[mapPropsFuse.currentPage] = currentPageVal
230
- fetchParams[mapPropsFuse.pageSize] = pageSizeVal
231
- }
232
-
233
- useFetch(fetch(fetchParams), call, tableLoading, resData)
234
- }
235
-
236
- watchEffect(() => {
237
- tableData.value = props.data
238
- })
239
-
240
- watch(resData, (data) => {
241
- // 存在分页才注入
242
- if (props.hasPage) {
243
- tableData.value = data[mapPropsFuse.rows]
244
- total.value = data[mapPropsFuse.total]
245
- } else {
246
- tableData.value = data
247
- }
248
- })
249
-
250
- watchEffect(() => {
251
- emits('on-total-change', total.value)
252
- })
253
-
254
- // 查询
255
- const refreshList = (params = {}) => {
256
- searchParams.value = params
257
- currentPage.value = 1
258
- ping()
259
- }
260
- // 改变当前页
261
- const triggerPaginationCurrentChange = (current = 1) => {
262
- currentPage.value = current
263
- }
264
- //改变页数
265
- const triggerPaginationSizeChange = (size = 10) => {
266
- curPageSize.value = size
267
- }
268
-
269
- watch([currentPage, curPageSize], () => {
270
- ping()
271
- })
272
-
273
- // ---> S 左侧机构树折叠状态 <---
274
- const TREE_SWITCH_STATUS = inject('TREE_SWITCH_STATUS')
275
- // ---> E 左侧机构树折叠状态 <---
276
-
277
- // ---> S 触发事件 <---
278
- const triggerSelect = (selection, row) => {
279
- emits('select', selection, row)
280
- }
281
- const triggerSelectAll = (selection) => {
282
- emits('select-all', selection)
283
- }
284
- const triggerSelectionChange = (selection) => {
285
- emits('selection-change', selection)
286
- }
287
- // ---> E 触发事件 <---
288
-
289
- // ---> S 暴露事件 <---
290
-
291
- const BSGOAL_EL_TABLE_REF = ref(null)
292
-
293
- const clearSelection = () => {
294
- BSGOAL_EL_TABLE_REF.value.clearSelection()
295
- }
296
-
297
- // ---> E 暴露事件 <---
298
-
299
- // ---> S 表格绑定的方法 <---
300
-
301
- const summaryMethod = (columns = '') => {
302
- const { summaryProps = [] } = props
303
- const dataList = columns.data
304
- const calcResultList = []
305
-
306
- summaryProps.forEach((prop = '', index = 0) => {
307
- let sum = 0
308
- const propDataList = dataList.map((mi) => mi[prop])
309
- propDataList.forEach((pfi) => {
310
- const valueInt = parseInt(pfi) || 0
311
- sum += valueInt
312
- })
313
- calcResultList[index] = sum
314
- })
315
- return ['合计', ...calcResultList]
316
- }
317
-
318
- // ---> E 表格绑定的方法 <---
319
-
320
- // ---> S 兼容微前端 <---
321
- const isMicroApp = window.__MICRO_APP_ENVIRONMENT__
322
- // ---> E 兼容微前端 <---
323
-
324
- // 暴露的属性
325
- defineExpose({
326
- refreshList,
327
- clearSelection
328
- })
329
- </script>
330
-
331
- <template>
332
- <div class="bsgoal-base-table">
333
- <div
334
- class="base_table"
335
- :class="{ 'base_table--tree': TREE_SWITCH_STATUS === false, bsgoal_micro_app: isMicroApp }"
336
- :style="bodyStyle"
337
- >
338
- <!-- S 表头操作区域 -->
339
- <div class="base_table_menu" v-if="$slots.menu">
340
- <slot name="menu"></slot>
341
- </div>
342
- <!-- E 表头操作区域 -->
343
- <!-- S 表格区域 -->
344
- <div ref="EL_TABLE_WRAP_REF">
345
- <el-table
346
- ref="BSGOAL_EL_TABLE_REF"
347
- stripe
348
- border
349
- highlight-current-row
350
- style="width: 100%"
351
- v-loading="tableLoading"
352
- sum-text="合计"
353
- :summary-method="summaryMethod"
354
- :show-summary="showSummary"
355
- :data="tableData"
356
- :header-cell-style="{
357
- fontWeight: 'bold',
358
- backgroundColor: '#EBEEF5',
359
- color: 'rgba(0,0,0,.85)',
360
- fontSize: '14px'
361
- }"
362
- @select="triggerSelect"
363
- @select-all="triggerSelectAll"
364
- @selection-change="triggerSelectionChange"
365
- >
366
- <!-- / 无数据展示内容 -->
367
- <template #empty>
368
- <BsgoalBaseTableEmpty />
369
- </template>
370
- <!-- / 无数据展示内容 -->
371
- <!-- / 序号 -->
372
- <el-table-column v-if="serial" type="index" width="55" label="序号" align="center" />
373
- <!-- / 序号 -->
374
- <!-- / 多选 -->
375
- <el-table-column v-if="selection" fixed="left" type="selection" width="40" />
376
- <!-- / 多选 -->
377
- <!-- / 表格内容 -->
378
- <template
379
- v-for="(
380
- {
381
- prop = '',
382
- label = '',
383
- align = 'center',
384
- width = '',
385
- fixed = false,
386
- tooltip = false,
387
- limit = 0
388
- } = {},
389
- index
390
- ) of configOptionsGet"
391
- :key="index"
392
- >
393
- <el-table-column
394
- :label="label"
395
- :align="align"
396
- :width="width"
397
- :fixed="fixed"
398
- :min-width="`${label.length * 14 + 30}px`"
399
- :max-width="`${label.length * 14 + 30}px`"
400
- >
401
- <template v-slot:default="{ row ,column, $index }">
402
- <slot :name="prop" :row="row" :column="column" :index="$index">
403
- <BsgoalBaseTableContent :limit="limit" :tooltip="tooltip" :data="row[prop]" />
404
- </slot>
405
- </template>
406
- </el-table-column>
407
- </template>
408
- <!-- / 表格内容 -->
409
- </el-table>
410
- </div>
411
-
412
- <!-- E 表格区域 -->
413
-
414
- <!-- S 分页 -->
415
- <BsgoalBaseTablePagination
416
- v-if="hasPage"
417
- :total="total"
418
- :page-size="curPageSize"
419
- @on-current-change="triggerPaginationCurrentChange"
420
- @on-size-change="triggerPaginationSizeChange"
421
- />
422
- <!-- E 分页 -->
423
- </div>
424
- </div>
425
- </template>
426
- <style lang="scss">
427
- /* 覆盖样式
428
- ---------------------------------------------------------------- */
429
- .bsgoal-base-table {
430
- .base_table {
431
- padding: 16px;
432
- }
433
-
434
- .base_table_menu {
435
- margin-bottom: 8px;
436
- }
437
-
438
- .el-table__body-wrapper {
439
- overflow-y: hidden !important;
440
- }
441
-
442
- .el-scrollbar__view {
443
- height: 100%;
444
- }
445
- .base_table--tree {
446
- margin-top: 10px;
447
- }
448
- th > div.cell {
449
- white-space: nowrap;
450
- }
451
-
452
- .bsgoal_micro_app {
453
- .el-scrollbar {
454
- padding-bottom: 0px !important;
455
- }
456
- th.el-table__cell {
457
- overflow: initial !important;
458
- }
459
- }
460
- }
461
- </style>
@@ -1,64 +0,0 @@
1
- <!--
2
- * @Author: canlong.shen
3
- * @Date: 2023-04-15 13:49:25
4
- * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-05-15 14:26:22
6
- * @FilePath: \common\src\components\bsgoal-base-table-content\index.vue
7
- * @Description: 表格内容
8
- *
9
- -->
10
-
11
- <script setup>
12
- /* setup模板
13
- ---------------------------------------------------------------- */
14
- import { ref } from 'vue';
15
- import BsgoalBaseTooltip from '../bsgoal-base-tooltip/index.vue'
16
-
17
- defineOptions({
18
- name: 'BsgoalBaseTableContent'
19
- })
20
-
21
- const props = defineProps({
22
- /**
23
- * 数据
24
- */
25
- data: {
26
- type: [String, Number, Object, Boolean],
27
- default: ''
28
- },
29
-
30
- /**
31
- * 内容提示
32
- */
33
- tooltip: {
34
- type: [Boolean, Number],
35
- default: false
36
- },
37
-
38
- /**
39
- * 内容限定数
40
- */
41
- limit: {
42
- type: [Number],
43
- default: 10
44
- },
45
-
46
- })
47
- </script>
48
- <template>
49
- <div class="bsgoal-base-table-content">
50
- <div class="base_table_content">
51
- <BsgoalBaseTooltip v-if="tooltip" :content="data" :limit="limit" />
52
- <div v-else class="base_table_table_txt">
53
- {{ data }}
54
-
55
- </div>
56
- </div>
57
- </div>
58
- </template>
59
- <style lang="scss">
60
- /* 覆盖样式
61
- ---------------------------------------------------------------- */
62
- .bsgoal-base-table-content {}
63
- </style>
64
-
@@ -1,37 +0,0 @@
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 setup>
12
- /* setup模板
13
- ---------------------------------------------------------------- */
14
- import { ref } from 'vue'
15
- import BsgoalBaseTableEmpty from './index.vue'
16
-
17
- defineOptions({
18
- name: 'BsgoalBaseTableEmptyDemo'
19
- })
20
-
21
- const props = defineProps({})
22
- </script>
23
- <template>
24
- <div class="bsgoal-base-table-empty-demo">
25
- <div class="base_table_empty_demo">
26
- <BsgoalBaseTableEmpty />
27
- </div>
28
- </div>
29
- </template>
30
- <style lang="scss" scoped>
31
- /* 自定义样式
32
- ---------------------------------------------------------------- */
33
- </style>
34
- <style lang="scss">
35
- /* 覆盖样式
36
- ---------------------------------------------------------------- */
37
- </style>
@@ -1,48 +0,0 @@
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 setup>
12
- defineOptions({
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>
@@ -1,35 +0,0 @@
1
- <!--
2
- * @Author: canlong.shen
3
- * @Date: 2023-06-27 16:30:46
4
- * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-06-28 10:02:50
6
- * @FilePath: \common\src\components\bsgoal-base-table-pagination\demo.vue
7
- * @Description: 分页公共组件 demo
8
- *
9
- -->
10
-
11
- <script setup>
12
- /* setup模板
13
- ---------------------------------------------------------------- */
14
- import { ref } from 'vue'
15
- import BsgoalBaseTablePagination from './index.vue'
16
- defineOptions({
17
- name: 'BsgoalBaseTablePaginationDemo'
18
- })
19
-
20
- const props = defineProps({})
21
- </script>
22
- <template>
23
- <div class="bsgoal-base-table-pagination-demo">
24
- <div style="height: 300px; background-color: red;"></div>
25
- <BsgoalBaseTablePagination />
26
- </div>
27
- </template>
28
- <style lang="scss" scoped>
29
- /* 自定义样式
30
- ---------------------------------------------------------------- */
31
- </style>
32
- <style lang="scss">
33
- /* 覆盖样式
34
- ---------------------------------------------------------------- */
35
- </style>