日照项目的居民端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

51 lines
829 B

// 顶部tab切换组件
Component({
properties: {
list: {
type: Array,
value: [
{
name: "",
value: "",
},
],
},
selected: {
type: String,
value: "",
},
fm: {
type: String,
value: "fmData",
},
name: {
type: String,
value: "",
},
},
data: {},
lifetimes: {
ready() {
this.init();
},
},
methods: {
init() {
console.log("单选框组件初始化完成");
},
select(e) {
const {
currentTarget: {
dataset: { value },
},
} = e;
const { fm, name } = this.data;
this.setData({ selected: value });
this.triggerEvent("select", {fm, name, value});
},
},
});