xcx/components/modal/modal.js

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

Component({
  externalClasses: ['tui-modal-class'],
  properties: {
    //是否显示
    show:{
      type:Boolean,
      value:false
    },
    width: {
      type: String,
      value: "84%"
    },
    padding: {
      type: String,
      value: "40rpx 64rpx"
    },
    radius: {
      type: String,
      value: "24rpx"
    },
    //标题
    title: {
      type: String,
      value: ""
    },
    //内容
    content: {
      type: String,
      value: ""
    },
    //内容字体颜色
    color: {
      type: String,
      value: "#999"
    },
    //内容字体大小
    size: {
      type: Number,
      value: 28
    },
    //形状 circle, square
    shape: {
      type: String,
      value: 'square'
    },
    button: {
      type: Array,
      value: [{
        text: "取消",
        type: "red",
        plain: true //是否空心
      }, {
        text: "确定",
        type: "red",
        plain: false
      }]
    },
    //点击遮罩 是否可关闭
    maskClosable: {
      type: Boolean,
后面还有 37 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。