Skip to content

Commit

Permalink
docs: change codesandbox code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxinyong committed Jul 22, 2022
1 parent 2730ad2 commit ee8c179
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
ref: main
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
yarn -v
Expand Down
12 changes: 8 additions & 4 deletions docs/.vuepress/components/createCodeSandBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export function createCodeSandBox(codeStr) {
'@formily/core': 'latest',
'@formily/vue': 'latest',
'@formily/antdv-x3': 'latest',
axios: '^0.21.1',
'core-js': '^3.8.3',
'ant-design-vue': '^3.2.6',
vue: '^3.2.37',
Expand All @@ -71,20 +70,25 @@ export function createCodeSandBox(codeStr) {
'@vue/cli-plugin-babel': '~5.0.0',
'@vue/cli-service': '~5.0.0',
less: 'latest',
'less-loader': '^5.0.0',
'less-loader': 'latest',
},
babel: {
presets: ['@vue/cli-plugin-babel/preset'],
},
vue: {
devServer: {
headers: {
'Access-Control-Allow-Origin': '*',
},
host: '0.0.0.0',
disableHostCheck: true, // 必须
allowedHosts: 'all',
},
css: {
loaderOptions: {
less: {
javascriptEnabled: true,
lessOptions: {
javascriptEnabled: true,
},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@formily/reactive-vue": "^2.1.4",
"@formily/shared": "^2.1.4",
"@formily/vue": "^2.1.4",
"moment": "^2.29.4",
"vue-slicksort": "^2.0.0-alpha.5"
},
"devDependencies": {
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@
"@vuepress/core" "2.0.0-beta.38"
prismjs "^1.27.0"

"@vuepress/plugin-search@2.0.0-beta.38", "@vuepress/plugin-search@^2.0.0-beta.37":
"@vuepress/plugin-search@^2.0.0-beta.37":
version "2.0.0-beta.38"
resolved "https://registry.yarnpkg.com/@vuepress/plugin-search/-/plugin-search-2.0.0-beta.38.tgz#aecbd09cf228f6f0552c1ee94d9abebb238dd6a8"
integrity sha512-bv5rDpXFjssYiP6wDdskObcKm9cEevKXVThx/F+0rwN0mVACqbEET0RvLeoU3uE5PYWJYB6lmh7xdn/74fPkWg==
Expand Down Expand Up @@ -7587,6 +7587,11 @@ moment@^2.29.3:
resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.3.tgz#edd47411c322413999f7a5940d526de183c031f3"
integrity sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==

moment@^2.29.4:
version "2.29.4"
resolved "https://pkgs.d.xiaomi.net:443/artifactory/api/npm/mi-npm/moment/-/moment-2.29.4.tgz#3dbe052889fe7c1b2ed966fcb3a77328964ef108"
integrity sha1-Pb4FKIn+fBsu2Wb8s6dzKJZO8Qg=

move-concurrently@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/move-concurrently/-/move-concurrently-1.0.1.tgz#be2c005fda32e0b29af1f05d7c4b33214c701f92"
Expand Down

0 comments on commit ee8c179

Please sign in to comment.