feat: update expressions config

This commit is contained in:
Fine
2024-01-10 17:50:34 +08:00
parent 55d9df3cbb
commit ddd24fa769
6 changed files with 63 additions and 31 deletions

View File

@@ -31,7 +31,7 @@ limitations under the License. -->
</template>
<script lang="ts" setup>
import { nextTick, ref } from "vue";
import { nextTick, ref, watch } from "vue";
import type { PropType } from "vue";
import { ElInput } from "element-plus";
@@ -69,6 +69,13 @@ limitations under the License. -->
inputValue.value = "";
emits("change", dynamicTags.value);
};
watch(
() => props.tags,
() => {
dynamicTags.value = props.tags || [];
},
);
</script>
<style lang="scss" scoped>
.input-name {