diff --git a/src/runtime/components/BitinflowButton.vue b/src/runtime/components/BitinflowButton.vue
index 120e844..ae09b67 100644
--- a/src/runtime/components/BitinflowButton.vue
+++ b/src/runtime/components/BitinflowButton.vue
@@ -4,7 +4,10 @@
:class="computedClass"
@click="click"
>
-
+
+
+
+
@@ -17,6 +20,10 @@ export default {
type: String,
default: 'md'
},
+ loading: {
+ type: Boolean,
+ default: false
+ },
color: {
type: String,
default: 'base'
@@ -35,59 +42,87 @@ export default {
computed: {
computedClass: function () {
- return `button-text-${this.size} ${this.color}-${this.variant}`
+ return `button-text-${this.size} ${this.color}-${this.variant} ${this.disabled ? 'disabled' : ''} ${this.loading ? 'loading' : ''}`
},
+ },
- methods: {
- click() {
- this.$emit('click');
- }
+ methods: {
+ click() {
+ if (this.disabled || this.loading) return;
+ this.$emit('click');
}
}
}
diff --git a/src/runtime/components/BitinflowInput.vue b/src/runtime/components/BitinflowInput.vue
index 68d7f0d..bec2505 100644
--- a/src/runtime/components/BitinflowInput.vue
+++ b/src/runtime/components/BitinflowInput.vue
@@ -5,6 +5,7 @@
-
+
+
+
diff --git a/src/runtime/components/BitinflowSelectBox.vue b/src/runtime/components/BitinflowSelectBox.vue
new file mode 100644
index 0000000..3108e5b
--- /dev/null
+++ b/src/runtime/components/BitinflowSelectBox.vue
@@ -0,0 +1,44 @@
+
+
+
+
+
diff --git a/src/runtime/components/BitinflowSelectBoxGroup.vue b/src/runtime/components/BitinflowSelectBoxGroup.vue
new file mode 100644
index 0000000..9a2251f
--- /dev/null
+++ b/src/runtime/components/BitinflowSelectBoxGroup.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+