mooho-base-admin-plus 2.0.13 → 2.0.15

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,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.0.13",
4
+ "version": "2.0.15",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -174,17 +174,30 @@
174
174
  $_setUpEditorEvents() {
175
175
  const editor = this.instance;
176
176
 
177
- const onChange = debounce(evt => {
178
- const data = editor.getData();
177
+ editor.on(
178
+ 'change',
179
+ debounce(evt => {
180
+ const data = editor.getData();
181
+
182
+ // Editor#change event might be fired without an actual data change.
183
+ if (this.modelValue !== data) {
184
+ // The compatibility with the v-model and general Vue.js concept of input–like components.
185
+ this.$emit('update:modelValue', data, evt, editor);
186
+ }
187
+ }, 80)
188
+ );
179
189
 
180
- // Editor#change event might be fired without an actual data change.
181
- if (this.modelValue !== data) {
182
- // The compatibility with the v-model and general Vue.js concept of input–like components.
183
- this.$emit('update:modelValue', data, evt, editor);
184
- }
185
- }, 80);
190
+ editor.on('fileUploadResponse', evt => {
191
+ setTimeout(() => {
192
+ const data = editor.getData();
186
193
 
187
- editor.on('change', onChange);
194
+ // Editor#change event might be fired without an actual data change.
195
+ if (this.modelValue !== data) {
196
+ // The compatibility with the v-model and general Vue.js concept of input–like components.
197
+ this.$emit('update:modelValue', data, evt, editor);
198
+ }
199
+ });
200
+ });
188
201
  }
189
202
  }
190
203
  };
@@ -336,8 +336,8 @@
336
336
  <DropdownMenu>
337
337
  <DropdownItem name="today">当前日期</DropdownItem>
338
338
  <DropdownItem name="today(yyyy-MM-dd)">格式化当前日期</DropdownItem>
339
- <DropdownItem name="currentUser">当前用户ID</DropdownItem>
340
- <DropdownItem name="currentUserName">当前用户姓名</DropdownItem>
339
+ <DropdownItem name="currentUserID">当前用户ID</DropdownItem>
340
+ <DropdownItem name="currentUser">当前用户姓名</DropdownItem>
341
341
  </DropdownMenu>
342
342
  </template>
343
343
  </Dropdown>
@@ -224,8 +224,8 @@
224
224
  <DropdownMenu>
225
225
  <DropdownItem name="today">当前日期</DropdownItem>
226
226
  <DropdownItem name="today(yyyy-MM-dd)">格式化当前日期</DropdownItem>
227
- <DropdownItem name="currentUser">当前用户ID</DropdownItem>
228
- <DropdownItem name="currentUserName">当前用户姓名</DropdownItem>
227
+ <DropdownItem name="currentUserID">当前用户ID</DropdownItem>
228
+ <DropdownItem name="currentUser">当前用户姓名</DropdownItem>
229
229
  </DropdownMenu>
230
230
  </template>
231
231
  </Dropdown>
@@ -291,6 +291,10 @@
291
291
  ) {
292
292
  document.body.style.zoom = 1 / window.devicePixelRatio;
293
293
 
294
+ // document.body.style.transform = 'scale(' + 1 / window.devicePixelRatio + ')';
295
+ // document.body.style.transformOrigin = '0%0%';
296
+ // document.body.style.width = window.devicePixelRatio * 100 + '%';
297
+
294
298
  setTimeout(() => {
295
299
  let sider = document.getElementsByClassName('i-layout-sider');
296
300
  if (sider.length > 0) {