feat: add expressions to dashboard configurations on the dashboard list page (#358)

This commit is contained in:
Fine0830
2024-01-11 13:40:37 +08:00
committed by GitHub
parent 4ec99fc868
commit 867af6924d
6 changed files with 104 additions and 2 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 {