generated from Seekra/repository-template
feat(settings): add settings component for inputs
This commit is contained in:
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
|
||||
<script setup>
|
||||
import Switch from './Switch.vue';
|
||||
import SettingsInput from './SettingsInput.vue';
|
||||
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { getSectionHeadingLevel } from '../utils/getSectionHeadingLevel.js';
|
||||
@@ -46,6 +47,11 @@ const props = defineProps({
|
||||
:setting="setting"
|
||||
:path="`${props.path}.${setting.name}`"
|
||||
/>
|
||||
<SettingsInput
|
||||
v-if="setting.type === 'string' || setting.type === 'number'"
|
||||
:setting="setting"
|
||||
:path="`${props.path}.${setting.name}`"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user