3h1-ui 2.13.3 → 2.13.5
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/index.js +131 -76
- package/es/ui/src/Basic/src/BasicArrow.vue.d.ts +96 -0
- package/es/ui/src/Basic/src/BasicHelp.vue.d.ts +2 -2
- package/es/ui/src/Basic/src/BasicTitle.vue.d.ts +2 -2
- package/es/ui/src/Button/src/props.d.ts +1 -1
- package/es/ui/src/ClickOutSide/src/ClickOutSide.vue.d.ts +8 -0
- package/es/ui/src/Container/src/LazyContainer.vue.d.ts +121 -0
- package/es/ui/src/Container/src/ScrollContainer.vue.d.ts +9 -0
- package/es/ui/src/CountTo/src/CountTo.vue.d.ts +1 -1
- package/es/ui/src/Cropper/src/Cropper.vue.d.ts +2 -2
- package/es/ui/src/Cropper/src/CropperAvatar.vue.d.ts +2 -2
- package/es/ui/src/Description/src/Description.d.ts +9 -0
- package/es/ui/src/Description/src/props.d.ts +5 -0
- package/es/ui/src/Description/src/typing.d.ts +1 -0
- package/es/ui/src/Drawer/src/BasicDrawer.vue.d.ts +2 -2
- package/es/ui/src/Drawer/src/components/DrawerFooter.vue.d.ts +2 -2
- package/es/ui/src/Dropdown/src/Dropdown.vue.d.ts +92 -0
- package/es/ui/src/Icon/src/Icon.vue.d.ts +33 -0
- package/es/ui/src/Icon/src/SvgIcon.vue.d.ts +1 -1
- package/es/ui/src/Loading/src/Loading.vue.d.ts +1 -1
- package/es/ui/src/Modal/index.d.ts +14 -14
- package/es/ui/src/Modal/src/BasicModal.vue.d.ts +5 -5
- package/es/ui/src/Modal/src/components/BasicHelp.vue.d.ts +2 -2
- package/es/ui/src/Modal/src/components/BasicTitle.vue.d.ts +2 -2
- package/es/ui/src/Modal/src/components/Modal.d.ts +4 -4
- package/es/ui/src/Modal/src/components/ModalClose.vue.d.ts +1 -1
- package/es/ui/src/Modal/src/components/ModalFooter.vue.d.ts +5 -5
- package/es/ui/src/Modal/src/components/ModalWrapper.vue.d.ts +95 -0
- package/es/ui/src/Modal/src/components/ScrollContainer.vue.d.ts +9 -0
- package/es/ui/src/Table/src/components/HeaderCell.vue.d.ts +2 -2
- package/es/ui/src/Table/src/components/TableImg.vue.d.ts +1 -1
- package/es/ui/src/Table/src/components/editable/EditableCell.vue.d.ts +7 -0
- package/es/ui/src/Transition/index.d.ts +11 -11
- package/es/ui/src/Transition/src/CreateTransition.d.ts +1 -1
- package/es/ui/src/Tree/src/BasicTree.vue.d.ts +2 -2
- package/lib/index.js +131 -76
- package/package.json +13 -13
- package/es/ui/src/Table/src/BasicTable.vue.d.ts +0 -3279
package/es/index.js
CHANGED
|
@@ -12368,6 +12368,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12368
12368
|
clickOutside: ClickOutside
|
|
12369
12369
|
},
|
|
12370
12370
|
props: {
|
|
12371
|
+
zzz: {
|
|
12372
|
+
type: Object
|
|
12373
|
+
},
|
|
12371
12374
|
value: {
|
|
12372
12375
|
type: [String, Number, Boolean, Object],
|
|
12373
12376
|
default: ""
|
|
@@ -12722,31 +12725,34 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12722
12725
|
isArray$3(props2.record[cbs]) ? (_a2 = props2.record[cbs]) == null ? void 0 : _a2.push(handle) : props2.record[cbs] = [handle];
|
|
12723
12726
|
}
|
|
12724
12727
|
}
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
if (
|
|
12731
|
-
props2.record.editValueRefs
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
props2.record.onCancelEdit = () => {
|
|
12735
|
-
var _a2, _b;
|
|
12736
|
-
isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
|
|
12737
|
-
};
|
|
12738
|
-
props2.record.onSubmitEdit = async () => {
|
|
12739
|
-
var _a2, _b, _c, _d, _e;
|
|
12740
|
-
if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
|
|
12741
|
-
if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
|
|
12742
|
-
return;
|
|
12743
|
-
const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
|
|
12744
|
-
submitFns.forEach((fn) => fn(false, false));
|
|
12745
|
-
(_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
|
|
12746
|
-
return true;
|
|
12728
|
+
const editHandler = () => {
|
|
12729
|
+
if (props2.record) {
|
|
12730
|
+
initCbs("submitCbs", handleSubmit);
|
|
12731
|
+
initCbs("validCbs", handleSubmiRule);
|
|
12732
|
+
initCbs("cancelCbs", handleCancel);
|
|
12733
|
+
if (props2.column.dataIndex) {
|
|
12734
|
+
if (!props2.record.editValueRefs)
|
|
12735
|
+
props2.record.editValueRefs = {};
|
|
12736
|
+
props2.record.editValueRefs[props2.column.dataIndex] = currentValueRef;
|
|
12747
12737
|
}
|
|
12748
|
-
|
|
12749
|
-
|
|
12738
|
+
props2.record.onCancelEdit = () => {
|
|
12739
|
+
var _a2, _b;
|
|
12740
|
+
isArray$3((_a2 = props2.record) == null ? void 0 : _a2.cancelCbs) && ((_b = props2.record) == null ? void 0 : _b.cancelCbs.forEach((fn) => fn()));
|
|
12741
|
+
};
|
|
12742
|
+
props2.record.onSubmitEdit = async () => {
|
|
12743
|
+
var _a2, _b, _c, _d, _e;
|
|
12744
|
+
if (isArray$3((_a2 = props2.record) == null ? void 0 : _a2.submitCbs)) {
|
|
12745
|
+
if (!((_c = (_b = props2.record) == null ? void 0 : _b.onValid) == null ? void 0 : _c.call(_b)))
|
|
12746
|
+
return;
|
|
12747
|
+
const submitFns = ((_d = props2.record) == null ? void 0 : _d.submitCbs) || [];
|
|
12748
|
+
submitFns.forEach((fn) => fn(false, false));
|
|
12749
|
+
(_e = table2.emit) == null ? void 0 : _e.call(table2, "edit-row-end");
|
|
12750
|
+
return true;
|
|
12751
|
+
}
|
|
12752
|
+
};
|
|
12753
|
+
}
|
|
12754
|
+
};
|
|
12755
|
+
editHandler();
|
|
12750
12756
|
return {
|
|
12751
12757
|
isEdit,
|
|
12752
12758
|
prefixCls: prefixCls2,
|
|
@@ -12769,7 +12775,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12769
12775
|
getValues,
|
|
12770
12776
|
handleEnter,
|
|
12771
12777
|
handleSubmitClick,
|
|
12772
|
-
spinning
|
|
12778
|
+
spinning,
|
|
12779
|
+
editHandler
|
|
12773
12780
|
};
|
|
12774
12781
|
},
|
|
12775
12782
|
render() {
|
|
@@ -12822,6 +12829,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
12822
12829
|
const EditableCell_vue_vue_type_style_index_0_lang = "";
|
|
12823
12830
|
function renderEditCell(column) {
|
|
12824
12831
|
return ({ text: value, record, index: index2 }) => {
|
|
12832
|
+
const editableCellRef = ref();
|
|
12825
12833
|
record.onValid = async () => {
|
|
12826
12834
|
if (isArray$3(record == null ? void 0 : record.validCbs)) {
|
|
12827
12835
|
const validFns = ((record == null ? void 0 : record.validCbs) || []).map((fn) => fn());
|
|
@@ -12832,14 +12840,15 @@ function renderEditCell(column) {
|
|
|
12832
12840
|
}
|
|
12833
12841
|
};
|
|
12834
12842
|
record.onEdit = async (edit, submit = false) => {
|
|
12835
|
-
var _a2, _b;
|
|
12843
|
+
var _a2, _b, _c;
|
|
12844
|
+
(_a2 = editableCellRef.value) == null ? void 0 : _a2.editHandler();
|
|
12836
12845
|
if (!submit) {
|
|
12837
12846
|
record.editable = edit;
|
|
12838
12847
|
}
|
|
12839
12848
|
if (!edit && submit) {
|
|
12840
12849
|
if (!await record.onValid())
|
|
12841
12850
|
return false;
|
|
12842
|
-
const res = await ((
|
|
12851
|
+
const res = await ((_b = record.onSubmitEdit) == null ? void 0 : _b.call(record));
|
|
12843
12852
|
if (res) {
|
|
12844
12853
|
record.editable = false;
|
|
12845
12854
|
return true;
|
|
@@ -12847,11 +12856,12 @@ function renderEditCell(column) {
|
|
|
12847
12856
|
return false;
|
|
12848
12857
|
}
|
|
12849
12858
|
if (!edit && !submit) {
|
|
12850
|
-
(
|
|
12859
|
+
(_c = record.onCancelEdit) == null ? void 0 : _c.call(record);
|
|
12851
12860
|
}
|
|
12852
12861
|
return true;
|
|
12853
12862
|
};
|
|
12854
12863
|
return h(_sfc_main$B, {
|
|
12864
|
+
ref: editableCellRef,
|
|
12855
12865
|
value,
|
|
12856
12866
|
record,
|
|
12857
12867
|
column,
|
|
@@ -14529,18 +14539,18 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14529
14539
|
};
|
|
14530
14540
|
const dicColumn = computed(() => {
|
|
14531
14541
|
const temp = [];
|
|
14532
|
-
props2.schemas.forEach((
|
|
14533
|
-
if (!
|
|
14542
|
+
props2.schemas.forEach((schema) => {
|
|
14543
|
+
if (!schema.advancedShow)
|
|
14534
14544
|
return;
|
|
14535
14545
|
const flag = schemasCurrent.find((item) => {
|
|
14536
|
-
return item.field ===
|
|
14546
|
+
return item.field === schema.field;
|
|
14537
14547
|
});
|
|
14538
14548
|
temp.push({
|
|
14539
|
-
label:
|
|
14540
|
-
value:
|
|
14549
|
+
label: schema.label,
|
|
14550
|
+
value: schema.field,
|
|
14541
14551
|
disabled: !!flag,
|
|
14542
|
-
type:
|
|
14543
|
-
component:
|
|
14552
|
+
type: schema.type,
|
|
14553
|
+
component: schema.component
|
|
14544
14554
|
});
|
|
14545
14555
|
});
|
|
14546
14556
|
return temp;
|
|
@@ -14548,7 +14558,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14548
14558
|
if (props2.schemas.length !== 0) {
|
|
14549
14559
|
const firstSchema = dicColumn.value[0];
|
|
14550
14560
|
const op = isStringSearch(firstSchema) ? "ct" : "eq";
|
|
14551
|
-
schemasCurrent.push({ field: firstSchema.value, op });
|
|
14561
|
+
schemasCurrent.push({ field: firstSchema == null ? void 0 : firstSchema.value, op });
|
|
14552
14562
|
}
|
|
14553
14563
|
const handleAdd = () => {
|
|
14554
14564
|
const item = dicColumn.value.find((item2) => {
|
|
@@ -14574,7 +14584,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14574
14584
|
});
|
|
14575
14585
|
schema.op = isStringSearch(column) ? "ct" : "eq";
|
|
14576
14586
|
};
|
|
14577
|
-
const
|
|
14587
|
+
const handleSetValNull = (schema) => {
|
|
14578
14588
|
if (["nl", "nn"].includes(schema.op)) {
|
|
14579
14589
|
schema[schema.field] = "";
|
|
14580
14590
|
}
|
|
@@ -14635,8 +14645,9 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14635
14645
|
return form;
|
|
14636
14646
|
};
|
|
14637
14647
|
const resetFields = () => {
|
|
14648
|
+
var _a2;
|
|
14638
14649
|
schemasCurrent.splice(0, schemasCurrent.length);
|
|
14639
|
-
schemasCurrent.push({ field: dicColumn.value[0].value });
|
|
14650
|
+
schemasCurrent.push({ field: (_a2 = dicColumn.value[0]) == null ? void 0 : _a2.value });
|
|
14640
14651
|
formRef.value.resetFields();
|
|
14641
14652
|
};
|
|
14642
14653
|
expose({
|
|
@@ -14697,7 +14708,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14697
14708
|
style: { "width": "120px" },
|
|
14698
14709
|
options: getSearchType(schema == null ? void 0 : schema.field),
|
|
14699
14710
|
defaultValue: ((_a2 = getSearchType(schema == null ? void 0 : schema.field)[0]) == null ? void 0 : _a2.value) || "",
|
|
14700
|
-
onChange: ($event) =>
|
|
14711
|
+
onChange: ($event) => handleSetValNull(schema)
|
|
14701
14712
|
}, null, 8, ["value", "onUpdate:value", "options", "defaultValue", "onChange"])
|
|
14702
14713
|
];
|
|
14703
14714
|
}),
|
|
@@ -14800,7 +14811,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
14800
14811
|
]),
|
|
14801
14812
|
_: 2
|
|
14802
14813
|
}, 1024)) : createCommentVNode("", true),
|
|
14803
|
-
schemasCurrent.length !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
14814
|
+
(schemasCurrent == null ? void 0 : schemasCurrent.length) !== 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
14804
14815
|
createElementVNode("div", {
|
|
14805
14816
|
style: { "position": "absolute", "width": "14px", "height": "14px", "left": "0", "right": "0", "top": "0", "bottom": "0" },
|
|
14806
14817
|
class: "shy-basic-minus-icon",
|
|
@@ -16644,101 +16655,132 @@ function useTable(tableProps) {
|
|
|
16644
16655
|
}
|
|
16645
16656
|
const methods2 = {
|
|
16646
16657
|
reload: async (opt) => {
|
|
16647
|
-
|
|
16658
|
+
var _a2;
|
|
16659
|
+
return await ((_a2 = getTableInstance()) == null ? void 0 : _a2.reload(opt));
|
|
16648
16660
|
},
|
|
16649
16661
|
setProps: (props2) => {
|
|
16650
|
-
|
|
16662
|
+
var _a2;
|
|
16663
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.setProps(props2);
|
|
16651
16664
|
},
|
|
16652
16665
|
redoHeight: () => {
|
|
16653
|
-
|
|
16666
|
+
var _a2;
|
|
16667
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.redoHeight();
|
|
16654
16668
|
},
|
|
16655
16669
|
setSelectedRows: (rows) => {
|
|
16656
|
-
|
|
16670
|
+
var _a2;
|
|
16671
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.setSelectedRows(rows));
|
|
16657
16672
|
},
|
|
16658
16673
|
setLoading: (loading) => {
|
|
16659
|
-
|
|
16674
|
+
var _a2;
|
|
16675
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.setLoading(loading);
|
|
16660
16676
|
},
|
|
16661
16677
|
getDataSource: () => {
|
|
16662
|
-
|
|
16678
|
+
var _a2;
|
|
16679
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.getDataSource();
|
|
16663
16680
|
},
|
|
16664
16681
|
getRawDataSource: () => {
|
|
16665
|
-
|
|
16682
|
+
var _a2;
|
|
16683
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.getRawDataSource();
|
|
16666
16684
|
},
|
|
16667
16685
|
getColumns: ({ ignoreIndex = false } = {}) => {
|
|
16668
|
-
|
|
16686
|
+
var _a2;
|
|
16687
|
+
const columns = ((_a2 = getTableInstance()) == null ? void 0 : _a2.getColumns({ ignoreIndex })) || [];
|
|
16669
16688
|
return toRaw(columns);
|
|
16670
16689
|
},
|
|
16671
16690
|
setColumns: (columns) => {
|
|
16672
|
-
|
|
16691
|
+
var _a2;
|
|
16692
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.setColumns(columns);
|
|
16673
16693
|
},
|
|
16674
16694
|
setTableData: (values) => {
|
|
16675
|
-
|
|
16695
|
+
var _a2;
|
|
16696
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.setTableData(values);
|
|
16676
16697
|
},
|
|
16677
16698
|
setPagination: (info) => {
|
|
16678
|
-
|
|
16699
|
+
var _a2;
|
|
16700
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.setPagination(info);
|
|
16679
16701
|
},
|
|
16680
16702
|
deleteSelectRowByKey: (key2) => {
|
|
16681
|
-
|
|
16703
|
+
var _a2;
|
|
16704
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.deleteSelectRowByKey(key2);
|
|
16682
16705
|
},
|
|
16683
16706
|
getSelectRowKeys: () => {
|
|
16684
|
-
|
|
16707
|
+
var _a2;
|
|
16708
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSelectRowKeys());
|
|
16685
16709
|
},
|
|
16686
16710
|
getSelectRows: () => {
|
|
16687
|
-
|
|
16711
|
+
var _a2;
|
|
16712
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSelectRows());
|
|
16688
16713
|
},
|
|
16689
16714
|
clearSelectedRowKeys: () => {
|
|
16690
|
-
|
|
16715
|
+
var _a2;
|
|
16716
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.clearSelectedRowKeys();
|
|
16691
16717
|
},
|
|
16692
16718
|
setSelectedRowKeys: (keys2) => {
|
|
16693
|
-
|
|
16719
|
+
var _a2;
|
|
16720
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.setSelectedRowKeys(keys2);
|
|
16694
16721
|
},
|
|
16695
16722
|
getPaginationRef: () => {
|
|
16696
|
-
|
|
16723
|
+
var _a2;
|
|
16724
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.getPaginationRef();
|
|
16697
16725
|
},
|
|
16698
16726
|
getSize: () => {
|
|
16699
|
-
|
|
16727
|
+
var _a2;
|
|
16728
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getSize());
|
|
16700
16729
|
},
|
|
16701
16730
|
updateTableData: (index2, key2, value) => {
|
|
16702
|
-
|
|
16731
|
+
var _a2;
|
|
16732
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.updateTableData(index2, key2, value);
|
|
16703
16733
|
},
|
|
16704
16734
|
deleteTableDataRecord: (rowKey) => {
|
|
16705
|
-
|
|
16735
|
+
var _a2;
|
|
16736
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.deleteTableDataRecord(rowKey);
|
|
16706
16737
|
},
|
|
16707
16738
|
insertTableDataRecord: (record, index2) => {
|
|
16708
|
-
|
|
16739
|
+
var _a2;
|
|
16740
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.insertTableDataRecord(record, index2);
|
|
16709
16741
|
},
|
|
16710
16742
|
updateTableDataRecord: (rowKey, record) => {
|
|
16711
|
-
|
|
16743
|
+
var _a2;
|
|
16744
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.updateTableDataRecord(rowKey, record);
|
|
16712
16745
|
},
|
|
16713
16746
|
findTableDataRecord: (rowKey) => {
|
|
16714
|
-
|
|
16747
|
+
var _a2;
|
|
16748
|
+
return (_a2 = getTableInstance()) == null ? void 0 : _a2.findTableDataRecord(rowKey);
|
|
16715
16749
|
},
|
|
16716
16750
|
getRowSelection: () => {
|
|
16717
|
-
|
|
16751
|
+
var _a2;
|
|
16752
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getRowSelection());
|
|
16718
16753
|
},
|
|
16719
16754
|
getCacheColumns: () => {
|
|
16720
|
-
|
|
16755
|
+
var _a2;
|
|
16756
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getCacheColumns());
|
|
16721
16757
|
},
|
|
16722
16758
|
getForm: () => {
|
|
16723
16759
|
return unref(formRef);
|
|
16724
16760
|
},
|
|
16725
16761
|
setShowPagination: async (show) => {
|
|
16726
|
-
|
|
16762
|
+
var _a2;
|
|
16763
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.setShowPagination(show);
|
|
16727
16764
|
},
|
|
16728
16765
|
getShowPagination: () => {
|
|
16729
|
-
|
|
16766
|
+
var _a2;
|
|
16767
|
+
return toRaw((_a2 = getTableInstance()) == null ? void 0 : _a2.getShowPagination());
|
|
16730
16768
|
},
|
|
16731
16769
|
expandAll: () => {
|
|
16732
|
-
|
|
16770
|
+
var _a2;
|
|
16771
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.expandAll();
|
|
16733
16772
|
},
|
|
16734
16773
|
expandRows: (keys2) => {
|
|
16735
|
-
|
|
16774
|
+
var _a2;
|
|
16775
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.expandRows(keys2);
|
|
16736
16776
|
},
|
|
16737
16777
|
collapseAll: () => {
|
|
16738
|
-
|
|
16778
|
+
var _a2;
|
|
16779
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.collapseAll();
|
|
16739
16780
|
},
|
|
16740
16781
|
scrollTo: (pos) => {
|
|
16741
|
-
|
|
16782
|
+
var _a2;
|
|
16783
|
+
(_a2 = getTableInstance()) == null ? void 0 : _a2.scrollTo(pos);
|
|
16742
16784
|
}
|
|
16743
16785
|
};
|
|
16744
16786
|
return [register, methods2];
|
|
@@ -17002,6 +17044,10 @@ const basicProps$2 = {
|
|
|
17002
17044
|
type: Array,
|
|
17003
17045
|
default: () => [{ label: "a", field: "a" }]
|
|
17004
17046
|
},
|
|
17047
|
+
labelAlign: {
|
|
17048
|
+
type: String,
|
|
17049
|
+
default: () => "right"
|
|
17050
|
+
},
|
|
17005
17051
|
labelWidth: {
|
|
17006
17052
|
type: Number,
|
|
17007
17053
|
default: () => 80
|
|
@@ -17081,15 +17127,21 @@ const Description = /* @__PURE__ */ defineComponent({
|
|
|
17081
17127
|
}
|
|
17082
17128
|
}, [createVNode("span", {
|
|
17083
17129
|
"style": {
|
|
17084
|
-
width: `${getProps.value.labelWidth}px
|
|
17130
|
+
width: `${getProps.value.labelWidth}px`,
|
|
17131
|
+
textAlign: getProps.value.labelAlign
|
|
17085
17132
|
},
|
|
17086
17133
|
"class": `${prefixCls2}-label`
|
|
17087
17134
|
}, [slots[`${item.field}Label`] ? slots[`${item.field}Label`]() : item.label, ((_b = getProps.value) == null ? void 0 : _b.isShowColon) ? ":" : ""]), createVNode("span", {
|
|
17088
17135
|
"class": `${prefixCls2}-value`
|
|
17089
17136
|
}, [slots[`${item.field}Value`] ? slots[`${item.field}Value`]() : getProps.value.data[item.field], (item == null ? void 0 : item.isCopy) ? createVNode("span", {
|
|
17090
|
-
"style": "cursor:pointer",
|
|
17137
|
+
"style": "cursor:pointer;margin-left:5px",
|
|
17091
17138
|
"onClick": () => handleClick(getProps.value.data[item.field])
|
|
17092
|
-
}, [createVNode(CopyOutlined$1,
|
|
17139
|
+
}, [createVNode(CopyOutlined$1, {
|
|
17140
|
+
"style": {
|
|
17141
|
+
color: "#458ef9",
|
|
17142
|
+
marginLeft: "5px"
|
|
17143
|
+
}
|
|
17144
|
+
}, null)]) : null])]);
|
|
17093
17145
|
}
|
|
17094
17146
|
});
|
|
17095
17147
|
});
|
|
@@ -21368,8 +21420,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
21368
21420
|
},
|
|
21369
21421
|
{
|
|
21370
21422
|
label: "删除",
|
|
21371
|
-
|
|
21372
|
-
|
|
21423
|
+
popConfirm: {
|
|
21424
|
+
title: "是否确认删除",
|
|
21425
|
+
confirm: () => {
|
|
21426
|
+
emit("row-remove", true);
|
|
21427
|
+
}
|
|
21373
21428
|
},
|
|
21374
21429
|
ifShow: props2.row._isEdit === false
|
|
21375
21430
|
},
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
/**
|
|
3
|
+
* Arrow expand state
|
|
4
|
+
*/
|
|
5
|
+
expand: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Arrow up by default
|
|
10
|
+
*/
|
|
11
|
+
up: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Arrow down by default
|
|
16
|
+
*/
|
|
17
|
+
down: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Cancel padding/margin for inline
|
|
22
|
+
*/
|
|
23
|
+
inset: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
props: any;
|
|
28
|
+
prefixCls: string;
|
|
29
|
+
getClass: import("vue").ComputedRef<(string | {
|
|
30
|
+
[x: string]: boolean;
|
|
31
|
+
up: boolean;
|
|
32
|
+
inset: boolean;
|
|
33
|
+
down: boolean;
|
|
34
|
+
})[]>;
|
|
35
|
+
readonly Icon: import("vue").DefineComponent<{
|
|
36
|
+
icon: any;
|
|
37
|
+
color: any;
|
|
38
|
+
size: {
|
|
39
|
+
type: import("vue").PropType<string | number>;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
spin: any;
|
|
43
|
+
prefix: any;
|
|
44
|
+
}, {
|
|
45
|
+
elRef: import("vue").Ref<HTMLDivElement>;
|
|
46
|
+
getWrapStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
47
|
+
isSvgIcon: import("vue").ComputedRef<any>;
|
|
48
|
+
getSvgIcon: import("vue").ComputedRef<any>;
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
icon: any;
|
|
51
|
+
color: any;
|
|
52
|
+
size: {
|
|
53
|
+
type: import("vue").PropType<string | number>;
|
|
54
|
+
default: number;
|
|
55
|
+
};
|
|
56
|
+
spin: any;
|
|
57
|
+
prefix: any;
|
|
58
|
+
}>>, {
|
|
59
|
+
icon: any;
|
|
60
|
+
size: string | number;
|
|
61
|
+
color: any;
|
|
62
|
+
prefix: any;
|
|
63
|
+
spin: any;
|
|
64
|
+
}>;
|
|
65
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
/**
|
|
67
|
+
* Arrow expand state
|
|
68
|
+
*/
|
|
69
|
+
expand: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Arrow up by default
|
|
74
|
+
*/
|
|
75
|
+
up: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Arrow down by default
|
|
80
|
+
*/
|
|
81
|
+
down: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Cancel padding/margin for inline
|
|
86
|
+
*/
|
|
87
|
+
inset: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
};
|
|
90
|
+
}>>, {
|
|
91
|
+
expand: boolean;
|
|
92
|
+
up: boolean;
|
|
93
|
+
down: boolean;
|
|
94
|
+
inset: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
export default _sfc_main;
|
|
@@ -90,10 +90,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
90
90
|
type: PropType<string | string[]>;
|
|
91
91
|
};
|
|
92
92
|
}>>, {
|
|
93
|
+
placement: string;
|
|
93
94
|
color: string;
|
|
94
|
-
fontSize: string;
|
|
95
95
|
maxWidth: string;
|
|
96
|
-
placement: string;
|
|
97
96
|
showIndex: boolean;
|
|
97
|
+
fontSize: string;
|
|
98
98
|
}>;
|
|
99
99
|
export default _sfc_main;
|
|
@@ -80,11 +80,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
80
80
|
type: PropType<string | string[]>;
|
|
81
81
|
};
|
|
82
82
|
}>>, {
|
|
83
|
+
placement: string;
|
|
83
84
|
color: string;
|
|
84
|
-
fontSize: string;
|
|
85
85
|
maxWidth: string;
|
|
86
|
-
placement: string;
|
|
87
86
|
showIndex: boolean;
|
|
87
|
+
fontSize: string;
|
|
88
88
|
}>;
|
|
89
89
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
90
|
/**
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
emit: (event: "mounted" | "clickOutside", ...args: any[]) => void;
|
|
3
|
+
wrap: import("vue").Ref<HTMLDivElement>;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("mounted" | "clickOutside")[], "mounted" | "clickOutside", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
+
onMounted?: (...args: any[]) => any;
|
|
6
|
+
onClickOutside?: (...args: any[]) => any;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
/**
|
|
4
|
+
* Waiting time, if the time is specified, whether visible or not, it will be automatically loaded after the specified time
|
|
5
|
+
*/
|
|
6
|
+
timeout: {
|
|
7
|
+
type: NumberConstructor;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The viewport where the component is located.
|
|
11
|
+
* If the component is scrolling in the page container, the viewport is the container
|
|
12
|
+
*/
|
|
13
|
+
viewport: {
|
|
14
|
+
type: PropType<HTMLElement>;
|
|
15
|
+
default: () => any;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Preload threshold, css unit
|
|
19
|
+
*/
|
|
20
|
+
threshold: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The scroll direction of the viewport, vertical represents the vertical direction, horizontal represents the horizontal direction
|
|
26
|
+
*/
|
|
27
|
+
direction: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
validator: (v: any) => boolean;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The label name of the outer container that wraps the component
|
|
34
|
+
*/
|
|
35
|
+
tag: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
maxWaitingTime: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* transition name
|
|
45
|
+
*/
|
|
46
|
+
transitionName: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
}, {
|
|
51
|
+
isInit: import("vue").Ref<boolean>;
|
|
52
|
+
loading: import("vue").Ref<boolean>;
|
|
53
|
+
intersectionObserverInstance: import("vue").Ref<{
|
|
54
|
+
readonly root: Document | Element;
|
|
55
|
+
readonly rootMargin: string;
|
|
56
|
+
readonly thresholds: readonly number[];
|
|
57
|
+
disconnect: () => void;
|
|
58
|
+
observe: (target: Element) => void;
|
|
59
|
+
takeRecords: () => IntersectionObserverEntry[];
|
|
60
|
+
unobserve: (target: Element) => void;
|
|
61
|
+
}>;
|
|
62
|
+
elRef: import("vue").Ref<any>;
|
|
63
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "init"[], "init", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
64
|
+
/**
|
|
65
|
+
* Waiting time, if the time is specified, whether visible or not, it will be automatically loaded after the specified time
|
|
66
|
+
*/
|
|
67
|
+
timeout: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* The viewport where the component is located.
|
|
72
|
+
* If the component is scrolling in the page container, the viewport is the container
|
|
73
|
+
*/
|
|
74
|
+
viewport: {
|
|
75
|
+
type: PropType<HTMLElement>;
|
|
76
|
+
default: () => any;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Preload threshold, css unit
|
|
80
|
+
*/
|
|
81
|
+
threshold: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* The scroll direction of the viewport, vertical represents the vertical direction, horizontal represents the horizontal direction
|
|
87
|
+
*/
|
|
88
|
+
direction: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
default: string;
|
|
91
|
+
validator: (v: any) => boolean;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* The label name of the outer container that wraps the component
|
|
95
|
+
*/
|
|
96
|
+
tag: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
maxWaitingTime: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* transition name
|
|
106
|
+
*/
|
|
107
|
+
transitionName: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
}>> & {
|
|
112
|
+
onInit?: (...args: any[]) => any;
|
|
113
|
+
}, {
|
|
114
|
+
threshold: string;
|
|
115
|
+
transitionName: string;
|
|
116
|
+
direction: string;
|
|
117
|
+
viewport: HTMLElement;
|
|
118
|
+
tag: string;
|
|
119
|
+
maxWaitingTime: number;
|
|
120
|
+
}>;
|
|
121
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
scrollbarRef: import("vue").Ref<{
|
|
3
|
+
wrap: HTMLDivElement;
|
|
4
|
+
}>;
|
|
5
|
+
scrollTo: (to: number, duration?: number) => void;
|
|
6
|
+
scrollBottom: () => void;
|
|
7
|
+
getScrollWrap: () => HTMLDivElement;
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
9
|
+
export default _sfc_main;
|