最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vuetify.js - vuetify in Node-Red dashboard 2.0 Send payload to component in template node. (date to v-date-picker) - Stack Overf

programmeradmin4浏览0评论

I have a template node in Node-Red Flowfuse dashboard 2.0 (Latest versions as of posting)

<template>
  <v-container>  
   <v-row justify="space-around">
      <v-date-picker v-model="value"
        show-adjacent-months
        hide-header="true" 
        @update:model-value="send({payload: value})">
      </v-date-picker>
    </v-row>
  </v-container>
</template>

The template above works just fine, sending out a date as an epoch value.

I am aware that the <Script> section is missing here but adding it, empty at least, stops the component from rendering.

From the documentation I can see that when a message arrives it will be placed in a variable {{msg}} which can the be rendered within an HTML tag for example but for the life of me I cant see how to set the current date in v-date-picker based on {{msg}}

Also...

The component renders oddly and although I have played with several sizing properties I cant get it to look as it should.

Ideally, actual circles would be nice, which is what the examples show and I would like to make the entire thing more compact if possible.

I am assuming the binding v-model="value" works both ways so I probably need something like value = msg.payload but I am also assuming that needs to be in some sort of event/trigger wrapper and I have no idea with respect to syntax?

Can anyone give me a leg up?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论