工作台

This commit is contained in:
唐明明
2022-12-26 09:31:55 +08:00
parent f7d357f738
commit 1f3f6b230a
218 changed files with 19796 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<template>
<view>
选择组件
</view>
</template>
<script>
export default {
name:"octcheckbox",
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

32
components/oct-input.vue Normal file
View File

@@ -0,0 +1,32 @@
<template>
<view>
<input type="text" placeholder="输入框" @blur="blurInput">
</view>
</template>
<script>
export default {
name:"octinput",
data() {
return {
};
},
props: {
InputKey: {
type: String,
default: ''
}
},
methods: {
// 触发信息给父组件
blurInput(e){
this.$emit('onValue', e.detail.value)
}
}
}
</script>
<style lang="scss">
</style>

38
components/oct-picker.vue Normal file
View File

@@ -0,0 +1,38 @@
<template>
<view>
<picker mode="selector" :range="range" range-key="title">
<view class=""></view>
</picker>
</view>
</template>
<script>
export default {
data() {
return {
};
},
props: {
range: {
type : Array,
default : () => {
return []
}
},
id: {
type : Number,
default : ''
}
},
watch(){
id: (val, old) => {
console.log(val, old)
}
}
}
</script>
<style lang="scss">
</style>

20
components/oct-radio.vue Normal file
View File

@@ -0,0 +1,20 @@
<template>
<view>
单选组件
</view>
</template>
<script>
export default {
name:"octradio",
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

View File

@@ -0,0 +1,20 @@
<template>
<view>
文本域组件
</view>
</template>
<script>
export default {
name:"octtextarea",
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>