ll-plus 2.0.5 → 2.0.7
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/components/index.mjs +4 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/table/index.d.ts +48 -57
- package/es/components/table/index.mjs +5 -1
- package/es/components/table/index.mjs.map +1 -1
- package/es/components/table/src/components/header-search.vue.d.ts +5 -5
- package/es/components/table/src/components/header-search.vue2.mjs +4 -3
- package/es/components/table/src/components/header-search.vue2.mjs.map +1 -1
- package/es/components/table/src/components/main-table.vue.d.ts +7 -16
- package/es/components/table/src/components/main-table.vue2.mjs +2 -1
- package/es/components/table/src/components/main-table.vue2.mjs.map +1 -1
- package/es/components/table/src/components/pagination.vue2.mjs +2 -1
- package/es/components/table/src/components/pagination.vue2.mjs.map +1 -1
- package/es/components/table/src/config/header-search.d.ts +26 -0
- package/es/components/table/src/config/header-search.mjs +33 -0
- package/es/components/table/src/config/header-search.mjs.map +1 -0
- package/es/components/table/src/config/index.d.ts +4 -0
- package/es/components/table/src/config/index.mjs +7 -0
- package/es/components/table/src/config/index.mjs.map +1 -0
- package/es/components/table/src/config/main-table.d.ts +86 -0
- package/es/components/table/src/config/main-table.mjs +113 -0
- package/es/components/table/src/config/main-table.mjs.map +1 -0
- package/es/components/table/src/config/pagination.d.ts +30 -0
- package/es/components/table/src/config/pagination.mjs +34 -0
- package/es/components/table/src/config/pagination.mjs.map +1 -0
- package/es/components/table/src/config/table.d.ts +61 -0
- package/es/components/table/src/config/table.mjs +38 -0
- package/es/components/table/src/config/table.mjs.map +1 -0
- package/es/components/table/src/table.vue.d.ts +44 -53
- package/es/components/table/src/table.vue2.mjs +4 -2
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/tree-search/src/components/tree-list.vue2.mjs +1 -2
- package/es/components/tree-search/src/components/tree-list.vue2.mjs.map +1 -1
- package/es/index.mjs +4 -1
- package/es/index.mjs.map +1 -1
- package/index.full.js +17 -14
- package/index.full.min.js +4 -4
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +11 -11
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +17 -14
- package/lib/components/index.js +14 -11
- package/lib/components/index.js.map +1 -1
- package/lib/components/table/index.d.ts +48 -57
- package/lib/components/table/index.js +12 -8
- package/lib/components/table/index.js.map +1 -1
- package/lib/components/table/src/components/header-search.vue.d.ts +5 -5
- package/lib/components/table/src/components/header-search.vue2.js +6 -5
- package/lib/components/table/src/components/header-search.vue2.js.map +1 -1
- package/lib/components/table/src/components/main-table.vue.d.ts +7 -16
- package/lib/components/table/src/components/main-table.vue2.js +4 -3
- package/lib/components/table/src/components/main-table.vue2.js.map +1 -1
- package/lib/components/table/src/components/pagination.vue2.js +3 -2
- package/lib/components/table/src/components/pagination.vue2.js.map +1 -1
- package/lib/components/table/src/config/header-search.d.ts +26 -0
- package/lib/components/table/src/config/header-search.js +38 -0
- package/lib/components/table/src/config/header-search.js.map +1 -0
- package/lib/components/table/src/config/index.d.ts +4 -0
- package/lib/components/table/src/config/index.js +18 -0
- package/lib/components/table/src/config/index.js.map +1 -0
- package/lib/components/table/src/config/main-table.d.ts +86 -0
- package/lib/components/table/src/config/main-table.js +116 -0
- package/lib/components/table/src/config/main-table.js.map +1 -0
- package/lib/components/table/src/config/pagination.d.ts +30 -0
- package/lib/components/table/src/config/pagination.js +36 -0
- package/lib/components/table/src/config/pagination.js.map +1 -0
- package/lib/components/table/src/config/table.d.ts +61 -0
- package/lib/components/table/src/config/table.js +40 -0
- package/lib/components/table/src/config/table.js.map +1 -0
- package/lib/components/table/src/table.vue.d.ts +44 -53
- package/lib/components/table/src/table.vue2.js +7 -5
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/tree-search/src/components/tree-list.vue2.js +1 -2
- package/lib/components/tree-search/src/components/tree-list.vue2.js.map +1 -1
- package/lib/index.js +14 -11
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/types/packages/components/table/index.d.ts +48 -57
- package/types/packages/components/table/src/components/header-search.vue.d.ts +5 -5
- package/types/packages/components/table/src/components/main-table.vue.d.ts +7 -16
- package/types/packages/components/table/src/config/header-search.d.ts +26 -0
- package/types/packages/components/table/src/config/index.d.ts +4 -0
- package/types/packages/components/table/src/config/main-table.d.ts +86 -0
- package/types/packages/components/table/src/config/pagination.d.ts +30 -0
- package/types/packages/components/table/src/config/table.d.ts +61 -0
- package/types/packages/components/table/src/table.vue.d.ts +44 -53
- package/es/components/table/src/table.d.ts +0 -252
- package/es/components/table/src/table.mjs +0 -195
- package/es/components/table/src/table.mjs.map +0 -1
- package/lib/components/table/src/table.d.ts +0 -252
- package/lib/components/table/src/table.js +0 -204
- package/lib/components/table/src/table.js.map +0 -1
- package/types/packages/components/table/src/table.d.ts +0 -252
package/index.full.mjs
CHANGED
|
@@ -4940,6 +4940,11 @@ const tableHeaderSearchProps = buildProps({
|
|
|
4940
4940
|
default: () => mutable({})
|
|
4941
4941
|
}
|
|
4942
4942
|
});
|
|
4943
|
+
const tableHeaderSearchEmits = {
|
|
4944
|
+
change: (v) => !!v
|
|
4945
|
+
// 返回值要明确返回一个布尔类型要不然vue会警告
|
|
4946
|
+
};
|
|
4947
|
+
|
|
4943
4948
|
const mainTableProps = buildProps({
|
|
4944
4949
|
/**
|
|
4945
4950
|
* @description 操作栏编辑操作列的key,用于下次记录用户行为
|
|
@@ -4985,7 +4990,8 @@ const mainTableProps = buildProps({
|
|
|
4985
4990
|
* @description 是否显示操作栏上的设置
|
|
4986
4991
|
*/
|
|
4987
4992
|
showSetting: {
|
|
4988
|
-
type: Boolean
|
|
4993
|
+
type: Boolean,
|
|
4994
|
+
default: true
|
|
4989
4995
|
},
|
|
4990
4996
|
/**
|
|
4991
4997
|
* @description table的scroll
|
|
@@ -5042,6 +5048,10 @@ const mainTableProps = buildProps({
|
|
|
5042
5048
|
type: Function
|
|
5043
5049
|
}
|
|
5044
5050
|
});
|
|
5051
|
+
const mainTableEmits = {
|
|
5052
|
+
handleChangeDataSource: (dataSource) => !!dataSource
|
|
5053
|
+
};
|
|
5054
|
+
|
|
5045
5055
|
const tablePaginationProps = buildProps({
|
|
5046
5056
|
/**
|
|
5047
5057
|
* @description 当前页数
|
|
@@ -5069,6 +5079,7 @@ const tablePaginationProps = buildProps({
|
|
|
5069
5079
|
// 函数不能写默认值,写了就是必要要传
|
|
5070
5080
|
}
|
|
5071
5081
|
});
|
|
5082
|
+
|
|
5072
5083
|
const tableProps = buildProps({
|
|
5073
5084
|
/**
|
|
5074
5085
|
* @description table的loading
|
|
@@ -5099,13 +5110,6 @@ const tableProps = buildProps({
|
|
|
5099
5110
|
default: () => mutable({})
|
|
5100
5111
|
}
|
|
5101
5112
|
});
|
|
5102
|
-
const headerSearchEmits = {
|
|
5103
|
-
handleSwitchMenuChange: (v) => !!v
|
|
5104
|
-
// 返回值要明确返回一个布尔类型要不然vue会警告
|
|
5105
|
-
};
|
|
5106
|
-
const mainTableEmits = {
|
|
5107
|
-
handleChangeDataSource: (dataSource) => !!dataSource
|
|
5108
|
-
};
|
|
5109
5113
|
|
|
5110
5114
|
var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
5111
5115
|
...{
|
|
@@ -5113,7 +5117,7 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5113
5117
|
},
|
|
5114
5118
|
__name: "header-search",
|
|
5115
5119
|
props: tableHeaderSearchProps,
|
|
5116
|
-
emits:
|
|
5120
|
+
emits: tableHeaderSearchEmits,
|
|
5117
5121
|
setup(__props, { emit: __emit }) {
|
|
5118
5122
|
const props = __props;
|
|
5119
5123
|
const emits = __emit;
|
|
@@ -5122,7 +5126,7 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
5122
5126
|
const target = event.target;
|
|
5123
5127
|
const value = target.value;
|
|
5124
5128
|
props.menuSwitchOptions.onChange && props.menuSwitchOptions.onChange(value);
|
|
5125
|
-
emits("
|
|
5129
|
+
emits("change", value);
|
|
5126
5130
|
};
|
|
5127
5131
|
const contentType = inject("contentType");
|
|
5128
5132
|
return (_ctx, _cache) => {
|
|
@@ -12870,7 +12874,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
12870
12874
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
12871
12875
|
createVNode(
|
|
12872
12876
|
HeaderSearch$1,
|
|
12873
|
-
mergeProps(_ctx.headerSearchProps, {
|
|
12877
|
+
mergeProps(_ctx.headerSearchProps, { onChange: handleSwitchMenuChange }),
|
|
12874
12878
|
{
|
|
12875
12879
|
headerLeft: withCtx(() => [
|
|
12876
12880
|
renderSlot(_ctx.$slots, "searchLeft")
|
|
@@ -18996,8 +19000,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18996
19000
|
createElementVNode(
|
|
18997
19001
|
"div",
|
|
18998
19002
|
{
|
|
18999
|
-
class: normalizeClass(unref(bem).e("tree-title"))
|
|
19000
|
-
onClick: _cache[0] || (_cache[0] = (e) => e.stopPropagation())
|
|
19003
|
+
class: normalizeClass(unref(bem).e("tree-title"))
|
|
19001
19004
|
},
|
|
19002
19005
|
[
|
|
19003
19006
|
createElementVNode("div", null, [
|
|
@@ -19264,4 +19267,4 @@ var installer = makeInstaller([...Components]);
|
|
|
19264
19267
|
|
|
19265
19268
|
const install = installer.install;
|
|
19266
19269
|
|
|
19267
|
-
export { CheckboxGroupProps, CheckboxProps, ImenuSwitchType, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlAvatar, LlButton, LlCheckbox, LlCheckboxGroup, LlConfigProvider, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlEmpty, LlForm, LlFormItem, LlIcon, LlIconBase, LlInput, LlInputNumber, LlModal, LlOperateIcon, LlSelect, LlSelectGroup, LlSpace, LlSwitch, LlTable, LlTabsSimple, LlTooltip, LlTreeSearch, SwitchProps, TreeSelectTreeListEmits, advancedFilteringParamsProps, advancedFilteringProps, avatarEmits, avatarProps, avatarType, buttonProps, installer as default, descriptionsItemProps, descriptionsProps, drawerProps, dropdownProps, emptyProps, formProps,
|
|
19270
|
+
export { CheckboxGroupProps, CheckboxProps, ImenuSwitchType, LlAdvancedFiltering, LlAdvancedFilteringParams, LlAdvancedFilteringTags, LlAvatar, LlButton, LlCheckbox, LlCheckboxGroup, LlConfigProvider, LlDescriptions, LlDescriptionsItem, LlDrawer, LlDropdown, LlEmpty, LlForm, LlFormItem, LlIcon, LlIconBase, LlInput, LlInputNumber, LlModal, LlOperateIcon, LlSelect, LlSelectGroup, LlSpace, LlSwitch, LlTable, LlTabsSimple, LlTooltip, LlTreeSearch, SwitchProps, TreeSelectTreeListEmits, advancedFilteringParamsProps, advancedFilteringProps, avatarEmits, avatarProps, avatarType, buttonProps, installer as default, descriptionsItemProps, descriptionsProps, drawerProps, dropdownProps, emptyProps, formProps, iconBaseProps, iconProps, iconTypes, inputNumberProps, inputProps, install, mainTableEmits, mainTableProps, menuSwitchRadioList, modalProps, operateIconEmits, operateIconProps, placement, selectGroupData, selectGroupEmits, selectGroupFormType, selectGroupProps, selectProps, tableHeaderSearchEmits, tableHeaderSearchProps, tablePaginationProps, tableProps, tabsSimpleProps, tooltipProps, treeSearchEmits, treeSearchOperateWayType, treeSearchProps, treeSelectDirectoryTitleEmits, treeSelectDirectoryTitleProps, treeSelectHeaderSearchEmits, treeSelectHeaderSearchProps, treeSelectTreeListEmits, treeSelectTreeListProps, url };
|
package/lib/components/index.js
CHANGED
|
@@ -44,10 +44,13 @@ var operateIcon = require('./operate-icon/src/operate-icon.js');
|
|
|
44
44
|
var select = require('./select/src/select.js');
|
|
45
45
|
var selectGroup = require('./select-group/src/select-group.js');
|
|
46
46
|
var _switch = require('./switch/src/switch.js');
|
|
47
|
-
var
|
|
47
|
+
var headerSearch = require('./table/src/config/header-search.js');
|
|
48
|
+
var mainTable = require('./table/src/config/main-table.js');
|
|
49
|
+
var pagination = require('./table/src/config/pagination.js');
|
|
50
|
+
var table = require('./table/src/config/table.js');
|
|
48
51
|
var tabsSimple = require('./tabs-simple/src/tabs-simple.js');
|
|
49
52
|
var tooltip = require('./tooltip/src/tooltip.js');
|
|
50
|
-
var headerSearch = require('./tree-search/src/config/header-search.js');
|
|
53
|
+
var headerSearch$1 = require('./tree-search/src/config/header-search.js');
|
|
51
54
|
var directoryTitle = require('./tree-search/src/config/directory-title.js');
|
|
52
55
|
var treeList = require('./tree-search/src/config/tree-list.js');
|
|
53
56
|
var treeSearch = require('./tree-search/src/config/tree-search.js');
|
|
@@ -112,19 +115,19 @@ exports.selectGroupEmits = selectGroup.selectGroupEmits;
|
|
|
112
115
|
exports.selectGroupFormType = selectGroup.selectGroupFormType;
|
|
113
116
|
exports.selectGroupProps = selectGroup.selectGroupProps;
|
|
114
117
|
exports.SwitchProps = _switch.SwitchProps;
|
|
115
|
-
exports.ImenuSwitchType =
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
121
|
-
exports.tablePaginationProps =
|
|
118
|
+
exports.ImenuSwitchType = headerSearch.ImenuSwitchType;
|
|
119
|
+
exports.menuSwitchRadioList = headerSearch.menuSwitchRadioList;
|
|
120
|
+
exports.tableHeaderSearchEmits = headerSearch.tableHeaderSearchEmits;
|
|
121
|
+
exports.tableHeaderSearchProps = headerSearch.tableHeaderSearchProps;
|
|
122
|
+
exports.mainTableEmits = mainTable.mainTableEmits;
|
|
123
|
+
exports.mainTableProps = mainTable.mainTableProps;
|
|
124
|
+
exports.tablePaginationProps = pagination.tablePaginationProps;
|
|
122
125
|
exports.tableProps = table.tableProps;
|
|
123
126
|
exports.tabsSimpleProps = tabsSimple.tabsSimpleProps;
|
|
124
127
|
exports.placement = tooltip.placement;
|
|
125
128
|
exports.tooltipProps = tooltip.tooltipProps;
|
|
126
|
-
exports.treeSelectHeaderSearchEmits = headerSearch.treeSelectHeaderSearchEmits;
|
|
127
|
-
exports.treeSelectHeaderSearchProps = headerSearch.treeSelectHeaderSearchProps;
|
|
129
|
+
exports.treeSelectHeaderSearchEmits = headerSearch$1.treeSelectHeaderSearchEmits;
|
|
130
|
+
exports.treeSelectHeaderSearchProps = headerSearch$1.treeSelectHeaderSearchProps;
|
|
128
131
|
exports.treeSelectDirectoryTitleEmits = directoryTitle.treeSelectDirectoryTitleEmits;
|
|
129
132
|
exports.treeSelectDirectoryTitleProps = directoryTitle.treeSelectDirectoryTitleProps;
|
|
130
133
|
exports.TreeSelectTreeListEmits = treeList.TreeSelectTreeListEmits;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,21 +2,21 @@ import Table from './src/table.vue';
|
|
|
2
2
|
export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
4
4
|
readonly headerSearchProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
5
|
-
readonly menuSwitchOptions: import("./src/
|
|
6
|
-
} & {}) | (() => import("./src/
|
|
7
|
-
readonly menuSwitchOptions: import("./src/
|
|
8
|
-
} & {}) | (() => import("./src/
|
|
5
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
6
|
+
} & {}) | (() => import("./src/config").TableHeaderSearchProps) | ((new (...args: any[]) => {
|
|
7
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
8
|
+
} & {}) | (() => import("./src/config").TableHeaderSearchProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
9
9
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
10
10
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
11
11
|
readonly dataSource: any[];
|
|
12
12
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
13
13
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
14
15
|
} & {
|
|
15
16
|
readonly change?: Function | undefined;
|
|
16
17
|
readonly settingKey?: string | undefined;
|
|
17
18
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
18
|
-
readonly
|
|
19
|
-
readonly scroll?: import("./src/table").ITableScroll | undefined;
|
|
19
|
+
readonly scroll?: import("./src/config").ITableScroll | undefined;
|
|
20
20
|
readonly expandedRowKeys?: string[] | undefined;
|
|
21
21
|
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
22
22
|
readonly customRowProps?: Function | undefined;
|
|
@@ -24,17 +24,17 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
24
24
|
readonly expandedRowsChange?: Function | undefined;
|
|
25
25
|
readonly resizeColumn?: Function | undefined;
|
|
26
26
|
readonly dragChange?: Function | undefined;
|
|
27
|
-
}) | (() => import("./src/
|
|
27
|
+
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
28
28
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
29
29
|
readonly dataSource: any[];
|
|
30
30
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
31
31
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
32
33
|
} & {
|
|
33
34
|
readonly change?: Function | undefined;
|
|
34
35
|
readonly settingKey?: string | undefined;
|
|
35
36
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
36
|
-
readonly
|
|
37
|
-
readonly scroll?: import("./src/table").ITableScroll | undefined;
|
|
37
|
+
readonly scroll?: import("./src/config").ITableScroll | undefined;
|
|
38
38
|
readonly expandedRowKeys?: string[] | undefined;
|
|
39
39
|
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
40
40
|
readonly customRowProps?: Function | undefined;
|
|
@@ -42,25 +42,25 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
42
42
|
readonly expandedRowsChange?: Function | undefined;
|
|
43
43
|
readonly resizeColumn?: Function | undefined;
|
|
44
44
|
readonly dragChange?: Function | undefined;
|
|
45
|
-
}) | (() => import("./src/
|
|
45
|
+
}) | (() => import("./src/config").MainTableProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
46
46
|
readonly paginationProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {} & {
|
|
47
47
|
readonly onChange?: Function | undefined;
|
|
48
48
|
readonly current?: number | undefined;
|
|
49
49
|
readonly pageSize?: number | undefined;
|
|
50
50
|
readonly total?: number | undefined;
|
|
51
|
-
}) | (() => import("./src/
|
|
51
|
+
}) | (() => import("./src/config").TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
52
52
|
readonly onChange?: Function | undefined;
|
|
53
53
|
readonly current?: number | undefined;
|
|
54
54
|
readonly pageSize?: number | undefined;
|
|
55
55
|
readonly total?: number | undefined;
|
|
56
|
-
}) | (() => import("./src/
|
|
56
|
+
}) | (() => import("./src/config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
57
57
|
}, {
|
|
58
58
|
props: import("@vue/shared").LooseRequired<{
|
|
59
59
|
readonly loading: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
60
60
|
readonly headerSearchProps: {
|
|
61
|
-
readonly menuSwitchOptions: import("./src/
|
|
61
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
62
62
|
};
|
|
63
|
-
readonly tableProps: import("./src/
|
|
63
|
+
readonly tableProps: import("./src/config").MainTableProps;
|
|
64
64
|
readonly paginationProps: {
|
|
65
65
|
readonly onChange?: Function | undefined;
|
|
66
66
|
readonly current?: number | undefined;
|
|
@@ -70,7 +70,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
70
70
|
} & {}>;
|
|
71
71
|
originDataSource: import("vue").Ref<any>;
|
|
72
72
|
newNaTableptions: import("vue").Ref<any>;
|
|
73
|
-
contentType: import("vue").Ref<import("./src/
|
|
73
|
+
contentType: import("vue").Ref<import("./src/config").ImenuSwitchType>;
|
|
74
74
|
bem: {
|
|
75
75
|
b: (blockSuffix?: string) => string;
|
|
76
76
|
e: (element?: string) => string;
|
|
@@ -82,15 +82,15 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
82
82
|
is: (name?: string) => string;
|
|
83
83
|
};
|
|
84
84
|
handleChangeDataSource: (dataSource: any[]) => void;
|
|
85
|
-
handleSwitchMenuChange: (v: import("./src/
|
|
85
|
+
handleSwitchMenuChange: (v: import("./src/config").ImenuSwitchType) => void;
|
|
86
86
|
HeaderSearch: import("vue").DefineComponent<{
|
|
87
|
-
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/
|
|
87
|
+
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").IMenuSwitchOptions) | (() => import("./src/config").IMenuSwitchOptions) | ((new (...args: any[]) => import("./src/config").IMenuSwitchOptions) | (() => import("./src/config").IMenuSwitchOptions))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
88
88
|
}, {
|
|
89
89
|
props: import("@vue/shared").LooseRequired<{
|
|
90
|
-
readonly menuSwitchOptions: import("./src/
|
|
91
|
-
readonly
|
|
90
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
91
|
+
readonly onChange?: ((v: import("./src/config").ImenuSwitchType) => any) | undefined;
|
|
92
92
|
} & {}>;
|
|
93
|
-
emits: (event: "
|
|
93
|
+
emits: (event: "change", v: import("./src/config").ImenuSwitchType) => void;
|
|
94
94
|
bem: {
|
|
95
95
|
b: (blockSuffix?: string) => string;
|
|
96
96
|
e: (element?: string) => string;
|
|
@@ -104,10 +104,10 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
104
104
|
handleMenuSwitchChange: (event: import("ant-design-vue").RadioChangeEvent) => void;
|
|
105
105
|
contentType: unknown;
|
|
106
106
|
readonly menuSwitchRadioList: readonly [{
|
|
107
|
-
readonly value: import("./src/
|
|
107
|
+
readonly value: import("./src/config").ImenuSwitchType.TABLE;
|
|
108
108
|
readonly icon: "icon-list";
|
|
109
109
|
}, {
|
|
110
|
-
readonly value: import("./src/
|
|
110
|
+
readonly value: import("./src/config").ImenuSwitchType.CARD;
|
|
111
111
|
readonly icon: "icon-card";
|
|
112
112
|
}];
|
|
113
113
|
readonly LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -168,13 +168,13 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
168
168
|
};
|
|
169
169
|
}>>, {}, {}>>;
|
|
170
170
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
171
|
-
|
|
171
|
+
change: (v: import("./src/config").ImenuSwitchType) => boolean;
|
|
172
172
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
173
|
-
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/
|
|
173
|
+
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/config").IMenuSwitchOptions) | (() => import("./src/config").IMenuSwitchOptions) | ((new (...args: any[]) => import("./src/config").IMenuSwitchOptions) | (() => import("./src/config").IMenuSwitchOptions))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
174
174
|
}>> & {
|
|
175
|
-
|
|
175
|
+
onChange?: ((v: import("./src/config").ImenuSwitchType) => any) | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
readonly menuSwitchOptions: import("./src/
|
|
177
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
178
178
|
}, {}>;
|
|
179
179
|
MainTable: import("vue").DefineComponent<{
|
|
180
180
|
readonly settingKey: {
|
|
@@ -193,14 +193,9 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
193
193
|
};
|
|
194
194
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
195
195
|
readonly showOperate: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
196
|
-
readonly showSetting:
|
|
197
|
-
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
198
|
-
readonly required: false;
|
|
199
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
200
|
-
__epPropKey: true;
|
|
201
|
-
};
|
|
196
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
202
197
|
readonly scroll: {
|
|
203
|
-
readonly type: import("vue").PropType<import("./src/
|
|
198
|
+
readonly type: import("vue").PropType<import("./src/config").ITableScroll>;
|
|
204
199
|
readonly required: false;
|
|
205
200
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
206
201
|
__epPropKey: true;
|
|
@@ -259,11 +254,11 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
259
254
|
readonly dataSource: any[];
|
|
260
255
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
261
256
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
257
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
262
258
|
readonly change?: Function | undefined;
|
|
263
259
|
readonly settingKey?: string | undefined;
|
|
264
260
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
265
|
-
readonly
|
|
266
|
-
readonly scroll?: import("./src/table").ITableScroll | undefined;
|
|
261
|
+
readonly scroll?: import("./src/config").ITableScroll | undefined;
|
|
267
262
|
readonly expandedRowKeys?: string[] | undefined;
|
|
268
263
|
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
269
264
|
readonly customRowProps?: Function | undefined;
|
|
@@ -399,14 +394,9 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
399
394
|
};
|
|
400
395
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
401
396
|
readonly showOperate: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
402
|
-
readonly showSetting:
|
|
403
|
-
readonly type: import("vue").PropType<import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>>;
|
|
404
|
-
readonly required: false;
|
|
405
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
406
|
-
__epPropKey: true;
|
|
407
|
-
};
|
|
397
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
408
398
|
readonly scroll: {
|
|
409
|
-
readonly type: import("vue").PropType<import("./src/
|
|
399
|
+
readonly type: import("vue").PropType<import("./src/config").ITableScroll>;
|
|
410
400
|
readonly required: false;
|
|
411
401
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
412
402
|
__epPropKey: true;
|
|
@@ -466,6 +456,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
466
456
|
readonly dataSource: any[];
|
|
467
457
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
468
458
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
459
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
469
460
|
}, {}>;
|
|
470
461
|
Pagination: import("vue").DefineComponent<{
|
|
471
462
|
readonly current: {
|
|
@@ -542,21 +533,21 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
542
533
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
543
534
|
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
544
535
|
readonly headerSearchProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
545
|
-
readonly menuSwitchOptions: import("./src/
|
|
546
|
-
} & {}) | (() => import("./src/
|
|
547
|
-
readonly menuSwitchOptions: import("./src/
|
|
548
|
-
} & {}) | (() => import("./src/
|
|
536
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
537
|
+
} & {}) | (() => import("./src/config").TableHeaderSearchProps) | ((new (...args: any[]) => {
|
|
538
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
539
|
+
} & {}) | (() => import("./src/config").TableHeaderSearchProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
549
540
|
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
550
541
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
551
542
|
readonly dataSource: any[];
|
|
552
543
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
553
544
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
545
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
554
546
|
} & {
|
|
555
547
|
readonly change?: Function | undefined;
|
|
556
548
|
readonly settingKey?: string | undefined;
|
|
557
549
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
558
|
-
readonly
|
|
559
|
-
readonly scroll?: import("./src/table").ITableScroll | undefined;
|
|
550
|
+
readonly scroll?: import("./src/config").ITableScroll | undefined;
|
|
560
551
|
readonly expandedRowKeys?: string[] | undefined;
|
|
561
552
|
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
562
553
|
readonly customRowProps?: Function | undefined;
|
|
@@ -564,17 +555,17 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
564
555
|
readonly expandedRowsChange?: Function | undefined;
|
|
565
556
|
readonly resizeColumn?: Function | undefined;
|
|
566
557
|
readonly dragChange?: Function | undefined;
|
|
567
|
-
}) | (() => import("./src/
|
|
558
|
+
}) | (() => import("./src/config").MainTableProps) | ((new (...args: any[]) => {
|
|
568
559
|
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
569
560
|
readonly dataSource: any[];
|
|
570
561
|
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
571
562
|
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
563
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
572
564
|
} & {
|
|
573
565
|
readonly change?: Function | undefined;
|
|
574
566
|
readonly settingKey?: string | undefined;
|
|
575
567
|
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
576
|
-
readonly
|
|
577
|
-
readonly scroll?: import("./src/table").ITableScroll | undefined;
|
|
568
|
+
readonly scroll?: import("./src/config").ITableScroll | undefined;
|
|
578
569
|
readonly expandedRowKeys?: string[] | undefined;
|
|
579
570
|
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
580
571
|
readonly customRowProps?: Function | undefined;
|
|
@@ -582,24 +573,24 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
582
573
|
readonly expandedRowsChange?: Function | undefined;
|
|
583
574
|
readonly resizeColumn?: Function | undefined;
|
|
584
575
|
readonly dragChange?: Function | undefined;
|
|
585
|
-
}) | (() => import("./src/
|
|
576
|
+
}) | (() => import("./src/config").MainTableProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
586
577
|
readonly paginationProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {} & {
|
|
587
578
|
readonly onChange?: Function | undefined;
|
|
588
579
|
readonly current?: number | undefined;
|
|
589
580
|
readonly pageSize?: number | undefined;
|
|
590
581
|
readonly total?: number | undefined;
|
|
591
|
-
}) | (() => import("./src/
|
|
582
|
+
}) | (() => import("./src/config").TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
592
583
|
readonly onChange?: Function | undefined;
|
|
593
584
|
readonly current?: number | undefined;
|
|
594
585
|
readonly pageSize?: number | undefined;
|
|
595
586
|
readonly total?: number | undefined;
|
|
596
|
-
}) | (() => import("./src/
|
|
587
|
+
}) | (() => import("./src/config").TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
597
588
|
}>>, {
|
|
598
589
|
readonly loading: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
599
590
|
readonly headerSearchProps: {
|
|
600
|
-
readonly menuSwitchOptions: import("./src/
|
|
591
|
+
readonly menuSwitchOptions: import("./src/config").IMenuSwitchOptions;
|
|
601
592
|
};
|
|
602
|
-
readonly tableProps: import("./src/
|
|
593
|
+
readonly tableProps: import("./src/config").MainTableProps;
|
|
603
594
|
readonly paginationProps: {
|
|
604
595
|
readonly onChange?: Function | undefined;
|
|
605
596
|
readonly current?: number | undefined;
|
|
@@ -608,7 +599,7 @@ export declare const LlTable: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
608
599
|
};
|
|
609
600
|
}, {}>>;
|
|
610
601
|
export default LlTable;
|
|
611
|
-
export * from './src/
|
|
602
|
+
export * from './src/config';
|
|
612
603
|
declare module 'vue' {
|
|
613
604
|
interface GlobalComponents {
|
|
614
605
|
LlTable: typeof Table;
|
|
@@ -4,19 +4,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var table$1 = require('./src/table.vue.js');
|
|
7
|
-
|
|
7
|
+
require('./src/config/index.js');
|
|
8
8
|
var withInstall = require('../../utils/with-install.js');
|
|
9
|
+
var headerSearch = require('./src/config/header-search.js');
|
|
10
|
+
var mainTable = require('./src/config/main-table.js');
|
|
11
|
+
var pagination = require('./src/config/pagination.js');
|
|
12
|
+
var table = require('./src/config/table.js');
|
|
9
13
|
|
|
10
14
|
"use strict";
|
|
11
15
|
const LlTable = withInstall.withInstall(table$1.default);
|
|
12
16
|
|
|
13
|
-
exports.ImenuSwitchType =
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.tablePaginationProps =
|
|
17
|
+
exports.ImenuSwitchType = headerSearch.ImenuSwitchType;
|
|
18
|
+
exports.menuSwitchRadioList = headerSearch.menuSwitchRadioList;
|
|
19
|
+
exports.tableHeaderSearchEmits = headerSearch.tableHeaderSearchEmits;
|
|
20
|
+
exports.tableHeaderSearchProps = headerSearch.tableHeaderSearchProps;
|
|
21
|
+
exports.mainTableEmits = mainTable.mainTableEmits;
|
|
22
|
+
exports.mainTableProps = mainTable.mainTableProps;
|
|
23
|
+
exports.tablePaginationProps = pagination.tablePaginationProps;
|
|
20
24
|
exports.tableProps = table.tableProps;
|
|
21
25
|
exports.LlTable = LlTable;
|
|
22
26
|
exports.default = LlTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../packages/components/table/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Table from './src/table.vue'\n\nexport const LlTable = withInstall(Table)\nexport default LlTable\nexport * from './src/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../packages/components/table/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport Table from './src/table.vue'\n\nexport const LlTable = withInstall(Table)\nexport default LlTable\nexport * from './src/config'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlTable: typeof Table\n }\n}\n"],"names":["withInstall","Table"],"mappings":";;;;;;;;;;;;;;AAIa,MAAA,OAAA,GAAUA,wBAAYC,eAAK;;;;;;;;;;;;;"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ImenuSwitchType } from '../
|
|
1
|
+
import { ImenuSwitchType } from '../config';
|
|
2
2
|
import type { RadioChangeEvent } from 'ant-design-vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions) | ((new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
5
5
|
}, {
|
|
6
6
|
props: import("@vue/shared").LooseRequired<{
|
|
7
7
|
readonly menuSwitchOptions: import("ll-plus/es/components").IMenuSwitchOptions;
|
|
8
|
-
readonly
|
|
8
|
+
readonly onChange?: ((v: ImenuSwitchType) => any) | undefined;
|
|
9
9
|
} & {}>;
|
|
10
|
-
emits: (event: "
|
|
10
|
+
emits: (event: "change", v: ImenuSwitchType) => void;
|
|
11
11
|
bem: {
|
|
12
12
|
b: (blockSuffix?: string) => string;
|
|
13
13
|
e: (element?: string) => string;
|
|
@@ -85,11 +85,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
};
|
|
86
86
|
}>>, {}, {}>>;
|
|
87
87
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
88
|
-
|
|
88
|
+
change: (v: ImenuSwitchType) => boolean;
|
|
89
89
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
90
90
|
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions) | ((new (...args: any[]) => import("ll-plus/es/components").IMenuSwitchOptions) | (() => import("ll-plus/es/components").IMenuSwitchOptions))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
91
91
|
}>> & {
|
|
92
|
-
|
|
92
|
+
onChange?: ((v: ImenuSwitchType) => any) | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
readonly menuSwitchOptions: import("ll-plus/es/components").IMenuSwitchOptions;
|
|
95
95
|
}, {}>;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
|
|
6
|
+
require('../config/index.js');
|
|
7
7
|
require('../../../../utils/index.js');
|
|
8
8
|
require('../../../index.js');
|
|
9
|
+
var headerSearch = require('../config/header-search.js');
|
|
9
10
|
var createNamespace = require('../../../../utils/create-namespace.js');
|
|
10
11
|
var index = require('../../../icon/index.js');
|
|
11
12
|
|
|
@@ -15,8 +16,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
15
16
|
name: "TableHeaderSearch"
|
|
16
17
|
},
|
|
17
18
|
__name: "header-search",
|
|
18
|
-
props:
|
|
19
|
-
emits:
|
|
19
|
+
props: headerSearch.tableHeaderSearchProps,
|
|
20
|
+
emits: headerSearch.tableHeaderSearchEmits,
|
|
20
21
|
setup(__props, { emit: __emit }) {
|
|
21
22
|
const props = __props;
|
|
22
23
|
const emits = __emit;
|
|
@@ -25,7 +26,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
25
26
|
const target = event.target;
|
|
26
27
|
const value = target.value;
|
|
27
28
|
props.menuSwitchOptions.onChange && props.menuSwitchOptions.onChange(value);
|
|
28
|
-
emits("
|
|
29
|
+
emits("change", value);
|
|
29
30
|
};
|
|
30
31
|
const contentType = vue.inject("contentType");
|
|
31
32
|
return (_ctx, _cache) => {
|
|
@@ -86,7 +87,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
87
|
(vue.openBlock(true), vue.createElementBlock(
|
|
87
88
|
vue.Fragment,
|
|
88
89
|
null,
|
|
89
|
-
vue.renderList(vue.unref(
|
|
90
|
+
vue.renderList(vue.unref(headerSearch.menuSwitchRadioList), (menuItem) => {
|
|
90
91
|
return vue.openBlock(), vue.createBlock(_component_a_radio_button, {
|
|
91
92
|
key: menuItem.value,
|
|
92
93
|
class: vue.normalizeClass(`${vue.unref(bem).e("header-menu-icon")}`),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header-search.vue2.js","sources":["../../../../../../packages/components/table/src/components/header-search.vue"],"sourcesContent":["<template>\n <div :class=\"`${bem.e('header-wrapper')}`\">\n <div :class=\"bem.e('header')\">\n <!-- 左边的插槽 -->\n <div :class=\"bem.e('header-left')\">\n <slot name=\"searchLeft\"> </slot>\n </div>\n <!-- 内容中间插槽 -->\n <div :class=\"bem.e('header-middle')\">\n <slot name=\"searchMiddle\"></slot>\n </div>\n <div :class=\"bem.e('header-right')\">\n <slot name=\"searchRight\"></slot>\n <!-- 切换table和list菜单 -->\n <a-radio-group\n v-if=\"props.menuSwitchOptions?.show\"\n v-model:value=\"contentType\"\n :class=\"`m-l20 ${bem.e('header-menu-radio-group')}`\"\n @change=\"handleMenuSwitchChange\"\n >\n <a-radio-button\n v-for=\"menuItem in menuSwitchRadioList\"\n :key=\"menuItem.value\"\n :class=\"`${bem.e('header-menu-icon')}`\"\n :value=\"menuItem.value\"\n >\n <ll-icon :icon-name=\"menuItem.icon\" :size=\"18\" />\n </a-radio-button>\n </a-radio-group>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { inject } from 'vue'\n\nimport {\n menuSwitchRadioList,\n
|
|
1
|
+
{"version":3,"file":"header-search.vue2.js","sources":["../../../../../../packages/components/table/src/components/header-search.vue"],"sourcesContent":["<template>\n <div :class=\"`${bem.e('header-wrapper')}`\">\n <div :class=\"bem.e('header')\">\n <!-- 左边的插槽 -->\n <div :class=\"bem.e('header-left')\">\n <slot name=\"searchLeft\"> </slot>\n </div>\n <!-- 内容中间插槽 -->\n <div :class=\"bem.e('header-middle')\">\n <slot name=\"searchMiddle\"></slot>\n </div>\n <div :class=\"bem.e('header-right')\">\n <slot name=\"searchRight\"></slot>\n <!-- 切换table和list菜单 -->\n <a-radio-group\n v-if=\"props.menuSwitchOptions?.show\"\n v-model:value=\"contentType\"\n :class=\"`m-l20 ${bem.e('header-menu-radio-group')}`\"\n @change=\"handleMenuSwitchChange\"\n >\n <a-radio-button\n v-for=\"menuItem in menuSwitchRadioList\"\n :key=\"menuItem.value\"\n :class=\"`${bem.e('header-menu-icon')}`\"\n :value=\"menuItem.value\"\n >\n <ll-icon :icon-name=\"menuItem.icon\" :size=\"18\" />\n </a-radio-button>\n </a-radio-group>\n </div>\n </div>\n </div>\n</template>\n<script lang=\"ts\" setup>\nimport { inject } from 'vue'\n\nimport {\n menuSwitchRadioList,\n tableHeaderSearchEmits,\n ImenuSwitchType\n} from '../config'\nimport { createNamespace } from '@ll-plus/utils'\nimport { tableHeaderSearchProps } from '../config'\n\nimport { LlIcon } from '@ll-plus/components'\n\nimport type { RadioChangeEvent } from 'ant-design-vue'\n\n// 1.defineOptions\ndefineOptions({\n name: 'TableHeaderSearch'\n})\n\n// 2.props\nconst props = defineProps(tableHeaderSearchProps)\n\n// 3.emits\nconst emits = defineEmits(tableHeaderSearchEmits)\n// 4.const\nconst bem = createNamespace('table')\n\n// 5.methods\n// 切换菜单table\nconst handleMenuSwitchChange = (event: RadioChangeEvent) => {\n const target = event.target\n const value = target.value as ImenuSwitchType\n props.menuSwitchOptions.onChange && props.menuSwitchOptions.onChange(value)\n emits('change', value)\n // emits('handleSwitchMenuChange', value)\n}\n// 5.其他\n// 获取menuswitch\nconst contentType = inject('contentType')\n</script>\n../config/table../config/table\n"],"names":["createNamespace","inject"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsDA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAM,MAAA,GAAA,GAAMA,gCAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,KAA4B,KAAA;AAC1D,MAAA,MAAM,SAAS,KAAM,CAAA,MAAA,CAAA;AACrB,MAAA,MAAM,QAAQ,MAAO,CAAA,KAAA,CAAA;AACrB,MAAA,KAAA,CAAM,iBAAkB,CAAA,QAAA,IAAY,KAAM,CAAA,iBAAA,CAAkB,SAAS,KAAK,CAAA,CAAA;AAC1E,MAAA,KAAA,CAAM,UAAU,KAAK,CAAA,CAAA;AAAA,KAEvB,CAAA;AAGA,IAAM,MAAA,WAAA,GAAcC,WAAO,aAAa,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|