mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-18 19:01:29 +00:00
27 lines
451 B
Vue
Executable File
27 lines
451 B
Vue
Executable File
<template>
|
|
<div
|
|
class="ds-form-item"
|
|
:class="$parentInput.stateClasses">
|
|
<ds-input-label
|
|
:label="$parentInput.label"
|
|
:for="$parentInput.id" />
|
|
<slot/>
|
|
<ds-input-error :error="$parentInput ? $parentInput.error : null" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
/**
|
|
* @version 1.0.0
|
|
* @private
|
|
*/
|
|
export default {
|
|
name: 'DsFormItem',
|
|
inject: ['$parentInput']
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import 'style';
|
|
</style>
|