@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.
- package/package.json +2 -3
- package/src/App.vue +0 -9
- package/src/combines/useComs.js +0 -41
- package/src/combines/useFetchs.js +0 -55
- package/src/components/bsgoal-baes-popover/demo.vue +0 -35
- package/src/components/bsgoal-baes-popover/index.vue +0 -66
- package/src/components/bsgoal-base-alert/demo.vue +0 -39
- package/src/components/bsgoal-base-alert/index.vue +0 -49
- package/src/components/bsgoal-base-button/demo.vue +0 -54
- package/src/components/bsgoal-base-button/index.vue +0 -166
- package/src/components/bsgoal-base-cascader/demo.vue +0 -128
- package/src/components/bsgoal-base-cascader/index.vue +0 -95
- package/src/components/bsgoal-base-dialog/demo.vue +0 -350
- package/src/components/bsgoal-base-dialog/index.vue +0 -260
- package/src/components/bsgoal-base-form/demo.vue +0 -290
- package/src/components/bsgoal-base-form/index.vue +0 -732
- package/src/components/bsgoal-base-frame/demo.vue +0 -35
- package/src/components/bsgoal-base-frame/index.vue +0 -28
- package/src/components/bsgoal-base-input/demo.vue +0 -48
- package/src/components/bsgoal-base-input/index.vue +0 -174
- package/src/components/bsgoal-base-item/demo.vue +0 -46
- package/src/components/bsgoal-base-item/index.vue +0 -66
- package/src/components/bsgoal-base-layout/demo.vue +0 -48
- package/src/components/bsgoal-base-layout/index.vue +0 -57
- package/src/components/bsgoal-base-line/demo.vue +0 -41
- package/src/components/bsgoal-base-line/index.vue +0 -70
- package/src/components/bsgoal-base-link/demo.vue +0 -38
- package/src/components/bsgoal-base-link/index.vue +0 -73
- package/src/components/bsgoal-base-search/demo.vue +0 -215
- package/src/components/bsgoal-base-search/index.vue +0 -534
- package/src/components/bsgoal-base-search-operation/index.vue +0 -77
- package/src/components/bsgoal-base-search-table/demo.vue +0 -784
- package/src/components/bsgoal-base-search-table/index.vue +0 -291
- package/src/components/bsgoal-base-select/demo.vue +0 -71
- package/src/components/bsgoal-base-select/index.vue +0 -111
- package/src/components/bsgoal-base-sizes/demo.vue +0 -34
- package/src/components/bsgoal-base-sizes/index.vue +0 -178
- package/src/components/bsgoal-base-switch/demo.vue +0 -39
- package/src/components/bsgoal-base-switch/index.vue +0 -76
- package/src/components/bsgoal-base-table/demo.vue +0 -302
- package/src/components/bsgoal-base-table/index.vue +0 -461
- package/src/components/bsgoal-base-table-content/index.vue +0 -64
- package/src/components/bsgoal-base-table-empty/demo.vue +0 -37
- package/src/components/bsgoal-base-table-empty/index.vue +0 -48
- package/src/components/bsgoal-base-table-pagination/demo.vue +0 -35
- package/src/components/bsgoal-base-table-pagination/index.vue +0 -110
- package/src/components/bsgoal-base-tabs/debug.log +0 -1
- package/src/components/bsgoal-base-tabs/demo.vue +0 -65
- package/src/components/bsgoal-base-tabs/index.vue +0 -122
- package/src/components/bsgoal-base-time/demo.vue +0 -69
- package/src/components/bsgoal-base-time/index.vue +0 -177
- package/src/components/bsgoal-base-time-range/demo.vue +0 -62
- package/src/components/bsgoal-base-time-range/index.vue +0 -170
- package/src/components/bsgoal-base-tooltip/demo.vue +0 -38
- package/src/components/bsgoal-base-tooltip/index.vue +0 -103
- package/src/components/bsgoal-base-tree/demo.vue +0 -141
- package/src/components/bsgoal-base-tree/index.vue +0 -286
- package/src/components/bsgoal-base-tree-fold/index.vue +0 -64
- package/src/components/bsgoal-base-tree-table/debug.log +0 -1
- package/src/components/bsgoal-base-tree-table/demo.vue +0 -859
- package/src/components/bsgoal-base-tree-table/index.vue +0 -351
- package/src/components/bsgoal-base-viewer/assets/upload_default.svg +0 -13
- package/src/components/bsgoal-base-viewer/demo.vue +0 -35
- package/src/components/bsgoal-base-viewer/index.vue +0 -66
- package/src/components/layout/layout-home.vue +0 -60
- package/src/components/layout/layout-left-menu.vue +0 -54
- package/src/components/layout/layout-right-container.vue +0 -39
- package/src/components/layout/layout-top-header.vue +0 -38
- package/src/debug.log +0 -1
- package/src/directives/directiveBase.js +0 -96
- package/src/entry.js +0 -77
- package/src/enums/componentTypeEnums.js +0 -35
- package/src/main.js +0 -11
- package/src/router/index.js +0 -161
- package/src/styles/index.css +0 -14
- package/src/utils/common.js +0 -56
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-04-10 15:58:55
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-04-11 14:00:19
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-frame\demo.vue
|
|
7
|
-
* @Description: 内容框架公共组件演示
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<template>
|
|
12
|
-
<div class="bsgoal-base-frame-demo">
|
|
13
|
-
<BsgoalBaseFrame />
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
<script setup>
|
|
17
|
-
/* setup模板
|
|
18
|
-
---------------------------------------------------------------- */
|
|
19
|
-
import BsgoalBaseFrame from './index.vue'
|
|
20
|
-
import { ref, computed, toRefs, watch, unref
|
|
21
|
-
} from 'vue';
|
|
22
|
-
|
|
23
|
-
defineOptions({
|
|
24
|
-
name: 'BsgoalBaseFrameDemo'
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
</script>
|
|
28
|
-
<style lang="scss" scoped>
|
|
29
|
-
/* 自定义样式
|
|
30
|
-
---------------------------------------------------------------- */
|
|
31
|
-
</style>
|
|
32
|
-
<style lang="scss">
|
|
33
|
-
/* 覆盖样式
|
|
34
|
-
---------------------------------------------------------------- */
|
|
35
|
-
</style>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-04-10 15:58:47
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-04-11 14:06:54
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-frame\index.vue
|
|
7
|
-
* @Description: 内容框架公共组件
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
<template>
|
|
11
|
-
<div class="bsgoal-base-frame">
|
|
12
|
-
|
|
13
|
-
</div>
|
|
14
|
-
</template>
|
|
15
|
-
<script setup>
|
|
16
|
-
/* setup模板
|
|
17
|
-
---------------------------------------------------------------- */
|
|
18
|
-
import { ref, computed, toRefs, watch, unref
|
|
19
|
-
} from 'vue';
|
|
20
|
-
|
|
21
|
-
defineOptions({
|
|
22
|
-
name: 'BsgoalBaseFrame'
|
|
23
|
-
})
|
|
24
|
-
</script>
|
|
25
|
-
<style lang="scss">
|
|
26
|
-
/* 覆盖样式
|
|
27
|
-
---------------------------------------------------------------- */
|
|
28
|
-
</style>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-29 09:38:59
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-07-11 09:36:34
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-input\demo.vue
|
|
7
|
-
* @Description: Input 输入框 演示
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
<script setup>
|
|
11
|
-
/* setup模板
|
|
12
|
-
---------------------------------------------------------------- */
|
|
13
|
-
import { ref } from 'vue'
|
|
14
|
-
import BsgoalBaseInput from './index.vue'
|
|
15
|
-
defineOptions({
|
|
16
|
-
name: 'BsgoalBaseInputDemo'
|
|
17
|
-
})
|
|
18
|
-
const props = defineProps({})
|
|
19
|
-
|
|
20
|
-
const inputValue = ref('')
|
|
21
|
-
|
|
22
|
-
const test = () => {
|
|
23
|
-
inputValue.value = '666'
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
26
|
-
<template>
|
|
27
|
-
<div class="bsgoal-base-input-demo">
|
|
28
|
-
<div class="base_input_demo">
|
|
29
|
-
{{ inputValue }}
|
|
30
|
-
<BsgoalBaseInput
|
|
31
|
-
v-model="inputValue"
|
|
32
|
-
>
|
|
33
|
-
<template #suffix>
|
|
34
|
-
<div>111</div>
|
|
35
|
-
</template>
|
|
36
|
-
</BsgoalBaseInput>
|
|
37
|
-
<el-button type="primary" @click="test">测试</el-button>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
<style lang="scss" scoped>
|
|
42
|
-
/* 自定义样式
|
|
43
|
-
---------------------------------------------------------------- */
|
|
44
|
-
</style>
|
|
45
|
-
<style lang="scss">
|
|
46
|
-
/* 覆盖样式
|
|
47
|
-
---------------------------------------------------------------- */
|
|
48
|
-
</style>
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-29 09:38:52
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-07-12 09:25:21
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-input\index.vue
|
|
7
|
-
* @Description: Input 输入框
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import { ref, watch, watchEffect, useSlots } from 'vue'
|
|
15
|
-
|
|
16
|
-
defineOptions({
|
|
17
|
-
name: 'BsgoalBaseInput'
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
const props = defineProps({
|
|
21
|
-
/**
|
|
22
|
-
* value
|
|
23
|
-
*/
|
|
24
|
-
modelValue: {
|
|
25
|
-
type: [String, Number],
|
|
26
|
-
default: ''
|
|
27
|
-
},
|
|
28
|
-
/**
|
|
29
|
-
* placeholder
|
|
30
|
-
*/
|
|
31
|
-
placeholder: {
|
|
32
|
-
type: [String],
|
|
33
|
-
default: '请输入'
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* 禁用状态
|
|
37
|
-
*/
|
|
38
|
-
disabled: {
|
|
39
|
-
type: [Boolean],
|
|
40
|
-
default: false
|
|
41
|
-
},
|
|
42
|
-
/**
|
|
43
|
-
* 输入值格式
|
|
44
|
-
*/
|
|
45
|
-
formatter: {
|
|
46
|
-
type: [Function],
|
|
47
|
-
default: () => {
|
|
48
|
-
return (v) => v
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
/**
|
|
52
|
-
* 提取值
|
|
53
|
-
*/
|
|
54
|
-
parser: {
|
|
55
|
-
type: [Function],
|
|
56
|
-
default: () => {
|
|
57
|
-
return (v) => v
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
/**
|
|
61
|
-
* 显示清楚按钮
|
|
62
|
-
*/
|
|
63
|
-
clearable: {
|
|
64
|
-
type: [Boolean],
|
|
65
|
-
default: true
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
const emits = defineEmits(['update:modelValue', 'change' , 'blur' ,'focus'])
|
|
70
|
-
|
|
71
|
-
// ---> S 值绑定 <---
|
|
72
|
-
|
|
73
|
-
const inputValue = ref('')
|
|
74
|
-
|
|
75
|
-
watchEffect(() => {
|
|
76
|
-
inputValue.value = props.modelValue
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
// ---> E 值绑定 <---
|
|
80
|
-
|
|
81
|
-
// ---> S 事件 <---
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @Author: canlong.shen
|
|
85
|
-
* @description: 触发 变动输入
|
|
86
|
-
* @default:
|
|
87
|
-
* @return {*}
|
|
88
|
-
*/
|
|
89
|
-
const change = (value = '') => {
|
|
90
|
-
emits('change', value)
|
|
91
|
-
emits('update:modelValue', value)
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @Author: canlong.shen
|
|
95
|
-
* @description: 触发 清空输入
|
|
96
|
-
* @default:
|
|
97
|
-
* @return {*}
|
|
98
|
-
*/
|
|
99
|
-
const clear = (value = '') => {
|
|
100
|
-
emits('clear', value)
|
|
101
|
-
emits('update:modelValue', value)
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* @Author: canlong.shen
|
|
105
|
-
* @description: 触发 输入事件
|
|
106
|
-
* @default:
|
|
107
|
-
* @return {*}
|
|
108
|
-
*/
|
|
109
|
-
const input = (value = '') => {
|
|
110
|
-
emits('input', value)
|
|
111
|
-
emits('update:modelValue', value)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* @Author: canlong.shen
|
|
116
|
-
* @description: 当选择器的输入框失去焦点时触发
|
|
117
|
-
* @param {*} value
|
|
118
|
-
* @default:
|
|
119
|
-
* @return {*}
|
|
120
|
-
*/
|
|
121
|
-
const blur = (value = '') => {
|
|
122
|
-
emits('input', value)
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @Author: canlong.shen
|
|
127
|
-
* @description: 当选择器的输入框失去焦点时触发
|
|
128
|
-
* @param {*} value
|
|
129
|
-
* @default:
|
|
130
|
-
* @return {*}
|
|
131
|
-
*/
|
|
132
|
-
const focus = (value = '') => {
|
|
133
|
-
emits('focus', value)
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// ---> E 事件 <---
|
|
137
|
-
|
|
138
|
-
// ---> S 插槽 <---
|
|
139
|
-
const slots = useSlots()
|
|
140
|
-
const slotNames = ref(Object.keys(slots))
|
|
141
|
-
// ---> E 插槽 <---
|
|
142
|
-
</script>
|
|
143
|
-
|
|
144
|
-
<template>
|
|
145
|
-
<div class="bsgoal-base-input">
|
|
146
|
-
<el-input
|
|
147
|
-
v-model="inputValue"
|
|
148
|
-
class="base_input"
|
|
149
|
-
:clearable="clearable"
|
|
150
|
-
:placeholder="placeholder"
|
|
151
|
-
:disabled="disabled"
|
|
152
|
-
:formatter="formatter"
|
|
153
|
-
:parser="parser"
|
|
154
|
-
@change="change"
|
|
155
|
-
@clear="clear"
|
|
156
|
-
@input="input"
|
|
157
|
-
@blur="blur"
|
|
158
|
-
@focus="focus"
|
|
159
|
-
>
|
|
160
|
-
<!-- S 输入框头部内容 -->
|
|
161
|
-
<template #[slotName] v-for="slotName of slotNames">
|
|
162
|
-
<slot :name="slotName"></slot>
|
|
163
|
-
</template>
|
|
164
|
-
</el-input>
|
|
165
|
-
</div>
|
|
166
|
-
</template>
|
|
167
|
-
<style lang="scss" scoped>
|
|
168
|
-
/* 自定义样式
|
|
169
|
-
---------------------------------------------------------------- */
|
|
170
|
-
</style>
|
|
171
|
-
<style lang="scss">
|
|
172
|
-
/* 覆盖样式
|
|
173
|
-
---------------------------------------------------------------- */
|
|
174
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-24 17:46:26
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-24 18:31:39
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-item\demo.vue
|
|
7
|
-
* @Description: 表单项 演示
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import { ref } from 'vue'
|
|
15
|
-
import BsgoalBaseItem from './index.vue'
|
|
16
|
-
import BsgoalBaseSwitch from '../bsgoal-base-switch/index.vue';
|
|
17
|
-
|
|
18
|
-
defineOptions({
|
|
19
|
-
name: 'BsgoalBaseItemDemo'
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
const props = defineProps({})
|
|
23
|
-
|
|
24
|
-
const switchModelValue = ref('0')
|
|
25
|
-
</script>
|
|
26
|
-
<template>
|
|
27
|
-
<div class="bsgoal-base-item-demo">
|
|
28
|
-
<div class="base_item_demo">
|
|
29
|
-
<BsgoalBaseItem label="是否开通接听值班表设置">
|
|
30
|
-
<template #content>
|
|
31
|
-
<div>
|
|
32
|
-
<BsgoalBaseSwitch v-model="switchModelValue" />
|
|
33
|
-
</div>
|
|
34
|
-
</template>
|
|
35
|
-
</BsgoalBaseItem>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</template>
|
|
39
|
-
<style lang="scss" scoped>
|
|
40
|
-
/* 自定义样式
|
|
41
|
-
---------------------------------------------------------------- */
|
|
42
|
-
</style>
|
|
43
|
-
<style lang="scss">
|
|
44
|
-
/* 覆盖样式
|
|
45
|
-
---------------------------------------------------------------- */
|
|
46
|
-
</style>
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-24 17:46:21
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-24 18:27:22
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-item\index.vue
|
|
7
|
-
* @Description: 表单项
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
<script setup>
|
|
11
|
-
/* setup模板
|
|
12
|
-
---------------------------------------------------------------- */
|
|
13
|
-
import { ref } from 'vue'
|
|
14
|
-
|
|
15
|
-
defineOptions({
|
|
16
|
-
name: 'BsgoalBaseItem'
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
const props = defineProps({
|
|
20
|
-
/**
|
|
21
|
-
* label 后缀
|
|
22
|
-
*/
|
|
23
|
-
suffix: {
|
|
24
|
-
type: [String],
|
|
25
|
-
default: ':'
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* label
|
|
29
|
-
*/
|
|
30
|
-
label: {
|
|
31
|
-
type: [String],
|
|
32
|
-
default: ':'
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
</script>
|
|
36
|
-
<template>
|
|
37
|
-
<div class="bsgoal-base-item">
|
|
38
|
-
<div class="base_item">
|
|
39
|
-
<div class="base_item_label">
|
|
40
|
-
<slot name="label">{{ label }}</slot> <span>{{ suffix }}</span>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="base_item_contetn">
|
|
43
|
-
<slot name="content"></slot>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
<style lang="scss">
|
|
49
|
-
/* 覆盖样式
|
|
50
|
-
---------------------------------------------------------------- */
|
|
51
|
-
.bsgoal-base-item {
|
|
52
|
-
.base_item {
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
}
|
|
56
|
-
.base_item_label {
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
font-size: 14px;
|
|
60
|
-
color: #606266;
|
|
61
|
-
height: 32px;
|
|
62
|
-
line-height: 32px;
|
|
63
|
-
padding-right: 12px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
</style>
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-20 13:51:53
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-20 14:48:43
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-layout\demo.vue
|
|
7
|
-
* @Description: 布局组件 演示
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import { ref } from 'vue'
|
|
15
|
-
import BsgoalBaseLayout from './index.vue'
|
|
16
|
-
|
|
17
|
-
defineOptions({
|
|
18
|
-
name: 'BsgoalBaseLayoutDemo'
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const props = defineProps({})
|
|
22
|
-
</script>
|
|
23
|
-
<template>
|
|
24
|
-
<div class="bsgoal-base-layout-demo">
|
|
25
|
-
<BsgoalBaseLayout>
|
|
26
|
-
<template #area>
|
|
27
|
-
<div>0</div>
|
|
28
|
-
</template>
|
|
29
|
-
<template #area1>
|
|
30
|
-
<div>1</div>
|
|
31
|
-
</template>
|
|
32
|
-
<template #area2>
|
|
33
|
-
<div>2</div>
|
|
34
|
-
</template>
|
|
35
|
-
<template #area13>
|
|
36
|
-
<div>3</div>
|
|
37
|
-
</template>
|
|
38
|
-
</BsgoalBaseLayout>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
<style lang="scss" scoped>
|
|
42
|
-
/* 自定义样式
|
|
43
|
-
---------------------------------------------------------------- */
|
|
44
|
-
</style>
|
|
45
|
-
<style lang="scss">
|
|
46
|
-
/* 覆盖样式
|
|
47
|
-
---------------------------------------------------------------- */
|
|
48
|
-
</style>
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-20 13:51:38
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-20 15:22:33
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-layout\index.vue
|
|
7
|
-
* @Description: 响应式 布局
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import { ref, useSlots } from 'vue'
|
|
15
|
-
|
|
16
|
-
defineOptions({
|
|
17
|
-
name: 'BsgoalBaseLayout'
|
|
18
|
-
})
|
|
19
|
-
const props = defineProps({
|
|
20
|
-
/**
|
|
21
|
-
* 间隔
|
|
22
|
-
*/
|
|
23
|
-
gutter: {
|
|
24
|
-
type: [Number],
|
|
25
|
-
default: 0
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* 划分的比例
|
|
29
|
-
*/
|
|
30
|
-
ratio: {
|
|
31
|
-
type: [Number],
|
|
32
|
-
default: 12
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
// ---> S 插槽 <---
|
|
37
|
-
const slots = useSlots()
|
|
38
|
-
const slotNames = ref(Object.keys(slots))
|
|
39
|
-
// ---> E 插槽 <---
|
|
40
|
-
</script>
|
|
41
|
-
<template>
|
|
42
|
-
<div class="bsgoal-base-layout">
|
|
43
|
-
<el-row class="base_layout" :gutter="gutter">
|
|
44
|
-
<template v-for="(name, key) of slotNames" :key="key">
|
|
45
|
-
<el-col :xs="24" :sm="24" :md="ratio" :lg="ratio" :xl="ratio">
|
|
46
|
-
<slot :name="name"></slot>
|
|
47
|
-
</el-col>
|
|
48
|
-
</template>
|
|
49
|
-
</el-row>
|
|
50
|
-
</div>
|
|
51
|
-
</template>
|
|
52
|
-
<style lang="scss">
|
|
53
|
-
/* 覆盖样式
|
|
54
|
-
---------------------------------------------------------------- */
|
|
55
|
-
.bsgoal-base-layout {
|
|
56
|
-
}
|
|
57
|
-
</style>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-04-13 17:14:13
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-04-13 17:51:52
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-line\demo.vue
|
|
7
|
-
* @Description: 分割线公共组件 演示
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import BsgoalBaseLine from './index.vue'
|
|
15
|
-
import { ref } from 'vue';
|
|
16
|
-
|
|
17
|
-
defineOptions({
|
|
18
|
-
name: 'BsgoalBaseLineDemo'
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const props = defineProps({
|
|
22
|
-
|
|
23
|
-
})
|
|
24
|
-
</script>
|
|
25
|
-
<template>
|
|
26
|
-
<div class="bsgoal-base-line-demo" >
|
|
27
|
-
<BsgoalBaseLine />
|
|
28
|
-
<BsgoalBaseLine vertical />
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
/* 自定义样式
|
|
33
|
-
---------------------------------------------------------------- */
|
|
34
|
-
.bsgoal-base-line-demo {
|
|
35
|
-
height: 100%;
|
|
36
|
-
}
|
|
37
|
-
</style>
|
|
38
|
-
<style lang="scss">
|
|
39
|
-
/* 覆盖样式
|
|
40
|
-
---------------------------------------------------------------- */
|
|
41
|
-
</style>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-04-13 17:12:43
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-06-20 19:14:29
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-line\index.vue
|
|
7
|
-
* @Description: 分割线公共组件
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
|
|
11
|
-
<script setup>
|
|
12
|
-
/* setup模板
|
|
13
|
-
---------------------------------------------------------------- */
|
|
14
|
-
import { ref, inject, watchEffect } from 'vue'
|
|
15
|
-
|
|
16
|
-
defineOptions({
|
|
17
|
-
name: 'BsgoalBaseLine'
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
const props = defineProps({
|
|
21
|
-
/**
|
|
22
|
-
* 是否为垂直
|
|
23
|
-
*/
|
|
24
|
-
vertical: {
|
|
25
|
-
type: [Boolean],
|
|
26
|
-
default: false
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
|
|
30
|
-
// ---> S 左侧机构树折叠状态 <---
|
|
31
|
-
const TREE_SWITCH_STATUS = inject('TREE_SWITCH_STATUS')
|
|
32
|
-
// ---> E 左侧机构树折叠状态 <---
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<template>
|
|
36
|
-
<div class="bsgoal-base-line" :class="{ 'bsgoal-base-line__vertical': vertical }">
|
|
37
|
-
<div
|
|
38
|
-
class="base_line"
|
|
39
|
-
:class="{
|
|
40
|
-
'base_line__vertical': vertical,
|
|
41
|
-
'bsgoal-base-line__fill': TREE_SWITCH_STATUS === false
|
|
42
|
-
}"
|
|
43
|
-
></div>
|
|
44
|
-
</div>
|
|
45
|
-
</template>
|
|
46
|
-
<style lang="scss">
|
|
47
|
-
/* 覆盖样式
|
|
48
|
-
---------------------------------------------------------------- */
|
|
49
|
-
.bsgoal-base-line {
|
|
50
|
-
.base_line {
|
|
51
|
-
height: 10px;
|
|
52
|
-
background-color: #f0f2f5;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.bsgoal-base-line__vertical {
|
|
56
|
-
display: inline-block;
|
|
57
|
-
height: 100%;
|
|
58
|
-
}
|
|
59
|
-
.base_line__vertical {
|
|
60
|
-
width: 10px;
|
|
61
|
-
height: 100%;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.bsgoal-base-line__fill {
|
|
65
|
-
position: absolute;
|
|
66
|
-
left: 0;
|
|
67
|
-
right: 0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
</style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: canlong.shen
|
|
3
|
-
* @Date: 2023-05-10 13:40:43
|
|
4
|
-
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-10 13:55:36
|
|
6
|
-
* @FilePath: \common\src\components\bsgoal-base-link\demo.vue
|
|
7
|
-
* @Description: 链接公共组件 演示
|
|
8
|
-
*
|
|
9
|
-
-->
|
|
10
|
-
<script setup>
|
|
11
|
-
/* setup模板
|
|
12
|
-
---------------------------------------------------------------- */
|
|
13
|
-
import { ref } from 'vue'
|
|
14
|
-
import BsgoalBaseLink from './index.vue'
|
|
15
|
-
|
|
16
|
-
defineOptions({
|
|
17
|
-
name: 'BsgoalBaseLinkDemo'
|
|
18
|
-
})
|
|
19
|
-
const props = defineProps({})
|
|
20
|
-
|
|
21
|
-
const clickLink = () => {
|
|
22
|
-
console.log('点击链接了')
|
|
23
|
-
}
|
|
24
|
-
</script>
|
|
25
|
-
<template>
|
|
26
|
-
<div class="bsgoal-base-link-demo">
|
|
27
|
-
<BsgoalBaseLink content="这是链接" @on-click="clickLink" />
|
|
28
|
-
<BsgoalBaseLink underline content="这是链接" @on-click="clickLink" />
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
<style lang="scss" scoped>
|
|
32
|
-
/* 自定义样式
|
|
33
|
-
---------------------------------------------------------------- */
|
|
34
|
-
</style>
|
|
35
|
-
<style lang="scss">
|
|
36
|
-
/* 覆盖样式
|
|
37
|
-
---------------------------------------------------------------- */
|
|
38
|
-
</style>
|