ele-admin-plus 1.1.9-beta.7 → 1.1.9-beta.9
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/es/ele-alert/index.js +2 -4
- package/es/ele-app/el.d.ts +6 -1
- package/es/ele-app/plus.d.ts +12 -0
- package/es/ele-avatar-group/index.d.ts +1 -1
- package/es/ele-avatar-group/index.js +1 -3
- package/es/ele-basic-select/index.d.ts +8 -8
- package/es/ele-basic-select/index.js +17 -13
- package/es/ele-check-card/index.d.ts +2 -2
- package/es/ele-check-card/index.js +0 -5
- package/es/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/es/ele-config-provider/components/receiver-view.js +45 -0
- package/es/ele-config-provider/index.d.ts +2 -2
- package/es/ele-config-provider/props.d.ts +3 -3
- package/es/ele-config-provider/props.js +2 -2
- package/es/ele-config-provider/types.d.ts +2 -0
- package/es/ele-copyable/index.d.ts +4 -6
- package/es/ele-copyable/index.js +1 -5
- package/es/ele-cropper/index.d.ts +6 -6
- package/es/ele-cropper/index.js +1 -5
- package/es/ele-dashboard/index.d.ts +0 -1
- package/es/ele-dashboard/index.js +8 -17
- package/es/ele-data-table/index.d.ts +2 -2
- package/es/ele-data-table/index.js +8 -0
- package/es/ele-data-table/style/index.scss +4 -0
- package/es/ele-data-table/types.d.ts +10 -0
- package/es/ele-data-table/util.d.ts +5 -0
- package/es/ele-data-table/util.js +14 -0
- package/es/ele-dot/index.d.ts +2 -4
- package/es/ele-dot/index.js +4 -10
- package/es/ele-drawer/index.d.ts +6 -6
- package/es/ele-drawer/index.js +14 -11
- package/es/ele-dropdown/index.js +6 -10
- package/es/ele-dropdown/style/index.scss +2 -2
- package/es/ele-edit-tag/index.d.ts +6 -0
- package/es/ele-edit-tag/index.js +17 -15
- package/es/ele-edit-tag/props.d.ts +4 -0
- package/es/ele-edit-tag/props.js +5 -1
- package/es/ele-edit-tag/style/index.scss +13 -0
- package/es/ele-ellipsis/index.d.ts +3 -3
- package/es/ele-ellipsis/index.js +2 -4
- package/es/ele-file-list/components/file-grid-item.js +16 -9
- package/es/ele-file-list/components/file-grid.js +54 -50
- package/es/ele-file-list/components/file-table-item.js +20 -15
- package/es/ele-file-list/components/file-table.js +92 -86
- package/es/ele-file-list/index.d.ts +4 -4
- package/es/ele-file-list/index.js +1 -11
- package/es/ele-file-list-tool/index.d.ts +3 -3
- package/es/ele-file-list-tool/index.js +2 -2
- package/es/ele-icon-select/index.d.ts +22 -10
- package/es/ele-icon-select/index.js +33 -10
- package/es/ele-icon-select/props.d.ts +6 -1
- package/es/ele-icon-select/props.js +6 -1
- package/es/ele-icon-select/style/index.js +1 -0
- package/es/ele-icon-select/style/index.scss +16 -2
- package/es/ele-loading/index.d.ts +0 -2
- package/es/ele-loading/index.js +32 -30
- package/es/ele-map-picker/components/map-view.d.ts +2 -2
- package/es/ele-menus/index.d.ts +3 -3
- package/es/ele-menus/index.js +6 -7
- package/es/ele-menus/style/index.js +2 -0
- package/es/ele-menus/style/index.scss +2 -1
- package/es/ele-modal/index.d.ts +2 -2
- package/es/ele-modal/index.js +14 -8
- package/es/ele-modal/style/index.scss +18 -29
- package/es/ele-pagination/index.d.ts +10 -8
- package/es/ele-pagination/index.js +19 -13
- package/es/ele-pagination/props.d.ts +3 -2
- package/es/ele-pagination/props.js +2 -0
- package/es/ele-pagination/style/index.scss +9 -0
- package/es/ele-pagination/types.d.ts +6 -1
- package/es/ele-popconfirm/style/index.js +1 -1
- package/es/ele-popover/style/index.js +0 -1
- package/es/ele-printer/index.d.ts +6 -6
- package/es/ele-printer/index.js +11 -11
- package/es/ele-printer/util.js +1 -1
- package/es/ele-pro-layout/components/pro-sidebox.js +3 -1
- package/es/ele-pro-layout/index.d.ts +26 -26
- package/es/ele-pro-layout/index.js +7 -14
- package/es/ele-pro-table/components/table-tools.d.ts +99 -8
- package/es/ele-pro-table/components/table-tools.js +125 -8
- package/es/ele-pro-table/components/tool-column-list.js +1 -0
- package/es/ele-pro-table/components/tool-column.js +6 -2
- package/es/ele-pro-table/components/tool-export.d.ts +457 -0
- package/es/ele-pro-table/components/tool-export.js +451 -0
- package/es/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-body-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/es/ele-pro-table/components/tool-print-header-cell.js +88 -0
- package/es/ele-pro-table/components/tool-print.d.ts +899 -0
- package/es/ele-pro-table/components/tool-print.js +547 -0
- package/es/ele-pro-table/index.d.ts +31 -12
- package/es/ele-pro-table/index.js +57 -14
- package/es/ele-pro-table/props.d.ts +14 -8
- package/es/ele-pro-table/props.js +6 -2
- package/es/ele-pro-table/style/index.js +9 -0
- package/es/ele-pro-table/style/index.scss +33 -5
- package/es/ele-pro-table/types.d.ts +147 -5
- package/es/ele-pro-table/util.d.ts +47 -3
- package/es/ele-pro-table/util.js +119 -13
- package/es/ele-segmented/index.js +1 -3
- package/es/ele-split-panel/index.d.ts +9 -8
- package/es/ele-split-panel/index.js +63 -59
- package/es/ele-steps/index.d.ts +0 -1
- package/es/ele-steps/index.js +2 -4
- package/es/ele-table/index.d.ts +3 -0
- package/es/ele-table/index.js +2 -1
- package/es/ele-table/props.d.ts +2 -0
- package/es/ele-table/props.js +3 -1
- package/es/ele-table/style/index.scss +35 -0
- package/es/ele-table-select/index.d.ts +1 -1
- package/es/ele-tabs/index.d.ts +7 -5
- package/es/ele-tabs/index.js +1 -6
- package/es/ele-tabs/props.d.ts +1 -1
- package/es/ele-tool/index.d.ts +1 -1
- package/es/ele-tool/index.js +2 -4
- package/es/ele-tool/props.d.ts +7 -0
- package/es/ele-tool/props.js +5 -0
- package/es/ele-tooltip/index.js +9 -13
- package/es/ele-tooltip/style/css-var.scss +4 -0
- package/es/ele-tooltip/style/index.scss +23 -0
- package/es/ele-tour/index.js +80 -77
- package/es/ele-upload-list/components/list-item.d.ts +1 -1
- package/es/ele-upload-list/index.d.ts +6 -4
- package/es/ele-upload-list/index.js +2 -3
- package/es/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/es/ele-virtual-table/components/body-cell.js +32 -47
- package/es/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/es/ele-virtual-table/components/footer-row.js +15 -10
- package/es/ele-virtual-table/index.d.ts +1 -1
- package/es/ele-virtual-table/types.d.ts +15 -1
- package/es/ele-virtual-table/util.d.ts +26 -3
- package/es/ele-virtual-table/util.js +44 -0
- package/es/ele-watermark/index.d.ts +9 -0
- package/es/ele-watermark/index.js +1 -1
- package/es/ele-watermark/props.d.ts +5 -0
- package/es/ele-watermark/props.js +5 -0
- package/es/icons/PrinterOutlined.d.ts +2 -0
- package/es/icons/PrinterOutlined.js +29 -0
- package/es/icons/VerticalLeftOutlined.js +2 -2
- package/es/icons/VerticalRightOutlined.js +2 -2
- package/es/icons/index.d.ts +1 -0
- package/es/icons/index.js +58 -56
- package/es/lang/en_US.js +13 -2
- package/es/lang/zh_CN.js +13 -2
- package/es/lang/zh_TW.js +12 -1
- package/es/style/index.scss +1 -43
- package/es/style/plus.scss +43 -0
- package/es/style/themes/default.scss +5 -2
- package/es/style/themes/theme-util.scss +0 -2
- package/es/utils/resolvers.d.ts +2 -2
- package/es/utils/resolvers.js +33 -20
- package/lib/ele-alert/index.cjs +2 -4
- package/lib/ele-app/el.d.ts +6 -1
- package/lib/ele-app/plus.d.ts +12 -0
- package/lib/ele-avatar-group/index.cjs +1 -3
- package/lib/ele-avatar-group/index.d.ts +1 -1
- package/lib/ele-basic-select/index.cjs +16 -12
- package/lib/ele-basic-select/index.d.ts +8 -8
- package/lib/ele-check-card/index.cjs +0 -5
- package/lib/ele-check-card/index.d.ts +2 -2
- package/lib/ele-config-provider/components/receiver-view.cjs +44 -0
- package/lib/ele-config-provider/components/receiver-view.d.ts +17 -0
- package/lib/ele-config-provider/index.d.ts +2 -2
- package/lib/ele-config-provider/props.cjs +2 -2
- package/lib/ele-config-provider/props.d.ts +3 -3
- package/lib/ele-config-provider/types.d.ts +2 -0
- package/lib/ele-copyable/index.cjs +0 -4
- package/lib/ele-copyable/index.d.ts +4 -6
- package/lib/ele-cropper/index.cjs +0 -4
- package/lib/ele-cropper/index.d.ts +6 -6
- package/lib/ele-dashboard/index.cjs +7 -16
- package/lib/ele-dashboard/index.d.ts +0 -1
- package/lib/ele-data-table/index.cjs +8 -0
- package/lib/ele-data-table/index.d.ts +2 -2
- package/lib/ele-data-table/style/index.scss +4 -0
- package/lib/ele-data-table/types.d.ts +10 -0
- package/lib/ele-data-table/util.cjs +14 -0
- package/lib/ele-data-table/util.d.ts +5 -0
- package/lib/ele-dot/index.cjs +3 -9
- package/lib/ele-dot/index.d.ts +2 -4
- package/lib/ele-drawer/index.cjs +13 -10
- package/lib/ele-drawer/index.d.ts +6 -6
- package/lib/ele-dropdown/index.cjs +6 -10
- package/lib/ele-dropdown/style/index.scss +2 -2
- package/lib/ele-edit-tag/index.cjs +16 -14
- package/lib/ele-edit-tag/index.d.ts +6 -0
- package/lib/ele-edit-tag/props.cjs +5 -1
- package/lib/ele-edit-tag/props.d.ts +4 -0
- package/lib/ele-edit-tag/style/index.scss +13 -0
- package/lib/ele-ellipsis/index.cjs +2 -4
- package/lib/ele-ellipsis/index.d.ts +3 -3
- package/lib/ele-file-list/components/file-grid-item.cjs +15 -8
- package/lib/ele-file-list/components/file-grid.cjs +53 -49
- package/lib/ele-file-list/components/file-table-item.cjs +19 -14
- package/lib/ele-file-list/components/file-table.cjs +91 -85
- package/lib/ele-file-list/index.cjs +0 -10
- package/lib/ele-file-list/index.d.ts +4 -4
- package/lib/ele-file-list-tool/index.cjs +2 -2
- package/lib/ele-file-list-tool/index.d.ts +3 -3
- package/lib/ele-icon-select/index.cjs +39 -16
- package/lib/ele-icon-select/index.d.ts +22 -10
- package/lib/ele-icon-select/props.cjs +6 -1
- package/lib/ele-icon-select/props.d.ts +6 -1
- package/lib/ele-icon-select/style/index.cjs +1 -0
- package/lib/ele-icon-select/style/index.scss +16 -2
- package/lib/ele-loading/index.cjs +31 -29
- package/lib/ele-loading/index.d.ts +0 -2
- package/lib/ele-map-picker/components/map-view.d.ts +2 -2
- package/lib/ele-menus/index.cjs +6 -7
- package/lib/ele-menus/index.d.ts +3 -3
- package/lib/ele-menus/style/index.cjs +2 -0
- package/lib/ele-menus/style/index.scss +2 -1
- package/lib/ele-modal/index.cjs +13 -7
- package/lib/ele-modal/index.d.ts +2 -2
- package/lib/ele-modal/style/index.scss +18 -29
- package/lib/ele-pagination/index.cjs +18 -12
- package/lib/ele-pagination/index.d.ts +10 -8
- package/lib/ele-pagination/props.cjs +2 -0
- package/lib/ele-pagination/props.d.ts +3 -2
- package/lib/ele-pagination/style/index.scss +9 -0
- package/lib/ele-pagination/types.d.ts +6 -1
- package/lib/ele-popconfirm/style/index.cjs +1 -1
- package/lib/ele-popover/style/index.cjs +0 -1
- package/lib/ele-printer/index.cjs +10 -10
- package/lib/ele-printer/index.d.ts +6 -6
- package/lib/ele-printer/util.cjs +1 -1
- package/lib/ele-pro-layout/components/pro-sidebox.cjs +3 -1
- package/lib/ele-pro-layout/index.cjs +6 -13
- package/lib/ele-pro-layout/index.d.ts +26 -26
- package/lib/ele-pro-table/components/table-tools.cjs +124 -7
- package/lib/ele-pro-table/components/table-tools.d.ts +99 -8
- package/lib/ele-pro-table/components/tool-column-list.cjs +1 -0
- package/lib/ele-pro-table/components/tool-column.cjs +6 -2
- package/lib/ele-pro-table/components/tool-export.cjs +450 -0
- package/lib/ele-pro-table/components/tool-export.d.ts +457 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-body-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.cjs +87 -0
- package/lib/ele-pro-table/components/tool-print-header-cell.d.ts +34 -0
- package/lib/ele-pro-table/components/tool-print.cjs +546 -0
- package/lib/ele-pro-table/components/tool-print.d.ts +899 -0
- package/lib/ele-pro-table/index.cjs +56 -13
- package/lib/ele-pro-table/index.d.ts +31 -12
- package/lib/ele-pro-table/props.cjs +6 -2
- package/lib/ele-pro-table/props.d.ts +14 -8
- package/lib/ele-pro-table/style/index.cjs +9 -0
- package/lib/ele-pro-table/style/index.scss +33 -5
- package/lib/ele-pro-table/types.d.ts +147 -5
- package/lib/ele-pro-table/util.cjs +119 -13
- package/lib/ele-pro-table/util.d.ts +47 -3
- package/lib/ele-segmented/index.cjs +1 -3
- package/lib/ele-split-panel/index.cjs +62 -58
- package/lib/ele-split-panel/index.d.ts +9 -8
- package/lib/ele-steps/index.cjs +2 -4
- package/lib/ele-steps/index.d.ts +0 -1
- package/lib/ele-table/index.cjs +2 -1
- package/lib/ele-table/index.d.ts +3 -0
- package/lib/ele-table/props.cjs +3 -1
- package/lib/ele-table/props.d.ts +2 -0
- package/lib/ele-table/style/index.scss +35 -0
- package/lib/ele-table-select/index.d.ts +1 -1
- package/lib/ele-tabs/index.cjs +1 -6
- package/lib/ele-tabs/index.d.ts +7 -5
- package/lib/ele-tabs/props.d.ts +1 -1
- package/lib/ele-tool/index.cjs +1 -3
- package/lib/ele-tool/index.d.ts +1 -1
- package/lib/ele-tool/props.cjs +5 -0
- package/lib/ele-tool/props.d.ts +7 -0
- package/lib/ele-tooltip/index.cjs +9 -13
- package/lib/ele-tooltip/style/css-var.scss +4 -0
- package/lib/ele-tooltip/style/index.scss +23 -0
- package/lib/ele-tour/index.cjs +79 -76
- package/lib/ele-upload-list/components/list-item.d.ts +1 -1
- package/lib/ele-upload-list/index.cjs +1 -2
- package/lib/ele-upload-list/index.d.ts +6 -4
- package/lib/ele-virtual-table/components/body-cell.cjs +31 -46
- package/lib/ele-virtual-table/components/body-cell.d.ts +0 -1
- package/lib/ele-virtual-table/components/footer-row.cjs +13 -8
- package/lib/ele-virtual-table/components/footer-row.d.ts +2 -2
- package/lib/ele-virtual-table/index.d.ts +1 -1
- package/lib/ele-virtual-table/types.d.ts +15 -1
- package/lib/ele-virtual-table/util.cjs +44 -0
- package/lib/ele-virtual-table/util.d.ts +26 -3
- package/lib/ele-watermark/index.cjs +1 -1
- package/lib/ele-watermark/index.d.ts +9 -0
- package/lib/ele-watermark/props.cjs +5 -0
- package/lib/ele-watermark/props.d.ts +5 -0
- package/lib/icons/PrinterOutlined.cjs +28 -0
- package/lib/icons/PrinterOutlined.d.ts +2 -0
- package/lib/icons/VerticalLeftOutlined.cjs +2 -2
- package/lib/icons/VerticalRightOutlined.cjs +2 -2
- package/lib/icons/index.cjs +2 -0
- package/lib/icons/index.d.ts +1 -0
- package/lib/lang/en_US.cjs +13 -2
- package/lib/lang/zh_CN.cjs +13 -2
- package/lib/lang/zh_TW.cjs +12 -1
- package/lib/style/index.scss +1 -43
- package/lib/style/plus.scss +43 -0
- package/lib/style/themes/default.scss +5 -2
- package/lib/style/themes/theme-util.scss +0 -2
- package/lib/utils/resolvers.cjs +33 -20
- package/lib/utils/resolvers.d.ts +2 -2
- package/package.json +1 -1
- package/es/ele-popover/style/css-var.scss +0 -8
- package/es/ele-popover/style/index.scss +0 -27
- package/lib/ele-popover/style/css-var.scss +0 -8
- package/lib/ele-popover/style/index.scss +0 -27
|
@@ -30,6 +30,13 @@ const index = defineComponent({
|
|
|
30
30
|
var _a;
|
|
31
31
|
return ((_a = props.treeProps) == null ? void 0 : _a.children) || "children";
|
|
32
32
|
});
|
|
33
|
+
const updateScrollBar = () => {
|
|
34
|
+
var _a;
|
|
35
|
+
const scrollBarRef = (_a = tableRef.value) == null ? void 0 : _a.scrollBarRef;
|
|
36
|
+
if (scrollBarRef && typeof scrollBarRef.update === "function") {
|
|
37
|
+
scrollBarRef.update();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
33
40
|
const clearSort = () => {
|
|
34
41
|
methods.clearSort();
|
|
35
42
|
tableState.sorter = {};
|
|
@@ -226,6 +233,7 @@ const index = defineComponent({
|
|
|
226
233
|
tableCols.value = cols;
|
|
227
234
|
nextTick(() => {
|
|
228
235
|
methods.doLayout();
|
|
236
|
+
updateScrollBar();
|
|
229
237
|
if (sorter) {
|
|
230
238
|
methods.sort(sorter.prop, sorter.order || "ascending");
|
|
231
239
|
}
|
|
@@ -240,7 +240,17 @@ export type SpanMethod = ElTableProps<DataItem>['spanMethod'];
|
|
|
240
240
|
*/
|
|
241
241
|
export type RowKey = ElTableProps<DataItem>['rowKey'];
|
|
242
242
|
|
|
243
|
+
/**
|
|
244
|
+
* 表尾合计计算方法
|
|
245
|
+
*/
|
|
246
|
+
export type SummaryMethod = ElTableProps<DataItem>['summaryMethod'];
|
|
247
|
+
|
|
243
248
|
/**
|
|
244
249
|
* 控制行是否可选中的方法
|
|
245
250
|
*/
|
|
246
251
|
export type RowSelectable = Column['selectable'];
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* 序号列起始索引
|
|
255
|
+
*/
|
|
256
|
+
export type ColumnIndex = Column['index'];
|
|
@@ -137,6 +137,11 @@ export declare function isReserveChecked(columns?: Columns): boolean;
|
|
|
137
137
|
* @param fixed 固定值
|
|
138
138
|
*/
|
|
139
139
|
export declare function getColFixedNumber(fixed?: boolean | string): 0 | 1 | 2;
|
|
140
|
+
/**
|
|
141
|
+
* 获取列类名
|
|
142
|
+
* @param col 列属性
|
|
143
|
+
*/
|
|
144
|
+
export declare function getCellClass(col: Column): string | undefined;
|
|
140
145
|
/**
|
|
141
146
|
* 获取数据值
|
|
142
147
|
* @param rows 数据
|
|
@@ -27,6 +27,8 @@ function getCols(cols, pageIndex, slots, slotNormalize, globalTooltip) {
|
|
|
27
27
|
{
|
|
28
28
|
...omit(col, [
|
|
29
29
|
"showOverflowTooltip",
|
|
30
|
+
"columnKey",
|
|
31
|
+
"className",
|
|
30
32
|
"uid",
|
|
31
33
|
"slot",
|
|
32
34
|
"headerSlot",
|
|
@@ -39,6 +41,7 @@ function getCols(cols, pageIndex, slots, slotNormalize, globalTooltip) {
|
|
|
39
41
|
globalTooltip
|
|
40
42
|
),
|
|
41
43
|
columnKey: col.columnKey ?? col.prop,
|
|
44
|
+
className: getCellClass(col),
|
|
42
45
|
index: col.index ?? pageIndex,
|
|
43
46
|
key: col.uid
|
|
44
47
|
},
|
|
@@ -256,6 +259,16 @@ function getColFixedNumber(fixed) {
|
|
|
256
259
|
}
|
|
257
260
|
return 1;
|
|
258
261
|
}
|
|
262
|
+
function getCellClass(col) {
|
|
263
|
+
const classes = [];
|
|
264
|
+
if (col.type === "index") {
|
|
265
|
+
classes.push("is-index");
|
|
266
|
+
}
|
|
267
|
+
if (col.className) {
|
|
268
|
+
classes.push(col.className);
|
|
269
|
+
}
|
|
270
|
+
return classes.length ? classes.join(" ") : void 0;
|
|
271
|
+
}
|
|
259
272
|
function getRowKeys(rows, rowKey) {
|
|
260
273
|
const keys = [];
|
|
261
274
|
if (rows) {
|
|
@@ -455,6 +468,7 @@ function useEmits(emit) {
|
|
|
455
468
|
export {
|
|
456
469
|
arrayIsChanged,
|
|
457
470
|
getBodyRowClass,
|
|
471
|
+
getCellClass,
|
|
458
472
|
getColFixedNumber,
|
|
459
473
|
getCols,
|
|
460
474
|
getEmptyProps,
|
package/es/ele-dot/index.d.ts
CHANGED
|
@@ -10,9 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
type: StringConstructor;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
-
}, {
|
|
14
|
-
authenticated: import("vue").Ref<boolean>;
|
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
14
|
type: import("vue").PropType<import("./types").DotType>;
|
|
17
15
|
color: StringConstructor;
|
|
18
16
|
ripple: {
|
|
@@ -25,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
23
|
default: string;
|
|
26
24
|
};
|
|
27
25
|
}>>, {
|
|
28
|
-
size: string;
|
|
29
26
|
ripple: boolean;
|
|
27
|
+
size: string;
|
|
30
28
|
}, {}>;
|
|
31
29
|
export default _default;
|
package/es/ele-dot/index.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle,
|
|
2
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, normalizeStyle, toDisplayString, createCommentVNode } from "vue";
|
|
3
2
|
import { dotProps } from "./props";
|
|
4
3
|
const _sfc_main = defineComponent({
|
|
5
4
|
name: "EleDot",
|
|
6
|
-
props: dotProps
|
|
7
|
-
setup() {
|
|
8
|
-
const { authenticated } = useLicense();
|
|
9
|
-
return { authenticated };
|
|
10
|
-
}
|
|
5
|
+
props: dotProps
|
|
11
6
|
});
|
|
12
7
|
const _export_sfc = (sfc, props) => {
|
|
13
8
|
const target = sfc.__vccOpts || sfc;
|
|
@@ -35,11 +30,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35
30
|
class: "ele-dot-status",
|
|
36
31
|
style: normalizeStyle({ width: _ctx.size, height: _ctx.size, background: _ctx.color })
|
|
37
32
|
}, [
|
|
38
|
-
|
|
39
|
-
key: 0,
|
|
33
|
+
createElementVNode("span", {
|
|
40
34
|
class: "ele-dot-ripple",
|
|
41
35
|
style: normalizeStyle({ width: _ctx.size, height: _ctx.size, background: _ctx.color })
|
|
42
|
-
}, null, 4)
|
|
36
|
+
}, null, 4)
|
|
43
37
|
], 4),
|
|
44
38
|
_ctx.text ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.text), 1)) : createCommentVNode("", true)
|
|
45
39
|
], 2);
|
package/es/ele-drawer/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
43
|
zIndex: {
|
|
44
44
|
readonly type: import("vue").PropType<number>;
|
|
45
45
|
readonly required: false;
|
|
46
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined; /** 关闭抽屉 */
|
|
47
47
|
__epPropKey: true;
|
|
48
48
|
};
|
|
49
49
|
trapFocus: import("element-plus/es/utils/index").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -122,7 +122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
122
|
zIndex: {
|
|
123
123
|
readonly type: import("vue").PropType<number>;
|
|
124
124
|
readonly required: false;
|
|
125
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
125
|
+
readonly validator: ((val: unknown) => boolean) | undefined; /** 关闭抽屉 */
|
|
126
126
|
__epPropKey: true;
|
|
127
127
|
};
|
|
128
128
|
trapFocus: import("element-plus/es/utils/index").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
@@ -149,11 +149,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
149
|
onOpened?: (() => any) | undefined;
|
|
150
150
|
onClosed?: (() => any) | undefined;
|
|
151
151
|
}, {
|
|
152
|
-
|
|
152
|
+
title: string;
|
|
153
|
+
direction: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
154
|
+
overflow: boolean;
|
|
153
155
|
center: boolean;
|
|
156
|
+
size: import("element-plus/es/utils/index").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
154
157
|
modelValue: boolean;
|
|
155
158
|
appendTo: string;
|
|
156
|
-
title: string;
|
|
157
159
|
appendToBody: boolean;
|
|
158
160
|
destroyOnClose: boolean;
|
|
159
161
|
closeOnClickModal: import("element-plus/es/utils/index").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -166,11 +168,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
166
168
|
headerAriaLevel: string;
|
|
167
169
|
alignCenter: boolean;
|
|
168
170
|
draggable: boolean;
|
|
169
|
-
overflow: boolean;
|
|
170
171
|
fullscreen: boolean;
|
|
171
172
|
showClose: import("element-plus/es/utils/index").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
172
173
|
ariaLevel: string;
|
|
173
|
-
direction: import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "ltr" | "rtl" | "ttb" | "btt", unknown>;
|
|
174
174
|
withHeader: import("element-plus/es/utils/index").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
175
175
|
modalFade: import("element-plus/es/utils/index").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
176
176
|
inner: boolean;
|
package/es/ele-drawer/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, unref, onActivated, onDeactivated, resolveComponent, openBlock, createBlock, createSlots, withCtx, createElementVNode, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from "vue";
|
|
2
2
|
import { ElDrawer, ElIcon, drawerEmits } from "element-plus";
|
|
3
|
-
import { useLicense, useLayoutState } from "../ele-config-provider/receiver";
|
|
4
|
-
import { collapseClass, compactClass, maximizedClass, hasTabClass, mixSidebarClass, singleSidebarClass, topLayoutClass, expandedClass, mobileClass } from "../ele-modal/util";
|
|
5
3
|
import { CloseOutlined } from "../icons";
|
|
4
|
+
import ReceiverView from "../ele-config-provider/components/receiver-view";
|
|
5
|
+
import { useLayoutState } from "../ele-config-provider/receiver";
|
|
6
|
+
import { collapseClass, compactClass, maximizedClass, hasTabClass, mixSidebarClass, singleSidebarClass, topLayoutClass, expandedClass, mobileClass } from "../ele-modal/util";
|
|
6
7
|
import { drawerProps } from "./props";
|
|
7
8
|
const _sfc_main = defineComponent({
|
|
8
9
|
name: "EleDrawer",
|
|
9
|
-
components: { ElDrawer, ElIcon, CloseOutlined },
|
|
10
|
+
components: { ElDrawer, ElIcon, CloseOutlined, ReceiverView },
|
|
10
11
|
props: drawerProps,
|
|
11
12
|
emits: drawerEmits,
|
|
12
13
|
setup(props, { emit }) {
|
|
13
|
-
const { authenticated } = useLicense();
|
|
14
14
|
const layoutProvide = useLayoutState();
|
|
15
15
|
const drawerRef = ref(null);
|
|
16
16
|
const isActivated = ref(true);
|
|
@@ -66,9 +66,7 @@ const _sfc_main = defineComponent({
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
const updateModelValue = (value) => {
|
|
69
|
-
|
|
70
|
-
emit("update:modelValue", value);
|
|
71
|
-
}
|
|
69
|
+
emit("update:modelValue", value);
|
|
72
70
|
};
|
|
73
71
|
const onOpen = () => {
|
|
74
72
|
emit("open");
|
|
@@ -111,6 +109,7 @@ const _hoisted_1 = ["onClick"];
|
|
|
111
109
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
112
110
|
const _component_CloseOutlined = resolveComponent("CloseOutlined");
|
|
113
111
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
112
|
+
const _component_ReceiverView = resolveComponent("ReceiverView");
|
|
114
113
|
const _component_ElDrawer = resolveComponent("ElDrawer");
|
|
115
114
|
return openBlock(), createBlock(_component_ElDrawer, {
|
|
116
115
|
ref: "drawerRef",
|
|
@@ -170,12 +169,16 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
170
169
|
], 4)
|
|
171
170
|
]),
|
|
172
171
|
default: withCtx(() => [
|
|
173
|
-
|
|
172
|
+
createVNode(_component_ReceiverView, {
|
|
173
|
+
wrapPosition: false,
|
|
174
174
|
class: "ele-drawer-body",
|
|
175
175
|
style: normalizeStyle(_ctx.bodyStyle)
|
|
176
|
-
},
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
}, {
|
|
177
|
+
default: withCtx(() => [
|
|
178
|
+
renderSlot(_ctx.$slots, "default")
|
|
179
|
+
]),
|
|
180
|
+
_: 3
|
|
181
|
+
}, 8, ["style"])
|
|
179
182
|
]),
|
|
180
183
|
_: 2
|
|
181
184
|
}, [
|
package/es/ele-dropdown/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, normalizeStyle, createElementBlock, Fragment, renderList, normalizeProps, resolveDynamicComponent, createCommentVNode, toDisplayString } from "vue";
|
|
2
2
|
import { ElDropdown, ElDropdownMenu, ElDropdownItem, ElIcon } from "element-plus";
|
|
3
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
3
|
import { omit } from "../utils/core";
|
|
5
4
|
import { dropdownProps, dropdownEmits } from "./props";
|
|
6
5
|
const _sfc_main = defineComponent({
|
|
@@ -9,7 +8,6 @@ const _sfc_main = defineComponent({
|
|
|
9
8
|
props: dropdownProps,
|
|
10
9
|
emits: dropdownEmits,
|
|
11
10
|
setup(props, { emit }) {
|
|
12
|
-
const { authenticated } = useLicense();
|
|
13
11
|
const dropdownRef = ref();
|
|
14
12
|
const rootProps = computed(() => {
|
|
15
13
|
const options = omit(props, [
|
|
@@ -21,13 +19,11 @@ const _sfc_main = defineComponent({
|
|
|
21
19
|
"onClick",
|
|
22
20
|
"onVisibleChange"
|
|
23
21
|
]);
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
classes.push(props.popperClass);
|
|
28
|
-
}
|
|
29
|
-
options.popperClass = classes.join(" ");
|
|
22
|
+
const classes = ["ele-popper", "ele-dropdown"];
|
|
23
|
+
if (props.popperClass) {
|
|
24
|
+
classes.push(props.popperClass);
|
|
30
25
|
}
|
|
26
|
+
options.popperClass = classes.join(" ");
|
|
31
27
|
return options;
|
|
32
28
|
});
|
|
33
29
|
const selected = computed(() => {
|
|
@@ -37,7 +33,7 @@ const _sfc_main = defineComponent({
|
|
|
37
33
|
return props.items.find((d) => d.command === props.modelValue);
|
|
38
34
|
});
|
|
39
35
|
const updateModelValue = (value) => {
|
|
40
|
-
if (
|
|
36
|
+
if (value !== props.modelValue) {
|
|
41
37
|
emit("update:modelValue", value);
|
|
42
38
|
emit("change", value);
|
|
43
39
|
}
|
|
@@ -89,8 +85,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
85
|
const _component_ElDropdownMenu = resolveComponent("ElDropdownMenu");
|
|
90
86
|
const _component_ElDropdown = resolveComponent("ElDropdown");
|
|
91
87
|
return openBlock(), createBlock(_component_ElDropdown, mergeProps(_ctx.rootProps, {
|
|
92
|
-
class: "ele-dropdown-text",
|
|
93
88
|
ref: "dropdownRef",
|
|
89
|
+
class: "ele-dropdown-trigger",
|
|
94
90
|
onClick: _ctx.onBtnClick,
|
|
95
91
|
onCommand: _ctx.onMenuClick,
|
|
96
92
|
onVisibleChange: _ctx.onPopVisibleChange
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
@include set-dropdown-var($ele);
|
|
6
6
|
|
|
7
|
-
.el-dropdown.ele-dropdown-
|
|
7
|
+
.el-dropdown.ele-dropdown-trigger {
|
|
8
8
|
color: inherit;
|
|
9
9
|
font-size: inherit;
|
|
10
10
|
line-height: inherit;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.ele-dropdown-
|
|
13
|
+
.ele-dropdown-trigger > .el-tooltip__trigger {
|
|
14
14
|
outline: none;
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -14,6 +14,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
validator: import("vue").PropType<import("./types").Validator>;
|
|
15
15
|
beforeRemove: import("vue").PropType<import("./types").BeforeRemove>;
|
|
16
16
|
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
17
|
+
readonly: BooleanConstructor;
|
|
18
|
+
disabled: BooleanConstructor;
|
|
17
19
|
}, {
|
|
18
20
|
inputRef: import("vue").Ref<ElInputInstance>;
|
|
19
21
|
isEdit: import("vue").Ref<boolean>;
|
|
@@ -43,9 +45,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
45
|
validator: import("vue").PropType<import("./types").Validator>;
|
|
44
46
|
beforeRemove: import("vue").PropType<import("./types").BeforeRemove>;
|
|
45
47
|
tooltipProps: import("vue").PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
48
|
+
readonly: BooleanConstructor;
|
|
49
|
+
disabled: BooleanConstructor;
|
|
46
50
|
}>> & {
|
|
47
51
|
"onUpdate:modelValue"?: ((_value?: string[] | undefined) => any) | undefined;
|
|
48
52
|
}, {
|
|
53
|
+
disabled: boolean;
|
|
49
54
|
round: boolean;
|
|
55
|
+
readonly: boolean;
|
|
50
56
|
}, {}>;
|
|
51
57
|
export default _default;
|
package/es/ele-edit-tag/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { defineComponent, ref, onDeactivated, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, normalizeStyle, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives,
|
|
1
|
+
import { defineComponent, ref, onDeactivated, onActivated, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, renderList, createBlock, normalizeStyle, withCtx, createTextVNode, toDisplayString, createCommentVNode, withDirectives, renderSlot, createVNode, vShow, mergeProps } from "vue";
|
|
2
2
|
import { ElTag, ElInput, ElIcon } from "element-plus";
|
|
3
3
|
import EleTooltip from "../ele-tooltip/index";
|
|
4
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
5
4
|
import { PlusOutlined, LoadingOutlined } from "../icons";
|
|
6
5
|
import { editTagProps, editTagEmits } from "./props";
|
|
7
6
|
const _sfc_main = defineComponent({
|
|
@@ -17,7 +16,6 @@ const _sfc_main = defineComponent({
|
|
|
17
16
|
props: editTagProps,
|
|
18
17
|
emits: editTagEmits,
|
|
19
18
|
setup(props, { emit }) {
|
|
20
|
-
const { authenticated } = useLicense();
|
|
21
19
|
const inputRef = ref(null);
|
|
22
20
|
const isEdit = ref(false);
|
|
23
21
|
const inputValue = ref("");
|
|
@@ -51,6 +49,9 @@ const _sfc_main = defineComponent({
|
|
|
51
49
|
}, 0);
|
|
52
50
|
};
|
|
53
51
|
const onAddClick = () => {
|
|
52
|
+
if (props.disabled) {
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
54
55
|
tooltipVisible.value = false;
|
|
55
56
|
errorMessage.value = "";
|
|
56
57
|
isEdit.value = true;
|
|
@@ -59,9 +60,6 @@ const _sfc_main = defineComponent({
|
|
|
59
60
|
});
|
|
60
61
|
};
|
|
61
62
|
const onTagClose = (index2) => {
|
|
62
|
-
if (!authenticated.value) {
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
63
|
if (typeof props.beforeRemove !== "function") {
|
|
66
64
|
removeTag(index2);
|
|
67
65
|
return;
|
|
@@ -151,7 +149,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
151
149
|
class: normalizeClass([
|
|
152
150
|
"ele-edit-tag",
|
|
153
151
|
{ "is-large": _ctx.size === "large" },
|
|
154
|
-
{ "is-small": _ctx.size === "small" }
|
|
152
|
+
{ "is-small": _ctx.size === "small" },
|
|
153
|
+
{ "is-disabled": _ctx.disabled },
|
|
154
|
+
{ "is-readonly": _ctx.readonly }
|
|
155
155
|
])
|
|
156
156
|
}, [
|
|
157
157
|
_ctx.modelValue ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.modelValue, (item, index2) => {
|
|
@@ -162,7 +162,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
162
162
|
size: _ctx.size,
|
|
163
163
|
effect: _ctx.effect,
|
|
164
164
|
round: _ctx.round,
|
|
165
|
-
closable: true,
|
|
165
|
+
closable: _ctx.readonly || _ctx.disabled ? false : true,
|
|
166
166
|
disableTransitions: true,
|
|
167
167
|
style: normalizeStyle(_ctx.itemStyle),
|
|
168
168
|
onClose: ($event) => _ctx.onTagClose(index2)
|
|
@@ -171,9 +171,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171
171
|
createTextVNode(toDisplayString(item), 1)
|
|
172
172
|
]),
|
|
173
173
|
_: 2
|
|
174
|
-
}, 1032, ["type", "color", "size", "effect", "round", "style", "onClose"]);
|
|
174
|
+
}, 1032, ["type", "color", "size", "effect", "round", "closable", "style", "onClose"]);
|
|
175
175
|
}), 128)) : createCommentVNode("", true),
|
|
176
|
-
withDirectives(
|
|
176
|
+
!_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_ElTag, {
|
|
177
|
+
key: 1,
|
|
177
178
|
type: "info",
|
|
178
179
|
size: _ctx.size,
|
|
179
180
|
round: _ctx.round,
|
|
@@ -196,10 +197,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
196
197
|
])
|
|
197
198
|
]),
|
|
198
199
|
_: 3
|
|
199
|
-
}, 8, ["size", "round", "style", "onClick"]), [
|
|
200
|
+
}, 8, ["size", "round", "style", "onClick"])), [
|
|
200
201
|
[vShow, !_ctx.isEdit]
|
|
201
|
-
]),
|
|
202
|
-
withDirectives(
|
|
202
|
+
]) : createCommentVNode("", true),
|
|
203
|
+
!_ctx.readonly ? withDirectives((openBlock(), createBlock(_component_ElTag, {
|
|
204
|
+
key: 2,
|
|
203
205
|
size: _ctx.size,
|
|
204
206
|
round: _ctx.round,
|
|
205
207
|
disableTransitions: true,
|
|
@@ -232,9 +234,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
232
234
|
}, 8, ["disabled", "modelValue", "style", "onChange", "onBlur", "onFocus"])
|
|
233
235
|
]),
|
|
234
236
|
_: 1
|
|
235
|
-
}, 8, ["size", "round", "class", "style"]), [
|
|
237
|
+
}, 8, ["size", "round", "class", "style"])), [
|
|
236
238
|
[vShow, _ctx.isEdit]
|
|
237
|
-
]),
|
|
239
|
+
]) : createCommentVNode("", true),
|
|
238
240
|
createVNode(_component_EleTooltip, mergeProps({
|
|
239
241
|
offset: 7,
|
|
240
242
|
hideAfter: 0,
|
|
@@ -32,6 +32,10 @@ export declare const editTagProps: {
|
|
|
32
32
|
beforeRemove: PropType<BeforeRemove>;
|
|
33
33
|
/** 提示属性 */
|
|
34
34
|
tooltipProps: PropType<Partial<import("../ele-tooltip/props").TooltipProps>>;
|
|
35
|
+
/** 是否只读 */
|
|
36
|
+
readonly: BooleanConstructor;
|
|
37
|
+
/** 是否禁用 */
|
|
38
|
+
disabled: BooleanConstructor;
|
|
35
39
|
};
|
|
36
40
|
export type EditTagProps = ExtractPropTypes<typeof editTagProps>;
|
|
37
41
|
/**
|
package/es/ele-edit-tag/props.js
CHANGED
|
@@ -32,6 +32,19 @@
|
|
|
32
32
|
opacity: 0.6;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* 禁用 */
|
|
36
|
+
.ele-edit-tag.is-disabled .ele-edit-tag-add {
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
color: elVar('disabled', 'text-color');
|
|
39
|
+
background: elVar('disabled', 'bg-color');
|
|
40
|
+
border-color: elVar('disabled', 'border-color');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* 只读 */
|
|
44
|
+
.ele-edit-tag.is-readonly > .el-tag:last-child {
|
|
45
|
+
margin-right: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
35
48
|
/* 输入框 */
|
|
36
49
|
.ele-edit-tag-input {
|
|
37
50
|
&.el-tag {
|
|
@@ -20,7 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
strong: BooleanConstructor;
|
|
21
21
|
italic: BooleanConstructor;
|
|
22
22
|
icon: import("vue").PropType<import("../ele-text/types").TextIcon>;
|
|
23
|
-
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
|
|
23
|
+
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>; /** 文本组件 */
|
|
24
24
|
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
25
25
|
}, {
|
|
26
26
|
textRef: import("vue").Ref<EleTextInstance>;
|
|
@@ -50,14 +50,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
strong: BooleanConstructor;
|
|
51
51
|
italic: BooleanConstructor;
|
|
52
52
|
icon: import("vue").PropType<import("../ele-text/types").TextIcon>;
|
|
53
|
-
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>;
|
|
53
|
+
iconProps: import("vue").PropType<import("../ele-app/el").ElIconProps>; /** 文本组件 */
|
|
54
54
|
iconStyle: import("vue").PropType<Partial<import("vue").CSSProperties>>;
|
|
55
55
|
}>>, {
|
|
56
|
+
strong: boolean;
|
|
56
57
|
tag: string;
|
|
57
58
|
tooltip: boolean | EllipsisTooltip;
|
|
58
59
|
underline: boolean;
|
|
59
60
|
italic: boolean;
|
|
60
61
|
deleted: boolean;
|
|
61
|
-
strong: boolean;
|
|
62
62
|
}, {}>;
|
|
63
63
|
export default _default;
|
package/es/ele-ellipsis/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createBlock, mergeProps, withCtx, renderSlot, normalizeProps, createCommentVNode } from "vue";
|
|
2
2
|
import { omit, pick, contentIsEllipsis } from "../utils/core";
|
|
3
|
-
import { useLicense } from "../ele-config-provider/receiver";
|
|
4
3
|
import EleTooltip from "../ele-tooltip/index";
|
|
5
4
|
import EleText from "../ele-text/index";
|
|
6
5
|
import { textPropKeys } from "../ele-text/props";
|
|
@@ -10,7 +9,6 @@ const _sfc_main = defineComponent({
|
|
|
10
9
|
components: { EleText, EleTooltip },
|
|
11
10
|
props: ellipsisProps,
|
|
12
11
|
setup(props) {
|
|
13
|
-
const { authenticated } = useLicense();
|
|
14
12
|
const textRef = ref(null);
|
|
15
13
|
const virtualRef = ref();
|
|
16
14
|
const text = ref("");
|
|
@@ -29,7 +27,7 @@ const _sfc_main = defineComponent({
|
|
|
29
27
|
return omit(opt, ["original"]);
|
|
30
28
|
});
|
|
31
29
|
const multiLine = computed(() => {
|
|
32
|
-
return
|
|
30
|
+
return !!(props.maxLine && props.maxLine > 1);
|
|
33
31
|
});
|
|
34
32
|
const textProps = computed(() => {
|
|
35
33
|
return Object.assign({ title: title.value }, pick(props, textPropKeys));
|
|
@@ -50,7 +48,7 @@ const _sfc_main = defineComponent({
|
|
|
50
48
|
return style;
|
|
51
49
|
});
|
|
52
50
|
const onHover = (e) => {
|
|
53
|
-
if (!
|
|
51
|
+
if (!props.tooltip) {
|
|
54
52
|
virtualRef.value = void 0;
|
|
55
53
|
return;
|
|
56
54
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString, createCommentVNode, createBlock, mergeProps, createSlots, withCtx
|
|
1
|
+
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createBlock, mergeProps, createSlots, withCtx } from "vue";
|
|
2
2
|
import EleDropdown from "../../ele-dropdown/index";
|
|
3
3
|
const _sfc_main = defineComponent({
|
|
4
4
|
name: "FileGridItem",
|
|
@@ -132,15 +132,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
132
|
onContextmenu: _cache[0] || (_cache[0] = (...args) => _ctx.onContextmenu && _ctx.onContextmenu(...args))
|
|
133
133
|
}, [
|
|
134
134
|
createElementVNode("div", _hoisted_1, [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
135
|
+
renderSlot(_ctx.$slots, "icon", {
|
|
136
|
+
icon: _ctx.icon,
|
|
137
|
+
item: _ctx.item
|
|
138
|
+
}, () => [
|
|
139
|
+
createElementVNode("img", {
|
|
140
|
+
src: _ctx.icon,
|
|
141
|
+
class: normalizeClass({ "ele-file-list-item-image": !!_ctx.item.thumbnail })
|
|
142
|
+
}, null, 10, _hoisted_2)
|
|
143
|
+
])
|
|
139
144
|
]),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
145
|
+
renderSlot(_ctx.$slots, "title", { item: _ctx.item }, () => [
|
|
146
|
+
createElementVNode("div", {
|
|
147
|
+
title: _ctx.item.name,
|
|
148
|
+
class: "ele-file-list-item-title"
|
|
149
|
+
}, toDisplayString(_ctx.item.name), 9, _hoisted_3)
|
|
150
|
+
])
|
|
144
151
|
], 32),
|
|
145
152
|
_ctx.selectable ? (openBlock(), createElementBlock("div", {
|
|
146
153
|
key: 0,
|