@vunk/plus 1.8.1 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{SendOutlined.mjs → LinkOutlined.mjs} +36 -54
- package/components/chat-independent/src/index.vue.d.ts +90 -206
- package/components/sender/index.d.ts +2 -1
- package/components/sender/index.mjs +96 -42
- package/components/sender/src/ctx.d.ts +44 -1
- package/components/sender/src/index.vue.d.ts +91 -207
- package/components/speech-button/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -927,9 +927,9 @@ function updateCSS(css, key) {
|
|
|
927
927
|
return newNode;
|
|
928
928
|
}
|
|
929
929
|
|
|
930
|
-
function _objectSpread$
|
|
930
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$7(target, key, source[key]); }); } return target; }
|
|
931
931
|
|
|
932
|
-
function _defineProperty$
|
|
932
|
+
function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
933
933
|
function warn(valid, message) {
|
|
934
934
|
// Support uglify
|
|
935
935
|
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
@@ -946,14 +946,14 @@ function isIconDefinition(target) {
|
|
|
946
946
|
}
|
|
947
947
|
function generate(node, key, rootProps) {
|
|
948
948
|
if (!rootProps) {
|
|
949
|
-
return h(node.tag, _objectSpread$
|
|
949
|
+
return h(node.tag, _objectSpread$7({
|
|
950
950
|
key: key
|
|
951
951
|
}, node.attrs), (node.children || []).map(function (child, index) {
|
|
952
952
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
953
953
|
}));
|
|
954
954
|
}
|
|
955
955
|
|
|
956
|
-
return h(node.tag, _objectSpread$
|
|
956
|
+
return h(node.tag, _objectSpread$7({
|
|
957
957
|
key: key
|
|
958
958
|
}, rootProps, node.attrs), (node.children || []).map(function (child, index) {
|
|
959
959
|
return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
|
|
@@ -1029,9 +1029,9 @@ function _objectWithoutProperties$1(source, excluded) { if (source == null) retu
|
|
|
1029
1029
|
|
|
1030
1030
|
function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
1031
1031
|
|
|
1032
|
-
function _objectSpread$
|
|
1032
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$6(target, key, source[key]); }); } return target; }
|
|
1033
1033
|
|
|
1034
|
-
function _defineProperty$
|
|
1034
|
+
function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1035
1035
|
var twoToneColorPalette = reactive({
|
|
1036
1036
|
primaryColor: '#333',
|
|
1037
1037
|
secondaryColor: '#E6E6E6',
|
|
@@ -1047,11 +1047,11 @@ function setTwoToneColors(_ref) {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
1049
|
function getTwoToneColors() {
|
|
1050
|
-
return _objectSpread$
|
|
1050
|
+
return _objectSpread$6({}, twoToneColorPalette);
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
1053
|
var IconBase = function IconBase(props, context) {
|
|
1054
|
-
var _props$context$attrs = _objectSpread$
|
|
1054
|
+
var _props$context$attrs = _objectSpread$6({}, props, context.attrs),
|
|
1055
1055
|
icon = _props$context$attrs.icon,
|
|
1056
1056
|
primaryColor = _props$context$attrs.primaryColor,
|
|
1057
1057
|
secondaryColor = _props$context$attrs.secondaryColor,
|
|
@@ -1075,12 +1075,12 @@ var IconBase = function IconBase(props, context) {
|
|
|
1075
1075
|
var target = icon;
|
|
1076
1076
|
|
|
1077
1077
|
if (target && typeof target.icon === 'function') {
|
|
1078
|
-
target = _objectSpread$
|
|
1078
|
+
target = _objectSpread$6({}, target, {
|
|
1079
1079
|
icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
|
1080
1080
|
});
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
return generate(target.icon, "svg-".concat(target.name), _objectSpread$
|
|
1083
|
+
return generate(target.icon, "svg-".concat(target.name), _objectSpread$6({}, restProps, {
|
|
1084
1084
|
'data-icon': target.name,
|
|
1085
1085
|
width: '1em',
|
|
1086
1086
|
height: '1em',
|
|
@@ -1156,9 +1156,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
1156
1156
|
|
|
1157
1157
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
1158
1158
|
|
|
1159
|
-
function _objectSpread$
|
|
1159
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$5(target, key, source[key]); }); } return target; }
|
|
1160
1160
|
|
|
1161
|
-
function _defineProperty$
|
|
1161
|
+
function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1162
1162
|
|
|
1163
1163
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
1164
1164
|
|
|
@@ -1169,7 +1169,7 @@ setTwoToneColor(blue.primary);
|
|
|
1169
1169
|
var Icon = function Icon(props, context) {
|
|
1170
1170
|
var _classObj;
|
|
1171
1171
|
|
|
1172
|
-
var _props$context$attrs = _objectSpread$
|
|
1172
|
+
var _props$context$attrs = _objectSpread$5({}, props, context.attrs),
|
|
1173
1173
|
cls = _props$context$attrs["class"],
|
|
1174
1174
|
icon = _props$context$attrs.icon,
|
|
1175
1175
|
spin = _props$context$attrs.spin,
|
|
@@ -1183,7 +1183,7 @@ var Icon = function Icon(props, context) {
|
|
|
1183
1183
|
prefixCls = _useInjectIconContext.prefixCls,
|
|
1184
1184
|
rootClassName = _useInjectIconContext.rootClassName;
|
|
1185
1185
|
|
|
1186
|
-
var classObj = (_classObj = {}, _defineProperty$
|
|
1186
|
+
var classObj = (_classObj = {}, _defineProperty$5(_classObj, rootClassName.value, !!rootClassName.value), _defineProperty$5(_classObj, prefixCls.value, true), _defineProperty$5(_classObj, "".concat(prefixCls.value, "-").concat(icon.name), Boolean(icon.name)), _defineProperty$5(_classObj, "".concat(prefixCls.value, "-spin"), !!spin || icon.name === 'loading'), _classObj);
|
|
1187
1187
|
var iconTabIndex = tabindex;
|
|
1188
1188
|
|
|
1189
1189
|
if (iconTabIndex === undefined && onClick) {
|
|
@@ -1200,7 +1200,7 @@ var Icon = function Icon(props, context) {
|
|
|
1200
1200
|
primaryColor = _normalizeTwoToneColo2[0],
|
|
1201
1201
|
secondaryColor = _normalizeTwoToneColo2[1];
|
|
1202
1202
|
|
|
1203
|
-
return createVNode("span", _objectSpread$
|
|
1203
|
+
return createVNode("span", _objectSpread$5({
|
|
1204
1204
|
"role": "img",
|
|
1205
1205
|
"aria-label": icon.name
|
|
1206
1206
|
}, restProps, {
|
|
@@ -1229,14 +1229,14 @@ Icon.setTwoToneColor = setTwoToneColor;
|
|
|
1229
1229
|
// This icon file is generated automatically.
|
|
1230
1230
|
var AudioMutedOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M682 455V311l-76 76v68c-.1 50.7-42 92.1-94 92a95.8 95.8 0 01-52-15l-54 55c29.1 22.4 65.9 36 106 36 93.8 0 170-75.1 170-168z" } }, { "tag": "path", "attrs": { "d": "M833 446h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254-63 0-120.7-23-165-61l-54 54a334.01 334.01 0 00179 81v102H326c-13.9 0-24.9 14.3-25 32v36c.1 4.4 2.9 8 6 8h408c3.2 0 6-3.6 6-8v-36c0-17.7-11-32-25-32H547V782c165.3-17.9 294-157.9 294-328 0-4.4-3.6-8-8-8zm13.1-377.7l-43.5-41.9a8 8 0 00-11.2.1l-129 129C634.3 101.2 577 64 511 64c-93.9 0-170 75.3-170 168v224c0 6.7.4 13.3 1.2 19.8l-68 68A252.33 252.33 0 01258 454c-.2-4.4-3.8-8-8-8h-60c-4.4 0-8 3.6-8 8 0 53 12.5 103 34.6 147.4l-137 137a8.03 8.03 0 000 11.3l42.7 42.7c3.1 3.1 8.2 3.1 11.3 0L846.2 79.8l.1-.1c3.1-3.2 3-8.3-.2-11.4zM417 401V232c0-50.6 41.9-92 94-92 46 0 84.1 32.3 92.3 74.7L417 401z" } }] }, "name": "audio-muted", "theme": "outlined" };
|
|
1231
1231
|
|
|
1232
|
-
function _objectSpread$
|
|
1232
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
|
|
1233
1233
|
|
|
1234
|
-
function _defineProperty$
|
|
1234
|
+
function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1235
1235
|
|
|
1236
1236
|
var AudioMutedOutlined = function AudioMutedOutlined(props, context) {
|
|
1237
|
-
var p = _objectSpread$
|
|
1237
|
+
var p = _objectSpread$4({}, props, context.attrs);
|
|
1238
1238
|
|
|
1239
|
-
return createVNode(Icon, _objectSpread$
|
|
1239
|
+
return createVNode(Icon, _objectSpread$4({}, p, {
|
|
1240
1240
|
"icon": AudioMutedOutlined$2
|
|
1241
1241
|
}), null);
|
|
1242
1242
|
};
|
|
@@ -1248,14 +1248,14 @@ var AudioMutedOutlined$1 = AudioMutedOutlined;
|
|
|
1248
1248
|
// This icon file is generated automatically.
|
|
1249
1249
|
var AudioOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M842 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1zM512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm-94-392c0-50.6 41.9-92 94-92s94 41.4 94 92v224c0 50.6-41.9 92-94 92s-94-41.4-94-92V232z" } }] }, "name": "audio", "theme": "outlined" };
|
|
1250
1250
|
|
|
1251
|
-
function _objectSpread$
|
|
1251
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
|
|
1252
1252
|
|
|
1253
|
-
function _defineProperty$
|
|
1253
|
+
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1254
1254
|
|
|
1255
1255
|
var AudioOutlined = function AudioOutlined(props, context) {
|
|
1256
|
-
var p = _objectSpread$
|
|
1256
|
+
var p = _objectSpread$3({}, props, context.attrs);
|
|
1257
1257
|
|
|
1258
|
-
return createVNode(Icon, _objectSpread$
|
|
1258
|
+
return createVNode(Icon, _objectSpread$3({}, p, {
|
|
1259
1259
|
"icon": AudioOutlined$2
|
|
1260
1260
|
}), null);
|
|
1261
1261
|
};
|
|
@@ -1267,14 +1267,14 @@ var AudioOutlined$1 = AudioOutlined;
|
|
|
1267
1267
|
// This icon file is generated automatically.
|
|
1268
1268
|
var CloseOutlined$1 = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z" } }] }, "name": "close", "theme": "outlined" };
|
|
1269
1269
|
|
|
1270
|
-
function _objectSpread$
|
|
1270
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
|
|
1271
1271
|
|
|
1272
|
-
function _defineProperty$
|
|
1272
|
+
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1273
1273
|
|
|
1274
1274
|
var CloseOutlined = function CloseOutlined(props, context) {
|
|
1275
|
-
var p = _objectSpread$
|
|
1275
|
+
var p = _objectSpread$2({}, props, context.attrs);
|
|
1276
1276
|
|
|
1277
|
-
return createVNode(Icon, _objectSpread$
|
|
1277
|
+
return createVNode(Icon, _objectSpread$2({}, p, {
|
|
1278
1278
|
"icon": CloseOutlined$1
|
|
1279
1279
|
}), null);
|
|
1280
1280
|
};
|
|
@@ -1285,14 +1285,14 @@ CloseOutlined.inheritAttrs = false;
|
|
|
1285
1285
|
// This icon file is generated automatically.
|
|
1286
1286
|
var CloudUploadOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" } }, { "tag": "path", "attrs": { "d": "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" } }] }, "name": "cloud-upload", "theme": "outlined" };
|
|
1287
1287
|
|
|
1288
|
-
function _objectSpread$
|
|
1288
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
|
1289
1289
|
|
|
1290
|
-
function _defineProperty$
|
|
1290
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1291
1291
|
|
|
1292
1292
|
var CloudUploadOutlined = function CloudUploadOutlined(props, context) {
|
|
1293
|
-
var p = _objectSpread$
|
|
1293
|
+
var p = _objectSpread$1({}, props, context.attrs);
|
|
1294
1294
|
|
|
1295
|
-
return createVNode(Icon, _objectSpread$
|
|
1295
|
+
return createVNode(Icon, _objectSpread$1({}, p, {
|
|
1296
1296
|
"icon": CloudUploadOutlined$1
|
|
1297
1297
|
}), null);
|
|
1298
1298
|
};
|
|
@@ -1303,37 +1303,19 @@ CloudUploadOutlined.inheritAttrs = false;
|
|
|
1303
1303
|
// This icon file is generated automatically.
|
|
1304
1304
|
var LinkOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z" } }] }, "name": "link", "theme": "outlined" };
|
|
1305
1305
|
|
|
1306
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
|
1307
|
-
|
|
1308
|
-
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1309
|
-
|
|
1310
|
-
var LinkOutlined = function LinkOutlined(props, context) {
|
|
1311
|
-
var p = _objectSpread$1({}, props, context.attrs);
|
|
1312
|
-
|
|
1313
|
-
return createVNode(Icon, _objectSpread$1({}, p, {
|
|
1314
|
-
"icon": LinkOutlined$1
|
|
1315
|
-
}), null);
|
|
1316
|
-
};
|
|
1317
|
-
|
|
1318
|
-
LinkOutlined.displayName = 'LinkOutlined';
|
|
1319
|
-
LinkOutlined.inheritAttrs = false;
|
|
1320
|
-
|
|
1321
|
-
// This icon file is generated automatically.
|
|
1322
|
-
var SendOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z" } }] }, "name": "send", "theme": "outlined" };
|
|
1323
|
-
|
|
1324
1306
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
1325
1307
|
|
|
1326
1308
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
1327
1309
|
|
|
1328
|
-
var
|
|
1310
|
+
var LinkOutlined = function LinkOutlined(props, context) {
|
|
1329
1311
|
var p = _objectSpread({}, props, context.attrs);
|
|
1330
1312
|
|
|
1331
1313
|
return createVNode(Icon, _objectSpread({}, p, {
|
|
1332
|
-
"icon":
|
|
1314
|
+
"icon": LinkOutlined$1
|
|
1333
1315
|
}), null);
|
|
1334
1316
|
};
|
|
1335
1317
|
|
|
1336
|
-
|
|
1337
|
-
|
|
1318
|
+
LinkOutlined.displayName = 'LinkOutlined';
|
|
1319
|
+
LinkOutlined.inheritAttrs = false;
|
|
1338
1320
|
|
|
1339
|
-
export { AudioMutedOutlined$1 as A, CloseOutlined as C, LinkOutlined as L,
|
|
1321
|
+
export { AudioMutedOutlined$1 as A, CloseOutlined as C, LinkOutlined as L, CloudUploadOutlined as a, AudioOutlined$1 as b };
|
|
@@ -1050,7 +1050,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1050
1050
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1051
1051
|
readonly VkSender: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1052
1052
|
fileList: {
|
|
1053
|
-
type: import("vue").PropType<
|
|
1053
|
+
type: import("vue").PropType<any[]>;
|
|
1054
1054
|
default: undefined;
|
|
1055
1055
|
};
|
|
1056
1056
|
action: {
|
|
@@ -1088,10 +1088,33 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1088
1088
|
type: BooleanConstructor;
|
|
1089
1089
|
default: boolean;
|
|
1090
1090
|
};
|
|
1091
|
+
attachmentsVisible: {
|
|
1092
|
+
type: BooleanConstructor;
|
|
1093
|
+
default: undefined;
|
|
1094
|
+
};
|
|
1095
|
+
createSendButton: {
|
|
1096
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
1097
|
+
default: undefined;
|
|
1098
|
+
};
|
|
1099
|
+
createAttachmentsButton: {
|
|
1100
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
1101
|
+
default: undefined;
|
|
1102
|
+
};
|
|
1103
|
+
autoSize: {
|
|
1104
|
+
type: import("vue").PropType<{
|
|
1105
|
+
minRows?: number;
|
|
1106
|
+
maxRows?: number;
|
|
1107
|
+
}>;
|
|
1108
|
+
default: undefined;
|
|
1109
|
+
};
|
|
1110
|
+
attachmentsProps: {
|
|
1111
|
+
type: ObjectConstructor;
|
|
1112
|
+
default: () => {};
|
|
1113
|
+
};
|
|
1091
1114
|
}>, {
|
|
1092
1115
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
1093
1116
|
fileList: {
|
|
1094
|
-
type: import("vue").PropType<
|
|
1117
|
+
type: import("vue").PropType<any[]>;
|
|
1095
1118
|
default: undefined;
|
|
1096
1119
|
};
|
|
1097
1120
|
action: {
|
|
@@ -1129,19 +1152,47 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1129
1152
|
type: BooleanConstructor;
|
|
1130
1153
|
default: boolean;
|
|
1131
1154
|
};
|
|
1155
|
+
attachmentsVisible: {
|
|
1156
|
+
type: BooleanConstructor;
|
|
1157
|
+
default: undefined;
|
|
1158
|
+
};
|
|
1159
|
+
createSendButton: {
|
|
1160
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
1161
|
+
default: undefined;
|
|
1162
|
+
};
|
|
1163
|
+
createAttachmentsButton: {
|
|
1164
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
1165
|
+
default: undefined;
|
|
1166
|
+
};
|
|
1167
|
+
autoSize: {
|
|
1168
|
+
type: import("vue").PropType<{
|
|
1169
|
+
minRows?: number;
|
|
1170
|
+
maxRows?: number;
|
|
1171
|
+
}>;
|
|
1172
|
+
default: undefined;
|
|
1173
|
+
};
|
|
1174
|
+
attachmentsProps: {
|
|
1175
|
+
type: ObjectConstructor;
|
|
1176
|
+
default: () => {};
|
|
1177
|
+
};
|
|
1132
1178
|
}>> & Readonly<{
|
|
1133
1179
|
"onUpdate:modelValue"?: ((_: string) => any) | undefined;
|
|
1134
1180
|
onSubmit?: ((_: string) => any) | undefined;
|
|
1135
1181
|
"onUpdate:fileList"?: ((_: import("ant-design-vue").UploadFile<any>[]) => any) | undefined;
|
|
1182
|
+
"onUpdate:attachmentsVisible"?: ((_: boolean) => any) | undefined;
|
|
1136
1183
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
1137
1184
|
}> & {}>;
|
|
1138
|
-
emit: ((event: "update:modelValue", _: string) => void) & ((event: "submit", _: string) => void) & ((event: "update:fileList", _: import("ant-design-vue").UploadFile<any>[]) => void) & ((event: "cancel", ...args: any[]) => void);
|
|
1185
|
+
emit: ((event: "update:modelValue", _: string) => void) & ((event: "submit", _: string) => void) & ((event: "update:fileList", _: import("ant-design-vue").UploadFile<any>[]) => void) & ((event: "update:attachmentsVisible", _: boolean) => void) & ((event: "cancel", ...args: any[]) => void);
|
|
1139
1186
|
slots: Readonly<{
|
|
1140
1187
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
1141
1188
|
}>;
|
|
1142
1189
|
hasAttachments: import("vue").ComputedRef<boolean>;
|
|
1143
1190
|
loading: import("vue").WritableComputedRef<boolean, boolean>;
|
|
1144
|
-
headerOpen: import("vue").
|
|
1191
|
+
headerOpen: import("vue").WritableComputedRef<boolean, boolean>;
|
|
1192
|
+
createSendButtonDefault: (components?: import("@vunk/shared").NormalObject) => JSX.Element;
|
|
1193
|
+
createSendButton: (components: any) => any;
|
|
1194
|
+
createAttachmentsButtonDefault: () => JSX.Element;
|
|
1195
|
+
createAttachmentsButton: () => any;
|
|
1145
1196
|
actionsRender: import("@vunk/shared").AnyFunc;
|
|
1146
1197
|
attachmentsPlaceholder: import("@vunk/shared").AnyFunc;
|
|
1147
1198
|
theFileList: import("vue").WritableComputedRef<import("ant-design-vue").UploadFile<any>[], import("ant-design-vue").UploadFile<any>[]>;
|
|
@@ -1156,206 +1207,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1156
1207
|
attachmentWrapResolve: import("@vunk/core").AnyFunc;
|
|
1157
1208
|
handlePasteFile: (file: File) => Promise<void>;
|
|
1158
1209
|
handleChange: (e: import("ant-design-vue").UploadChangeParam<import("ant-design-vue").UploadFile>) => void;
|
|
1159
|
-
readonly LinkOutlined: import("@ant-design/icons-vue/lib/icons/LinkOutlined").LinkOutlinedIconType;
|
|
1160
|
-
readonly AntButton: {
|
|
1161
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
1162
|
-
prefixCls: StringConstructor;
|
|
1163
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
1164
|
-
htmlType: {
|
|
1165
|
-
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
1166
|
-
default: string;
|
|
1167
|
-
};
|
|
1168
|
-
shape: {
|
|
1169
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
1170
|
-
};
|
|
1171
|
-
size: {
|
|
1172
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
1173
|
-
};
|
|
1174
|
-
loading: {
|
|
1175
|
-
type: import("vue").PropType<boolean | {
|
|
1176
|
-
delay?: number;
|
|
1177
|
-
}>;
|
|
1178
|
-
default: () => boolean | {
|
|
1179
|
-
delay?: number;
|
|
1180
|
-
};
|
|
1181
|
-
};
|
|
1182
|
-
disabled: {
|
|
1183
|
-
type: BooleanConstructor;
|
|
1184
|
-
default: any;
|
|
1185
|
-
};
|
|
1186
|
-
ghost: {
|
|
1187
|
-
type: BooleanConstructor;
|
|
1188
|
-
default: any;
|
|
1189
|
-
};
|
|
1190
|
-
block: {
|
|
1191
|
-
type: BooleanConstructor;
|
|
1192
|
-
default: any;
|
|
1193
|
-
};
|
|
1194
|
-
danger: {
|
|
1195
|
-
type: BooleanConstructor;
|
|
1196
|
-
default: any;
|
|
1197
|
-
};
|
|
1198
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
1199
|
-
href: StringConstructor;
|
|
1200
|
-
target: StringConstructor;
|
|
1201
|
-
title: StringConstructor;
|
|
1202
|
-
onClick: {
|
|
1203
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
1204
|
-
};
|
|
1205
|
-
onMousedown: {
|
|
1206
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
1207
|
-
};
|
|
1208
|
-
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
1209
|
-
block: boolean;
|
|
1210
|
-
disabled: boolean;
|
|
1211
|
-
danger: boolean;
|
|
1212
|
-
ghost: boolean;
|
|
1213
|
-
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
1214
|
-
loading: boolean | {
|
|
1215
|
-
delay?: number;
|
|
1216
|
-
};
|
|
1217
|
-
}, true, {}, import("ant-design-vue/es/_util/type").CustomSlotsType<{
|
|
1218
|
-
icon: any;
|
|
1219
|
-
default: any;
|
|
1220
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
1221
|
-
P: {};
|
|
1222
|
-
B: {};
|
|
1223
|
-
D: {};
|
|
1224
|
-
C: {};
|
|
1225
|
-
M: {};
|
|
1226
|
-
Defaults: {};
|
|
1227
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
1228
|
-
prefixCls: StringConstructor;
|
|
1229
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
1230
|
-
htmlType: {
|
|
1231
|
-
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
1232
|
-
default: string;
|
|
1233
|
-
};
|
|
1234
|
-
shape: {
|
|
1235
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
1236
|
-
};
|
|
1237
|
-
size: {
|
|
1238
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
1239
|
-
};
|
|
1240
|
-
loading: {
|
|
1241
|
-
type: import("vue").PropType<boolean | {
|
|
1242
|
-
delay?: number;
|
|
1243
|
-
}>;
|
|
1244
|
-
default: () => boolean | {
|
|
1245
|
-
delay?: number;
|
|
1246
|
-
};
|
|
1247
|
-
};
|
|
1248
|
-
disabled: {
|
|
1249
|
-
type: BooleanConstructor;
|
|
1250
|
-
default: any;
|
|
1251
|
-
};
|
|
1252
|
-
ghost: {
|
|
1253
|
-
type: BooleanConstructor;
|
|
1254
|
-
default: any;
|
|
1255
|
-
};
|
|
1256
|
-
block: {
|
|
1257
|
-
type: BooleanConstructor;
|
|
1258
|
-
default: any;
|
|
1259
|
-
};
|
|
1260
|
-
danger: {
|
|
1261
|
-
type: BooleanConstructor;
|
|
1262
|
-
default: any;
|
|
1263
|
-
};
|
|
1264
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
1265
|
-
href: StringConstructor;
|
|
1266
|
-
target: StringConstructor;
|
|
1267
|
-
title: StringConstructor;
|
|
1268
|
-
onClick: {
|
|
1269
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
1270
|
-
};
|
|
1271
|
-
onMousedown: {
|
|
1272
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
1273
|
-
};
|
|
1274
|
-
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, {
|
|
1275
|
-
block: boolean;
|
|
1276
|
-
disabled: boolean;
|
|
1277
|
-
danger: boolean;
|
|
1278
|
-
ghost: boolean;
|
|
1279
|
-
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
1280
|
-
loading: boolean | {
|
|
1281
|
-
delay?: number;
|
|
1282
|
-
};
|
|
1283
|
-
}>;
|
|
1284
|
-
__isFragment?: never;
|
|
1285
|
-
__isTeleport?: never;
|
|
1286
|
-
__isSuspense?: never;
|
|
1287
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
1288
|
-
prefixCls: StringConstructor;
|
|
1289
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
1290
|
-
htmlType: {
|
|
1291
|
-
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
1292
|
-
default: string;
|
|
1293
|
-
};
|
|
1294
|
-
shape: {
|
|
1295
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
1296
|
-
};
|
|
1297
|
-
size: {
|
|
1298
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
1299
|
-
};
|
|
1300
|
-
loading: {
|
|
1301
|
-
type: import("vue").PropType<boolean | {
|
|
1302
|
-
delay?: number;
|
|
1303
|
-
}>;
|
|
1304
|
-
default: () => boolean | {
|
|
1305
|
-
delay?: number;
|
|
1306
|
-
};
|
|
1307
|
-
};
|
|
1308
|
-
disabled: {
|
|
1309
|
-
type: BooleanConstructor;
|
|
1310
|
-
default: any;
|
|
1311
|
-
};
|
|
1312
|
-
ghost: {
|
|
1313
|
-
type: BooleanConstructor;
|
|
1314
|
-
default: any;
|
|
1315
|
-
};
|
|
1316
|
-
block: {
|
|
1317
|
-
type: BooleanConstructor;
|
|
1318
|
-
default: any;
|
|
1319
|
-
};
|
|
1320
|
-
danger: {
|
|
1321
|
-
type: BooleanConstructor;
|
|
1322
|
-
default: any;
|
|
1323
|
-
};
|
|
1324
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
1325
|
-
href: StringConstructor;
|
|
1326
|
-
target: StringConstructor;
|
|
1327
|
-
title: StringConstructor;
|
|
1328
|
-
onClick: {
|
|
1329
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
1330
|
-
};
|
|
1331
|
-
onMousedown: {
|
|
1332
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
1333
|
-
};
|
|
1334
|
-
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
1335
|
-
block: boolean;
|
|
1336
|
-
disabled: boolean;
|
|
1337
|
-
danger: boolean;
|
|
1338
|
-
ghost: boolean;
|
|
1339
|
-
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
1340
|
-
loading: boolean | {
|
|
1341
|
-
delay?: number;
|
|
1342
|
-
};
|
|
1343
|
-
}, {}, string, import("ant-design-vue/es/_util/type").CustomSlotsType<{
|
|
1344
|
-
icon: any;
|
|
1345
|
-
default: any;
|
|
1346
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (import("vue").Plugin<any[]> & {
|
|
1347
|
-
readonly Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1348
|
-
prefixCls: StringConstructor;
|
|
1349
|
-
size: {
|
|
1350
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
1351
|
-
};
|
|
1352
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1353
|
-
prefixCls: StringConstructor;
|
|
1354
|
-
size: {
|
|
1355
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
1356
|
-
};
|
|
1357
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1358
|
-
}));
|
|
1359
1210
|
readonly Attachments: {
|
|
1360
1211
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("ant-design-x-vue").AttachmentsProps> & Readonly<{}>, {
|
|
1361
1212
|
nativeElement: HTMLDivElement | null;
|
|
@@ -1753,11 +1604,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1753
1604
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1754
1605
|
'update:fileList': (_: import("ant-design-vue").UploadFile[]) => boolean;
|
|
1755
1606
|
'update:modelValue': (_: string) => boolean;
|
|
1607
|
+
'update:attachmentsVisible': (_: boolean) => boolean;
|
|
1756
1608
|
submit: (_: string) => boolean;
|
|
1757
1609
|
cancel: null;
|
|
1758
1610
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1759
1611
|
fileList: {
|
|
1760
|
-
type: import("vue").PropType<
|
|
1612
|
+
type: import("vue").PropType<any[]>;
|
|
1761
1613
|
default: undefined;
|
|
1762
1614
|
};
|
|
1763
1615
|
action: {
|
|
@@ -1795,18 +1647,50 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1795
1647
|
type: BooleanConstructor;
|
|
1796
1648
|
default: boolean;
|
|
1797
1649
|
};
|
|
1650
|
+
attachmentsVisible: {
|
|
1651
|
+
type: BooleanConstructor;
|
|
1652
|
+
default: undefined;
|
|
1653
|
+
};
|
|
1654
|
+
createSendButton: {
|
|
1655
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
1656
|
+
default: undefined;
|
|
1657
|
+
};
|
|
1658
|
+
createAttachmentsButton: {
|
|
1659
|
+
type: import("vue").PropType<import("@vunk/shared").AnyFunc>;
|
|
1660
|
+
default: undefined;
|
|
1661
|
+
};
|
|
1662
|
+
autoSize: {
|
|
1663
|
+
type: import("vue").PropType<{
|
|
1664
|
+
minRows?: number;
|
|
1665
|
+
maxRows?: number;
|
|
1666
|
+
}>;
|
|
1667
|
+
default: undefined;
|
|
1668
|
+
};
|
|
1669
|
+
attachmentsProps: {
|
|
1670
|
+
type: ObjectConstructor;
|
|
1671
|
+
default: () => {};
|
|
1672
|
+
};
|
|
1798
1673
|
}>> & Readonly<{
|
|
1799
1674
|
"onUpdate:modelValue"?: ((_: string) => any) | undefined;
|
|
1800
1675
|
onSubmit?: ((_: string) => any) | undefined;
|
|
1801
1676
|
"onUpdate:fileList"?: ((_: import("ant-design-vue").UploadFile<any>[]) => any) | undefined;
|
|
1677
|
+
"onUpdate:attachmentsVisible"?: ((_: boolean) => any) | undefined;
|
|
1802
1678
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
1803
1679
|
}>, {
|
|
1804
1680
|
loading: boolean;
|
|
1805
1681
|
modules: "Attachments"[];
|
|
1806
1682
|
modelValue: string;
|
|
1807
|
-
fileList:
|
|
1683
|
+
fileList: any[];
|
|
1808
1684
|
action: string;
|
|
1809
1685
|
sendDisabled: boolean;
|
|
1686
|
+
attachmentsVisible: boolean;
|
|
1687
|
+
createSendButton: import("@vunk/shared").AnyFunc;
|
|
1688
|
+
createAttachmentsButton: import("@vunk/shared").AnyFunc;
|
|
1689
|
+
autoSize: {
|
|
1690
|
+
minRows?: number;
|
|
1691
|
+
maxRows?: number;
|
|
1692
|
+
};
|
|
1693
|
+
attachmentsProps: Record<string, any>;
|
|
1810
1694
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1811
1695
|
readonly VkKeyboardAvatar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
1812
1696
|
readonly size: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createBlock, withCtx, withDirectives, createElementVNode, mergeProps, toDisplayString, createVNode, renderSlot, vShow, useSlots, computed, ref, nextTick, createSlots, createCommentVNode } from 'vue';
|
|
1
|
+
import { defineComponent, openBlock, createBlock, withCtx, withDirectives, createElementVNode, mergeProps, toDisplayString, createVNode, renderSlot, vShow, useSlots, computed, ref, nextTick, createSlots, createCommentVNode, resolveDynamicComponent } from 'vue';
|
|
2
2
|
import { useModelComputed, useDeferred } from '@vunk/core/composables';
|
|
3
3
|
import { Button } from 'ant-design-vue';
|
|
4
4
|
import { Attachments, Sender } from 'ant-design-x-vue';
|
|
5
5
|
import { noop } from '@vunk/shared/function';
|
|
6
6
|
import { ElCollapseTransition } from 'element-plus';
|
|
7
|
-
import { C as CloseOutlined, L as LinkOutlined, a as CloudUploadOutlined
|
|
7
|
+
import { C as CloseOutlined, L as LinkOutlined, a as CloudUploadOutlined } from '../LinkOutlined.mjs';
|
|
8
8
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
9
9
|
|
|
10
10
|
const props = {
|
|
@@ -43,14 +43,53 @@ const props = {
|
|
|
43
43
|
type: Array,
|
|
44
44
|
default: () => []
|
|
45
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @description 非自定义Send Button时,禁用态
|
|
48
|
+
*/
|
|
46
49
|
sendDisabled: {
|
|
47
50
|
type: Boolean,
|
|
48
51
|
default: false
|
|
52
|
+
},
|
|
53
|
+
/**
|
|
54
|
+
* @description v-model attachments显隐 在 Attachments 模块存在时有效
|
|
55
|
+
*/
|
|
56
|
+
attachmentsVisible: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: void 0
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* @description 自定义 Send Button
|
|
62
|
+
*/
|
|
63
|
+
createSendButton: {
|
|
64
|
+
type: Function,
|
|
65
|
+
default: void 0
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 自定义 Attachments Button, 在 Attachments 模块存在时有效
|
|
69
|
+
*/
|
|
70
|
+
createAttachmentsButton: {
|
|
71
|
+
type: Function,
|
|
72
|
+
default: void 0
|
|
73
|
+
},
|
|
74
|
+
/**
|
|
75
|
+
* @description 调整文本域大小
|
|
76
|
+
*/
|
|
77
|
+
autoSize: {
|
|
78
|
+
type: Object,
|
|
79
|
+
default: void 0
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* @link https://antd-design-x-vue.netlify.app/component/attachments.html
|
|
83
|
+
*/
|
|
84
|
+
attachmentsProps: {
|
|
85
|
+
type: Object,
|
|
86
|
+
default: () => ({})
|
|
49
87
|
}
|
|
50
88
|
};
|
|
51
89
|
const emits = {
|
|
52
90
|
"update:fileList": (_) => true,
|
|
53
91
|
"update:modelValue": (_) => true,
|
|
92
|
+
"update:attachmentsVisible": (_) => true,
|
|
54
93
|
"submit": (_) => true,
|
|
55
94
|
"cancel": null
|
|
56
95
|
};
|
|
@@ -178,30 +217,51 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
178
217
|
key: "loading",
|
|
179
218
|
default: false
|
|
180
219
|
}, props, emit);
|
|
181
|
-
const headerOpen =
|
|
220
|
+
const headerOpen = useModelComputed({
|
|
221
|
+
key: "attachmentsVisible",
|
|
222
|
+
default: false
|
|
223
|
+
}, props, emit);
|
|
224
|
+
function createSendButtonDefault(components = {}) {
|
|
225
|
+
const {
|
|
226
|
+
SendButton,
|
|
227
|
+
LoadingButton
|
|
228
|
+
} = components;
|
|
229
|
+
return loading.value ? createVNode(LoadingButton, null, null) : createVNode(SendButton, {
|
|
230
|
+
"disabled": props.sendDisabled
|
|
231
|
+
}, null);
|
|
232
|
+
}
|
|
233
|
+
function createSendButton(components) {
|
|
234
|
+
const fn = props.createSendButton || createSendButtonDefault;
|
|
235
|
+
return fn(components);
|
|
236
|
+
}
|
|
237
|
+
function createAttachmentsButtonDefault() {
|
|
238
|
+
return createVNode(Button, {
|
|
239
|
+
"type": "text",
|
|
240
|
+
"onClick": () => headerOpen.value = !headerOpen.value
|
|
241
|
+
}, {
|
|
242
|
+
icon: () => createVNode(LinkOutlined, null, null)
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
function createAttachmentsButton() {
|
|
246
|
+
const fn = props.createAttachmentsButton || createAttachmentsButtonDefault;
|
|
247
|
+
return hasAttachments.value ? fn() : null;
|
|
248
|
+
}
|
|
182
249
|
const actionsRender = (_, info) => {
|
|
183
250
|
const {
|
|
184
251
|
SendButton,
|
|
185
252
|
LoadingButton
|
|
186
253
|
} = info.components;
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
return createVNode(SendButton, {
|
|
192
|
-
"type": "text",
|
|
193
|
-
"icon": createVNode(SendOutlined, null, null),
|
|
194
|
-
"disabled": props.sendDisabled
|
|
195
|
-
}, null);
|
|
196
|
-
};
|
|
197
|
-
const sendAction = () => loading.value ? loadingRender() : sendRender();
|
|
254
|
+
const send = createSendButton({
|
|
255
|
+
SendButton,
|
|
256
|
+
LoadingButton
|
|
257
|
+
});
|
|
198
258
|
return createVNode("div", {
|
|
199
259
|
"class": "vk-sender-actions"
|
|
200
260
|
}, [createVNode("div", {
|
|
201
261
|
"class": "vk-sender-actions__before"
|
|
202
262
|
}, [slots.actions_before?.()]), createVNode("div", {
|
|
203
263
|
"class": "vk-sender-actions__after"
|
|
204
|
-
}, [slots.actions_after?.()
|
|
264
|
+
}, [slots.actions_after?.() ?? send])]);
|
|
205
265
|
};
|
|
206
266
|
const attachmentsPlaceholder = type => {
|
|
207
267
|
if (type === "drop") {
|
|
@@ -247,6 +307,10 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
247
307
|
hasAttachments,
|
|
248
308
|
loading,
|
|
249
309
|
headerOpen,
|
|
310
|
+
createSendButtonDefault,
|
|
311
|
+
createSendButton,
|
|
312
|
+
createAttachmentsButtonDefault,
|
|
313
|
+
createAttachmentsButton,
|
|
250
314
|
actionsRender,
|
|
251
315
|
attachmentsPlaceholder,
|
|
252
316
|
theFileList,
|
|
@@ -255,12 +319,6 @@ var _sfc_main = /* @__PURE__ */defineComponent({
|
|
|
255
319
|
attachmentWrapResolve,
|
|
256
320
|
handlePasteFile,
|
|
257
321
|
handleChange,
|
|
258
|
-
get LinkOutlined() {
|
|
259
|
-
return LinkOutlined;
|
|
260
|
-
},
|
|
261
|
-
get AntButton() {
|
|
262
|
-
return Button;
|
|
263
|
-
},
|
|
264
322
|
get Attachments() {
|
|
265
323
|
return Attachments;
|
|
266
324
|
},
|
|
@@ -288,7 +346,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
288
346
|
!_ctx.sendDisabled && _ctx.$emit("submit", e);
|
|
289
347
|
},
|
|
290
348
|
"on-cancel": () => _ctx.$emit("cancel"),
|
|
291
|
-
"
|
|
349
|
+
"auto-size": _ctx.autoSize,
|
|
350
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event)),
|
|
292
351
|
onPasteFile: $setup.handlePasteFile
|
|
293
352
|
}, createSlots({
|
|
294
353
|
header: withCtx(() => [
|
|
@@ -300,43 +359,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
300
359
|
"content-ref": $setup.attachmentWrapResolve
|
|
301
360
|
}, {
|
|
302
361
|
default: withCtx(() => [
|
|
303
|
-
createVNode($setup["Attachments"], {
|
|
362
|
+
createVNode($setup["Attachments"], mergeProps({
|
|
304
363
|
ref: "attachmentsRef",
|
|
305
364
|
"file-list": $setup.theFileList,
|
|
306
365
|
placeholder: $setup.attachmentsPlaceholder,
|
|
307
366
|
action: _ctx.action,
|
|
308
|
-
multiple: ""
|
|
309
|
-
|
|
310
|
-
}, null, 8, ["file-list", "action"])
|
|
367
|
+
multiple: ""
|
|
368
|
+
}, _ctx.attachmentsProps, { onChange: $setup.handleChange }), null, 16, ["file-list", "action"])
|
|
311
369
|
]),
|
|
312
370
|
_: 1
|
|
313
371
|
/* STABLE */
|
|
314
|
-
}, 8, ["modelValue", "content-ref"])) : createCommentVNode("v-if", true)
|
|
372
|
+
}, 8, ["modelValue", "content-ref"])) : createCommentVNode("v-if", true),
|
|
373
|
+
renderSlot(_ctx.$slots, "header")
|
|
315
374
|
]),
|
|
316
375
|
prefix: withCtx(() => [
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
type: "text",
|
|
320
|
-
onClick: _cache[1] || (_cache[1] = ($event) => $setup.headerOpen = !$setup.headerOpen)
|
|
321
|
-
}, {
|
|
322
|
-
icon: withCtx(() => [
|
|
323
|
-
createVNode($setup["LinkOutlined"])
|
|
324
|
-
]),
|
|
325
|
-
_: 1
|
|
326
|
-
/* STABLE */
|
|
327
|
-
})) : createCommentVNode("v-if", true)
|
|
376
|
+
!_ctx.$slots.prefix ? (openBlock(), createBlock(resolveDynamicComponent($setup.createAttachmentsButton()), { key: 0 })) : createCommentVNode("v-if", true),
|
|
377
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
328
378
|
]),
|
|
329
379
|
_: 2
|
|
330
380
|
/* DYNAMIC */
|
|
331
381
|
}, [
|
|
332
382
|
_ctx.$slots.footer ? {
|
|
333
383
|
name: "footer",
|
|
334
|
-
fn: withCtx(() => [
|
|
335
|
-
renderSlot(_ctx.$slots, "footer"
|
|
384
|
+
fn: withCtx(({ info }) => [
|
|
385
|
+
renderSlot(_ctx.$slots, "footer", {
|
|
386
|
+
sendButton: $setup.createSendButton(info.components),
|
|
387
|
+
attachmentsButton: $setup.createAttachmentsButton(),
|
|
388
|
+
info
|
|
389
|
+
})
|
|
336
390
|
]),
|
|
337
391
|
key: "0"
|
|
338
392
|
} : void 0
|
|
339
|
-
]), 1032, ["value", "loading", "on-submit", "on-cancel"]);
|
|
393
|
+
]), 1032, ["value", "loading", "on-submit", "on-cancel", "auto-size"]);
|
|
340
394
|
}
|
|
341
395
|
var VkSender = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/sender/src/index.vue"]]);
|
|
342
396
|
|
|
@@ -348,4 +402,4 @@ VkSender.install = (app) => {
|
|
|
348
402
|
app.component(VkSender.name || "VkSender", VkSender);
|
|
349
403
|
};
|
|
350
404
|
|
|
351
|
-
export { VkSender, types as __VkSender, VkSender as default };
|
|
405
|
+
export { VkSender, SenderHeader as VkSenderHeader, types as __VkSender, VkSender as default };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AnyFunc } from '@vunk/shared';
|
|
1
2
|
import type { UploadFile } from 'ant-design-vue';
|
|
2
3
|
import type { PropType } from 'vue';
|
|
3
4
|
export declare const props: {
|
|
@@ -5,7 +6,7 @@ export declare const props: {
|
|
|
5
6
|
* @description v-model 绑定文件列表
|
|
6
7
|
*/
|
|
7
8
|
fileList: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<any[]>;
|
|
9
10
|
default: undefined;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
@@ -51,14 +52,56 @@ export declare const props: {
|
|
|
51
52
|
};
|
|
52
53
|
default: () => never[];
|
|
53
54
|
};
|
|
55
|
+
/**
|
|
56
|
+
* @description 非自定义Send Button时,禁用态
|
|
57
|
+
*/
|
|
54
58
|
sendDisabled: {
|
|
55
59
|
type: BooleanConstructor;
|
|
56
60
|
default: boolean;
|
|
57
61
|
};
|
|
62
|
+
/**
|
|
63
|
+
* @description v-model attachments显隐 在 Attachments 模块存在时有效
|
|
64
|
+
*/
|
|
65
|
+
attachmentsVisible: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* @description 自定义 Send Button
|
|
71
|
+
*/
|
|
72
|
+
createSendButton: {
|
|
73
|
+
type: PropType<AnyFunc>;
|
|
74
|
+
default: undefined;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @description 自定义 Attachments Button, 在 Attachments 模块存在时有效
|
|
78
|
+
*/
|
|
79
|
+
createAttachmentsButton: {
|
|
80
|
+
type: PropType<AnyFunc>;
|
|
81
|
+
default: undefined;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @description 调整文本域大小
|
|
85
|
+
*/
|
|
86
|
+
autoSize: {
|
|
87
|
+
type: PropType<{
|
|
88
|
+
minRows?: number;
|
|
89
|
+
maxRows?: number;
|
|
90
|
+
}>;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* @link https://antd-design-x-vue.netlify.app/component/attachments.html
|
|
95
|
+
*/
|
|
96
|
+
attachmentsProps: {
|
|
97
|
+
type: ObjectConstructor;
|
|
98
|
+
default: () => {};
|
|
99
|
+
};
|
|
58
100
|
};
|
|
59
101
|
export declare const emits: {
|
|
60
102
|
'update:fileList': (_: UploadFile[]) => boolean;
|
|
61
103
|
'update:modelValue': (_: string) => boolean;
|
|
104
|
+
'update:attachmentsVisible': (_: boolean) => boolean;
|
|
62
105
|
submit: (_: string) => boolean;
|
|
63
106
|
cancel: null;
|
|
64
107
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AnyFunc } from '@vunk/shared';
|
|
1
|
+
import type { AnyFunc, NormalObject } from '@vunk/shared';
|
|
2
2
|
import type { UploadChangeParam, UploadFile } from 'ant-design-vue';
|
|
3
3
|
import type { AttachmentsRef } from 'ant-design-x-vue/typings/attachments/interface';
|
|
4
4
|
import type { Ref } from 'vue';
|
|
5
5
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
6
|
fileList: {
|
|
7
|
-
type: import("vue").PropType<
|
|
7
|
+
type: import("vue").PropType<any[]>;
|
|
8
8
|
default: undefined;
|
|
9
9
|
};
|
|
10
10
|
action: {
|
|
@@ -42,10 +42,33 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
type: BooleanConstructor;
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
|
+
attachmentsVisible: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
createSendButton: {
|
|
50
|
+
type: import("vue").PropType<AnyFunc>;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
53
|
+
createAttachmentsButton: {
|
|
54
|
+
type: import("vue").PropType<AnyFunc>;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
autoSize: {
|
|
58
|
+
type: import("vue").PropType<{
|
|
59
|
+
minRows?: number;
|
|
60
|
+
maxRows?: number;
|
|
61
|
+
}>;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
attachmentsProps: {
|
|
65
|
+
type: ObjectConstructor;
|
|
66
|
+
default: () => {};
|
|
67
|
+
};
|
|
45
68
|
}>, {
|
|
46
69
|
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
47
70
|
fileList: {
|
|
48
|
-
type: import("vue").PropType<
|
|
71
|
+
type: import("vue").PropType<any[]>;
|
|
49
72
|
default: undefined;
|
|
50
73
|
};
|
|
51
74
|
action: {
|
|
@@ -83,19 +106,47 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
83
106
|
type: BooleanConstructor;
|
|
84
107
|
default: boolean;
|
|
85
108
|
};
|
|
109
|
+
attachmentsVisible: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: undefined;
|
|
112
|
+
};
|
|
113
|
+
createSendButton: {
|
|
114
|
+
type: import("vue").PropType<AnyFunc>;
|
|
115
|
+
default: undefined;
|
|
116
|
+
};
|
|
117
|
+
createAttachmentsButton: {
|
|
118
|
+
type: import("vue").PropType<AnyFunc>;
|
|
119
|
+
default: undefined;
|
|
120
|
+
};
|
|
121
|
+
autoSize: {
|
|
122
|
+
type: import("vue").PropType<{
|
|
123
|
+
minRows?: number;
|
|
124
|
+
maxRows?: number;
|
|
125
|
+
}>;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
attachmentsProps: {
|
|
129
|
+
type: ObjectConstructor;
|
|
130
|
+
default: () => {};
|
|
131
|
+
};
|
|
86
132
|
}>> & Readonly<{
|
|
87
133
|
"onUpdate:modelValue"?: ((_: string) => any) | undefined;
|
|
88
134
|
onSubmit?: ((_: string) => any) | undefined;
|
|
89
135
|
"onUpdate:fileList"?: ((_: UploadFile<any>[]) => any) | undefined;
|
|
136
|
+
"onUpdate:attachmentsVisible"?: ((_: boolean) => any) | undefined;
|
|
90
137
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
91
138
|
}> & {}>;
|
|
92
|
-
emit: ((event: "update:modelValue", _: string) => void) & ((event: "submit", _: string) => void) & ((event: "update:fileList", _: UploadFile<any>[]) => void) & ((event: "cancel", ...args: any[]) => void);
|
|
139
|
+
emit: ((event: "update:modelValue", _: string) => void) & ((event: "submit", _: string) => void) & ((event: "update:fileList", _: UploadFile<any>[]) => void) & ((event: "update:attachmentsVisible", _: boolean) => void) & ((event: "cancel", ...args: any[]) => void);
|
|
93
140
|
slots: Readonly<{
|
|
94
141
|
[name: string]: import("vue").Slot<any> | undefined;
|
|
95
142
|
}>;
|
|
96
143
|
hasAttachments: import("vue").ComputedRef<boolean>;
|
|
97
144
|
loading: import("vue").WritableComputedRef<boolean, boolean>;
|
|
98
|
-
headerOpen:
|
|
145
|
+
headerOpen: import("vue").WritableComputedRef<boolean, boolean>;
|
|
146
|
+
createSendButtonDefault: (components?: NormalObject) => JSX.Element;
|
|
147
|
+
createSendButton: (components: any) => any;
|
|
148
|
+
createAttachmentsButtonDefault: () => JSX.Element;
|
|
149
|
+
createAttachmentsButton: () => any;
|
|
99
150
|
actionsRender: AnyFunc;
|
|
100
151
|
attachmentsPlaceholder: AnyFunc;
|
|
101
152
|
theFileList: import("vue").WritableComputedRef<UploadFile<any>[], UploadFile<any>[]>;
|
|
@@ -110,206 +161,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
110
161
|
attachmentWrapResolve: import("@vunk/core").AnyFunc;
|
|
111
162
|
handlePasteFile: (file: File) => Promise<void>;
|
|
112
163
|
handleChange: (e: UploadChangeParam<UploadFile>) => void;
|
|
113
|
-
readonly LinkOutlined: import("@ant-design/icons-vue/lib/icons/LinkOutlined").LinkOutlinedIconType;
|
|
114
|
-
readonly AntButton: {
|
|
115
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
116
|
-
prefixCls: StringConstructor;
|
|
117
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
118
|
-
htmlType: {
|
|
119
|
-
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
120
|
-
default: string;
|
|
121
|
-
};
|
|
122
|
-
shape: {
|
|
123
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
124
|
-
};
|
|
125
|
-
size: {
|
|
126
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
127
|
-
};
|
|
128
|
-
loading: {
|
|
129
|
-
type: import("vue").PropType<boolean | {
|
|
130
|
-
delay?: number;
|
|
131
|
-
}>;
|
|
132
|
-
default: () => boolean | {
|
|
133
|
-
delay?: number;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
disabled: {
|
|
137
|
-
type: BooleanConstructor;
|
|
138
|
-
default: any;
|
|
139
|
-
};
|
|
140
|
-
ghost: {
|
|
141
|
-
type: BooleanConstructor;
|
|
142
|
-
default: any;
|
|
143
|
-
};
|
|
144
|
-
block: {
|
|
145
|
-
type: BooleanConstructor;
|
|
146
|
-
default: any;
|
|
147
|
-
};
|
|
148
|
-
danger: {
|
|
149
|
-
type: BooleanConstructor;
|
|
150
|
-
default: any;
|
|
151
|
-
};
|
|
152
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
153
|
-
href: StringConstructor;
|
|
154
|
-
target: StringConstructor;
|
|
155
|
-
title: StringConstructor;
|
|
156
|
-
onClick: {
|
|
157
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
158
|
-
};
|
|
159
|
-
onMousedown: {
|
|
160
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
161
|
-
};
|
|
162
|
-
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
163
|
-
block: boolean;
|
|
164
|
-
disabled: boolean;
|
|
165
|
-
danger: boolean;
|
|
166
|
-
ghost: boolean;
|
|
167
|
-
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
168
|
-
loading: boolean | {
|
|
169
|
-
delay?: number;
|
|
170
|
-
};
|
|
171
|
-
}, true, {}, import("ant-design-vue/es/_util/type").CustomSlotsType<{
|
|
172
|
-
icon: any;
|
|
173
|
-
default: any;
|
|
174
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
175
|
-
P: {};
|
|
176
|
-
B: {};
|
|
177
|
-
D: {};
|
|
178
|
-
C: {};
|
|
179
|
-
M: {};
|
|
180
|
-
Defaults: {};
|
|
181
|
-
}, Readonly<import("vue").ExtractPropTypes<{
|
|
182
|
-
prefixCls: StringConstructor;
|
|
183
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
184
|
-
htmlType: {
|
|
185
|
-
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
186
|
-
default: string;
|
|
187
|
-
};
|
|
188
|
-
shape: {
|
|
189
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
190
|
-
};
|
|
191
|
-
size: {
|
|
192
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
193
|
-
};
|
|
194
|
-
loading: {
|
|
195
|
-
type: import("vue").PropType<boolean | {
|
|
196
|
-
delay?: number;
|
|
197
|
-
}>;
|
|
198
|
-
default: () => boolean | {
|
|
199
|
-
delay?: number;
|
|
200
|
-
};
|
|
201
|
-
};
|
|
202
|
-
disabled: {
|
|
203
|
-
type: BooleanConstructor;
|
|
204
|
-
default: any;
|
|
205
|
-
};
|
|
206
|
-
ghost: {
|
|
207
|
-
type: BooleanConstructor;
|
|
208
|
-
default: any;
|
|
209
|
-
};
|
|
210
|
-
block: {
|
|
211
|
-
type: BooleanConstructor;
|
|
212
|
-
default: any;
|
|
213
|
-
};
|
|
214
|
-
danger: {
|
|
215
|
-
type: BooleanConstructor;
|
|
216
|
-
default: any;
|
|
217
|
-
};
|
|
218
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
219
|
-
href: StringConstructor;
|
|
220
|
-
target: StringConstructor;
|
|
221
|
-
title: StringConstructor;
|
|
222
|
-
onClick: {
|
|
223
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
224
|
-
};
|
|
225
|
-
onMousedown: {
|
|
226
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
227
|
-
};
|
|
228
|
-
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, {
|
|
229
|
-
block: boolean;
|
|
230
|
-
disabled: boolean;
|
|
231
|
-
danger: boolean;
|
|
232
|
-
ghost: boolean;
|
|
233
|
-
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
234
|
-
loading: boolean | {
|
|
235
|
-
delay?: number;
|
|
236
|
-
};
|
|
237
|
-
}>;
|
|
238
|
-
__isFragment?: never;
|
|
239
|
-
__isTeleport?: never;
|
|
240
|
-
__isSuspense?: never;
|
|
241
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
242
|
-
prefixCls: StringConstructor;
|
|
243
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonType>;
|
|
244
|
-
htmlType: {
|
|
245
|
-
type: import("vue").PropType<import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType>;
|
|
246
|
-
default: string;
|
|
247
|
-
};
|
|
248
|
-
shape: {
|
|
249
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonShape>;
|
|
250
|
-
};
|
|
251
|
-
size: {
|
|
252
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
253
|
-
};
|
|
254
|
-
loading: {
|
|
255
|
-
type: import("vue").PropType<boolean | {
|
|
256
|
-
delay?: number;
|
|
257
|
-
}>;
|
|
258
|
-
default: () => boolean | {
|
|
259
|
-
delay?: number;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
disabled: {
|
|
263
|
-
type: BooleanConstructor;
|
|
264
|
-
default: any;
|
|
265
|
-
};
|
|
266
|
-
ghost: {
|
|
267
|
-
type: BooleanConstructor;
|
|
268
|
-
default: any;
|
|
269
|
-
};
|
|
270
|
-
block: {
|
|
271
|
-
type: BooleanConstructor;
|
|
272
|
-
default: any;
|
|
273
|
-
};
|
|
274
|
-
danger: {
|
|
275
|
-
type: BooleanConstructor;
|
|
276
|
-
default: any;
|
|
277
|
-
};
|
|
278
|
-
icon: import("vue-types").VueTypeValidableDef<any>;
|
|
279
|
-
href: StringConstructor;
|
|
280
|
-
target: StringConstructor;
|
|
281
|
-
title: StringConstructor;
|
|
282
|
-
onClick: {
|
|
283
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
284
|
-
};
|
|
285
|
-
onMousedown: {
|
|
286
|
-
type: import("vue").PropType<import("ant-design-vue/es/_util/EventInterface").MouseEventHandler | import("ant-design-vue/es/_util/EventInterface").MouseEventHandler[]>;
|
|
287
|
-
};
|
|
288
|
-
}>> & Readonly<{}>, () => import("ant-design-vue/es/_util/type").VueNode, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
289
|
-
block: boolean;
|
|
290
|
-
disabled: boolean;
|
|
291
|
-
danger: boolean;
|
|
292
|
-
ghost: boolean;
|
|
293
|
-
htmlType: import("ant-design-vue/es/button/buttonTypes").ButtonHTMLType;
|
|
294
|
-
loading: boolean | {
|
|
295
|
-
delay?: number;
|
|
296
|
-
};
|
|
297
|
-
}, {}, string, import("ant-design-vue/es/_util/type").CustomSlotsType<{
|
|
298
|
-
icon: any;
|
|
299
|
-
default: any;
|
|
300
|
-
}>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (import("vue").Plugin<any[]> & {
|
|
301
|
-
readonly Group: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
302
|
-
prefixCls: StringConstructor;
|
|
303
|
-
size: {
|
|
304
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
305
|
-
};
|
|
306
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
307
|
-
prefixCls: StringConstructor;
|
|
308
|
-
size: {
|
|
309
|
-
type: import("vue").PropType<import("ant-design-vue/es/button").ButtonSize>;
|
|
310
|
-
};
|
|
311
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
312
|
-
}));
|
|
313
164
|
readonly Attachments: {
|
|
314
165
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("ant-design-x-vue").AttachmentsProps> & Readonly<{}>, {
|
|
315
166
|
nativeElement: HTMLDivElement | null;
|
|
@@ -707,11 +558,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
707
558
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
708
559
|
'update:fileList': (_: UploadFile[]) => boolean;
|
|
709
560
|
'update:modelValue': (_: string) => boolean;
|
|
561
|
+
'update:attachmentsVisible': (_: boolean) => boolean;
|
|
710
562
|
submit: (_: string) => boolean;
|
|
711
563
|
cancel: null;
|
|
712
564
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
713
565
|
fileList: {
|
|
714
|
-
type: import("vue").PropType<
|
|
566
|
+
type: import("vue").PropType<any[]>;
|
|
715
567
|
default: undefined;
|
|
716
568
|
};
|
|
717
569
|
action: {
|
|
@@ -749,17 +601,49 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
749
601
|
type: BooleanConstructor;
|
|
750
602
|
default: boolean;
|
|
751
603
|
};
|
|
604
|
+
attachmentsVisible: {
|
|
605
|
+
type: BooleanConstructor;
|
|
606
|
+
default: undefined;
|
|
607
|
+
};
|
|
608
|
+
createSendButton: {
|
|
609
|
+
type: import("vue").PropType<AnyFunc>;
|
|
610
|
+
default: undefined;
|
|
611
|
+
};
|
|
612
|
+
createAttachmentsButton: {
|
|
613
|
+
type: import("vue").PropType<AnyFunc>;
|
|
614
|
+
default: undefined;
|
|
615
|
+
};
|
|
616
|
+
autoSize: {
|
|
617
|
+
type: import("vue").PropType<{
|
|
618
|
+
minRows?: number;
|
|
619
|
+
maxRows?: number;
|
|
620
|
+
}>;
|
|
621
|
+
default: undefined;
|
|
622
|
+
};
|
|
623
|
+
attachmentsProps: {
|
|
624
|
+
type: ObjectConstructor;
|
|
625
|
+
default: () => {};
|
|
626
|
+
};
|
|
752
627
|
}>> & Readonly<{
|
|
753
628
|
"onUpdate:modelValue"?: ((_: string) => any) | undefined;
|
|
754
629
|
onSubmit?: ((_: string) => any) | undefined;
|
|
755
630
|
"onUpdate:fileList"?: ((_: UploadFile<any>[]) => any) | undefined;
|
|
631
|
+
"onUpdate:attachmentsVisible"?: ((_: boolean) => any) | undefined;
|
|
756
632
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
757
633
|
}>, {
|
|
758
634
|
loading: boolean;
|
|
759
635
|
modules: "Attachments"[];
|
|
760
636
|
modelValue: string;
|
|
761
|
-
fileList:
|
|
637
|
+
fileList: any[];
|
|
762
638
|
action: string;
|
|
763
639
|
sendDisabled: boolean;
|
|
640
|
+
attachmentsVisible: boolean;
|
|
641
|
+
createSendButton: AnyFunc;
|
|
642
|
+
createAttachmentsButton: AnyFunc;
|
|
643
|
+
autoSize: {
|
|
644
|
+
minRows?: number;
|
|
645
|
+
maxRows?: number;
|
|
646
|
+
};
|
|
647
|
+
attachmentsProps: Record<string, any>;
|
|
764
648
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
765
649
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { defineComponent, createVNode, createTextVNode } from 'vue';
|
|
|
2
2
|
import { useRecorder } from '@vunk/plus/composables/recorder';
|
|
3
3
|
import { Button } from 'ant-design-vue';
|
|
4
4
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
5
|
-
import { A as AudioMutedOutlined, b as AudioOutlined } from '../
|
|
5
|
+
import { A as AudioMutedOutlined, b as AudioOutlined } from '../LinkOutlined.mjs';
|
|
6
6
|
|
|
7
7
|
const props = {
|
|
8
8
|
disabled: {
|