fix(项目管理): 修复应用设置设置项展示问题

This commit is contained in:
RubyLiu 2023-11-01 18:38:47 +08:00 committed by rubylliu
parent b62c7c271b
commit 0bb548561e
1 changed files with 10 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="ms-time-selector"> <div class="ms-time-selector">
<a-input-number <a-input-number
v-model="current.value" v-model:model-value="current.value"
class="w-[120px]" class="w-[120px]"
:min="0" :min="0"
hide-button hide-button
@ -11,7 +11,7 @@
> >
<template #suffix> <template #suffix>
<a-select <a-select
v-model="current.type" v-model:model-value="current.type"
size="small" size="small"
class="max-w-[64px]" class="max-w-[64px]"
:options="option" :options="option"
@ -87,6 +87,14 @@
value: 'Y', value: 'Y',
}, },
]); ]);
watch(
() => props.modelValue,
(v) => {
const { value, type } = parseValue(v);
current.value = value;
current.type = type;
}
);
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>