@zhangqingcq/vgce 0.1.32 → 0.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangqingcq/vgce",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -294,8 +294,8 @@
294
294
  }
295
295
  if (m && m.url && m.user && m.pwd && m.topics) {
296
296
  link.sub(m.url, m.user, m.pwd, m.topics, (topics: string, message: string) => {
297
- console.log(topics)
298
- console.log(message.toString())
297
+ // console.log(topics)
298
+ // console.log(message.toString())
299
299
  //暴露给外部,让用户自己处理消息,message可以用JSON.parse解析成对象(后端推给前端的MQTT消息内容需要是JSON格式)
300
300
  //用户拿到消息后可以配合setNodeAttrByID方法更新界面
301
301
  //setNodeAttrByID的参数id可以在传给本组件的props.data(用户传进来的,自然知道值是多少)里done_json找到
package/types/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export declare const SvgEditor: DefineComponent<{
11
11
  vueComp?: Record<string, any>
12
12
  saveFile?: boolean
13
13
  mqtt?: { cover: boolean; url: string; user: string; pwd: string; topics: string }
14
+ slotBackground?: boolean
14
15
  onOnPreview?: (d: Record<string, any>) => void
15
16
  onOnSave?: (d: Record<string, any>) => void
16
17
  onOnReturn?: (d: Record<string, any>) => void