版本号升级到2.2.7,富文本组件取消懒加载,改为正常加载。
parent
7d3d81dc41
commit
736e58a0f6
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "variant-form",
|
"name": "variant-form",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"private": false,
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve --open src/main.js",
|
"serve": "vue-cli-service serve --open src/main.js",
|
||||||
|
|
|
@ -12,10 +12,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import FormItemWrapper from './form-item-wrapper'
|
import FormItemWrapper from './form-item-wrapper'
|
||||||
|
import {VueEditor} from 'vue2-editor'
|
||||||
import emitter from '@/utils/emitter'
|
import emitter from '@/utils/emitter'
|
||||||
import i18n, {translate} from "@/utils/i18n";
|
import i18n, {translate} from "@/utils/i18n"
|
||||||
import {deepClone} from "@/utils/util";
|
import {deepClone} from "@/utils/util"
|
||||||
import fieldMixin from "@/components/form-designer/form-widget/field-widget/fieldMixin";
|
import fieldMixin from "@/components/form-designer/form-widget/field-widget/fieldMixin"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "rich-editor-widget",
|
name: "rich-editor-widget",
|
||||||
|
@ -49,10 +50,10 @@
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
FormItemWrapper,
|
FormItemWrapper,
|
||||||
|
VueEditor
|
||||||
VueEditor: resolve => { //懒加载!!
|
// VueEditor: resolve => { //懒加载!!
|
||||||
require(['vue2-editor'], ({VueEditor}) => resolve(VueEditor))
|
// require(['vue2-editor'], ({VueEditor}) => resolve(VueEditor))
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
inject: ['refList', 'formConfig', 'globalOptionData', 'globalModel'],
|
inject: ['refList', 'formConfig', 'globalOptionData', 'globalModel'],
|
||||||
data() {
|
data() {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export const VARIANT_FORM_VERSION = '2.2.6'
|
export const VARIANT_FORM_VERSION = '2.2.7'
|
||||||
|
|
||||||
//export const MOCK_CASE_URL = 'https://www.fastmock.site/mock/2de212e0dc4b8e0885fea44ab9f2e1d0/vform/'
|
//export const MOCK_CASE_URL = 'https://www.fastmock.site/mock/2de212e0dc4b8e0885fea44ab9f2e1d0/vform/'
|
||||||
export const MOCK_CASE_URL = 'https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/'
|
export const MOCK_CASE_URL = 'https://ks3-cn-beijing.ksyuncs.com/vform-static/vcase/'
|
||||||
|
|
Loading…
Reference in New Issue