@bsgoal/common 2.8.5 → 2.8.7
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 +1157 -1129
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-dialog/debug.log +1 -0
- package/src/components/bsgoal-base-form/demo.vue +6 -10
- package/src/components/bsgoal-base-form/index.vue +19 -4
- package/src/components/bsgoal-base-tabs/demo.vue +27 -23
- package/src/components/bsgoal-base-tabs/index.vue +27 -2
- package/src/components/layout/layout-right-container.vue +1 -0
- package/src/debug.log +1 -0
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.base_tooltip_popper{max-width:20em}.bsgoal-base-form .base_form
|
|
1
|
+
@charset "UTF-8";.base_tooltip_popper{max-width:20em}.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-form .base_form--visible{width:0px;height:0px;overflow:hidden}.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-button,.bsgoal-base-button .base_button{display:inline-block}.bsgoal-base-dialog .base_dialog_header{font-weight:500;color:#303133;font-size:16px}.bsgoal-base-dialog .bsgoal-dialog__footer--conceal .el-dialog__footer{display:none}.bsgoal-base-dialog .bsgoal_base_dialog_main .el-dialog__header{padding:16px 30px;margin-right:0;background-color:#f5f7fa;height:initial!important}.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}.bsgoal-base-dialog .bsgoal_base_dialog_main .base_dialog_content{padding:30px}.bsgoal-base-dialog .bsgoal_base_dialog_main .base_dialog_content--form{padding:0 0 30px 30px}.bsgoal-base-dialog .bsgoal_base_dialog_main .base_dialog_content--form .bsgoal-base-form .base_form{padding:initial;padding-top:16px}.bsgoal-base-dialog .bsgoal_base_dialog_main .base_dialog_content--blank{padding-top:0}.bsgoal-base-dialog .base_dialog_footer_cancel{margin-right:16px}.bsgoal-base-tabs .base_tabs--fill{position:absolute;top:8px;bottom:0;left:16px;right:16px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.bsgoal-base-tabs .base_tabs--fill>div.el-tabs__content{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative}.bsgoal-base-alert .el-alert,.bsgoal-base-item .base_item{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.bsgoal-base-item .base_item_label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-size:14px;color:#606266;height:32px;line-height:32px;padding-right:12px}
|
package/package.json
CHANGED
|
@@ -5,3 +5,4 @@
|
|
|
5
5
|
[0531/134940.513:ERROR:registration_protocol_win.cc(107)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|
|
6
6
|
[0531/140033.847:ERROR:registration_protocol_win.cc(107)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|
|
7
7
|
[0531/140033.869:ERROR:registration_protocol_win.cc(107)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|
|
8
|
+
[0531/143430.040:ERROR:registration_protocol_win.cc(107)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-10 15:00:00
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-
|
|
5
|
+
* @LastEditTime: 2023-05-31 17:43:54
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-form\demo.vue
|
|
7
7
|
* @Description: 表单公共组件演示组件
|
|
8
8
|
*
|
|
@@ -35,20 +35,17 @@ const confirm = () => {
|
|
|
35
35
|
|
|
36
36
|
const bindModel = ref({ prop1: '111', prop99: 1, prop101: '否', prop102: '0', _prop104: '' })
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
38
|
// 配置项
|
|
41
39
|
const configOptions = ref([
|
|
42
40
|
{
|
|
43
41
|
label: 'prop104',
|
|
44
42
|
prop: '_prop104',
|
|
45
|
-
validator:true,
|
|
43
|
+
validator: true,
|
|
46
44
|
rules: [
|
|
47
45
|
{
|
|
48
46
|
validator: (rule, value, callback) => {
|
|
49
47
|
console.log('value', value)
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
|
|
52
49
|
// return callback(new Error('Please input the age'))
|
|
53
50
|
return callback()
|
|
54
51
|
},
|
|
@@ -64,7 +61,7 @@ const configOptions = ref([
|
|
|
64
61
|
return `${value}`.match(/^\d{1,}$/) ? value : ''
|
|
65
62
|
},
|
|
66
63
|
placeholder: '',
|
|
67
|
-
rules:true
|
|
64
|
+
rules: true
|
|
68
65
|
},
|
|
69
66
|
|
|
70
67
|
{
|
|
@@ -260,13 +257,12 @@ const configOptions = ref([
|
|
|
260
257
|
ref="BSGOAL_BASE_FORM_REF"
|
|
261
258
|
readonly
|
|
262
259
|
none="--"
|
|
260
|
+
:itemStyler="{ marginBottom: '8px' }"
|
|
263
261
|
:limits="10"
|
|
264
262
|
:config-options="configOptions"
|
|
265
263
|
:bind-model="bindModel"
|
|
266
264
|
>
|
|
267
|
-
|
|
268
|
-
6666
|
|
269
|
-
</template>
|
|
265
|
+
<template #_prop104> 6666 </template>
|
|
270
266
|
</BsgoalBaseForm>
|
|
271
267
|
<el-button type="primary" @click="confirm">提交</el-button>
|
|
272
268
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-17 11:44:29
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-
|
|
5
|
+
* @LastEditTime: 2023-05-31 14:46:37
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-form\index.vue
|
|
7
7
|
* @Description: 表单公共组件
|
|
8
8
|
*
|
|
@@ -96,6 +96,20 @@ const props = defineProps({
|
|
|
96
96
|
type: [String],
|
|
97
97
|
default: 'right',
|
|
98
98
|
validator: (v) => ['left', 'rightn', 'top'].includes(v)
|
|
99
|
+
},
|
|
100
|
+
/**
|
|
101
|
+
* base_form 绑定的 style 对象
|
|
102
|
+
*/
|
|
103
|
+
styler: {
|
|
104
|
+
type: [Object],
|
|
105
|
+
default: () => ({})
|
|
106
|
+
},
|
|
107
|
+
/**
|
|
108
|
+
* el_form_item 绑定的 style 对象
|
|
109
|
+
*/
|
|
110
|
+
itemStyler: {
|
|
111
|
+
type: [Object],
|
|
112
|
+
default: () => ({})
|
|
99
113
|
}
|
|
100
114
|
})
|
|
101
115
|
|
|
@@ -397,11 +411,12 @@ defineExpose({
|
|
|
397
411
|
</script>
|
|
398
412
|
<template>
|
|
399
413
|
<div class="bsgoal-base-form">
|
|
400
|
-
<div class="base_form">
|
|
414
|
+
<div class="base_form" :style="styler">
|
|
401
415
|
<!-- / 表单内容 -->
|
|
402
416
|
<el-form
|
|
403
417
|
ref="EL_FORM_REF"
|
|
404
418
|
label-suffix=":"
|
|
419
|
+
style="padding: 0px"
|
|
405
420
|
:label-position="labelPosition"
|
|
406
421
|
:model="model"
|
|
407
422
|
v-align
|
|
@@ -437,7 +452,7 @@ defineExpose({
|
|
|
437
452
|
:key="key"
|
|
438
453
|
>
|
|
439
454
|
<el-col :class="{ 'base_form--visible': !visible }" :xs="24" :sm="24" :md="medium">
|
|
440
|
-
<el-form-item :label="label" :prop="prop" :rules="rules">
|
|
455
|
+
<el-form-item :style="itemStyler" :label="label" :prop="prop" :rules="rules">
|
|
441
456
|
<slot :name="[prop]" :option="{ readonly, value: model[prop], values: model }">
|
|
442
457
|
<!-- S 内容组件 -->
|
|
443
458
|
<template v-if="!readonly">
|
|
@@ -639,7 +654,7 @@ defineExpose({
|
|
|
639
654
|
---------------------------------------------------------------- */
|
|
640
655
|
.bsgoal-base-form {
|
|
641
656
|
.base_form {
|
|
642
|
-
padding: 16px 6px 8px 16px;
|
|
657
|
+
/* padding: 16px 6px 8px 16px; */
|
|
643
658
|
|
|
644
659
|
.el-form-item {
|
|
645
660
|
// margin-bottom: 8px;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-28 16:01:11
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-06-01 10:47:33
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-tabs\demo.vue
|
|
7
7
|
* @Description: tabs 标签切页 公共组件演示
|
|
8
8
|
-->
|
|
@@ -18,34 +18,31 @@ defineOptions({
|
|
|
18
18
|
|
|
19
19
|
const props = defineProps({})
|
|
20
20
|
const activeTabName = ref('tab1')
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
21
|
+
const config = ref([
|
|
22
|
+
{
|
|
23
|
+
label: 'tab1',
|
|
24
|
+
value: 'tab1'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'tab2',
|
|
28
|
+
value: 'tab2'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'tab3',
|
|
32
|
+
value: 'tab3'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: 'tab4',
|
|
36
|
+
value: 'tab4'
|
|
37
|
+
}
|
|
39
38
|
])
|
|
40
39
|
</script>
|
|
41
40
|
<template>
|
|
42
41
|
<div class="bsgoal-base-tabs-demo">
|
|
43
42
|
<div class="base_tabs_demo">
|
|
44
|
-
<BsgoalBaseTabs :config-options="config" >
|
|
43
|
+
<BsgoalBaseTabs :config-options="config" stretch fill>
|
|
45
44
|
<template #tab1>
|
|
46
|
-
<div>
|
|
47
|
-
这是 tab1
|
|
48
|
-
</div>
|
|
45
|
+
<div>这是 tab1</div>
|
|
49
46
|
</template>
|
|
50
47
|
</BsgoalBaseTabs>
|
|
51
48
|
</div>
|
|
@@ -54,6 +51,13 @@ const config = ref([
|
|
|
54
51
|
<style lang="scss" scoped>
|
|
55
52
|
/* 自定义样式
|
|
56
53
|
---------------------------------------------------------------- */
|
|
54
|
+
.base_tabs_demo {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 0;
|
|
57
|
+
bottom: 0;
|
|
58
|
+
right: 0;
|
|
59
|
+
left: 0;
|
|
60
|
+
}
|
|
57
61
|
</style>
|
|
58
62
|
<style lang="scss">
|
|
59
63
|
/* 覆盖样式
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-28 16:01:06
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-
|
|
5
|
+
* @LastEditTime: 2023-06-01 10:43:54
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-tabs\index.vue
|
|
7
7
|
* @Description: tabs 标签页公共组件
|
|
8
8
|
*
|
|
@@ -54,6 +54,13 @@ const props = defineProps({
|
|
|
54
54
|
stretch: {
|
|
55
55
|
type: [Boolean],
|
|
56
56
|
default: false
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* fill 自动填满高度
|
|
60
|
+
*/
|
|
61
|
+
fill: {
|
|
62
|
+
type: [Boolean],
|
|
63
|
+
default: false
|
|
57
64
|
}
|
|
58
65
|
})
|
|
59
66
|
|
|
@@ -77,7 +84,10 @@ const changeTab = (activeValue = '') => {
|
|
|
77
84
|
<template>
|
|
78
85
|
<div class="bsgoal-base-tabs">
|
|
79
86
|
<el-tabs
|
|
80
|
-
class="
|
|
87
|
+
class="base_tabs"
|
|
88
|
+
:class="{
|
|
89
|
+
'base_tabs--fill': fill
|
|
90
|
+
}"
|
|
81
91
|
:stretch="stretch"
|
|
82
92
|
:type="type"
|
|
83
93
|
:model-value="modelValueGet"
|
|
@@ -94,4 +104,19 @@ const changeTab = (activeValue = '') => {
|
|
|
94
104
|
<style lang="scss">
|
|
95
105
|
/* 覆盖样式
|
|
96
106
|
---------------------------------------------------------------- */
|
|
107
|
+
.bsgoal-base-tabs {
|
|
108
|
+
.base_tabs--fill {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: 8px;
|
|
111
|
+
bottom: 0;
|
|
112
|
+
left: 16px;
|
|
113
|
+
right: 16px;
|
|
114
|
+
display: flex;
|
|
115
|
+
flex-direction: column;
|
|
116
|
+
& > div.el-tabs__content {
|
|
117
|
+
flex: 1;
|
|
118
|
+
position: relative;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
97
122
|
</style>
|
package/src/debug.log
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[0531/183438.359:ERROR:registration_protocol_win.cc(107)] CreateFile: ϵͳ�Ҳ���ָ�����ļ��� (0x2)
|