diff --git a/src/components/BaseAlert.vue b/src/components/BaseAlert.vue index 9bf6138..636f1cf 100644 --- a/src/components/BaseAlert.vue +++ b/src/components/BaseAlert.vue @@ -31,11 +31,13 @@ }, dismissible: { type: Boolean, - default: false + default: false, + description: 'Whether alert is dismissible (closeable)' }, withIcon: { type: Boolean, - default: false + default: false, + description: 'Whether alert contains icon' } }, data() { diff --git a/src/components/BaseButton.vue b/src/components/BaseButton.vue index b27027e..8a7c7f3 100644 --- a/src/components/BaseButton.vue +++ b/src/components/BaseButton.vue @@ -9,51 +9,59 @@ {'btn-round': round}, {'btn-block': block}, {'btn-icon btn-fab': icon}, - {[`btn-${type}`]: type && !outline}, - {[`btn-outline-${type}`]: type && outline}, + {[`btn-${type}`]: type}, {[`btn-${size}`]: size}, {'btn-simple': simple}, {'btn-link': link}, {'disabled': disabled && tag !== 'button'} ]"> - + diff --git a/src/components/BaseTable.vue b/src/components/BaseTable.vue index f2e0b00..0374d56 100644 --- a/src/components/BaseTable.vue +++ b/src/components/BaseTable.vue @@ -24,27 +24,30 @@ export default { name: 'base-table', props: { - columns: Array, - data: Array, + columns: { + type: Array, + default: () => [], + description: "Table columns" + }, + data: { + type: Array, + default: () => [], + description: "Table data" + }, type: { type: String, // striped | hover - default: "" - }, - title: { - type: String, - default: "" + default: "", + description: "Whether table is striped or hover type" }, theadClasses: { type: String, - default: '' + default: '', + description: " css classes" }, tbodyClasses: { type: String, - default: '' - }, - subTitle: { - type: String, - default: "" + default: '', + description: " css classes" } }, computed: { diff --git a/src/components/Cards/Card.vue b/src/components/Cards/Card.vue index 7986c3c..b06ca40 100644 --- a/src/components/Cards/Card.vue +++ b/src/components/Cards/Card.vue @@ -16,21 +16,41 @@ - diff --git a/src/components/Inputs/BaseInput.vue b/src/components/Inputs/BaseInput.vue index f2d1e21..6111bfe 100644 --- a/src/components/Inputs/BaseInput.vue +++ b/src/components/Inputs/BaseInput.vue @@ -39,10 +39,22 @@ inheritAttrs: false, name: "base-input", props: { - label: String, - value: [String, Number], - addonRightIcon: String, - addonLeftIcon: String + label: { + type: String, + description: "Input label" + }, + value: { + type: [String, Number], + description: "Input value" + }, + addonRightIcon: { + type: String, + description: "Input icon on the right" + }, + addonLeftIcon: { + type: String, + description: "Input icon on the left" + }, }, model: { prop: 'value',