@bsgoal/common 2.16.3 → 2.16.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsgoal/common",
3
- "version": "2.16.3",
3
+ "version": "2.16.4",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -27,7 +27,7 @@ const task = (done) => {
27
27
  </script>
28
28
  <template>
29
29
  <div class="bsgoal-base-button-demo">
30
- <BsgoalBaseButton :task="task" mode="detail" > </BsgoalBaseButton>
30
+ <BsgoalBaseButton :task="task" mode="detail" disabled > </BsgoalBaseButton>
31
31
 
32
32
  <BsgoalBaseButton :task="task" mode="edit" plain > </BsgoalBaseButton>
33
33
  <BsgoalBaseButton :task="task" mode="cancel" > </BsgoalBaseButton>
@@ -2,7 +2,7 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-05-18 16:24:25
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-07-11 11:20:37
5
+ * @LastEditTime: 2023-07-11 18:04:43
6
6
  * @FilePath: \common\src\components\bsgoal-base-button\index.vue
7
7
  * @Description: 统一按钮
8
8
  *
@@ -57,6 +57,13 @@ const props = defineProps({
57
57
  hasLoading: {
58
58
  type: [Boolean],
59
59
  default: true
60
+ },
61
+ /**
62
+ * disabled
63
+ */
64
+ disabled: {
65
+ type: [Boolean],
66
+ default: false
60
67
  }
61
68
  })
62
69
 
@@ -135,9 +142,14 @@ const contentGet = computed(() => {
135
142
  <div class="bsgoal-base-button">
136
143
  <div class="base_button" @click="triggerClick">
137
144
  <slot :loading="loading">
138
- <el-button :type="typeGet" :icon="iconGet" :loading="loading" :plain="plain">{{
139
- contentGet
140
- }}</el-button>
145
+ <el-button
146
+ :type="typeGet"
147
+ :icon="iconGet"
148
+ :loading="loading"
149
+ :plain="plain"
150
+ :disabled="disabled"
151
+ >{{ contentGet }}</el-button
152
+ >
141
153
  </slot>
142
154
  </div>
143
155
  </div>