mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
28 lines
472 B
Vue
28 lines
472 B
Vue
<template>
|
|
<div
|
|
class="ds-form-item"
|
|
:class="$parentInput ? $parentInput.stateClasses : ''">
|
|
<ds-input-label
|
|
v-if="$parentInput"
|
|
:label="$parentInput.label"
|
|
:for="$parentInput.id" />
|
|
<slot/>
|
|
<ds-input-error :error="$parentInput.error" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
/**
|
|
* @version 1.0.0
|
|
* @private
|
|
*/
|
|
export default {
|
|
name: 'DsFormItem',
|
|
inject: ['$parentInput']
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import 'style';
|
|
</style>
|