<LineEcharts
:data="
data === '1'
? dataAll
: null || data === '2'
? data2
: null || data === '3'
? data3
: null
"
/>
let data = ref("1");
const dataAll = reactive([
["A1", 800],
["A2", 50],
["B1", 500],
["B2", 700],
["C1", 900],
["仓储", 956],
]);
const data2 = reactive([
["A1", 300],
["A2", 520],
["B1", 100],
["B2", 300],
["C1", 600],
["仓储", 956],
]);
const data3 = reactive([
["A1", 100],
["A2", 720],
["B1", 300],
["B2", 800],
["C1", 200],
["仓储", 695],
]);
//Line.vue
const props = defineProps({
data: {
type:String,
default: '1',
},
dataX: {
type: Array,
default: ["A1", "A2", "B1", "B2", "C1", "仓储"],
},
});
onMounted(() => {
watch(
() => props.data,
(newValue) => {
console.log("新值:", newValue);
Line();
}
);
Line();
});
点击年,月,日,分别显示不同的数据
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
图片生成
Stable-Diffusion
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

被折叠的 条评论
为什么被折叠?



