@bsgoal/common 2.11.2 → 2.12.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.
- package/dist/index.mjs +1277 -1229
- 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-baes-popover/demo.vue +35 -0
- package/src/components/bsgoal-baes-popover/index.vue +66 -0
- package/src/components/bsgoal-base-search/index.vue +1 -2
- package/src/entry.js +4 -2
- package/src/router/index.js +5 -0
package/package.json
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: canlong.shen
|
|
3
|
+
* @Date: 2023-06-21 15:12:45
|
|
4
|
+
* @LastEditors: canlong.shen
|
|
5
|
+
* @LastEditTime: 2023-06-21 15:41:54
|
|
6
|
+
* @FilePath: \common\src\components\bsgoal-baes-popover\demo.vue
|
|
7
|
+
* @Description: 弹出框 演示
|
|
8
|
+
*
|
|
9
|
+
-->
|
|
10
|
+
<script setup>
|
|
11
|
+
/* setup模板
|
|
12
|
+
---------------------------------------------------------------- */
|
|
13
|
+
import { ref } from 'vue'
|
|
14
|
+
import BsgoalBaesPopover from './index.vue';
|
|
15
|
+
defineOptions({
|
|
16
|
+
name: 'BsgoalBaesPopoverDemo'
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const props = defineProps({})
|
|
20
|
+
</script>
|
|
21
|
+
<template>
|
|
22
|
+
<div class="bsgoal-baes-popover-demo">
|
|
23
|
+
<BsgoalBaesPopover content="这是内容" :width="300">
|
|
24
|
+
<span>愚蠢的地球人</span>
|
|
25
|
+
</BsgoalBaesPopover>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
<style lang="scss" scoped>
|
|
29
|
+
/* 自定义样式
|
|
30
|
+
---------------------------------------------------------------- */
|
|
31
|
+
</style>
|
|
32
|
+
<style lang="scss">
|
|
33
|
+
/* 覆盖样式
|
|
34
|
+
---------------------------------------------------------------- */
|
|
35
|
+
</style>
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: canlong.shen
|
|
3
|
+
* @Date: 2023-06-21 15:12:28
|
|
4
|
+
* @LastEditors: canlong.shen
|
|
5
|
+
* @LastEditTime: 2023-06-21 15:38:11
|
|
6
|
+
* @FilePath: \common\src\components\bsgoal-baes-popover\index.vue
|
|
7
|
+
* @Description: 弹出框 公共组件
|
|
8
|
+
*
|
|
9
|
+
-->
|
|
10
|
+
<script setup>
|
|
11
|
+
/* setup模板
|
|
12
|
+
---------------------------------------------------------------- */
|
|
13
|
+
import { ref } from 'vue'
|
|
14
|
+
|
|
15
|
+
defineOptions({
|
|
16
|
+
name: 'BsgoalBaesPopover'
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
const props = defineProps({
|
|
20
|
+
/**
|
|
21
|
+
* 内容
|
|
22
|
+
*/
|
|
23
|
+
content: {
|
|
24
|
+
type: [String],
|
|
25
|
+
default: ''
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* 标题
|
|
29
|
+
*/
|
|
30
|
+
title: {
|
|
31
|
+
type: [String],
|
|
32
|
+
default: ''
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* 宽度
|
|
36
|
+
*/
|
|
37
|
+
width: {
|
|
38
|
+
type: [Number],
|
|
39
|
+
default: 200
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
</script>
|
|
43
|
+
<template>
|
|
44
|
+
<div class="bsgoal-baes-popover">
|
|
45
|
+
<el-popover
|
|
46
|
+
class="baes_popover"
|
|
47
|
+
placement="top-start"
|
|
48
|
+
trigger="hover"
|
|
49
|
+
:width="width"
|
|
50
|
+
:title="title"
|
|
51
|
+
:content="content"
|
|
52
|
+
>
|
|
53
|
+
<template #reference>
|
|
54
|
+
<slot></slot>
|
|
55
|
+
</template>
|
|
56
|
+
</el-popover>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
<style lang="scss" scoped>
|
|
60
|
+
/* 自定义样式
|
|
61
|
+
---------------------------------------------------------------- */
|
|
62
|
+
</style>
|
|
63
|
+
<style lang="scss">
|
|
64
|
+
/* 覆盖样式
|
|
65
|
+
---------------------------------------------------------------- */
|
|
66
|
+
</style>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-13 09:38:11
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-06-21 14:
|
|
5
|
+
* @LastEditTime: 2023-06-21 14:35:58
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-search\index.vue
|
|
7
7
|
* @Description: 表格查询 公共组件
|
|
8
8
|
*
|
|
@@ -281,7 +281,6 @@ defineExpose({
|
|
|
281
281
|
<template>
|
|
282
282
|
<div class="bsgoal-base-search">
|
|
283
283
|
<div class="base_search">
|
|
284
|
-
{{ model }}
|
|
285
284
|
<!-- / 表单内容 -->
|
|
286
285
|
<el-form ref="EL_FORM_REF" label-suffix=":" :show-message="false" :model="model" v-align>
|
|
287
286
|
<el-row>
|
package/src/entry.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-05-11 18:31:55
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-06-
|
|
5
|
+
* @LastEditTime: 2023-06-21 15:42:45
|
|
6
6
|
* @FilePath: \common\src\entry.js
|
|
7
7
|
* @Description: 打包 入口文件
|
|
8
8
|
*
|
|
@@ -28,6 +28,7 @@ import BsgoalBaseSwitch from '@/components/bsgoal-base-switch/index.vue'
|
|
|
28
28
|
import BsgoalBaseItem from '@/components/bsgoal-base-item/index.vue'
|
|
29
29
|
import BsgoalBaseInput from '@/components/bsgoal-base-input/index.vue'
|
|
30
30
|
import BsgoalBaseTreeTable from '@/components/bsgoal-base-tree-table/index.vue'
|
|
31
|
+
import BsgoalBaesPopover from '@/components/bsgoal-baes-popover/index.vue'
|
|
31
32
|
import componentTypeEnums from '@/enums/componentTypeEnums.js'
|
|
32
33
|
import { useFetch } from '@/combines/useFetchs.js'
|
|
33
34
|
|
|
@@ -57,7 +58,8 @@ export default {
|
|
|
57
58
|
BsgoalBaseSwitch,
|
|
58
59
|
BsgoalBaseItem,
|
|
59
60
|
BsgoalBaseInput,
|
|
60
|
-
BsgoalBaseTreeTable
|
|
61
|
+
BsgoalBaseTreeTable,
|
|
62
|
+
BsgoalBaesPopover
|
|
61
63
|
}
|
|
62
64
|
|
|
63
65
|
for (const [name, component] of Object.entries(componentsMap)) {
|
package/src/router/index.js
CHANGED
|
@@ -18,6 +18,11 @@ const router = createRouter({
|
|
|
18
18
|
name: 'home',
|
|
19
19
|
component: LayoutHome,
|
|
20
20
|
children: [
|
|
21
|
+
{
|
|
22
|
+
path: '/bsgoal-baes-popover-demo',
|
|
23
|
+
name: '弹出框',
|
|
24
|
+
component: import('@/components/bsgoal-baes-popover/demo.vue')
|
|
25
|
+
},
|
|
21
26
|
{
|
|
22
27
|
path: '/bsgoal-base-input-demo',
|
|
23
28
|
name: '输入框',
|