@opentiny/vue-user-contact
Advanced tools
Comparing version 2.18.0 to 2.19.0
@@ -11,3 +11,3 @@ function _extends() { | ||
} | ||
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common"; | ||
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common"; | ||
import PcTemplate from "./pc.js"; | ||
@@ -20,46 +20,46 @@ import "@opentiny/vue-theme/user-contact/index.css"; | ||
}; | ||
var userContactProps = _extends({}, $props, { | ||
showName: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
showArrow: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
/** | ||
* 是否显示 roleNumber, colType 为 false 时生效 | ||
*/ | ||
showNumber: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
/** | ||
* 是否显示 头像 | ||
*/ | ||
showImg: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
placement: String, | ||
/** | ||
* 数据 | ||
*/ | ||
data: { | ||
type: Object | ||
}, | ||
espace: Array, | ||
popperClass: String, | ||
popperAppendToBody: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
isNewImMode: { | ||
type: Boolean, | ||
default: true | ||
} | ||
}); | ||
var UserContact = defineComponent({ | ||
name: $prefix + "UserContact", | ||
props: _extends({}, $props, { | ||
showName: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
showArrow: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
/** | ||
* 是否显示 roleNumber, colType 为 false 时生效 | ||
*/ | ||
showNumber: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
/** | ||
* 是否显示 头像 | ||
*/ | ||
showImg: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
/** | ||
* 数据 | ||
*/ | ||
data: { | ||
type: Object, | ||
validator: function validator(value) { | ||
return typeof value.userName === "string" && value.imgUrl ? typeof value.imgUrl === "string" : typeof value.userDescription === "string" && (!value.values || Array.isArray(value.values)); | ||
} | ||
}, | ||
popperClass: String, | ||
popperAppendToBody: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
isNewImMode: { | ||
type: Boolean, | ||
default: true | ||
} | ||
}), | ||
props: userContactProps, | ||
setup: function setup(props, context) { | ||
@@ -73,3 +73,3 @@ return $setup({ | ||
}); | ||
var version = "2.18.0"; | ||
var version = "2.19.0"; | ||
UserContact.install = function(Vue) { | ||
@@ -76,0 +76,0 @@ Vue.component(UserContact.name, UserContact); |
{ | ||
"name": "@opentiny/vue-user-contact", | ||
"version": "2.18.0", | ||
"version": "2.19.0", | ||
"description": "", | ||
@@ -10,10 +10,10 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.18.0", | ||
"@opentiny/vue-common": "~2.18.0", | ||
"@opentiny/vue-user-head": "~2.18.0", | ||
"@opentiny/vue-card-template": "~2.18.0", | ||
"@opentiny/vue-popover": "~2.18.0", | ||
"@opentiny/vue-icon": "~2.18.0", | ||
"@opentiny/vue-theme": "~3.18.0", | ||
"@opentiny/vue-espace": "~2.18.0" | ||
"@opentiny/vue-renderless": "~3.19.0", | ||
"@opentiny/vue-common": "~2.19.0", | ||
"@opentiny/vue-user-head": "~2.19.0", | ||
"@opentiny/vue-card-template": "~2.19.0", | ||
"@opentiny/vue-popover": "~2.19.0", | ||
"@opentiny/vue-icon": "~2.19.0", | ||
"@opentiny/vue-theme": "~3.19.0", | ||
"@opentiny/vue-espace": "~2.19.0" | ||
}, | ||
@@ -20,0 +20,0 @@ "license": "MIT", |
@@ -12,3 +12,59 @@ /** | ||
*/ | ||
export declare const userContactProps: { | ||
showName: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
showArrow: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
/** | ||
* 是否显示 roleNumber, colType 为 false 时生效 | ||
*/ | ||
showNumber: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
/** | ||
* 是否显示 头像 | ||
*/ | ||
showImg: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
placement: StringConstructor; | ||
/** | ||
* 数据 | ||
*/ | ||
data: { | ||
type: PropType<{ | ||
userName: string; | ||
imgUrl: string; | ||
roleNumber: string; | ||
tools?: any; | ||
values: undefined | { | ||
text: string; | ||
value: string; | ||
}[]; | ||
}>; | ||
}; | ||
espace: ArrayConstructor; | ||
popperClass: StringConstructor; | ||
popperAppendToBody: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
isNewImMode: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (ObjectConstructor | FunctionConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}; | ||
declare const _default: any; | ||
export default _default; |
13558
398
+ Added@opentiny/vue-card-template@2.19.0(transitive)
+ Added@opentiny/vue-common@2.19.0(transitive)
+ Added@opentiny/vue-espace@2.19.0(transitive)
+ Added@opentiny/vue-icon@2.19.0(transitive)
+ Added@opentiny/vue-locale@2.19.0(transitive)
+ Added@opentiny/vue-popover@2.19.0(transitive)
+ Added@opentiny/vue-renderless@3.19.5(transitive)
+ Added@opentiny/vue-theme@3.19.5(transitive)
+ Added@opentiny/vue-theme-mobile@3.19.0(transitive)
+ Added@opentiny/vue-user-head@2.19.0(transitive)
- Removed@opentiny/vue-card-template@2.18.0(transitive)
- Removed@opentiny/vue-common@2.18.0(transitive)
- Removed@opentiny/vue-espace@2.18.0(transitive)
- Removed@opentiny/vue-icon@2.18.0(transitive)
- Removed@opentiny/vue-locale@2.18.0(transitive)
- Removed@opentiny/vue-popover@2.18.0(transitive)
- Removed@opentiny/vue-renderless@3.18.8(transitive)
- Removed@opentiny/vue-theme@3.18.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.18.0(transitive)
- Removed@opentiny/vue-user-head@2.18.0(transitive)
Updated@opentiny/vue-common@~2.19.0
Updated@opentiny/vue-espace@~2.19.0
Updated@opentiny/vue-icon@~2.19.0
Updated@opentiny/vue-theme@~3.19.0