@aquiferre/ui-kit 0.1.4 → 0.1.5

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.
@@ -9,7 +9,7 @@
9
9
  <p v-if="content" class="text-text-secondary text-sm mt-2">{{ content }}</p>
10
10
  </div>
11
11
  <div class="dialog-actions px-6 py-4 border-t border-border-primary bg-bg-secondary/50 rounded-b-2xl">
12
- <button class="btn-secondary" @click="cancel">
12
+ <button v-if="showCancel" class="btn-secondary" @click="cancel">
13
13
  {{ cancelText }}
14
14
  </button>
15
15
  <button :disabled="loading" :class="confirmClass" @click="confirm">
@@ -29,6 +29,7 @@ withDefaults(defineProps<{
29
29
  content?: string
30
30
  confirmText?: string
31
31
  cancelText?: string
32
+ showCancel?: boolean
32
33
  loading?: boolean
33
34
  loadingText?: string
34
35
  confirmClass?: string
@@ -36,6 +37,7 @@ withDefaults(defineProps<{
36
37
  title: '确认删除',
37
38
  confirmText: '确认删除',
38
39
  cancelText: '取消',
40
+ showCancel: true,
39
41
  loadingText: '删除中...',
40
42
  confirmClass: 'btn-danger',
41
43
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aquiferre/ui-kit",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "index.ts",