File tree 4 files changed +11
-6
lines changed
docs/.vuepress/components
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ const CodeSandBoxHTML = '<div id="app"></div>'
4
4
const CodeSandBoxJS = `
5
5
import Vue from 'vue'
6
6
import App from './App.vue'
7
- import Antdv from 'ant-design-vue' ;
8
- import ' ant-design-vue/lib/style/index .css' ;
7
+ import "@formily/antdv/lib/style" ;
8
+ import " ant-design-vue/dist/antd .css" ;
9
9
10
10
Vue.config.productionTip = false
11
- Vue.use(Antdv);
12
11
13
12
new Vue({
14
13
render: h => h(App),
@@ -77,8 +76,8 @@ export function createCodeSandBox(codeStr) {
77
76
'@vue/cli-service' : '~4.5.0' ,
78
77
'@vue/composition-api' : 'latest' ,
79
78
'vue-template-compiler' : '^2.6.11' ,
80
- sass : '^1.34.1 ' ,
81
- 'sass -loader' : '^8 .0.2 ' ,
79
+ less : 'latest ' ,
80
+ 'less -loader' : '^5 .0.0 ' ,
82
81
} ,
83
82
babel : {
84
83
presets : [ '@vue/cli-plugin-babel/preset' ] ,
@@ -88,6 +87,13 @@ export function createCodeSandBox(codeStr) {
88
87
host : '0.0.0.0' ,
89
88
disableHostCheck : true , // 必须
90
89
} ,
90
+ css : {
91
+ loaderOptions : {
92
+ less : {
93
+ javascriptEnabled : true ,
94
+ } ,
95
+ } ,
96
+ } ,
91
97
} ,
92
98
} ,
93
99
} ,
Original file line number Diff line number Diff line change @@ -10,5 +10,4 @@ import './form-drawer/style.less'
10
10
import './form-grid/style.less'
11
11
import './form-item/style.less'
12
12
import './form-layout/style.less'
13
- import './form/style.less'
14
13
import './preview-text/style.less'
You can’t perform that action at this time.
0 commit comments