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/mooho-base-admin-plus.min.esm.js +21 -11
- package/package/mooho-base-admin-plus.min.js +3 -3
- package/package.json +1 -1
- package/src/components/richEditor/index.vue +22 -9
- package/src/components/view/column-edit.vue +2 -2
- package/src/components/view/filter-edit.vue +2 -2
- package/src/layouts/basic-layout/index.vue +4 -0
package/package.json
CHANGED
|
@@ -174,17 +174,30 @@
|
|
|
174
174
|
$_setUpEditorEvents() {
|
|
175
175
|
const editor = this.instance;
|
|
176
176
|
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
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="
|
|
340
|
-
<DropdownItem name="
|
|
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="
|
|
228
|
-
<DropdownItem name="
|
|
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) {
|