Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
309 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
packages/okam-build/example/base/src/components/SpModelComponent.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<template> | ||
<view class="model-component-wrap"> | ||
<view> | ||
特殊的自定义组件prop: {{spvalue}} | ||
</view> | ||
<view> | ||
特殊的自定义组件内部data: {{valueInner}} | ||
</view> | ||
<input v-model="valueInner" @input="change"/> | ||
</view> | ||
</template> | ||
<script> | ||
export default { | ||
data: { | ||
valueInner: '' | ||
}, | ||
props: { | ||
spvalue: String | ||
}, | ||
mounted() { | ||
this.valueInner = this.spvalue; | ||
}, | ||
methods: { | ||
change(event) { | ||
this.$emit('spchange', event.detail); | ||
} | ||
} | ||
} | ||
</script> | ||
<style lang="stylus"> | ||
.model-component-wrap | ||
padding: 20px | ||
margin: 20px | ||
border: 1px solid #000 | ||
input | ||
word-break: break-all | ||
width: 100% | ||
border: 1px solid #000 | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.