zydx-plus 1.33.356 → 1.33.357

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": "zydx-plus",
3
- "version": "1.33.356",
3
+ "version": "1.33.357",
4
4
  "description": "Vue.js",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -149,10 +149,16 @@ export default {
149
149
  this.editor.setCurrentTool('text')
150
150
  },
151
151
  note(v) {
152
+ let verticalAlign = ['middle-legacy', 'start-legacy', 'end-legacy']
153
+ if(verticalAlign.indexOf(v?.align) !== -1){
154
+ let align = ['middle', 'start', 'end']
155
+ this.styleProps('note', 'verticalAlign').defaultValue = align[verticalAlign.indexOf(v?.align)] ?? 'middle'
156
+ }else {
157
+ this.styleProps('note', 'align').defaultValue = v?.align ?? 'start'
158
+ }
152
159
  this.styleProps('note', 'color').defaultValue = v?.color ?? 'black'
153
160
  this.styleProps('note', 'size').defaultValue = v?.size ?? 'm'
154
161
  this.styleProps('note', 'font').defaultValue = v?.font ?? 'draw' //['draw', 'sans', 'serif', 'mono']
155
- this.styleProps('note', 'align').defaultValue = v?.align ?? 'start'
156
162
  this.editor.setCurrentTool('note')
157
163
  },
158
164
  line(v) {
package/src/index.js CHANGED
@@ -83,7 +83,7 @@ function install(app) {
83
83
  }
84
84
 
85
85
  export default {
86
- version: '1.33.356',
86
+ version: '1.33.357',
87
87
  install,
88
88
  Calendar,
89
89
  Message,