v-noneData.js 594 字节
// component/v-noneData/v-noneData.js
Component({
    /**
     * 组件的属性列表
     */
    properties: {
        imageUrl: String,
        text: String,
        subtitle: String,
        top: {
            type: String,
            value: '0rpx'
        }
    },

    /**
     * 组件的初始数据
     */
    data: {

    },

    /**
     * 组件的方法列表
     */
    methods: {
        imageLoad(e) {
            let { width, height } = e.detail;
            this.setData({
                style: `width: ${width}rpx;height: ${height}rpx;`
            })
        }
    }
})