forked from geolba/tethys.backend
Arno Kaimbacher
cf859ba402
- add package @opensearch-project/opensearch for manipulating opensearch index - index tethys datasets via new command IndexDatasets, callable node ace index:datasets or node ace index:datasets -p 193 - add mapping file for opensearch index in public/records.json - added solr.xslt for transforming Datset model to json for opensearch adding in opensearch - added route /editor/ dataset/:id/update (beginning of editor/DatasetController.ts - npm updates
43 lines
892 B
Vue
43 lines
892 B
Vue
<template>
|
|
<div class="mb-3">
|
|
<label>
|
|
<span v-if="label" class="block font-semibold">{{ label }}</span>
|
|
<!-- <n-input v-bind:type="type" v-model:value="internalValue" v-bind:placeholder="placeholder"/> -->
|
|
</label>
|
|
<div v-if="Array.isArray(errors)" class="text-xs text-red-500">
|
|
{{ errors.join(', ') }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { computed } from 'vue';
|
|
// import { NInput } from 'naive-ui';
|
|
|
|
const props = defineProps({
|
|
type: {
|
|
type: String,
|
|
default: 'text',
|
|
},
|
|
label: String,
|
|
placeholder: String,
|
|
modelValue: String,
|
|
errors: Array,
|
|
});
|
|
|
|
const emit = defineEmits(['update:modelValue']);
|
|
|
|
const internalValue = computed({
|
|
// get() {
|
|
// return props.modelValue;
|
|
// },
|
|
// set(value) {
|
|
// emit('update:modelValue', value);
|
|
// },
|
|
get: () => props.modelValue,
|
|
set: (value) => {
|
|
emit('update:modelValue', value);
|
|
},
|
|
});
|
|
</script>
|