@bsgoal/common 2.8.3 → 2.8.4
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
CHANGED
|
@@ -49,14 +49,14 @@ const change = (value = '', data = {}) => {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
const test = (params = '') => {
|
|
52
|
-
selectValue.value = '
|
|
52
|
+
selectValue.value = ''
|
|
53
53
|
}
|
|
54
54
|
</script>
|
|
55
55
|
<template>
|
|
56
56
|
<div class="bsgoal-base-select-demo">
|
|
57
57
|
<div class="base_select_demo">
|
|
58
58
|
{{ selectValue }}
|
|
59
|
-
<BsgoalBaseSelect
|
|
59
|
+
<BsgoalBaseSelect :model-value="selectValue" :range="selectRange" @change="change" />
|
|
60
60
|
<el-button type="primary" @click="test">test</el-button>
|
|
61
61
|
</div>
|
|
62
62
|
</div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-05-24 11:09:59
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-30
|
|
5
|
+
* @LastEditTime: 2023-05-30 17:58:18
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-select\index.vue
|
|
7
7
|
* @Description: Select 公共组件
|
|
8
8
|
*
|
|
@@ -45,6 +45,13 @@ const props = defineProps({
|
|
|
45
45
|
none: {
|
|
46
46
|
type: [String],
|
|
47
47
|
default: '暂无数据'
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* 是否可清空
|
|
51
|
+
*/
|
|
52
|
+
clearable: {
|
|
53
|
+
type: [Boolean],
|
|
54
|
+
default: false
|
|
48
55
|
}
|
|
49
56
|
})
|
|
50
57
|
|
|
@@ -81,9 +88,9 @@ const triggerChange = (value = '') => {
|
|
|
81
88
|
<template>
|
|
82
89
|
<div class="bsgoal-base-select">
|
|
83
90
|
<el-select
|
|
84
|
-
clearable
|
|
85
91
|
class="base_select"
|
|
86
92
|
v-model="selectValue"
|
|
93
|
+
:clearable="clearable"
|
|
87
94
|
:no-data-text="none"
|
|
88
95
|
:placeholder="placeholder"
|
|
89
96
|
@change="triggerChange"
|