fix: polish pages and bugs fix (#36)

This commit is contained in:
Fine0830
2022-03-24 21:35:22 +08:00
committed by GitHub
parent 33365f2a14
commit 4380a874de
26 changed files with 314 additions and 134 deletions

View File

@@ -38,7 +38,7 @@ const props = defineProps({
onMounted(async () => {
await setOptions(props.option);
addResizeListener(unref(chartRef), resize);
chartRef.value && addResizeListener(unref(chartRef), resize);
setTimeout(() => {
const instance = getInstance();

View File

@@ -22,6 +22,7 @@ limitations under the License. -->
:multiple="multiple"
:disabled="disabled"
:style="{ borderRadius }"
:clearable="clearable"
>
<el-option
v-for="item in options"
@@ -60,6 +61,7 @@ const props = defineProps({
borderRadius: { type: Number, default: 3 },
multiple: { type: Boolean, default: false },
disabled: { type: Boolean, default: false },
clearable: { type: Boolean, default: false },
});
const selected = ref<string[] | string>(props.value);