问题:naiveUI中对话框dialog的一些属性设置

dialog.warning({
        title: "提示",
        showIcon: false,
        content: () => {
          return h(
            "div",
            {
              class: "flex flex-col justify-center items-center text-14px",
            },
            [
              // icon
              h(NIcon, {
                component: AlertCircleSharp,
                color: "#FFAD31",
                size: 36,
              }),
              h("span", "遇见你藏在樱花里的春意"),
              h("p", { class: "mt-5px" }, "这是春天这是发呆的季节")
            ]
          )
        },
        positiveText: "我准备好啦",
        negativeText: '再等等呢',
        // 弹窗的按钮的属性领用对象的形式可以使用所有按钮属性
        positiveButtonProps: { type: "primary" },
        onPositiveClick: () => {
          message.success("春天来啦")
        },
      })

 

posted @ 2022-04-25 17:19  ling'er  阅读(2090)  评论(0编辑  收藏  举报