my.setStorageSync({
    key: "activeComponent",
    data: {
        is: "pages/action-sheet/index"
    }
});
import createPage from "../../common/page";
createPage({
    data: {
        show1: false,
        show2: false,
        show3: false
    },

    onLoad() {
        this.setData({
            actions: [
                {
                    name: "选项"
                },
                {
                    name: "分享",
                    subname: "描述信息",
                    openType: "share"
                },
                {
                    loading: true
                },
                {
                    name: "禁用选项",
                    disabled: true
                }
            ]
        });
    },

    toggle(type) {
        this.setData({
            [type]: !this.data[type]
        });
    },

    toggleActionSheet1() {
        this.toggle("show1");
    },

    toggleActionSheet2() {
        this.toggle("show2");
    },

    toggleActionSheet3() {
        this.toggle("show3");
    }
});
