@bsgoal/common 2.16.6 → 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 (76) hide show
  1. package/package.json +2 -3
  2. package/src/App.vue +0 -9
  3. package/src/combines/useComs.js +0 -41
  4. package/src/combines/useFetchs.js +0 -55
  5. package/src/components/bsgoal-baes-popover/demo.vue +0 -35
  6. package/src/components/bsgoal-baes-popover/index.vue +0 -66
  7. package/src/components/bsgoal-base-alert/demo.vue +0 -39
  8. package/src/components/bsgoal-base-alert/index.vue +0 -49
  9. package/src/components/bsgoal-base-button/demo.vue +0 -54
  10. package/src/components/bsgoal-base-button/index.vue +0 -166
  11. package/src/components/bsgoal-base-cascader/demo.vue +0 -128
  12. package/src/components/bsgoal-base-cascader/index.vue +0 -95
  13. package/src/components/bsgoal-base-dialog/demo.vue +0 -350
  14. package/src/components/bsgoal-base-dialog/index.vue +0 -260
  15. package/src/components/bsgoal-base-form/demo.vue +0 -290
  16. package/src/components/bsgoal-base-form/index.vue +0 -732
  17. package/src/components/bsgoal-base-frame/demo.vue +0 -35
  18. package/src/components/bsgoal-base-frame/index.vue +0 -28
  19. package/src/components/bsgoal-base-input/demo.vue +0 -48
  20. package/src/components/bsgoal-base-input/index.vue +0 -174
  21. package/src/components/bsgoal-base-item/demo.vue +0 -46
  22. package/src/components/bsgoal-base-item/index.vue +0 -66
  23. package/src/components/bsgoal-base-layout/demo.vue +0 -48
  24. package/src/components/bsgoal-base-layout/index.vue +0 -57
  25. package/src/components/bsgoal-base-line/demo.vue +0 -41
  26. package/src/components/bsgoal-base-line/index.vue +0 -70
  27. package/src/components/bsgoal-base-link/demo.vue +0 -38
  28. package/src/components/bsgoal-base-link/index.vue +0 -73
  29. package/src/components/bsgoal-base-search/demo.vue +0 -215
  30. package/src/components/bsgoal-base-search/index.vue +0 -534
  31. package/src/components/bsgoal-base-search-operation/index.vue +0 -77
  32. package/src/components/bsgoal-base-search-table/demo.vue +0 -784
  33. package/src/components/bsgoal-base-search-table/index.vue +0 -291
  34. package/src/components/bsgoal-base-select/demo.vue +0 -71
  35. package/src/components/bsgoal-base-select/index.vue +0 -111
  36. package/src/components/bsgoal-base-sizes/demo.vue +0 -34
  37. package/src/components/bsgoal-base-sizes/index.vue +0 -178
  38. package/src/components/bsgoal-base-switch/demo.vue +0 -39
  39. package/src/components/bsgoal-base-switch/index.vue +0 -76
  40. package/src/components/bsgoal-base-table/demo.vue +0 -302
  41. package/src/components/bsgoal-base-table/index.vue +0 -461
  42. package/src/components/bsgoal-base-table-content/index.vue +0 -64
  43. package/src/components/bsgoal-base-table-empty/demo.vue +0 -37
  44. package/src/components/bsgoal-base-table-empty/index.vue +0 -48
  45. package/src/components/bsgoal-base-table-pagination/demo.vue +0 -35
  46. package/src/components/bsgoal-base-table-pagination/index.vue +0 -110
  47. package/src/components/bsgoal-base-tabs/debug.log +0 -1
  48. package/src/components/bsgoal-base-tabs/demo.vue +0 -65
  49. package/src/components/bsgoal-base-tabs/index.vue +0 -122
  50. package/src/components/bsgoal-base-time/demo.vue +0 -69
  51. package/src/components/bsgoal-base-time/index.vue +0 -177
  52. package/src/components/bsgoal-base-time-range/demo.vue +0 -62
  53. package/src/components/bsgoal-base-time-range/index.vue +0 -170
  54. package/src/components/bsgoal-base-tooltip/demo.vue +0 -38
  55. package/src/components/bsgoal-base-tooltip/index.vue +0 -103
  56. package/src/components/bsgoal-base-tree/demo.vue +0 -141
  57. package/src/components/bsgoal-base-tree/index.vue +0 -286
  58. package/src/components/bsgoal-base-tree-fold/index.vue +0 -64
  59. package/src/components/bsgoal-base-tree-table/debug.log +0 -1
  60. package/src/components/bsgoal-base-tree-table/demo.vue +0 -859
  61. package/src/components/bsgoal-base-tree-table/index.vue +0 -351
  62. package/src/components/bsgoal-base-viewer/assets/upload_default.svg +0 -13
  63. package/src/components/bsgoal-base-viewer/demo.vue +0 -35
  64. package/src/components/bsgoal-base-viewer/index.vue +0 -66
  65. package/src/components/layout/layout-home.vue +0 -60
  66. package/src/components/layout/layout-left-menu.vue +0 -54
  67. package/src/components/layout/layout-right-container.vue +0 -39
  68. package/src/components/layout/layout-top-header.vue +0 -38
  69. package/src/debug.log +0 -1
  70. package/src/directives/directiveBase.js +0 -96
  71. package/src/entry.js +0 -77
  72. package/src/enums/componentTypeEnums.js +0 -35
  73. package/src/main.js +0 -11
  74. package/src/router/index.js +0 -161
  75. package/src/styles/index.css +0 -14
  76. package/src/utils/common.js +0 -56
