Skip to content

Commit

Permalink
version: vue-amis-sdk@1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jun 2, 2022
1 parent 705b723 commit cf5b960
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 542 deletions.
62 changes: 26 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,52 +46,42 @@ yarn add vue-amis-sdk --save

```javascript
<template>
<div id="app">
<vue-amis-sdk id="editorName" theme="cxd" className="is-fixed" :preview="isPreview" :isMobile="isMobile" @onChange="onChange" :value="schema" />
<div id='app'>
<vue-amis-sdk
id='editorName'
theme='cxd'
className='is-fixed'
:preview='isPreview'
:isMobile='isMobile'
@onChange='onChange'
:value='schema'
/>
</div>
</template>

<script>


export default {
export default {
name: 'App',
components: {
},
data() {
return {
isPreview:false,
isMobile:false,
post: {
json: '',
amis_page_id: 15,
},
baseURL: 'https://h7ml.cn',
schema: {},
}
},
onLoad() {

},
return {
isPreview: false,
isMobile: false,
schema: {}
}
},
methods: {
onChange(e) {
},
}
onChange(e) {
console.log(e)
}
}
</script>

<style lang="scss">
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
</script>
```

### version

| [vue-amis-sdk](https://www.npmjs.com/package/vue-amis-sdk) | [amis](https://www.npmjs.com/package/amis) | [amis-editor](https://www.npmjs.com/package/amis-editor) |
|-------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| [![amis-editor](https://badgen.net/badge/vue-amis-sdk/1.10.0/blue)](https://www.npmjs.com/package/vue-amis-sdk/v/1.10.0) | [![amis](https://img.shields.io/badge/amis-1.9.0-green.svg)](https://www.npmjs.com/package/amis/v/1.9.0) | [![amis-editor](https://badgen.net/badge/vue-amis-sdk/4.1.0-beta.28/blue)](https://www.npmjs.com/package/amis-editor/v/4.1.0-beta.28) |

### repo
- [vue-amis-sdk editor](https://vue-amis-sdk.vercel.app/)
Expand Down
35 changes: 15 additions & 20 deletions examples/App.vue
Original file line number Diff line number Diff line change
@@ -1,35 +1,30 @@
<template>
<div id="app">
<vue-amis-sdk id="editorName" theme="cxd" className="is-fixed" :preview="isPreview" :isMobile="isMobile" @onChange="onChange" :value="schema" />
<div id='app'>
<vue-amis-sdk
id='editorName'
theme='cxd'
className='is-fixed'
:preview='isPreview'
:isMobile='isMobile'
@onChange='onChange'
:value='schema'
/>
</div>
</template>

<script>
export default {
name: 'App',
components: {
},
data() {
return {
isPreview:false,
isMobile:false,
post: {
json: '',
amis_page_id: 15,
},
baseURL: 'https://h7ml.cn',
schema: {},
isPreview: false,
isMobile: false,
schema: {}
}
},
onLoad() {
},
methods: {
onChange(e) {
},
console.log(e)
}
}
}
</script>
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-amis-sdk",
"version": "1.9.0-beta-30",
"version": "1.10.0",
"private": false,
"main": "sdk/vue-amis-sdk.umd.min.js",
"browser": "sdk/vue-amis-sdk.umd.min.js",
Expand All @@ -26,8 +26,8 @@
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"amis": "^1.9.0",
"amis-editor": "^4.1.0-beta.20",
"amis": "^1.10.0",
"amis-editor": "^4.1.0-beta.28",
"axios": "^0.24.0",
"compression-webpack-plugin": "5.0.1",
"core-js": "^3.6.5",
Expand All @@ -40,6 +40,7 @@
"style-loader": "^3.3.1",
"uglifyjs-webpack-plugin": "^2.2.0",
"vue": "^2.6.11",
"vue-router": "3.1.5",
"vuera": "^0.2.7",
"webpack-bundle-analyzer": "^4.5.0"
},
Expand Down
Loading

0 comments on commit cf5b960

Please sign in to comment.