chore(Area): remove unnecessary ref

This commit is contained in:
chenjiahan 2020-08-26 11:23:42 +08:00
parent cea2724321
commit 326c345c91
2 changed files with 3 additions and 3 deletions

View File

@ -51,8 +51,8 @@ export default createComponent({
const pickerRef = ref(null);
const state = reactive({
code: ref(props.value),
columns: reactive([{ values: [] }, { values: [] }, { values: [] }]),
code: props.value,
columns: [{ values: [] }, { values: [] }, { values: [] }],
});
const areaList = computed(() => {

View File

@ -91,7 +91,7 @@ export default createComponent({
return (
<div
class={bem('placeholder')}
style={{ height: `${height.value}px` }}
style={{ height: height.value && `${height.value}px` }}
>
{renderNavBar()}
</div>