@@ -1,286 +0,0 @@
1
- <!--
2
- * @Author: canlong.shen
3
- * @Date: 2023-04-21 08:43:33
4
- * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-06-27 11:47:51
6
- * @FilePath: \common\src\components\bsgoal-base-tree\index.vue
7
- * @Description: 虚拟化树型结构 公共组件
8
- *
9
- -->
10
- <script setup>
11
- /* setup模板
12
- ---------------------------------------------------------------- */
13
- import { ref, watch, watchEffect, computed } from 'vue'
14
- import directiveBase from '../../directives/directiveBase.js'
15
- import BsgoalBaseLine from '../bsgoal-base-line/index.vue'
16
- import BsgoalBaseTreeFold from '../bsgoal-base-tree-fold/index.vue'
17
- import { Plus } from '@element-plus/icons-vue'
18
- defineOptions({
19
- name: 'BsgoalBaseTree'
20
- })
21
-
22
- const props = defineProps({
23
- /**
24
- * 树结构 的下边距
25
- */
26
- gasket: {
27
- type: [String, Number],
28
- default: 10
29
- },
30
- /**
31
- * 数据
32
- */
33
- treeData: {
34
- type: [Object, Array],
35
- default: () => []
36
- },
37
- /**
38
- * 配置
39
- */
40
- treeProps: {
41
- type: [Object],
42
- default: () => ({
43
- label: 'label',
44
- children: 'children',
45
- disabled: 'disabled',
46
- isLeaf: 'isLeaf',
47
- class: 'class'
48
- })
49
- },
50
- /**
51
- * 懒加载数据方法
52
- * () => {
53
- * return Promise(resolve => resolve([]))
54
- * }
55
- */
56
- lazyLoad: {
57
- type: [Function],
58
- default: null
59
- },
60
- /**
61
- * 初始化树节点
62
- * () => {
63
- * return Promise(resolve => resolve([]))
64
- * }
65
- */
66
- initNode: {
67
- type: [Function],
68
- default: null
69
- },
70
- /**
71
- * 节点的 key
72
- */
73
- nodeKey: {
74
- type: [String],
75
- default: 'key'
76
- },
77
- /**
78
- * 默认展开的节点
79
- */
80
- expandedKeys: {
81
- type: [Array],
82
- default: () => []
83
- }
84
- })
85
-
86
- const emits = defineEmits(['on-click', 'on-switch', 'on-add'])
87
-
88
- // 计算高度的指令
89
- const vHeight = directiveBase.height
90
-
91
- const filterText = ref('')
92
- const EL_TREE_REF = ref(null)
93
-
94
- watch(filterText, (val) => {
95
- EL_TREE_REF.value.filter(val)
96
- })
97
-
98
- /**
99
- * @Author: canlong.shen
100
- * @description: 过滤节点
101
- * @param {*} value
102
- * @param {*} data
103
- * @default:
104
- * @return {*}
105
- */
106
- const filterNode = (value, data) => {
107
- if (!value) return true
108
- return data.label.includes(value)
109
- }
110
- // 折叠的状态
111
- const foldStatus = ref(true)
112
- /**
113
- * @Author: canlong.shen
114
- * @description: 当节点被点击的时候触发
115
- * @param {*} value 节点点击的节点对象
116
- * @param {*} node TreeNode 的 node 属性
117
- * @param {*} TreeNode TreeNode
118
- * @param {*} event 事件对象
119
- * @default:
120
- * @return {*}
121
- */
122
- const clickNodeTree = (value, node, treeNode, event) => {
123
- emits('on-click', value, node, treeNode, event)
124
- }
125
-
126
- watch(foldStatus, () => {
127
- emits('on-switch', foldStatus.value)
128
- })
129
-
130
- /**
131
- * @Author: canlong.shen
132
- * @description: 懒加载数据
133
- * @param {*} node
134
- * @param {*} resolve
135
- * @default:
136
- * @return {*}
137
- */
138
- const loadNode = async (node, resolve, props) => {
139
- if (node.level === 0) {
140
- const initNodeData = await props.initNode(node)
141
- return resolve(initNodeData || [])
142
- } else {
143
- const lazyNodeData = await props.lazyLoad(node)
144
- resolve(lazyNodeData || [])
145
- }
146
- }
147
-
148
- const lazyGet = computed(() => {
149
- const { lazyLoad = null, initNode = null } = props
150
- if (lazyLoad && initNode) {
151
- return true
152
- }
153
- return false
154
- })
155
-
156
- /**
157
- * @Author: canlong.shen
158
- * @description: 点击加号图标触发事件
159
- * @param {*} node
160
- * @param {*} data
161
- * @default:
162
- * @return {*}
163
- */
164
- const handleItemAdd = (node = null, data = {}) => {
165
- emits('on-add', { node, data })
166
- }
167
- </script>
168
- <template>
169
- <div class="bsgoal-base-tree">
170
- <div class="base_tree" v-height="gasket">
171
- <div v-show="foldStatus" class="base_tree_main">
172
- <!-- S 查询 -->
173
- <el-input v-model="filterText" class="base_tree_main_input" placeholder="输入关键字过滤" />
174
- <!-- E 查询 -->
175
- <!-- S 树结构 -->
176
- <el-tree
177
- ref="EL_TREE_REF"
178
- highlight-current
179
- auto-expand-parent
180
- empty-text="暂无数据"
181
- :nodeKey="nodeKey"
182
- :data="treeData"
183
- :lazy="lazyGet"
184
- :load="(node, resolve) => loadNode(node, resolve, props)"
185
- :expand-on-click-node="false"
186
- :props="treeProps"
187
- :filter-node-method="filterNode"
188
- :default-expanded-keys="expandedKeys"
189
- @node-click="clickNodeTree"
190
- >
191
- <template #default="{ node, data }">
192
- <slot :data="data">
193
- <div class="base_tree_node">
194
- <!-- S 节点前图标 -->
195
- <div v-if="$slots.prefix">
196
- <slot name="prefix" :data="data" ></slot>
197
- </div>
198
- <!-- E 节点前图标 -->
199
- <!-- S 节点名称 -->
200
- <span class="base_tree_node_label">
201
- {{ node.label }}
202
- </span>
203
- <!-- E 节点名称 -->
204
- <!-- S 操作符号 -->
205
- <span class="base_tree_node_icon" v-if="data.hasIcon">
206
- <el-icon color="var(--el-color-primary)" @click.stop="handleItemAdd(node, data)">
207
- <Plus />
208
- </el-icon>
209
- </span>
210
- <!-- E 操作符号 -->
211
- </div>
212
- </slot>
213
- </template>
214
- </el-tree>
215
- <!-- E 树结构 -->
216
- </div>
217
- <!-- S 横线 -->
218
- <BsgoalBaseLine vertical v-show="foldStatus" />
219
- <!-- E 横线 -->
220
- <!-- S 折叠按钮 -->
221
- <BsgoalBaseTreeFold v-model="foldStatus" />
222
- <!-- E 折叠按钮 -->
223
- </div>
224
- </div>
225
- </template>
226
- <style lang="scss">
227
- /* 覆盖样式
228
- ---------------------------------------------------------------- */
229
-
230
- .bsgoal-base-tree {
231
- display: inline-block;
232
- .base_tree {
233
- display: flex;
234
- box-sizing: border-box;
235
- position: relative;
236
- min-width: 14px;
237
- }
238
- .base_tree_main {
239
- width: 221px;
240
- padding: 16px;
241
-
242
- // 隐藏掉滚动条
243
- scrollbar-width: none; /* firefox */
244
- -ms-overflow-style: none; /* IE 10+ */
245
- overflow-x: hidden;
246
- overflow-y: auto;
247
- /*滚动条样式*/
248
- &::-webkit-scrollbar {
249
- width: 6px;
250
- height: 6px;
251
- }
252
- &::-webkit-scrollbar-thumb {
253
- border-radius: 10px;
254
- // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
255
- // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
256
- background: rgba(0, 0, 0, 0.2);
257
- width: 20px;
258
- }
259
- &::-webkit-scrollbar-track {
260
- // box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
261
- // -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
262
- // border-radius: 0;
263
- // background: rgba(0, 0, 0, 0.1);
264
- // opacity: 0.1;
265
- background-color: #fff;
266
- }
267
- }
268
- .base_tree_main_input {
269
- margin-bottom: 10px;
270
- }
271
-
272
- .base_tree .el-tree-node__content > i.el-tree-node__expand-icon {
273
- padding-left: 0px;
274
- }
275
- .base_tree_node {
276
- display: flex;
277
- flex: 1;
278
- }
279
- .base_tree_node_label {
280
- flex: 1;
281
- }
282
- .base_tree_node_icon {
283
- flex: none;
284
- }
285
- }
286
- </style>
@@ -1,64 +0,0 @@
1
- <!--
2
- * @Author: canlong.shen
3
- * @Date: 2023-04-21 14:30:43
4
- * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-06-25 17:29:58
6
- * @FilePath: \common\src\components\bsgoal-base-tree-fold\index.vue
7
- * @Description: 树结构折叠按钮
8
- *
9
- -->
10
-
11
- <script setup>
12
- /* setup模板
13
- ---------------------------------------------------------------- */
14
- import { ref } from 'vue'
15
- import { ArrowLeft, ArrowRight } from '@element-plus/icons-vue'
16
-
17
- defineOptions({
18
- name: 'BsgoalBaseTreeFold'
19
- })
20
-
21
- defineProps(['modelValue'])
22
- const emits = defineEmits(['update:modelValue'])
23
-
24
- let status = ref(true)
25
- const triggerFold = () => {
26
- status.value = !status.value
27
- emits('update:modelValue', status.value)
28
- }
29
- </script>
30
- <template>
31
- <div class="bsgoal-base-tree-fold">
32
- <div class="base_tree_fold" :class="{ 'base_tree_fold--hide': !status }" @click="triggerFold">
33
- <el-icon color="#fff"
34
- ><ArrowLeft v-show="status" />
35
- <ArrowRight v-show="!status" />
36
- </el-icon>
37
- </div>
38
- </div>
39
- </template>
40
- <style lang="scss">
41
- /* 覆盖样式
42
- ---------------------------------------------------------------- */
43
- .bsgoal-base-tree-fold {
44
- .base_tree_fold {
45
- position: absolute;
46
- top: 0;
47
- bottom: 0;
48
- right: 10px;
49
- margin: auto;
50
- width: 14px;
51
- height: 38px;
52
-
53
- display: flex;
54
- align-items: center;
55
- justify-content: center;
56
-
57
- border-radius: 10px;
58
- background-color: var(--el-color-primary);
59
- }
60
- .base_tree_fold--hide {
61
- right: 0px;
62
- }
63
- }
64
- </style>
@@ -1 +0,0 @@
1
- [0703/161050.963:ERROR:registration_protocol_win.cc(107)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)