ll-plus 2.0.6 → 2.0.8
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/component.mjs +10 -0
- package/es/component.mjs.map +1 -1
- package/es/components/cascader/index.d.ts +23 -0
- package/es/components/cascader/index.mjs +10 -0
- package/es/components/cascader/index.mjs.map +1 -0
- package/es/components/cascader/src/cascader.d.ts +4 -0
- package/es/components/cascader/src/cascader.mjs +2 -0
- package/es/components/cascader/src/cascader.mjs.map +1 -0
- package/es/components/cascader/src/cascader.vue.d.ts +16 -0
- package/es/components/cascader/src/cascader.vue.mjs +8 -0
- package/es/components/cascader/src/cascader.vue.mjs.map +1 -0
- package/es/components/cascader/src/cascader.vue2.mjs +35 -0
- package/es/components/cascader/src/cascader.vue2.mjs.map +1 -0
- package/es/components/date-picker/index.d.ts +62 -0
- package/es/components/date-picker/index.mjs +10 -0
- package/es/components/date-picker/index.mjs.map +1 -0
- package/es/components/date-picker/src/date-picker.d.ts +10 -0
- package/es/components/date-picker/src/date-picker.mjs +25 -0
- package/es/components/date-picker/src/date-picker.mjs.map +1 -0
- package/es/components/date-picker/src/date-picker.vue.d.ts +56 -0
- package/es/components/date-picker/src/date-picker.vue.mjs +8 -0
- package/es/components/date-picker/src/date-picker.vue.mjs.map +1 -0
- package/es/components/date-picker/src/date-picker.vue2.mjs +92 -0
- package/es/components/date-picker/src/date-picker.vue2.mjs.map +1 -0
- package/es/components/date-range/index.d.ts +68 -0
- package/es/components/date-range/index.mjs +10 -0
- package/es/components/date-range/index.mjs.map +1 -0
- package/es/components/date-range/src/date-range.d.ts +11 -0
- package/es/components/date-range/src/date-range.mjs +31 -0
- package/es/components/date-range/src/date-range.mjs.map +1 -0
- package/es/components/date-range/src/date-range.vue.d.ts +62 -0
- package/es/components/date-range/src/date-range.vue.mjs +8 -0
- package/es/components/date-range/src/date-range.vue.mjs.map +1 -0
- package/es/components/date-range/src/date-range.vue2.mjs +97 -0
- package/es/components/date-range/src/date-range.vue2.mjs.map +1 -0
- package/es/components/dropdown/index.d.ts +99 -4
- package/es/components/dropdown/index.mjs +4 -2
- package/es/components/dropdown/index.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown-button.vue.d.ts +59 -0
- package/es/components/dropdown/src/dropdown-button.vue.mjs +8 -0
- package/es/components/dropdown/src/dropdown-button.vue.mjs.map +1 -0
- package/es/components/dropdown/src/dropdown-button.vue2.mjs +85 -0
- package/es/components/dropdown/src/dropdown-button.vue2.mjs.map +1 -0
- package/es/components/dropdown/src/dropdown.d.ts +33 -1
- package/es/components/dropdown/src/dropdown.mjs +25 -7
- package/es/components/dropdown/src/dropdown.mjs.map +1 -1
- package/es/components/dropdown/src/dropdown.vue.d.ts +41 -4
- package/es/components/dropdown/src/dropdown.vue2.mjs +50 -5
- package/es/components/dropdown/src/dropdown.vue2.mjs.map +1 -1
- package/es/components/index.d.ts +5 -0
- package/es/components/index.mjs +15 -3
- package/es/components/index.mjs.map +1 -1
- package/es/components/input/index.d.ts +35 -35
- package/es/components/input/src/input.vue.d.ts +35 -35
- package/es/components/input/src/input.vue2.mjs.map +1 -1
- package/es/components/modal/index.d.ts +2 -2
- package/es/components/modal/src/modal.vue.d.ts +2 -2
- 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 +77 -74
- 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 +29 -23
- package/es/components/table/src/table.vue2.mjs.map +1 -1
- package/es/components/time-picker/index.d.ts +62 -0
- package/es/components/time-picker/index.mjs +10 -0
- package/es/components/time-picker/index.mjs.map +1 -0
- package/es/components/time-picker/src/time-picker.d.ts +10 -0
- package/es/components/time-picker/src/time-picker.mjs +25 -0
- package/es/components/time-picker/src/time-picker.mjs.map +1 -0
- package/es/components/time-picker/src/time-picker.vue.d.ts +55 -0
- package/es/components/time-picker/src/time-picker.vue.mjs +8 -0
- package/es/components/time-picker/src/time-picker.vue.mjs.map +1 -0
- package/es/components/time-picker/src/time-picker.vue2.mjs +177 -0
- package/es/components/time-picker/src/time-picker.vue2.mjs.map +1 -0
- package/es/components/time-range/index.d.ts +67 -0
- package/es/components/time-range/index.mjs +10 -0
- package/es/components/time-range/index.mjs.map +1 -0
- package/es/components/time-range/src/time-range.d.ts +11 -0
- package/es/components/time-range/src/time-range.mjs +31 -0
- package/es/components/time-range/src/time-range.mjs.map +1 -0
- package/es/components/time-range/src/time-range.vue.d.ts +60 -0
- package/es/components/time-range/src/time-range.vue.mjs +8 -0
- package/es/components/time-range/src/time-range.vue.mjs.map +1 -0
- package/es/components/time-range/src/time-range.vue2.mjs +166 -0
- package/es/components/time-range/src/time-range.vue2.mjs.map +1 -0
- package/es/components/tree-search/index.d.ts +2 -2
- package/es/components/tree-search/src/tree-search.vue.d.ts +2 -2
- package/es/index.mjs +15 -3
- package/es/index.mjs.map +1 -1
- package/index.full.js +1051 -250
- package/index.full.min.js +22 -22
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +21 -21
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +1041 -251
- package/lib/component.js +57 -47
- package/lib/component.js.map +1 -1
- package/lib/components/cascader/index.d.ts +23 -0
- package/lib/components/cascader/index.js +15 -0
- package/lib/components/cascader/index.js.map +1 -0
- package/lib/components/cascader/src/cascader.d.ts +4 -0
- package/lib/components/cascader/src/cascader.js +4 -0
- package/lib/components/cascader/src/cascader.js.map +1 -0
- package/lib/components/cascader/src/cascader.vue.d.ts +16 -0
- package/lib/components/cascader/src/cascader.vue.js +12 -0
- package/lib/components/cascader/src/cascader.vue.js.map +1 -0
- package/lib/components/cascader/src/cascader.vue2.js +39 -0
- package/lib/components/cascader/src/cascader.vue2.js.map +1 -0
- package/lib/components/date-picker/index.d.ts +62 -0
- package/lib/components/date-picker/index.js +16 -0
- package/lib/components/date-picker/index.js.map +1 -0
- package/lib/components/date-picker/src/date-picker.d.ts +10 -0
- package/lib/components/date-picker/src/date-picker.js +27 -0
- package/lib/components/date-picker/src/date-picker.js.map +1 -0
- package/lib/components/date-picker/src/date-picker.vue.d.ts +56 -0
- package/lib/components/date-picker/src/date-picker.vue.js +12 -0
- package/lib/components/date-picker/src/date-picker.vue.js.map +1 -0
- package/lib/components/date-picker/src/date-picker.vue2.js +96 -0
- package/lib/components/date-picker/src/date-picker.vue2.js.map +1 -0
- package/lib/components/date-range/index.d.ts +68 -0
- package/lib/components/date-range/index.js +16 -0
- package/lib/components/date-range/index.js.map +1 -0
- package/lib/components/date-range/src/date-range.d.ts +11 -0
- package/lib/components/date-range/src/date-range.js +33 -0
- package/lib/components/date-range/src/date-range.js.map +1 -0
- package/lib/components/date-range/src/date-range.vue.d.ts +62 -0
- package/lib/components/date-range/src/date-range.vue.js +12 -0
- package/lib/components/date-range/src/date-range.vue.js.map +1 -0
- package/lib/components/date-range/src/date-range.vue2.js +101 -0
- package/lib/components/date-range/src/date-range.vue2.js.map +1 -0
- package/lib/components/dropdown/index.d.ts +99 -4
- package/lib/components/dropdown/index.js +4 -0
- package/lib/components/dropdown/index.js.map +1 -1
- package/lib/components/dropdown/src/dropdown-button.vue.d.ts +59 -0
- package/lib/components/dropdown/src/dropdown-button.vue.js +12 -0
- package/lib/components/dropdown/src/dropdown-button.vue.js.map +1 -0
- package/lib/components/dropdown/src/dropdown-button.vue2.js +89 -0
- package/lib/components/dropdown/src/dropdown-button.vue2.js.map +1 -0
- package/lib/components/dropdown/src/dropdown.d.ts +33 -1
- package/lib/components/dropdown/src/dropdown.js +24 -5
- package/lib/components/dropdown/src/dropdown.js.map +1 -1
- package/lib/components/dropdown/src/dropdown.vue.d.ts +41 -4
- package/lib/components/dropdown/src/dropdown.vue2.js +49 -4
- package/lib/components/dropdown/src/dropdown.vue2.js.map +1 -1
- package/lib/components/index.d.ts +5 -0
- package/lib/components/index.js +81 -58
- package/lib/components/index.js.map +1 -1
- package/lib/components/input/index.d.ts +35 -35
- package/lib/components/input/src/input.vue.d.ts +35 -35
- package/lib/components/input/src/input.vue2.js.map +1 -1
- package/lib/components/modal/index.d.ts +2 -2
- package/lib/components/modal/src/modal.vue.d.ts +2 -2
- 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 +77 -74
- 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 +30 -24
- package/lib/components/table/src/table.vue2.js.map +1 -1
- package/lib/components/time-picker/index.d.ts +62 -0
- package/lib/components/time-picker/index.js +16 -0
- package/lib/components/time-picker/index.js.map +1 -0
- package/lib/components/time-picker/src/time-picker.d.ts +10 -0
- package/lib/components/time-picker/src/time-picker.js +27 -0
- package/lib/components/time-picker/src/time-picker.js.map +1 -0
- package/lib/components/time-picker/src/time-picker.vue.d.ts +55 -0
- package/lib/components/time-picker/src/time-picker.vue.js +12 -0
- package/lib/components/time-picker/src/time-picker.vue.js.map +1 -0
- package/lib/components/time-picker/src/time-picker.vue2.js +181 -0
- package/lib/components/time-picker/src/time-picker.vue2.js.map +1 -0
- package/lib/components/time-range/index.d.ts +67 -0
- package/lib/components/time-range/index.js +16 -0
- package/lib/components/time-range/index.js.map +1 -0
- package/lib/components/time-range/src/time-range.d.ts +11 -0
- package/lib/components/time-range/src/time-range.js +33 -0
- package/lib/components/time-range/src/time-range.js.map +1 -0
- package/lib/components/time-range/src/time-range.vue.d.ts +60 -0
- package/lib/components/time-range/src/time-range.vue.js +12 -0
- package/lib/components/time-range/src/time-range.vue.js.map +1 -0
- package/lib/components/time-range/src/time-range.vue2.js +170 -0
- package/lib/components/time-range/src/time-range.vue2.js.map +1 -0
- package/lib/components/tree-search/index.d.ts +2 -2
- package/lib/components/tree-search/src/tree-search.vue.d.ts +2 -2
- package/lib/index.js +81 -58
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/theme-chalk/css/advanced-filtering.css +5 -1
- package/theme-chalk/css/cascader.css +5 -0
- package/theme-chalk/css/checkbox.css +5 -1
- package/theme-chalk/css/date-picker.css +1 -0
- package/theme-chalk/css/date-range.css +1 -0
- package/theme-chalk/css/descriptions.css +5 -1
- package/theme-chalk/css/drawer.css +5 -1
- package/theme-chalk/css/dropdown.css +5 -0
- package/theme-chalk/css/form.css +5 -1
- package/theme-chalk/css/index.css +5 -1
- package/theme-chalk/css/input-number.css +5 -1
- package/theme-chalk/css/input.css +5 -1
- package/theme-chalk/css/modal.css +5 -1
- package/theme-chalk/css/switch.css +5 -1
- package/theme-chalk/css/table.css +5 -1
- package/theme-chalk/css/tabs-simple.css +5 -1
- package/theme-chalk/css/time-picker.css +1 -0
- package/theme-chalk/css/time-range.css +1 -0
- package/types/packages/components/cascader/index.d.ts +23 -0
- package/types/packages/components/cascader/src/cascader.d.ts +4 -0
- package/types/packages/components/cascader/src/cascader.vue.d.ts +16 -0
- package/types/packages/components/date-picker/index.d.ts +62 -0
- package/types/packages/components/date-picker/src/date-picker.d.ts +10 -0
- package/types/packages/components/date-picker/src/date-picker.vue.d.ts +56 -0
- package/types/packages/components/date-range/index.d.ts +68 -0
- package/types/packages/components/date-range/src/date-range.d.ts +11 -0
- package/types/packages/components/date-range/src/date-range.vue.d.ts +62 -0
- package/types/packages/components/dropdown/index.d.ts +99 -4
- package/types/packages/components/dropdown/src/dropdown-button.vue.d.ts +59 -0
- package/types/packages/components/dropdown/src/dropdown.d.ts +33 -1
- package/types/packages/components/dropdown/src/dropdown.vue.d.ts +41 -4
- package/types/packages/components/index.d.ts +5 -0
- package/types/packages/components/input/index.d.ts +35 -35
- package/types/packages/components/input/src/input.vue.d.ts +35 -35
- package/types/packages/components/modal/index.d.ts +2 -2
- package/types/packages/components/modal/src/modal.vue.d.ts +2 -2
- 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/types/packages/components/time-picker/index.d.ts +62 -0
- package/types/packages/components/time-picker/src/time-picker.d.ts +10 -0
- package/types/packages/components/time-picker/src/time-picker.vue.d.ts +55 -0
- package/types/packages/components/time-range/index.d.ts +67 -0
- package/types/packages/components/time-range/src/time-range.d.ts +11 -0
- package/types/packages/components/time-range/src/time-range.vue.d.ts +60 -0
- package/types/packages/components/tree-search/index.d.ts +2 -2
- package/types/packages/components/tree-search/src/tree-search.vue.d.ts +2 -2
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.js","sources":["../../../../../../packages/components/table/src/config/pagination.ts"],"sourcesContent":["import { buildProps } from '@ll-plus/utils'\n\nimport Pagination from '../components/pagination.vue'\n\nimport type { ExtractPropTypes } from 'vue'\n\nexport const tablePaginationProps = buildProps({\n /**\n * @description 当前页数\n */\n current: {\n type: Number\n },\n /**\n * @description 每页条数\n */\n pageSize: {\n type: Number\n },\n /**\n * @description 数据总数\n */\n total: {\n type: Number\n },\n /**\n * @description 页码或 pageSize 改变的回调,参数是改变后的页码及每页条数\n */\n onChange: {\n type: Function // 函数不能写默认值,写了就是必要要传\n }\n} as const)\n\n// props\nexport type TablePaginationProps = ExtractPropTypes<typeof tablePaginationProps>\n\n// instance\nexport type TablePaginationInstance = InstanceType<typeof Pagination>\n"],"names":["buildProps"],"mappings":";;;;;;AAMO,MAAM,uBAAuBA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAI7C,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,QAAA;AAAA;AAAA,GACR;AACF,CAAU;;;;"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type Table from '../table.vue';
|
|
3
|
+
import { TableHeaderSearchProps, MainTableProps, TablePaginationProps } from './index';
|
|
4
|
+
export declare const tableProps: {
|
|
5
|
+
readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
6
|
+
readonly headerSearchProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
7
|
+
readonly menuSwitchOptions: import("./header-search").IMenuSwitchOptions;
|
|
8
|
+
} & {}) | (() => TableHeaderSearchProps) | ((new (...args: any[]) => {
|
|
9
|
+
readonly menuSwitchOptions: import("./header-search").IMenuSwitchOptions;
|
|
10
|
+
} & {}) | (() => TableHeaderSearchProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
11
|
+
readonly tableProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
|
12
|
+
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
13
|
+
readonly dataSource: any[];
|
|
14
|
+
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
15
|
+
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
16
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
17
|
+
} & {
|
|
18
|
+
readonly change?: Function | undefined;
|
|
19
|
+
readonly settingKey?: string | undefined;
|
|
20
|
+
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
21
|
+
readonly scroll?: import("./main-table").ITableScroll | undefined;
|
|
22
|
+
readonly expandedRowKeys?: string[] | undefined;
|
|
23
|
+
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
24
|
+
readonly customRowProps?: Function | undefined;
|
|
25
|
+
readonly expand?: Function | undefined;
|
|
26
|
+
readonly expandedRowsChange?: Function | undefined;
|
|
27
|
+
readonly resizeColumn?: Function | undefined;
|
|
28
|
+
readonly dragChange?: Function | undefined;
|
|
29
|
+
}) | (() => MainTableProps) | ((new (...args: any[]) => {
|
|
30
|
+
readonly columns: import("ant-design-vue").TableColumnProps[];
|
|
31
|
+
readonly dataSource: any[];
|
|
32
|
+
readonly showIndexColumn: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
33
|
+
readonly showOperate: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
|
+
readonly showSetting: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
35
|
+
} & {
|
|
36
|
+
readonly change?: Function | undefined;
|
|
37
|
+
readonly settingKey?: string | undefined;
|
|
38
|
+
readonly showDrag?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
39
|
+
readonly scroll?: import("./main-table").ITableScroll | undefined;
|
|
40
|
+
readonly expandedRowKeys?: string[] | undefined;
|
|
41
|
+
readonly hiddenPagination?: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
42
|
+
readonly customRowProps?: Function | undefined;
|
|
43
|
+
readonly expand?: Function | undefined;
|
|
44
|
+
readonly expandedRowsChange?: Function | undefined;
|
|
45
|
+
readonly resizeColumn?: Function | undefined;
|
|
46
|
+
readonly dragChange?: Function | undefined;
|
|
47
|
+
}) | (() => MainTableProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
48
|
+
readonly paginationProps: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {} & {
|
|
49
|
+
readonly onChange?: Function | undefined;
|
|
50
|
+
readonly current?: number | undefined;
|
|
51
|
+
readonly pageSize?: number | undefined;
|
|
52
|
+
readonly total?: number | undefined;
|
|
53
|
+
}) | (() => TablePaginationProps) | ((new (...args: any[]) => {} & {
|
|
54
|
+
readonly onChange?: Function | undefined;
|
|
55
|
+
readonly current?: number | undefined;
|
|
56
|
+
readonly pageSize?: number | undefined;
|
|
57
|
+
readonly total?: number | undefined;
|
|
58
|
+
}) | (() => TablePaginationProps))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
59
|
+
};
|
|
60
|
+
export type TableProps = ExtractPropTypes<typeof tableProps>;
|
|
61
|
+
export type TableInstance = InstanceType<typeof Table>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../../../utils/index.js');
|
|
4
|
+
var runtime = require('../../../../utils/props/runtime.js');
|
|
5
|
+
var typescript = require('../../../../utils/typescript.js');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const tableProps = runtime.buildProps({
|
|
9
|
+
/**
|
|
10
|
+
* @description table的loading
|
|
11
|
+
*/
|
|
12
|
+
loading: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
16
|
+
/**
|
|
17
|
+
* @description 头部props
|
|
18
|
+
*/
|
|
19
|
+
headerSearchProps: {
|
|
20
|
+
type: runtime.definePropType(Object),
|
|
21
|
+
default: () => typescript.mutable({})
|
|
22
|
+
},
|
|
23
|
+
/**
|
|
24
|
+
* @description main-table的props
|
|
25
|
+
*/
|
|
26
|
+
tableProps: {
|
|
27
|
+
type: runtime.definePropType(Object),
|
|
28
|
+
default: () => typescript.mutable({})
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* @description 分页的props
|
|
32
|
+
*/
|
|
33
|
+
paginationProps: {
|
|
34
|
+
type: runtime.definePropType({}),
|
|
35
|
+
default: () => typescript.mutable({})
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
exports.tableProps = tableProps;
|
|
40
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","sources":["../../../../../../packages/components/table/src/config/table.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Table from '../table.vue'\nimport {\n TableHeaderSearchProps,\n MainTableProps,\n TablePaginationProps\n} from './index'\n\n// tableProps\nexport const tableProps = buildProps({\n /**\n * @description table的loading\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * @description 头部props\n */\n headerSearchProps: {\n type: definePropType<TableHeaderSearchProps>(Object),\n default: () => mutable({} as const)\n },\n /**\n * @description main-table的props\n */\n tableProps: {\n type: definePropType<MainTableProps>(Object),\n default: () => mutable({} as const)\n },\n /**\n * @description 分页的props\n */\n paginationProps: {\n type: definePropType<TablePaginationProps>({}),\n default: () => mutable({} as const)\n }\n} as const)\n\n// props\nexport type TableProps = ExtractPropTypes<typeof tableProps>\n\n// instance\nexport type TableInstance = InstanceType<typeof Table>\n"],"names":["buildProps","definePropType","mutable"],"mappings":";;;;;;;AAWO,MAAM,aAAaA,kBAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAmB,EAAA;AAAA,IACjB,IAAA,EAAMC,uBAAuC,MAAM,CAAA;AAAA,IACnD,OAAS,EAAA,MAAMC,kBAAQ,CAAA,EAAW,CAAA;AAAA,GACpC;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAA,EAAMD,uBAA+B,MAAM,CAAA;AAAA,IAC3C,OAAS,EAAA,MAAMC,kBAAQ,CAAA,EAAW,CAAA;AAAA,GACpC;AAAA;AAAA;AAAA;AAAA,EAIA,eAAiB,EAAA;AAAA,IACf,IAAA,EAAMD,sBAAqC,CAAA,EAAE,CAAA;AAAA,IAC7C,OAAS,EAAA,MAAMC,kBAAQ,CAAA,EAAW,CAAA;AAAA,GACpC;AACF,CAAU;;;;"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { ImenuSwitchType } from './
|
|
1
|
+
import { ImenuSwitchType } from './config';
|
|
2
2
|
declare const _default: 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("./
|
|
6
|
-
} & {}) | (() => import("./
|
|
7
|
-
readonly menuSwitchOptions: import("./
|
|
8
|
-
} & {}) | (() => import("./
|
|
5
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
6
|
+
} & {}) | (() => import("./config").TableHeaderSearchProps) | ((new (...args: any[]) => {
|
|
7
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
8
|
+
} & {}) | (() => import("./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("./table").ITableScroll | undefined;
|
|
19
|
+
readonly scroll?: import("./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 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
readonly expandedRowsChange?: Function | undefined;
|
|
25
25
|
readonly resizeColumn?: Function | undefined;
|
|
26
26
|
readonly dragChange?: Function | undefined;
|
|
27
|
-
}) | (() => import("./
|
|
27
|
+
}) | (() => import("./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("./table").ITableScroll | undefined;
|
|
37
|
+
readonly scroll?: import("./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 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
readonly expandedRowsChange?: Function | undefined;
|
|
43
43
|
readonly resizeColumn?: Function | undefined;
|
|
44
44
|
readonly dragChange?: Function | undefined;
|
|
45
|
-
}) | (() => import("./
|
|
45
|
+
}) | (() => import("./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("./
|
|
51
|
+
}) | (() => import("./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("./
|
|
56
|
+
}) | (() => import("./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("./
|
|
61
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
62
62
|
};
|
|
63
|
-
readonly tableProps: import("./
|
|
63
|
+
readonly tableProps: import("./config").MainTableProps;
|
|
64
64
|
readonly paginationProps: {
|
|
65
65
|
readonly onChange?: Function | undefined;
|
|
66
66
|
readonly current?: number | undefined;
|
|
@@ -84,13 +84,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
handleChangeDataSource: (dataSource: any[]) => void;
|
|
85
85
|
handleSwitchMenuChange: (v: ImenuSwitchType) => void;
|
|
86
86
|
HeaderSearch: import("vue").DefineComponent<{
|
|
87
|
-
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./
|
|
87
|
+
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config").IMenuSwitchOptions) | (() => import("./config").IMenuSwitchOptions) | ((new (...args: any[]) => import("./config").IMenuSwitchOptions) | (() => import("./config").IMenuSwitchOptions))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
88
88
|
}, {
|
|
89
89
|
props: import("@vue/shared").LooseRequired<{
|
|
90
|
-
readonly menuSwitchOptions: import("./
|
|
91
|
-
readonly
|
|
90
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
91
|
+
readonly onChange?: ((v: ImenuSwitchType) => any) | undefined;
|
|
92
92
|
} & {}>;
|
|
93
|
-
emits: (event: "
|
|
93
|
+
emits: (event: "change", v: ImenuSwitchType) => void;
|
|
94
94
|
bem: {
|
|
95
95
|
b: (blockSuffix?: string) => string;
|
|
96
96
|
e: (element?: string) => string;
|
|
@@ -168,13 +168,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
168
168
|
};
|
|
169
169
|
}>>, {}, {}>>;
|
|
170
170
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
171
|
-
|
|
171
|
+
change: (v: 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("./
|
|
173
|
+
readonly menuSwitchOptions: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./config").IMenuSwitchOptions) | (() => import("./config").IMenuSwitchOptions) | ((new (...args: any[]) => import("./config").IMenuSwitchOptions) | (() => import("./config").IMenuSwitchOptions))[], unknown, unknown, () => import("ll-plus/es/utils").Mutable<{}>, boolean>;
|
|
174
174
|
}>> & {
|
|
175
|
-
|
|
175
|
+
onChange?: ((v: ImenuSwitchType) => any) | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
readonly menuSwitchOptions: import("./
|
|
177
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
178
178
|
}, {}>;
|
|
179
179
|
MainTable: import("vue").DefineComponent<{
|
|
180
180
|
readonly settingKey: {
|
|
@@ -193,14 +193,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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("./
|
|
198
|
+
readonly type: import("vue").PropType<import("./config").ITableScroll>;
|
|
204
199
|
readonly required: false;
|
|
205
200
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
206
201
|
__epPropKey: true;
|
|
@@ -259,11 +254,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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("./table").ITableScroll | undefined;
|
|
261
|
+
readonly scroll?: import("./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 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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("./
|
|
399
|
+
readonly type: import("vue").PropType<import("./config").ITableScroll>;
|
|
410
400
|
readonly required: false;
|
|
411
401
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
412
402
|
__epPropKey: true;
|
|
@@ -466,6 +456,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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("./
|
|
546
|
-
} & {}) | (() => import("./
|
|
547
|
-
readonly menuSwitchOptions: import("./
|
|
548
|
-
} & {}) | (() => import("./
|
|
536
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
537
|
+
} & {}) | (() => import("./config").TableHeaderSearchProps) | ((new (...args: any[]) => {
|
|
538
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
539
|
+
} & {}) | (() => import("./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("./table").ITableScroll | undefined;
|
|
550
|
+
readonly scroll?: import("./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 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
564
555
|
readonly expandedRowsChange?: Function | undefined;
|
|
565
556
|
readonly resizeColumn?: Function | undefined;
|
|
566
557
|
readonly dragChange?: Function | undefined;
|
|
567
|
-
}) | (() => import("./
|
|
558
|
+
}) | (() => import("./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("./table").ITableScroll | undefined;
|
|
568
|
+
readonly scroll?: import("./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 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
582
573
|
readonly expandedRowsChange?: Function | undefined;
|
|
583
574
|
readonly resizeColumn?: Function | undefined;
|
|
584
575
|
readonly dragChange?: Function | undefined;
|
|
585
|
-
}) | (() => import("./
|
|
576
|
+
}) | (() => import("./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("./
|
|
582
|
+
}) | (() => import("./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("./
|
|
587
|
+
}) | (() => import("./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("./
|
|
591
|
+
readonly menuSwitchOptions: import("./config").IMenuSwitchOptions;
|
|
601
592
|
};
|
|
602
|
-
readonly tableProps: import("./
|
|
593
|
+
readonly tableProps: import("./config").MainTableProps;
|
|
603
594
|
readonly paginationProps: {
|
|
604
595
|
readonly onChange?: Function | undefined;
|
|
605
596
|
readonly current?: number | undefined;
|
|
@@ -3,11 +3,13 @@
|
|
|
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
|
-
var headerSearch = require('./components/header-search.vue.js');
|
|
8
|
+
var headerSearch$1 = require('./components/header-search.vue.js');
|
|
9
9
|
var mainTable = require('./components/main-table.vue.js');
|
|
10
10
|
var pagination = require('./components/pagination.vue.js');
|
|
11
|
+
var table = require('./config/table.js');
|
|
12
|
+
var headerSearch = require('./config/header-search.js');
|
|
11
13
|
var createNamespace = require('../../../utils/create-namespace.js');
|
|
12
14
|
|
|
13
15
|
"use strict";
|
|
@@ -22,7 +24,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
22
24
|
dataSource: [],
|
|
23
25
|
columns: []
|
|
24
26
|
});
|
|
25
|
-
const contentType = vue.ref(
|
|
27
|
+
const contentType = vue.ref(headerSearch.ImenuSwitchType.TABLE);
|
|
26
28
|
const bem = createNamespace.createNamespace("table");
|
|
27
29
|
const handleChangeDataSource = (dataSource) => {
|
|
28
30
|
newNaTableptions.value.dataSource = dataSource;
|
|
@@ -57,27 +59,31 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
57
59
|
},
|
|
58
60
|
[
|
|
59
61
|
vue.createCommentVNode(" \u5934\u90E8seach "),
|
|
60
|
-
vue.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
62
|
+
vue.createVNode(
|
|
63
|
+
headerSearch$1.default,
|
|
64
|
+
vue.mergeProps(_ctx.headerSearchProps, { onChange: handleSwitchMenuChange }),
|
|
65
|
+
{
|
|
66
|
+
header: vue.withCtx(() => [
|
|
67
|
+
vue.renderSlot(_ctx.$slots, "header")
|
|
68
|
+
]),
|
|
69
|
+
headerLeft: vue.withCtx(() => [
|
|
70
|
+
vue.renderSlot(_ctx.$slots, "headerLeft")
|
|
71
|
+
]),
|
|
72
|
+
headerMiddle: vue.withCtx(() => [
|
|
73
|
+
vue.renderSlot(_ctx.$slots, "headerMiddle")
|
|
74
|
+
]),
|
|
75
|
+
headerRight: vue.withCtx(() => [
|
|
76
|
+
vue.renderSlot(_ctx.$slots, "headerRight")
|
|
77
|
+
]),
|
|
78
|
+
default: vue.withCtx(() => [
|
|
79
|
+
vue.renderSlot(_ctx.$slots, "header")
|
|
80
|
+
]),
|
|
81
|
+
_: 3
|
|
82
|
+
/* FORWARDED */
|
|
83
|
+
},
|
|
84
|
+
16
|
|
85
|
+
/* FULL_PROPS */
|
|
86
|
+
),
|
|
81
87
|
vue.createCommentVNode(" slot-content table\u548Ccard\u9ED8\u8BA4table "),
|
|
82
88
|
vue.createElementVNode(
|
|
83
89
|
"div",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.vue2.js","sources":["../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"props.loading\">\n <div :class=\"bem.b()\">\n <!-- 头部seach -->\n <
|
|
1
|
+
{"version":3,"file":"table.vue2.js","sources":["../../../../../packages/components/table/src/table.vue"],"sourcesContent":["<template>\n <a-spin :spinning=\"props.loading\">\n <div :class=\"bem.b()\">\n <!-- 头部seach -->\n <header-search\n v-bind=\"headerSearchProps\"\n @change=\"handleSwitchMenuChange\"\n >\n <!-- header-slot -->\n <template #header>\n <slot name=\"header\" />\n </template>\n <slot name=\"header\"></slot>\n <!-- left-slot -->\n <template #headerLeft>\n <slot name=\"headerLeft\"></slot>\n </template>\n <!-- middle-slot -->\n <template #headerMiddle>\n <slot name=\"headerMiddle\"></slot>\n </template>\n <!-- right-slot -->\n <template #headerRight>\n <slot name=\"headerRight\"></slot>\n </template>\n </header-search>\n <!-- slot-content table和card默认table -->\n <div\n :class=\"[\n bem.m('fixed-height'),\n !newNaTableptions.dataSource!.length ? bem.m('empty') : ''\n ]\"\n >\n <slot :name=\"contentType\">\n <main-table\n v-bind=\"newNaTableptions\"\n @handle-change-data-source=\"handleChangeDataSource\"\n >\n <!-- tableHeaderCell-slot -->\n <template #tableHeaderCell=\"slots\">\n <slot name=\"tableHeaderCell\" v-bind=\"slots\"></slot>\n </template>\n <!-- tableBodyCell-slot -->\n <template #tableBodyCell=\"slots\">\n <slot name=\"tableBodyCell\" v-bind=\"slots\"></slot>\n </template>\n <!--tableOperate-slot -->\n <template #tableOperate=\"slots\">\n <slot name=\"tableOperate\" v-bind=\"slots\"></slot>\n </template>\n <!-- empty-slot -->\n <template #emptyText>\n <slot name=\"emptyText\"></slot>\n </template>\n </main-table>\n </slot>\n </div>\n <!-- 底部分页 -->\n <template\n v-if=\"\n newNaTableptions.dataSource!.length &&\n !newNaTableptions.hiddenPagination\n \"\n >\n <pagination v-bind=\"paginationProps\" />\n </template>\n </div>\n </a-spin>\n</template>\n<script lang=\"ts\" setup>\nimport { ref, watch, provide } from 'vue'\n\nimport { ImenuSwitchType } from './config'\nimport { createNamespace } from '@ll-plus/utils'\n\nimport HeaderSearch from './components/header-search.vue'\nimport MainTable from './components/main-table.vue'\nimport Pagination from './components/pagination.vue'\n\nimport { tableProps } from './config'\n\n// 1.defineOptions\ndefineOptions({ name: 'LlTable' })\n\n// 2.props\nconst props = defineProps(tableProps)\n// 3.ref\n// 表格数据\nconst originDataSource = ref()\nconst newNaTableptions = ref<any>({\n dataSource: [],\n columns: []\n})\n// 菜单切换/内容插槽\nconst contentType = ref(ImenuSwitchType.TABLE) // 菜单切换\nconst bem = createNamespace('table')\n\n// 4.methods\n// 拖拽完成后获取拖拽后的数据\nconst handleChangeDataSource = (dataSource: any[]) => {\n newNaTableptions.value.dataSource = dataSource\n}\n// 切换菜单内容\nconst handleSwitchMenuChange = (v: ImenuSwitchType) => {\n contentType.value = v\n}\n\n// 5.watch\nwatch(\n () => props.tableProps,\n (newValue: any) => {\n if (newValue) {\n newNaTableptions.value = { ...newValue }\n originDataSource.value = [...newValue.dataSource]\n }\n },\n {\n deep: true,\n immediate: true\n }\n)\n// 6.其他\nprovide('contentType', contentType)\n</script>\n"],"names":["ref","ImenuSwitchType","createNamespace","watch","provide"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqFA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAGd,IAAA,MAAM,mBAAmBA,OAAI,EAAA,CAAA;AAC7B,IAAA,MAAM,mBAAmBA,OAAS,CAAA;AAAA,MAChC,YAAY,EAAC;AAAA,MACb,SAAS,EAAC;AAAA,KACX,CAAA,CAAA;AAED,IAAM,MAAA,WAAA,GAAcA,OAAI,CAAAC,4BAAA,CAAgB,KAAK,CAAA,CAAA;AAC7C,IAAM,MAAA,GAAA,GAAMC,gCAAgB,OAAO,CAAA,CAAA;AAInC,IAAM,MAAA,sBAAA,GAAyB,CAAC,UAAsB,KAAA;AACpD,MAAA,gBAAA,CAAiB,MAAM,UAAa,GAAA,UAAA,CAAA;AAAA,KACtC,CAAA;AAEA,IAAM,MAAA,sBAAA,GAAyB,CAAC,CAAuB,KAAA;AACrD,MAAA,WAAA,CAAY,KAAQ,GAAA,CAAA,CAAA;AAAA,KACtB,CAAA;AAGA,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,UAAA;AAAA,MACZ,CAAC,QAAkB,KAAA;AACjB,QAAA,IAAI,QAAU,EAAA;AACZ,UAAiB,gBAAA,CAAA,KAAA,GAAQ,EAAE,GAAG,QAAS,EAAA,CAAA;AACvC,UAAA,gBAAA,CAAiB,KAAQ,GAAA,CAAC,GAAG,QAAA,CAAS,UAAU,CAAA,CAAA;AAAA,SAClD;AAAA,OACF;AAAA,MACA;AAAA,QACE,IAAM,EAAA,IAAA;AAAA,QACN,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAAC,WAAA,CAAQ,eAAe,WAAW,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import TimePicker from './src/time-picker.vue';
|
|
2
|
+
export declare const LlTimePicker: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
4
|
+
readonly format: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
|
|
5
|
+
readonly startTime: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
6
|
+
readonly endTime: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
7
|
+
}, {
|
|
8
|
+
props: import("@vue/shared").LooseRequired<{
|
|
9
|
+
readonly value: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined))[], unknown, unknown>;
|
|
10
|
+
readonly format: string;
|
|
11
|
+
readonly startTime: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown>;
|
|
12
|
+
readonly endTime: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown>;
|
|
13
|
+
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
15
|
+
} & {}>;
|
|
16
|
+
emit: (event: "change" | "update:value", ...args: any[]) => void;
|
|
17
|
+
attrs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
bem: {
|
|
21
|
+
b: (blockSuffix?: string) => string;
|
|
22
|
+
e: (element?: string) => string;
|
|
23
|
+
m: (modifier?: string) => string;
|
|
24
|
+
be: (blockSuffix?: string, element?: string) => string;
|
|
25
|
+
em: (element: string, modifier: string) => string;
|
|
26
|
+
bm: (blockSuffix: string, modifier: string) => string;
|
|
27
|
+
bem: (blockSuffix: string, element: string, modifier: string) => string;
|
|
28
|
+
is: (name?: string) => string;
|
|
29
|
+
};
|
|
30
|
+
innerValue: import("vue").Ref<string>;
|
|
31
|
+
getStartTimeArr: import("vue").ComputedRef<string[]>;
|
|
32
|
+
getEndTimeArr: import("vue").ComputedRef<string[]>;
|
|
33
|
+
getBindValue: import("vue").ComputedRef<{
|
|
34
|
+
format: string;
|
|
35
|
+
valueFormat: string;
|
|
36
|
+
showNow: unknown;
|
|
37
|
+
disabledTime: unknown;
|
|
38
|
+
}>;
|
|
39
|
+
setValue: (value: any) => void;
|
|
40
|
+
onChange: (date: any) => void;
|
|
41
|
+
padZero: (str: any) => any;
|
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:value")[], "change" | "update:value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
44
|
+
readonly format: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
|
|
45
|
+
readonly startTime: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
46
|
+
readonly endTime: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
47
|
+
}>> & {
|
|
48
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
readonly value: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined))[], unknown, unknown>;
|
|
52
|
+
readonly format: string;
|
|
53
|
+
readonly startTime: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown>;
|
|
54
|
+
readonly endTime: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown>;
|
|
55
|
+
}, {}>>;
|
|
56
|
+
export default LlTimePicker;
|
|
57
|
+
export * from './src/time-picker';
|
|
58
|
+
declare module 'vue' {
|
|
59
|
+
interface GlobalComponents {
|
|
60
|
+
LlTimePicker: typeof TimePicker;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
var timePicker$1 = require('./src/time-picker.vue.js');
|
|
7
|
+
var timePicker = require('./src/time-picker.js');
|
|
8
|
+
var withInstall = require('../../utils/with-install.js');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const LlTimePicker = withInstall.withInstall(timePicker$1.default);
|
|
12
|
+
|
|
13
|
+
exports.timePickerProps = timePicker.timePickerProps;
|
|
14
|
+
exports.LlTimePicker = LlTimePicker;
|
|
15
|
+
exports.default = LlTimePicker;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../packages/components/time-picker/index.ts"],"sourcesContent":["import { withInstall } from '@ll-plus/utils'\n\nimport TimePicker from './src/time-picker.vue'\n\nexport const LlTimePicker = withInstall(TimePicker)\nexport default LlTimePicker\nexport * from './src/time-picker'\n\ndeclare module 'vue' {\n export interface GlobalComponents {\n LlTimePicker: typeof TimePicker\n }\n}\n"],"names":["withInstall","TimePicker"],"mappings":";;;;;;;;;;AAIa,MAAA,YAAA,GAAeA,wBAAYC,oBAAU;;;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type TimePicker from './time-picker.vue';
|
|
3
|
+
export declare const timePickerProps: {
|
|
4
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => import("dayjs").Dayjs) | (() => import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
5
|
+
readonly format: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "HH:mm:ss", boolean>;
|
|
6
|
+
readonly startTime: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
7
|
+
readonly endTime: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined) | ((new (...args: any[]) => string | import("dayjs").Dayjs) | (() => string | import("dayjs").Dayjs | null | undefined))[], unknown, unknown, null, boolean>;
|
|
8
|
+
};
|
|
9
|
+
export type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
|
|
10
|
+
export type TimePickerInstance = InstanceType<typeof TimePicker>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
require('../../../utils/index.js');
|
|
4
|
+
var runtime = require('../../../utils/props/runtime.js');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const timePickerProps = runtime.buildProps({
|
|
8
|
+
value: {
|
|
9
|
+
type: runtime.definePropType(String),
|
|
10
|
+
default: null
|
|
11
|
+
},
|
|
12
|
+
format: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "HH:mm:ss"
|
|
15
|
+
},
|
|
16
|
+
startTime: {
|
|
17
|
+
type: runtime.definePropType(String),
|
|
18
|
+
default: null
|
|
19
|
+
},
|
|
20
|
+
endTime: {
|
|
21
|
+
type: runtime.definePropType(String),
|
|
22
|
+
default: null
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
exports.timePickerProps = timePickerProps;
|
|
27
|
+
//# sourceMappingURL=time-picker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker.js","sources":["../../../../../packages/components/time-picker/src/time-picker.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\nimport type { TimePickerProps as AntTimePickerProps } from 'ant-design-vue'\nimport type { ExtractPropTypes } from 'vue'\nimport type TimePicker from './time-picker.vue'\n\nexport const timePickerProps = buildProps({\n value: {\n type: definePropType<AntTimePickerProps['value']>(String),\n default: null\n },\n format: {\n type: String,\n default: 'HH:mm:ss'\n },\n startTime: {\n type: definePropType<AntTimePickerProps['value'] | string | null>(String),\n default: null\n },\n endTime: {\n type: definePropType<AntTimePickerProps['value'] | string | null>(String),\n default: null\n }\n} as const)\n// props\nexport type TimePickerProps = ExtractPropTypes<typeof timePickerProps>\n\n// instance\nexport type TimePickerInstance = InstanceType<typeof TimePicker>\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;AAKO,MAAM,kBAAkBA,kBAAW,CAAA;AAAA,EACxC,KAAO,EAAA;AAAA,IACL,IAAA,EAAMC,uBAA4C,MAAM,CAAA;AAAA,IACxD,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,UAAA;AAAA,GACX;AAAA,EACA,SAAW,EAAA;AAAA,IACT,IAAA,EAAMA,uBAA4D,MAAM,CAAA;AAAA,IACxE,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAA,EAAMA,uBAA4D,MAAM,CAAA;AAAA,IACxE,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU;;;;"}
|