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 pickerRef = ref(null);
const state = reactive({ const state = reactive({
code: ref(props.value), code: props.value,
columns: reactive([{ values: [] }, { values: [] }, { values: [] }]), columns: [{ values: [] }, { values: [] }, { values: [] }],
}); });
const areaList = computed(() => { const areaList = computed(() => {

View File

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