diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue index bfd0dea40..9684dcc32 100644 --- a/src/components/common/VnInput.vue +++ b/src/components/common/VnInput.vue @@ -12,14 +12,6 @@ const $props = defineProps({ type: Boolean, default: false, }, - label: { - type: String, - default: '', - }, - required: { - type: Boolean, - default: false, - }, }); const value = computed({ @@ -47,8 +39,8 @@ const styleAttrs = computed(() => { ref="vnInputRef" v-model="value" v-bind="{ ...$attrs, ...styleAttrs }" - :label="required ? label + ' *' : label" type="text" + :class="{ required: $attrs.required }" > + + diff --git a/src/components/common/VnSelectCreate.vue b/src/components/common/VnSelectCreate.vue index cdfb0bfbd..bdc3f5cc8 100644 --- a/src/components/common/VnSelectCreate.vue +++ b/src/components/common/VnSelectCreate.vue @@ -20,14 +20,6 @@ const $props = defineProps({ type: Array, default: () => ['developer'], }, - label: { - type: String, - default: '', - }, - required: { - type: Boolean, - default: false, - }, }); const role = useRole(); @@ -52,13 +44,7 @@ const toggleForm = () => {