italent-share-box

3.2.63 • Public • Published

文本框的属性值

textBoxOptions: {
    value:""
    placeholder: "有事需要提醒 ta,请@ta",
    width: "100%",
    height: 86,
    maxlength: 2000,
    simpleMode: true,
}

确定按钮配置

sureButton: {
    text: "发布",
    style: {},
    disabled: false,
    onClick() {},
    isLoading: false,
    loadingText: "正在发布...",
}

取消按钮配置

cancelButton: {
    text: "取消",
    isShow: false,
    style: {},
    onClick() {},
}

可见范围配置

scopeOptions: {
    isShow:true
    options:{
    value: 0,
    text: "所有人可见",
    isChecked: false,
    isDisabled: false,
    },
    {
    value: 1,
    text: "仅部门可见",
    isChecked: false,
    isDisabled: false,
    },
    {
    value: 2,
    text: "仅相关成员可见",
    isChecked: false,
    isDisabled: false,
    },
}

上传附件的配置项

uploadOptions: {
    isShow: true,
    iconClass: "\_italent-font-attachment",
    text: "附件",
    tips: "<span>最多支持上传 20 个<br />每个不超过 50M</span>",
    maxSize: 50,
    disabled: false,
    uploadUrl: "",
    maxItems: 20,
    handlePreview(){}
},

@同事的配置项

atOptions: {
    isShow: true,
    iconClass: "\_italent-font-at-sign",
    text: "同事",
    tips: "想确保谁看到就@这个成员",
    iconStyle: {}
    }

@全部同事的配置项

atAllOptions: {
    isShow: true,
    iconClass: "\_italent-font-at-sign",
    text: "所有同事",
    tips: "所有同事将收到本条消息",
    value: "@[所有同事:all_members]",
    iconStyle: {},
},

表情的配置项

emojiOptions: {
    isShow: true,
    iconClass: "\_italent-font-smiling-face",
    text: "表情",
    tips: "",
    iconStyle: {},
    getData() {}, //获取 emoji 数据的方法
    config: {}, //emoji 的尺寸配置
    zIndex: 100,
},

是否为分享框

isShareBox: true,

是否聚焦

isFocus: undefined,

展示选人组件

showUserSelect: {},

点击外部关闭回复框回调

handelReplyBoxClose() {},

获取编辑框实例

textAreaRef(node) {},

Readme

Keywords

none

Package Sidebar

Install

npm i italent-share-box

Weekly Downloads

1

Version

3.2.63

License

ISC

Unpacked Size

119 kB

Total Files

23

Last publish

Collaborators

  • beisencorp