xrk-components 2.0.0-beta.78 → 2.0.0-beta.79
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/lib/index.css +13 -2
- package/lib/index.esm.js +11 -3
- package/lib/index.umd.js +11 -3
- package/lib/packages/base/upload/upload.d.ts +17 -0
- package/package.json +1 -1
package/lib/index.css
CHANGED
|
@@ -20430,13 +20430,21 @@
|
|
|
20430
20430
|
-webkit-transform: translateX(-100%);
|
|
20431
20431
|
transform: translateX(-100%);
|
|
20432
20432
|
}
|
|
20433
|
-
.base-layout-menu .sub-menus .content .menu .sub-menu[data-v-1bea9a2a]:
|
|
20433
|
+
.base-layout-menu .sub-menus .content .menu .sub-menu[data-v-1bea9a2a]:not(.active):hover {
|
|
20434
|
+
color: var(--xrk-color-primary);
|
|
20435
|
+
-webkit-transition: all 0.15s;
|
|
20436
|
+
transition: all 0.15s;
|
|
20437
|
+
}
|
|
20438
|
+
.base-layout-menu .sub-menus .content .menu .sub-menu[data-v-1bea9a2a]:not(.active):hover::after {
|
|
20439
|
+
opacity: 0;
|
|
20440
|
+
}
|
|
20441
|
+
.base-layout-menu .sub-menus .content .menu .sub-menu.active[data-v-1bea9a2a] {
|
|
20434
20442
|
color: var(--xrk-color-primary);
|
|
20435
20443
|
background-color: var(--xrk-color-primary-light-9);
|
|
20436
20444
|
-webkit-transition: all 0.15s;
|
|
20437
20445
|
transition: all 0.15s;
|
|
20438
20446
|
}
|
|
20439
|
-
.base-layout-menu .sub-menus .content .menu .sub-menu
|
|
20447
|
+
.base-layout-menu .sub-menus .content .menu .sub-menu.active[data-v-1bea9a2a]::after {
|
|
20440
20448
|
-webkit-transform: translateX(0);
|
|
20441
20449
|
transform: translateX(0);
|
|
20442
20450
|
}
|
|
@@ -20521,6 +20529,9 @@
|
|
|
20521
20529
|
flex-shrink: 0;
|
|
20522
20530
|
width: var(--base-layout-menu-width, 140px);
|
|
20523
20531
|
background-color: #fff;
|
|
20532
|
+
z-index: 2;
|
|
20533
|
+
}
|
|
20534
|
+
.base-layout-main > .content > .menu[data-v-3f66cd84]:hover {
|
|
20524
20535
|
z-index: 3;
|
|
20525
20536
|
}
|
|
20526
20537
|
.base-layout-main > .content > .body[data-v-3f66cd84] {
|
package/lib/index.esm.js
CHANGED
|
@@ -75105,7 +75105,10 @@ var script$b = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$b
|
|
|
75105
75105
|
httpRequest: { type: Function, required: true },
|
|
75106
75106
|
beforeSelected: { type: Function, required: false },
|
|
75107
75107
|
beforeRemove: { type: Function, required: false },
|
|
75108
|
-
onPreview: { type: Function, required: false }
|
|
75108
|
+
onPreview: { type: Function, required: false },
|
|
75109
|
+
keys: { type: Object, required: false, default: function () {
|
|
75110
|
+
return { name: 'name', url: 'url' };
|
|
75111
|
+
} }
|
|
75109
75112
|
}, emits: ["update:fileList", "change", "error", "preview"], setup: function (__props, _a) {
|
|
75110
75113
|
var _this = this;
|
|
75111
75114
|
var _b;
|
|
@@ -75124,7 +75127,9 @@ var script$b = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$b
|
|
|
75124
75127
|
return (((_a = props.accept) === null || _a === void 0 ? void 0 : _a.map(function (i) { return [i.toLocaleLowerCase(), i.toLocaleUpperCase()]; }).flat(1).join(',')) || '');
|
|
75125
75128
|
});
|
|
75126
75129
|
watch(function () { return props.fileList; }, function (newV) {
|
|
75127
|
-
fileList.value = __spreadArray([], __read((newV || []))
|
|
75130
|
+
fileList.value = __spreadArray([], __read((newV || []).map(function (item) {
|
|
75131
|
+
return __assign(__assign({}, item), { name: item[_props.keys.name], url: item[_props.keys.url] });
|
|
75132
|
+
})), false);
|
|
75128
75133
|
}, { immediate: true, deep: true });
|
|
75129
75134
|
var slots = (_b = getCurrentInstance()) === null || _b === void 0 ? void 0 : _b.slots;
|
|
75130
75135
|
var onChooseFileClick = function () {
|
|
@@ -75190,7 +75195,10 @@ var script$b = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$b
|
|
|
75190
75195
|
var url = (_k = (_h = (_f = (_c = (_b = (_a = item.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.fileUrl) !== null && _c !== void 0 ? _c : (_e = (_d = item.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.url) !== null && _f !== void 0 ? _f : (_g = item.response) === null || _g === void 0 ? void 0 : _g.fileUrl) !== null && _h !== void 0 ? _h : (_j = item.response) === null || _j === void 0 ? void 0 : _j.url) !== null && _k !== void 0 ? _k : '';
|
|
75191
75196
|
return __assign(__assign({}, item), (url && { url: url }));
|
|
75192
75197
|
});
|
|
75193
|
-
emits('update:fileList', fileList.value)
|
|
75198
|
+
emits('update:fileList', fileList.value.map(function (item) {
|
|
75199
|
+
var _a;
|
|
75200
|
+
return __assign(__assign({}, item), (_a = {}, _a[_props.keys.name] = item.name, _a[_props.keys.url] = item.url, _a));
|
|
75201
|
+
}));
|
|
75194
75202
|
};
|
|
75195
75203
|
var handleBeforeUpload = function (rawFile) { return __awaiter(_this, void 0, void 0, function () {
|
|
75196
75204
|
var error_2;
|
package/lib/index.umd.js
CHANGED
|
@@ -75108,7 +75108,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75108
75108
|
httpRequest: { type: Function, required: true },
|
|
75109
75109
|
beforeSelected: { type: Function, required: false },
|
|
75110
75110
|
beforeRemove: { type: Function, required: false },
|
|
75111
|
-
onPreview: { type: Function, required: false }
|
|
75111
|
+
onPreview: { type: Function, required: false },
|
|
75112
|
+
keys: { type: Object, required: false, default: function () {
|
|
75113
|
+
return { name: 'name', url: 'url' };
|
|
75114
|
+
} }
|
|
75112
75115
|
}, emits: ["update:fileList", "change", "error", "preview"], setup: function (__props, _a) {
|
|
75113
75116
|
var _this = this;
|
|
75114
75117
|
var _b;
|
|
@@ -75127,7 +75130,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75127
75130
|
return (((_a = props.accept) === null || _a === void 0 ? void 0 : _a.map(function (i) { return [i.toLocaleLowerCase(), i.toLocaleUpperCase()]; }).flat(1).join(',')) || '');
|
|
75128
75131
|
});
|
|
75129
75132
|
vue.watch(function () { return props.fileList; }, function (newV) {
|
|
75130
|
-
fileList.value = __spreadArray([], __read((newV || []))
|
|
75133
|
+
fileList.value = __spreadArray([], __read((newV || []).map(function (item) {
|
|
75134
|
+
return __assign(__assign({}, item), { name: item[_props.keys.name], url: item[_props.keys.url] });
|
|
75135
|
+
})), false);
|
|
75131
75136
|
}, { immediate: true, deep: true });
|
|
75132
75137
|
var slots = (_b = vue.getCurrentInstance()) === null || _b === void 0 ? void 0 : _b.slots;
|
|
75133
75138
|
var onChooseFileClick = function () {
|
|
@@ -75193,7 +75198,10 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
75193
75198
|
var url = (_k = (_h = (_f = (_c = (_b = (_a = item.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.fileUrl) !== null && _c !== void 0 ? _c : (_e = (_d = item.response) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.url) !== null && _f !== void 0 ? _f : (_g = item.response) === null || _g === void 0 ? void 0 : _g.fileUrl) !== null && _h !== void 0 ? _h : (_j = item.response) === null || _j === void 0 ? void 0 : _j.url) !== null && _k !== void 0 ? _k : '';
|
|
75194
75199
|
return __assign(__assign({}, item), (url && { url: url }));
|
|
75195
75200
|
});
|
|
75196
|
-
emits('update:fileList', fileList.value)
|
|
75201
|
+
emits('update:fileList', fileList.value.map(function (item) {
|
|
75202
|
+
var _a;
|
|
75203
|
+
return __assign(__assign({}, item), (_a = {}, _a[_props.keys.name] = item.name, _a[_props.keys.url] = item.url, _a));
|
|
75204
|
+
}));
|
|
75197
75205
|
};
|
|
75198
75206
|
var handleBeforeUpload = function (rawFile) { return __awaiter(_this, void 0, void 0, function () {
|
|
75199
75207
|
var error_2;
|
|
@@ -82,6 +82,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
type: FunctionConstructor;
|
|
83
83
|
required: false;
|
|
84
84
|
};
|
|
85
|
+
keys: {
|
|
86
|
+
type: ObjectConstructor;
|
|
87
|
+
required: false;
|
|
88
|
+
default(): {
|
|
89
|
+
name: string;
|
|
90
|
+
url: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
85
93
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
94
|
[key: string]: any;
|
|
87
95
|
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:fileList" | "change" | "error" | "preview")[], "update:fileList" | "change" | "error" | "preview", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -168,6 +176,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
176
|
type: FunctionConstructor;
|
|
169
177
|
required: false;
|
|
170
178
|
};
|
|
179
|
+
keys: {
|
|
180
|
+
type: ObjectConstructor;
|
|
181
|
+
required: false;
|
|
182
|
+
default(): {
|
|
183
|
+
name: string;
|
|
184
|
+
url: string;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
171
187
|
}>> & {
|
|
172
188
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
173
189
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -185,5 +201,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
201
|
listType: string;
|
|
186
202
|
fileIconSize: number;
|
|
187
203
|
useSystemErrMsg: boolean;
|
|
204
|
+
keys: Record<string, any>;
|
|
188
205
|
}>;
|
|
189
206
|
export default _default;
|