<template>
  <div>
    <!-- <lx-button :loading='loading' @click="btnClk" type="success" icon="icon-add"
      >点击显示对话框</lx-button
    >
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div>
    <div>nihaadjaspdjaisndoa sn</div> -->
    <!-- <lx-button
      toggler
      plain
      size="large"
      iconPosition="left"
      type="success"
      icon="icon-add"
      >增加</lx-button
    >
    <lx-button
      plain
      size="small"
      iconPosition="right"
      type="primy"
      icon="icon-remove"
      >删除</lx-button
    >
    <lx-button
      toggler
      size="middle"
      iconPosition="top"
      type="warning"
      icon="icon-edit"
      >修改</lx-button
    >
    <lx-button-group>
      <lx-button  iconPosition="" type="danger" icon="icon-cut"
        >恢复</lx-button
      >
      <lx-button  iconPosition="" type="danger" icon="icon-cut"
        >恢 复</lx-button
      >
    </lx-button-group> -->
    <!-- <lx-window
      :icon="'icon-save'"
      :visibility.sync="visibility"
      title="dialog标题"
      :width='width'
      :height='height'
      :modal='modal'
      :lock-scroll='true'
      @close='handlerClose'
      :before-close='handlerBeforeClose'
    >
      <template slot="footer">
        <button>确定</button>
        <button>取消</button>
      </template>
    </lx-window> -->
    <!-- <lx-tabs v-model="tabsValue">
      <lx-tab-item label="用户管理" name="first">用户管理</lx-tab-item>
      <lx-tab-item label="配置管理" name="second">配置管理</lx-tab-item>
      <lx-tab-item label="角色管理" name="third">角色管理</lx-tab-item>
      <lx-tab-item label="定时任务补偿" name="fourth">定时任务补偿</lx-tab-item>
    </lx-tabs> -->
    <lx-button type="success" @click="handlerClk">点击查看message</lx-button>
    <!-- <lx-message></lx-message> -->
  </div>
</template>

<script>
// import LxTabItem from './components/LxTabs/LxTabItem.vue';
import LxButton from "./components/btn/LxButton.vue";
// import LxTabs from "./components/LxTabs/LxTabs.vue";
// import LxMessage from "./components/LxMessage/LxMessage.vue";
// import LxButton from "./components/btn/LxButton.vue";
// import LxButtonGroup from "./components/btn/LxButtonGroup.vue";
// import LxWindow from "./components/LxWindow/LxWindow.vue";
export default {
  data() {
    return {
      // visibility: false,
      // loading: false,
      // width: "500px",
      // height: "300",
      // modal: true,
      // tabsValue:'first'
    };
  },
  methods: {
    handlerClk() {
      // this.$confim()
      // console.log(this)
      // this.$alert('我谁',{title: '我是你爹', showClose: false})
      // this.$question("我谁", "我是你爹", {
      //   callback(action, instance) {
      //     console.log("callback", action, instance);
      //   },
      // });
      this.$confirm('我是confirm',{
        type: 'error',
        confirmButtonText: '保存',
        cancelButtonText: '放弃修改'
      })
      .then( (res) => {
        console.log(res)
      } )
      .catch( (err) => {
        console.log(err)
      } )
    },
    // btnClk() {
    //   this.loading = true;
    //   setTimeout(() => {
    //     this.loading = false;
    //     this.visibility = true;
    //   }, 1000);
    // },
    // handlerClose() {},
    // handlerBeforeClose(done) {
    //   const r = window.confirm("确定要关闭嘛");
    //   r && done();
    // },
  },
  components: {
    // LxButton,
    // LxButtonGroup,
    // LxWindow,
    LxButton,
    // LxTabs,
    // LxTabItem,
    // LxMessage
  },
};
</script>

<style scoped>
</style>