orion-design 0.1.4 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +5 -0
- package/dist/Throne/index.d.ts +18 -0
- package/dist/Throne/index.js +20 -0
- package/dist/Throne/index.js.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/components/Button/Button.vue.d.ts +2 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/index.js +27 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Flex/Col.d.ts +4 -4
- package/dist/components/Flex/Item.d.ts +4 -4
- package/dist/components/Flex/Row.d.ts +4 -4
- package/dist/components/Flex/index.d.ts +4 -4
- package/dist/components/Flex/index.js +95 -127
- package/dist/components/Flex/index.js.map +1 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.d.ts +5 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js +2 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/components/Form/ButtonGroup/ButtonGroup.vue.d.ts +17 -0
- package/dist/components/Form/ButtonGroup/index.d.ts +1 -0
- package/dist/components/Form/ButtonGroup/index.js +2 -0
- package/dist/components/Form/ButtonGroup/index.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Form/Checkbox/Checkbox.js +2 -0
- package/dist/components/Form/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +3 -0
- package/dist/components/Form/Checkbox/index.d.ts +1 -0
- package/dist/components/Form/Checkbox/index.js +2 -0
- package/dist/components/Form/Checkbox/index.js.map +1 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.d.ts +14 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +2 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/Form/CheckboxGroup/CheckboxGroup.vue.d.ts +3 -0
- package/dist/components/Form/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/Form/CheckboxGroup/index.js +2 -0
- package/dist/components/Form/CheckboxGroup/index.js.map +1 -0
- package/dist/components/Form/DateInput/DateInput.d.ts +17 -0
- package/dist/components/Form/DateInput/DateInput.js +2 -0
- package/dist/components/Form/DateInput/DateInput.js.map +1 -0
- package/dist/components/Form/DateInput/DateInput.vue.d.ts +3 -0
- package/dist/components/Form/DateInput/index.d.ts +1 -0
- package/dist/components/Form/DateInput/index.js +2 -0
- package/dist/components/Form/DateInput/index.js.map +1 -0
- package/dist/components/Form/FileInput/FileInput.d.ts +10 -0
- package/dist/components/Form/FileInput/FileInput.js +2 -0
- package/dist/components/Form/FileInput/FileInput.js.map +1 -0
- package/dist/components/Form/FileInput/FileInput.vue.d.ts +451 -0
- package/dist/components/Form/FileInput/index.d.ts +1 -0
- package/dist/components/Form/FileInput/index.js +2 -0
- package/dist/components/Form/FileInput/index.js.map +1 -0
- package/dist/components/Form/Form.d.ts +21 -0
- package/dist/components/Form/Form.js +5 -0
- package/dist/components/Form/Form.js.map +1 -0
- package/dist/components/Form/Form.vue.d.ts +465 -0
- package/dist/components/Form/MultiSelect/MultiSelect.d.ts +15 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js +2 -0
- package/dist/components/Form/MultiSelect/MultiSelect.js.map +1 -0
- package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +3 -0
- package/dist/components/Form/MultiSelect/index.d.ts +1 -0
- package/dist/components/Form/MultiSelect/index.js +2 -0
- package/dist/components/Form/MultiSelect/index.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.d.ts +13 -0
- package/dist/components/Form/PasswordInput/PasswordInput.js +2 -0
- package/dist/components/Form/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +3 -0
- package/dist/components/Form/PasswordInput/index.d.ts +1 -0
- package/dist/components/Form/PasswordInput/index.js +2 -0
- package/dist/components/Form/PasswordInput/index.js.map +1 -0
- package/dist/components/Form/RadioGroup/RadioGroup.d.ts +14 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js +2 -0
- package/dist/components/Form/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +3 -0
- package/dist/components/Form/RadioGroup/index.d.ts +1 -0
- package/dist/components/Form/RadioGroup/index.js +2 -0
- package/dist/components/Form/RadioGroup/index.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.d.ts +17 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js +2 -0
- package/dist/components/Form/SingleSelect/SingleSelect.js.map +1 -0
- package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +3 -0
- package/dist/components/Form/SingleSelect/index.d.ts +1 -0
- package/dist/components/Form/SingleSelect/index.js +2 -0
- package/dist/components/Form/SingleSelect/index.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.d.ts +13 -0
- package/dist/components/Form/StringInput/StringInput.js +2 -0
- package/dist/components/Form/StringInput/StringInput.js.map +1 -0
- package/dist/components/Form/StringInput/StringInput.vue.d.ts +3 -0
- package/dist/components/Form/StringInput/index.d.ts +1 -0
- package/dist/components/Form/StringInput/index.js +2 -0
- package/dist/components/Form/StringInput/index.js.map +1 -0
- package/dist/components/Form/Switch/Switch.d.ts +10 -0
- package/dist/components/Form/Switch/Switch.js +2 -0
- package/dist/components/Form/Switch/Switch.js.map +1 -0
- package/dist/components/Form/Switch/Switch.vue.d.ts +3 -0
- package/dist/components/Form/Switch/index.d.ts +1 -0
- package/dist/components/Form/Switch/index.js +2 -0
- package/dist/components/Form/Switch/index.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.d.ts +14 -0
- package/dist/components/Form/Textarea/Textarea.js +2 -0
- package/dist/components/Form/Textarea/Textarea.js.map +1 -0
- package/dist/components/Form/Textarea/Textarea.vue.d.ts +3 -0
- package/dist/components/Form/Textarea/index.d.ts +1 -0
- package/dist/components/Form/Textarea/index.js +2 -0
- package/dist/components/Form/Textarea/index.js.map +1 -0
- package/dist/components/Form/hooks/useForm.d.ts +7 -0
- package/dist/components/Form/hooks/useForm.js +44 -0
- package/dist/components/Form/hooks/useForm.js.map +1 -0
- package/dist/components/Form/index.d.ts +301 -0
- package/dist/components/Form/index.js +660 -0
- package/dist/components/Form/index.js.map +1 -0
- package/dist/components/Form/utils/index.d.ts +8 -0
- package/dist/components/Form/utils/index.js +26 -0
- package/dist/components/Form/utils/index.js.map +1 -0
- package/dist/components/Modal/index.d.ts +1 -14
- package/dist/components/Modal/useModal.d.ts +1 -1
- package/dist/components/Modal/useModal.js +7 -7
- package/dist/components/Modal/useModal.js.map +1 -0
- package/dist/components/Pagetable/Pagetable.d.ts +91 -0
- package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +24 -0
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +78 -0
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +101 -0
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +78 -0
- package/dist/components/Pagetable/columns/PagetableColumnIndex.d.ts +5 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +114 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +109 -0
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +75 -0
- package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +35 -0
- package/dist/components/Pagetable/hooks/useColumns.d.ts +1 -0
- package/dist/components/Pagetable/hooks/useColumns.js +96 -0
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -0
- package/dist/components/Pagetable/index.d.ts +85 -0
- package/dist/components/Pagetable/index.js +521 -0
- package/dist/components/Pagetable/index.js.map +1 -0
- package/dist/components/Pagetable/interface.d.ts +10 -0
- package/dist/components/Pagetable/interface.js +2 -0
- package/dist/components/Pagetable/interface.js.map +1 -0
- package/dist/components/Pagetable/utils/index.d.ts +15 -0
- package/dist/components/Pagetable/utils/index.js +169 -0
- package/dist/components/Pagetable/utils/index.js.map +1 -0
- package/dist/components/Space/index.d.ts +12 -12
- package/dist/components/_util/arrays.d.ts +5 -0
- package/dist/components/_util/arrays.js +8 -0
- package/dist/components/_util/arrays.js.map +1 -0
- package/dist/components/_util/browser.d.ts +3 -0
- package/dist/components/_util/browser.js +9 -0
- package/dist/components/_util/browser.js.map +1 -0
- package/dist/components/_util/classNames.js +20 -27
- package/dist/components/_util/classNames.js.map +1 -0
- package/dist/components/_util/dom/aria.d.ts +30 -0
- package/dist/components/_util/dom/aria.js +46 -0
- package/dist/components/_util/dom/aria.js.map +1 -0
- package/dist/components/_util/dom/element.d.ts +3 -0
- package/dist/components/_util/dom/element.js +18 -0
- package/dist/components/_util/dom/element.js.map +1 -0
- package/dist/components/_util/dom/event.d.ts +6 -0
- package/dist/components/_util/dom/event.js +10 -0
- package/dist/components/_util/dom/event.js.map +1 -0
- package/dist/components/_util/dom/index.d.ts +6 -0
- package/dist/components/_util/dom/index.js +39 -0
- package/dist/components/_util/dom/index.js.map +1 -0
- package/dist/components/_util/dom/position.d.ts +7 -0
- package/dist/components/_util/dom/position.js +30 -0
- package/dist/components/_util/dom/position.js.map +1 -0
- package/dist/components/_util/dom/scroll.d.ts +11 -0
- package/dist/components/_util/dom/scroll.js +78 -0
- package/dist/components/_util/dom/scroll.js.map +1 -0
- package/dist/components/_util/dom/style.d.ts +9 -0
- package/dist/components/_util/dom/style.js +58 -0
- package/dist/components/_util/dom/style.js.map +1 -0
- package/dist/components/_util/easings.d.ts +1 -0
- package/dist/components/_util/easings.js +8 -0
- package/dist/components/_util/easings.js.map +1 -0
- package/dist/components/_util/error.d.ts +3 -0
- package/dist/components/_util/error.js +22 -0
- package/dist/components/_util/error.js.map +1 -0
- package/dist/components/_util/functions.d.ts +1 -0
- package/dist/components/_util/functions.js +6 -0
- package/dist/components/_util/functions.js.map +1 -0
- package/dist/components/_util/i18n.d.ts +1 -0
- package/dist/components/_util/i18n.js +5 -0
- package/dist/components/_util/i18n.js.map +1 -0
- package/dist/components/_util/index.d.ts +15 -0
- package/dist/components/_util/index.js +140 -0
- package/dist/components/_util/index.js.map +1 -0
- package/dist/components/_util/isValid.js +4 -4
- package/dist/components/_util/isValid.js.map +1 -0
- package/dist/components/_util/objects.d.ts +8 -0
- package/dist/components/_util/objects.js +17 -0
- package/dist/components/_util/objects.js.map +1 -0
- package/dist/components/_util/props-util/index.d.ts +4 -4
- package/dist/components/_util/props-util/index.js +23 -50
- package/dist/components/_util/props-util/index.js.map +1 -0
- package/dist/components/_util/props-util/initDefaultProps.d.ts +2 -2
- package/dist/components/_util/props-util/initDefaultProps.js +13 -24
- package/dist/components/_util/props-util/initDefaultProps.js.map +1 -0
- package/dist/components/_util/raf.d.ts +2 -0
- package/dist/components/_util/raf.js +7 -0
- package/dist/components/_util/raf.js.map +1 -0
- package/dist/components/_util/rand.d.ts +12 -0
- package/dist/components/_util/rand.js +6 -0
- package/dist/components/_util/rand.js.map +1 -0
- package/dist/components/_util/strings.d.ts +6 -0
- package/dist/components/_util/strings.js +11 -0
- package/dist/components/_util/strings.js.map +1 -0
- package/dist/components/_util/throttleByRaf.d.ts +4 -0
- package/dist/components/_util/throttleByRaf.js +16 -0
- package/dist/components/_util/throttleByRaf.js.map +1 -0
- package/dist/components/_util/type.d.ts +5 -1
- package/dist/components/_util/type.js +52 -65
- package/dist/components/_util/type.js.map +1 -0
- package/dist/components/_util/types.d.ts +10 -0
- package/dist/components/_util/types.js +25 -0
- package/dist/components/_util/types.js.map +1 -0
- package/dist/components/_util/typescript.d.ts +12 -0
- package/dist/components/_util/typescript.js +5 -0
- package/dist/components/_util/typescript.js.map +1 -0
- package/dist/components/_util/util.d.ts +1 -1
- package/dist/components/_util/util.js +46 -74
- package/dist/components/_util/util.js.map +1 -0
- package/dist/components/_util/vue/global-node.d.ts +3 -0
- package/dist/components/_util/vue/global-node.js +21 -0
- package/dist/components/_util/vue/global-node.js.map +1 -0
- package/dist/components/_util/vue/icon.d.ts +23 -0
- package/dist/components/_util/vue/icon.js +154 -0
- package/dist/components/_util/vue/icon.js.map +1 -0
- package/dist/components/_util/vue/index.d.ts +9 -0
- package/dist/components/_util/vue/index.js +44 -0
- package/dist/components/_util/vue/index.js.map +1 -0
- package/dist/components/_util/vue/install.d.ts +6 -0
- package/dist/components/_util/vue/install.js +21 -0
- package/dist/components/_util/vue/install.js.map +1 -0
- package/dist/components/_util/vue/props/index.d.ts +3 -0
- package/dist/components/_util/vue/props/index.js +9 -0
- package/dist/components/_util/vue/props/index.js.map +1 -0
- package/dist/components/_util/vue/props/runtime.d.ts +29 -0
- package/dist/components/_util/vue/props/runtime.js +37 -0
- package/dist/components/_util/vue/props/runtime.js.map +1 -0
- package/dist/components/_util/vue/props/types.d.ts +120 -0
- package/dist/components/_util/vue/props/types.js +2 -0
- package/dist/components/_util/vue/props/types.js.map +1 -0
- package/dist/components/_util/vue/props/util.d.ts +8 -0
- package/dist/components/_util/vue/props/util.js +2 -0
- package/dist/components/_util/vue/props/util.js.map +1 -0
- package/dist/components/_util/vue/refs.d.ts +3 -0
- package/dist/components/_util/vue/refs.js +12 -0
- package/dist/components/_util/vue/refs.js.map +1 -0
- package/dist/components/_util/vue/size.d.ts +2 -0
- package/dist/components/_util/vue/size.js +6 -0
- package/dist/components/_util/vue/size.js.map +1 -0
- package/dist/components/_util/vue/typescript.d.ts +5 -0
- package/dist/components/_util/vue/typescript.js +2 -0
- package/dist/components/_util/vue/typescript.js.map +1 -0
- package/dist/components/_util/vue/validator.d.ts +3 -0
- package/dist/components/_util/vue/validator.js +7 -0
- package/dist/components/_util/vue/validator.js.map +1 -0
- package/dist/components/_util/vue/vnode.d.ts +50 -0
- package/dist/components/_util/vue/vnode.js +68 -0
- package/dist/components/_util/vue/vnode.js.map +1 -0
- package/dist/components/_util/vue-types/index.d.ts +3 -3
- package/dist/components/_util/vue-types/index.js +275 -417
- package/dist/components/_util/vue-types/index.js.map +1 -0
- package/dist/components/components.d.ts +4 -0
- package/dist/components/components.js +19 -12
- package/dist/components/components.js.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +26 -24
- package/dist/components/index.js.map +1 -0
- package/dist/components-CutWiB7Q.js +68 -0
- package/dist/components-CutWiB7Q.js.map +1 -0
- package/dist/error/OrionError.js +7 -12
- package/dist/error/OrionError.js.map +1 -0
- package/dist/functions-DzLqXvGt.js +33 -0
- package/dist/functions-DzLqXvGt.js.map +1 -0
- package/dist/index-BbsXWo7C.js +44 -0
- package/dist/index-BbsXWo7C.js.map +1 -0
- package/dist/index-C8JNJPWW.js +8 -0
- package/dist/index-C8JNJPWW.js.map +1 -0
- package/dist/index.css +1 -44
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -14
- package/dist/index.js.map +1 -0
- package/dist/print/LodopFuncs.js +48 -111
- package/dist/print/LodopFuncs.js.map +1 -0
- package/dist/print/index.d.ts +2 -2
- package/dist/print/index.js +111 -220
- package/dist/print/index.js.map +1 -0
- package/dist/request/ErrorHandlerChain.js +17 -15
- package/dist/request/ErrorHandlerChain.js.map +1 -0
- package/dist/request/RequestFilterChain.d.ts +1 -1
- package/dist/request/RequestFilterChain.js +16 -14
- package/dist/request/RequestFilterChain.js.map +1 -0
- package/dist/request/ResponseParserChain.d.ts +1 -1
- package/dist/request/ResponseParserChain.js +17 -15
- package/dist/request/ResponseParserChain.js.map +1 -0
- package/dist/request/disivion/DateSerializer.js +25 -46
- package/dist/request/disivion/DateSerializer.js.map +1 -0
- package/dist/request/disivion/DivisionErrorHandler.d.ts +1 -1
- package/dist/request/disivion/DivisionErrorHandler.js +30 -52
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -0
- package/dist/request/disivion/DivisionResponseParser.d.ts +2 -2
- package/dist/request/disivion/DivisionResponseParser.js +13 -25
- package/dist/request/disivion/DivisionResponseParser.js.map +1 -0
- package/dist/request/disivion/index.d.ts +3 -3
- package/dist/request/disivion/index.js +230 -480
- package/dist/request/disivion/index.js.map +1 -0
- package/dist/request/error/BizExceptionResponseError.d.ts +2 -2
- package/dist/request/error/BizExceptionResponseError.js +8 -15
- package/dist/request/error/BizExceptionResponseError.js.map +1 -0
- package/dist/request/error/ExceptionResponseError.d.ts +2 -2
- package/dist/request/error/ExceptionResponseError.js +8 -15
- package/dist/request/error/ExceptionResponseError.js.map +1 -0
- package/dist/request/error/ResponseError.d.ts +1 -1
- package/dist/request/error/ResponseError.js +7 -14
- package/dist/request/error/ResponseError.js.map +1 -0
- package/dist/request/error/SessionExceptionResponseError.d.ts +2 -2
- package/dist/request/error/SessionExceptionResponseError.js +8 -15
- package/dist/request/error/SessionExceptionResponseError.js.map +1 -0
- package/dist/request/index.js +11 -17
- package/dist/request/index.js.map +1 -0
- package/dist/style/index.d.ts +0 -3
- package/dist/style/index.js +1 -0
- package/dist/style/index.js.map +1 -0
- package/dist/utils/DateUtil.js +36 -50
- package/dist/utils/DateUtil.js.map +1 -0
- package/dist/utils/NumberUtil.js +9 -8
- package/dist/utils/NumberUtil.js.map +1 -0
- package/dist/utils/cloneDeep.js +5 -1
- package/dist/utils/cloneDeep.js.map +1 -0
- package/dist/utils/delay.js +6 -4
- package/dist/utils/delay.js.map +1 -0
- package/dist/utils/functions.d.ts +1 -0
- package/dist/utils/functions.js +6 -0
- package/dist/utils/functions.js.map +1 -0
- package/dist/utils/index.js +15 -9
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/md5.js +120 -245
- package/dist/utils/md5.js.map +1 -0
- package/dist/utils/uuid.js +28 -58
- package/dist/utils/uuid.js.map +1 -0
- package/dist/version/index.d.ts +1 -1
- package/dist/version/index.js +5 -6
- package/dist/version/index.js.map +1 -0
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +5 -3
- package/dist/version/version.js.map +1 -0
- package/dist/vite.svg +1 -0
- package/global.d.ts +6 -0
- package/package.json +53 -63
- package/dist/components-BTX5S_6V.js +0 -128
@@ -0,0 +1,521 @@
|
|
1
|
+
import "lodash-es";
|
2
|
+
import { defineComponent as w, ref as W, computed as X, createVNode as o, createTextVNode as Y, isVNode as E } from "vue";
|
3
|
+
import { withInstall as Z } from "../_util/vue/install.js";
|
4
|
+
import { ElTable as ee, ElPagination as te, ElTableColumn as S, ElButton as ne } from "element-plus";
|
5
|
+
import oe from "../_util/classNames.js";
|
6
|
+
import { arrayType as le, objectType as re, booleanType as T, stringType as n, someType as i, numberType as ae } from "../_util/type.js";
|
7
|
+
import { number2string as se, formatDate as R, getSingleCodeContent as M, getMultiCodeContent as I } from "./utils/index.js";
|
8
|
+
import ie from "dayjs";
|
9
|
+
import { S as ue } from "../../index-BbsXWo7C.js";
|
10
|
+
import pe from "../../error/OrionError.js";
|
11
|
+
import de from "./hooks/useColumns.js";
|
12
|
+
import k from "../../Throne/index.js";
|
13
|
+
function ge(l) {
|
14
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !E(l);
|
15
|
+
}
|
16
|
+
const ce = () => ({
|
17
|
+
data: le(),
|
18
|
+
pagination: re(),
|
19
|
+
showRowNumber: T(!0),
|
20
|
+
selectionMode: T(!1)
|
21
|
+
}), me = /* @__PURE__ */ w({
|
22
|
+
name: "OPagetable",
|
23
|
+
inheritAttrs: !1,
|
24
|
+
props: ce(),
|
25
|
+
emits: ["selectionChange"],
|
26
|
+
setup(l, {
|
27
|
+
slots: g,
|
28
|
+
attrs: b,
|
29
|
+
emit: m,
|
30
|
+
expose: C
|
31
|
+
}) {
|
32
|
+
const x = W(), B = X(() => ({})), v = de(g);
|
33
|
+
return C({
|
34
|
+
clearSelection: () => {
|
35
|
+
x.value.clearSelection();
|
36
|
+
},
|
37
|
+
getSelectionRows: () => x.value.getSelectionRows(),
|
38
|
+
toggleRowSelection: (...D) => x.value.toggleRowSelection(...D),
|
39
|
+
toggleAllSelection: () => x.value.toggleAllSelection()
|
40
|
+
}), () => {
|
41
|
+
const {
|
42
|
+
data: D
|
43
|
+
} = l, {
|
44
|
+
selectionMode: V = !1
|
45
|
+
} = l, {
|
46
|
+
pagination: O
|
47
|
+
} = l, {
|
48
|
+
showRowNumber: z = !0
|
49
|
+
} = l, $ = oe("orion-pagetbale"), F = () => o(S, {
|
50
|
+
type: "index",
|
51
|
+
label: "No",
|
52
|
+
width: 56,
|
53
|
+
showOverflowTooltip: !0,
|
54
|
+
index: (e) => (O.currentPage - 1) * O.pageSize + e + 1
|
55
|
+
}, null), _ = () => o(S, {
|
56
|
+
type: "selection",
|
57
|
+
width: 40
|
58
|
+
}, null), U = (e) => {
|
59
|
+
const {
|
60
|
+
name: t,
|
61
|
+
head: u,
|
62
|
+
headAlign: p,
|
63
|
+
width: c,
|
64
|
+
fixed: h
|
65
|
+
} = e;
|
66
|
+
return o(S, {
|
67
|
+
label: u,
|
68
|
+
headerAlign: p,
|
69
|
+
prop: t,
|
70
|
+
width: c,
|
71
|
+
fixed: h,
|
72
|
+
showOverflowTooltip: !0
|
73
|
+
}, null);
|
74
|
+
}, q = (e) => {
|
75
|
+
const {
|
76
|
+
name: t,
|
77
|
+
head: u,
|
78
|
+
headAlign: p,
|
79
|
+
width: c,
|
80
|
+
fixed: h
|
81
|
+
} = e, {
|
82
|
+
thousandsSeparator: r = !0,
|
83
|
+
precision: d = -1,
|
84
|
+
percentage: a = !1
|
85
|
+
} = e;
|
86
|
+
return o(S, {
|
87
|
+
label: u,
|
88
|
+
headerAlign: p,
|
89
|
+
align: "right",
|
90
|
+
prop: t,
|
91
|
+
width: c,
|
92
|
+
fixed: h,
|
93
|
+
showOverflowTooltip: !0
|
94
|
+
}, {
|
95
|
+
default: (s) => {
|
96
|
+
const {
|
97
|
+
row: f,
|
98
|
+
column: A
|
99
|
+
} = s;
|
100
|
+
return o("span", {
|
101
|
+
class: "cell-numbercolumn"
|
102
|
+
}, [se(f[A.property], r, d, a)]);
|
103
|
+
}
|
104
|
+
});
|
105
|
+
}, G = (e) => {
|
106
|
+
const {
|
107
|
+
name: t,
|
108
|
+
head: u,
|
109
|
+
headAlign: p,
|
110
|
+
width: c,
|
111
|
+
fixed: h,
|
112
|
+
sourceFormat: r,
|
113
|
+
format: d
|
114
|
+
} = e;
|
115
|
+
return o(S, {
|
116
|
+
label: u,
|
117
|
+
headerAlign: p,
|
118
|
+
prop: t,
|
119
|
+
width: c,
|
120
|
+
fixed: h,
|
121
|
+
showOverflowTooltip: !0
|
122
|
+
}, {
|
123
|
+
default: (a) => {
|
124
|
+
const {
|
125
|
+
row: s,
|
126
|
+
column: f
|
127
|
+
} = a;
|
128
|
+
return r && d ? o("div", null, [s[f.property] instanceof Date || ie.isDayjs(s[f.property]) ? R(s[f.property], d) : R(s[f.property], r, d)]) : o("div", null, [s[f.property]]);
|
129
|
+
}
|
130
|
+
});
|
131
|
+
}, H = (e) => {
|
132
|
+
const {
|
133
|
+
name: t,
|
134
|
+
head: u,
|
135
|
+
headAlign: p,
|
136
|
+
width: c,
|
137
|
+
fixed: h
|
138
|
+
} = e, {
|
139
|
+
code: r
|
140
|
+
} = e;
|
141
|
+
return o(S, {
|
142
|
+
label: u,
|
143
|
+
headerAlign: p,
|
144
|
+
prop: t,
|
145
|
+
width: c,
|
146
|
+
fixed: h,
|
147
|
+
showOverflowTooltip: !0
|
148
|
+
}, {
|
149
|
+
default: (d) => {
|
150
|
+
const {
|
151
|
+
row: a,
|
152
|
+
column: s
|
153
|
+
} = d, f = a[s.property];
|
154
|
+
let A, y, P;
|
155
|
+
return r ? typeof r == "string" ? (A = r, y = k.getCode(A), P = M(y.value, f)) : (y = r, P = M(y, f)) : P = null, o("span", {
|
156
|
+
class: "cell-singleselect"
|
157
|
+
}, [P]);
|
158
|
+
}
|
159
|
+
});
|
160
|
+
}, J = (e) => {
|
161
|
+
const {
|
162
|
+
name: t,
|
163
|
+
head: u,
|
164
|
+
headAlign: p,
|
165
|
+
width: c,
|
166
|
+
fixed: h
|
167
|
+
} = e, {
|
168
|
+
code: r
|
169
|
+
} = e;
|
170
|
+
return o(S, {
|
171
|
+
label: u,
|
172
|
+
headerAlign: p,
|
173
|
+
prop: t,
|
174
|
+
width: c,
|
175
|
+
fixed: h,
|
176
|
+
showOverflowTooltip: !0
|
177
|
+
}, {
|
178
|
+
default: (d) => {
|
179
|
+
const {
|
180
|
+
row: a,
|
181
|
+
column: s
|
182
|
+
} = d, f = a[s.property];
|
183
|
+
let A, y, P;
|
184
|
+
return r ? typeof r == "string" ? (A = r, y = k.getCode(A), P = I(y.value, f)) : (y = r, P = I(y, f)) : P = null, o("span", {
|
185
|
+
class: "cell-multiselect"
|
186
|
+
}, [P]);
|
187
|
+
}
|
188
|
+
});
|
189
|
+
}, K = (e) => {
|
190
|
+
const {
|
191
|
+
name: t,
|
192
|
+
head: u,
|
193
|
+
headAlign: p,
|
194
|
+
width: c,
|
195
|
+
fixed: h
|
196
|
+
} = e;
|
197
|
+
return o(S, {
|
198
|
+
label: u,
|
199
|
+
headerAlign: p,
|
200
|
+
prop: t,
|
201
|
+
width: c,
|
202
|
+
fixed: h
|
203
|
+
}, {
|
204
|
+
default: (r) => {
|
205
|
+
var a, s;
|
206
|
+
const d = (s = (a = e.children) == null ? void 0 : a.default) == null ? void 0 : s.call(a, {
|
207
|
+
rowData: r.row,
|
208
|
+
column: e,
|
209
|
+
rowIndex: r.$index
|
210
|
+
});
|
211
|
+
return o("div", {
|
212
|
+
class: "cell-buttongroup"
|
213
|
+
}, [o(ue, null, ge(d) ? d : {
|
214
|
+
default: () => [d]
|
215
|
+
})]);
|
216
|
+
}
|
217
|
+
});
|
218
|
+
}, L = (e) => {
|
219
|
+
const {
|
220
|
+
head: t,
|
221
|
+
headAlign: u
|
222
|
+
} = e, {
|
223
|
+
children: p
|
224
|
+
} = e;
|
225
|
+
return o(S, {
|
226
|
+
label: t,
|
227
|
+
headerAlign: u
|
228
|
+
}, {
|
229
|
+
default: (c) => j(p)
|
230
|
+
});
|
231
|
+
}, Q = (e) => {
|
232
|
+
const {
|
233
|
+
name: t,
|
234
|
+
head: u,
|
235
|
+
headAlign: p,
|
236
|
+
width: c,
|
237
|
+
fixed: h
|
238
|
+
} = e;
|
239
|
+
return o(S, {
|
240
|
+
label: u,
|
241
|
+
headerAlign: p,
|
242
|
+
prop: t,
|
243
|
+
width: c,
|
244
|
+
fixed: h
|
245
|
+
}, {
|
246
|
+
default: (r) => {
|
247
|
+
var a, s;
|
248
|
+
const d = (s = (a = e.children) == null ? void 0 : a.default) == null ? void 0 : s.call(a, {
|
249
|
+
rowData: r.row,
|
250
|
+
column: e,
|
251
|
+
rowIndex: r.$index
|
252
|
+
});
|
253
|
+
return o("div", {
|
254
|
+
class: "cell-diy"
|
255
|
+
}, [d, Y(" ")]);
|
256
|
+
}
|
257
|
+
});
|
258
|
+
}, j = (e) => e == null ? void 0 : e.map((t) => {
|
259
|
+
if (t.type === "OPagetableColumnString")
|
260
|
+
return U(t);
|
261
|
+
if (t.type === "OPagetableColumnNumber")
|
262
|
+
return q(t);
|
263
|
+
if (t.type === "OPagetableColumnDate")
|
264
|
+
return G(t);
|
265
|
+
if (t.type === "OPagetableColumnSingleselect")
|
266
|
+
return H(t);
|
267
|
+
if (t.type === "OPagetableColumnMultiselect")
|
268
|
+
return J(t);
|
269
|
+
if (t.type === "OPagetableColumnButtongroup")
|
270
|
+
return K(t);
|
271
|
+
if (t.type === "OPagetableColumngroup")
|
272
|
+
return L(t);
|
273
|
+
if (t.type === "OPagetableColumnDiy")
|
274
|
+
return Q(t);
|
275
|
+
throw new pe(`OPagetable不能正确渲染'${t.type.name}'子组件。`);
|
276
|
+
});
|
277
|
+
return o("div", {
|
278
|
+
class: [$, b.class],
|
279
|
+
style: [B.value, b.style]
|
280
|
+
}, [o("div", {
|
281
|
+
class: "pagetable-wrapper"
|
282
|
+
}, [o(ee, {
|
283
|
+
ref: x,
|
284
|
+
data: D,
|
285
|
+
height: "100%",
|
286
|
+
style: {
|
287
|
+
width: "100%"
|
288
|
+
},
|
289
|
+
"onSelection-change": (e) => m("selectionChange", e)
|
290
|
+
}, {
|
291
|
+
default: () => [z && F(), V && _(), j(v.value)]
|
292
|
+
})]), o("div", {
|
293
|
+
class: "pagination-wrapper"
|
294
|
+
}, [o(te, {
|
295
|
+
currentPage: O.currentPage,
|
296
|
+
"onUpdate:current-page": (e) => {
|
297
|
+
m("update:pagination", {
|
298
|
+
...O,
|
299
|
+
currentPage: e
|
300
|
+
});
|
301
|
+
},
|
302
|
+
pageSize: O.pageSize,
|
303
|
+
total: O.total,
|
304
|
+
layout: "total, ->, prev, pager, next, jumper"
|
305
|
+
}, null)])]);
|
306
|
+
};
|
307
|
+
}
|
308
|
+
}), he = () => ({}), fe = /* @__PURE__ */ w({
|
309
|
+
name: "OPagetableColumnIndex",
|
310
|
+
inheritAttrs: !1,
|
311
|
+
props: he(),
|
312
|
+
setup(l, {
|
313
|
+
slots: g,
|
314
|
+
attrs: b,
|
315
|
+
emit: m,
|
316
|
+
expose: C
|
317
|
+
}) {
|
318
|
+
return () => null;
|
319
|
+
}
|
320
|
+
}), be = () => ({
|
321
|
+
head: n(),
|
322
|
+
headAlign: n(),
|
323
|
+
name: n(),
|
324
|
+
width: i([Boolean, String]),
|
325
|
+
fixed: i([Boolean, String])
|
326
|
+
}), Ce = /* @__PURE__ */ w({
|
327
|
+
name: "OPagetableColumnString",
|
328
|
+
inheritAttrs: !1,
|
329
|
+
props: be(),
|
330
|
+
setup(l, {
|
331
|
+
slots: g,
|
332
|
+
attrs: b,
|
333
|
+
emit: m,
|
334
|
+
expose: C
|
335
|
+
}) {
|
336
|
+
return () => null;
|
337
|
+
}
|
338
|
+
}), we = () => ({
|
339
|
+
head: n(),
|
340
|
+
headAlign: n(),
|
341
|
+
name: n(),
|
342
|
+
width: i([Boolean, String]),
|
343
|
+
fixed: i([Boolean, String]),
|
344
|
+
thousandsSeparator: T(!0),
|
345
|
+
precision: ae(-1),
|
346
|
+
percentage: T(!1)
|
347
|
+
}), Se = /* @__PURE__ */ w({
|
348
|
+
name: "OPagetableColumnNumber",
|
349
|
+
inheritAttrs: !1,
|
350
|
+
props: we(),
|
351
|
+
setup(l, {
|
352
|
+
slots: g,
|
353
|
+
attrs: b,
|
354
|
+
emit: m,
|
355
|
+
expose: C
|
356
|
+
}) {
|
357
|
+
return () => null;
|
358
|
+
}
|
359
|
+
}), ye = () => ({
|
360
|
+
head: n(),
|
361
|
+
headAlign: n(),
|
362
|
+
name: n(),
|
363
|
+
width: i([Boolean, String]),
|
364
|
+
fixed: i([Boolean, String]),
|
365
|
+
// Date
|
366
|
+
format: n(),
|
367
|
+
sourceFormat: n()
|
368
|
+
}), Pe = /* @__PURE__ */ w({
|
369
|
+
name: "OPagetableColumnDate",
|
370
|
+
inheritAttrs: !1,
|
371
|
+
props: ye(),
|
372
|
+
setup(l, {
|
373
|
+
slots: g,
|
374
|
+
attrs: b,
|
375
|
+
emit: m,
|
376
|
+
expose: C
|
377
|
+
}) {
|
378
|
+
return () => null;
|
379
|
+
}
|
380
|
+
}), xe = () => ({
|
381
|
+
head: n(),
|
382
|
+
headAlign: n(),
|
383
|
+
name: n(),
|
384
|
+
width: i([Boolean, String]),
|
385
|
+
fixed: i([Boolean, String]),
|
386
|
+
code: i([String, Array])
|
387
|
+
}), Ae = /* @__PURE__ */ w({
|
388
|
+
name: "OPagetableColumnSingleselect",
|
389
|
+
inheritAttrs: !1,
|
390
|
+
props: xe(),
|
391
|
+
setup(l, {
|
392
|
+
slots: g,
|
393
|
+
attrs: b,
|
394
|
+
emit: m,
|
395
|
+
expose: C
|
396
|
+
}) {
|
397
|
+
return () => null;
|
398
|
+
}
|
399
|
+
}), Oe = () => ({
|
400
|
+
head: n(),
|
401
|
+
headAlign: n(),
|
402
|
+
name: n(),
|
403
|
+
width: i([Boolean, String]),
|
404
|
+
fixed: i([Boolean, String]),
|
405
|
+
code: i([String, Array])
|
406
|
+
}), Be = /* @__PURE__ */ w({
|
407
|
+
name: "OPagetableColumnMultiselect",
|
408
|
+
inheritAttrs: !1,
|
409
|
+
props: Oe(),
|
410
|
+
setup(l, {
|
411
|
+
slots: g,
|
412
|
+
attrs: b,
|
413
|
+
emit: m,
|
414
|
+
expose: C
|
415
|
+
}) {
|
416
|
+
return () => null;
|
417
|
+
}
|
418
|
+
}), ve = () => ({
|
419
|
+
head: n(),
|
420
|
+
headAlign: n(),
|
421
|
+
name: n(),
|
422
|
+
width: i([Boolean, String]),
|
423
|
+
fixed: i([Boolean, String])
|
424
|
+
}), De = /* @__PURE__ */ w({
|
425
|
+
name: "OPagetableColumnButtongroup",
|
426
|
+
inheritAttrs: !1,
|
427
|
+
props: ve(),
|
428
|
+
slots: Object,
|
429
|
+
setup(l, {
|
430
|
+
slots: g,
|
431
|
+
attrs: b,
|
432
|
+
emit: m,
|
433
|
+
expose: C
|
434
|
+
}) {
|
435
|
+
return () => null;
|
436
|
+
}
|
437
|
+
});
|
438
|
+
function Te(l) {
|
439
|
+
return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !E(l);
|
440
|
+
}
|
441
|
+
const Ne = () => ({
|
442
|
+
type: n("primary")
|
443
|
+
}), je = /* @__PURE__ */ w({
|
444
|
+
name: "OPagetableCellButton",
|
445
|
+
inheritAttrs: !1,
|
446
|
+
props: Ne(),
|
447
|
+
emits: ["click"],
|
448
|
+
setup(l, {
|
449
|
+
slots: g,
|
450
|
+
attrs: b,
|
451
|
+
emit: m,
|
452
|
+
expose: C
|
453
|
+
}) {
|
454
|
+
const x = (B) => {
|
455
|
+
m("click", B);
|
456
|
+
};
|
457
|
+
return () => {
|
458
|
+
var N;
|
459
|
+
const {
|
460
|
+
type: B = "primary"
|
461
|
+
} = l, v = (N = g.default) == null ? void 0 : N.call(g);
|
462
|
+
return o(ne, {
|
463
|
+
link: !0,
|
464
|
+
type: B,
|
465
|
+
size: "small",
|
466
|
+
onClick: x
|
467
|
+
}, Te(v) ? v : {
|
468
|
+
default: () => [v]
|
469
|
+
});
|
470
|
+
};
|
471
|
+
}
|
472
|
+
}), Re = () => ({
|
473
|
+
head: n(),
|
474
|
+
headAlign: n()
|
475
|
+
}), Me = /* @__PURE__ */ w({
|
476
|
+
name: "OPagetableColumngroup",
|
477
|
+
inheritAttrs: !1,
|
478
|
+
props: Re(),
|
479
|
+
setup(l, {
|
480
|
+
slots: g,
|
481
|
+
attrs: b,
|
482
|
+
emit: m,
|
483
|
+
expose: C
|
484
|
+
}) {
|
485
|
+
return () => null;
|
486
|
+
}
|
487
|
+
}), Ie = () => ({
|
488
|
+
head: n(),
|
489
|
+
headAlign: n(),
|
490
|
+
name: n(),
|
491
|
+
width: i([Boolean, String]),
|
492
|
+
fixed: i([Boolean, String])
|
493
|
+
}), ke = /* @__PURE__ */ w({
|
494
|
+
name: "OPagetableColumnDiy",
|
495
|
+
inheritAttrs: !1,
|
496
|
+
props: Ie(),
|
497
|
+
slots: Object,
|
498
|
+
setup(l, {
|
499
|
+
slots: g,
|
500
|
+
attrs: b,
|
501
|
+
emit: m,
|
502
|
+
expose: C
|
503
|
+
}) {
|
504
|
+
return () => null;
|
505
|
+
}
|
506
|
+
}), Xe = Z(me, {
|
507
|
+
PagetableColumnIndex: fe,
|
508
|
+
PagetableColumnString: Ce,
|
509
|
+
PagetableColumnNumber: Se,
|
510
|
+
PagetableColumnDate: Pe,
|
511
|
+
PagetableColumnSingleselect: Ae,
|
512
|
+
PagetableColumnMultiselect: Be,
|
513
|
+
PagetableColumnButtongroup: De,
|
514
|
+
PagetableCellButton: je,
|
515
|
+
PagetableColumngroup: Me,
|
516
|
+
PagetableColumnDiy: ke
|
517
|
+
});
|
518
|
+
export {
|
519
|
+
Xe as default
|
520
|
+
};
|
521
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Pagetable/Pagetable.tsx","../../../src/components/Pagetable/columns/PagetableColumnIndex.tsx","../../../src/components/Pagetable/columns/PagetableColumnString.tsx","../../../src/components/Pagetable/columns/PagetableColumnNumber.tsx","../../../src/components/Pagetable/columns/PagetableColumnDate.tsx","../../../src/components/Pagetable/columns/PagetableColumnSingleselect.tsx","../../../src/components/Pagetable/columns/PagetableColumnMultiselect.tsx","../../../src/components/Pagetable/columns/PagetableColumnButtongroup.tsx","../../../src/components/Pagetable/columns/PagetableCellButton.tsx","../../../src/components/Pagetable/columns/PagetableColumngroup.tsx","../../../src/components/Pagetable/columns/PagetableColumnDiy.tsx","../../../src/components/Pagetable/index.ts"],"sourcesContent":["import { computed, defineComponent, ref } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport { formatDate, number2string, getSingleCodeContent, getMultiCodeContent } from './utils'\r\nimport dayjs from 'dayjs'\r\n\r\nimport Space from '../Space'\r\nimport OrionError from '../../error/OrionError'\r\n\r\nimport type { PageTableI } from './interface'\r\n\r\nimport useColumns from './hooks/useColumns'\r\n\r\nimport Throne from '../../Throne'\r\n\r\nexport const pagetableProps = () => ({\r\n data: arrayType<PageTableI['data']>(),\r\n pagination: objectType<PageTableI['pagination']>(),\r\n showRowNumber: booleanType(true),\r\n selectionMode: booleanType(false),\r\n})\r\n\r\nexport type PagetableProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetable',\r\n inheritAttrs: false,\r\n props: pagetableProps(),\r\n emits: ['selectionChange'],\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const elTableRef = ref()\r\n\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n\r\n return rowStyle\r\n })\r\n\r\n const columns = useColumns(slots)\r\n\r\n const clearSelection = () => {\r\n elTableRef.value.clearSelection()\r\n }\r\n\r\n const getSelectionRows = () => {\r\n return elTableRef.value.getSelectionRows()\r\n }\r\n\r\n const toggleRowSelection = (...args) => {\r\n return elTableRef.value.toggleRowSelection(...args)\r\n }\r\n\r\n const toggleAllSelection = () => {\r\n return elTableRef.value.toggleAllSelection()\r\n }\r\n\r\n expose({\r\n clearSelection,\r\n getSelectionRows,\r\n toggleRowSelection,\r\n toggleAllSelection,\r\n })\r\n\r\n return () => {\r\n const { data } = props\r\n const { selectionMode = false } = props\r\n const { pagination } = props\r\n const { showRowNumber = true } = props\r\n\r\n const cn = classNames('orion-pagetbale')\r\n\r\n const renderIndexColumn = () => {\r\n return (\r\n <ElTableColumn\r\n type={'index'}\r\n label=\"No\"\r\n width={56}\r\n showOverflowTooltip={true}\r\n index={(index: number) => {\r\n return (pagination.currentPage - 1) * pagination.pageSize + index + 1\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderSelectionColumn = () => {\r\n return <ElTableColumn type={'selection'} width={40}></ElTableColumn>\r\n }\r\n\r\n const renderStringColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n return <ElTableColumn label={head} headerAlign={headAlign} prop={name} width={width} fixed={fixed} showOverflowTooltip={true}></ElTableColumn>\r\n }\r\n\r\n const renderNumberColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n const { thousandsSeparator = true, precision = -1, percentage = false } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n align={'right'}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n return <span class=\"cell-numbercolumn\">{number2string(row[column.property], thousandsSeparator, precision, percentage)}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderDateColumn = (column) => {\r\n const { name, head, headAlign, width, fixed, sourceFormat, format } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n\r\n if (sourceFormat && format) {\r\n return (\r\n <div>\r\n {row[column.property] instanceof Date || dayjs.isDayjs(row[column.property])\r\n ? formatDate(row[column.property], format)\r\n : formatDate(row[column.property], sourceFormat, format)}\r\n </div>\r\n )\r\n } else {\r\n return <div>{row[column.property]}</div>\r\n }\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderSingleSelectColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n const { code } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n let codeName, codeData, codeContent\r\n if (!code) {\r\n codeContent = null\r\n } else if (typeof code === 'string') {\r\n codeName = code\r\n codeData = Throne.getCode(codeName)\r\n codeContent = getSingleCodeContent(codeData.value, cellValue)\r\n } else {\r\n codeData = code\r\n codeContent = getSingleCodeContent(codeData, cellValue)\r\n }\r\n\r\n return <span class=\"cell-singleselect\">{codeContent}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderMultiSelectColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n const { code } = column\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n showOverflowTooltip={true}\r\n v-slots={{\r\n default: (scope) => {\r\n const { row, column } = scope\r\n const cellValue = row[column.property]\r\n\r\n let codeName, codeData, codeContent\r\n if (!code) {\r\n codeContent = null\r\n } else if (typeof code === 'string') {\r\n codeName = code\r\n codeData = Throne.getCode(codeName)\r\n codeContent = getMultiCodeContent(codeData.value, cellValue)\r\n } else {\r\n codeData = code\r\n codeContent = getMultiCodeContent(codeData, cellValue)\r\n }\r\n\r\n return <span class=\"cell-multiselect\">{codeContent}</span>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderButtongroupColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n v-slots={{\r\n default: (scope) => {\r\n // { row: any, column: any, $index: number }\r\n const children = column.children?.default?.({\r\n rowData: scope.row,\r\n column,\r\n rowIndex: scope.$index,\r\n })\r\n\r\n return (\r\n <div class=\"cell-buttongroup\">\r\n <Space>{children}</Space>\r\n </div>\r\n )\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderColumngroupColumn = (column) => {\r\n const { head, headAlign } = column\r\n const { children } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n v-slots={{\r\n default: (scope) => {\r\n return renderColumns(children)\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderDiyColumn = (column) => {\r\n const { name, head, headAlign, width, fixed } = column\r\n\r\n return (\r\n <ElTableColumn\r\n label={head}\r\n headerAlign={headAlign}\r\n prop={name}\r\n width={width}\r\n fixed={fixed}\r\n v-slots={{\r\n default: (scope) => {\r\n // { row: any, column: any, $index: number }\r\n const children = column.children?.default?.({\r\n rowData: scope.row,\r\n column,\r\n rowIndex: scope.$index,\r\n })\r\n\r\n return <div class=\"cell-diy\">{children} </div>\r\n },\r\n }}\r\n ></ElTableColumn>\r\n )\r\n }\r\n\r\n const renderColumns = (columns) => {\r\n return columns?.map((c) => {\r\n if (c.type === 'OPagetableColumnString') {\r\n return renderStringColumn(c)\r\n } else if (c.type === 'OPagetableColumnNumber') {\r\n return renderNumberColumn(c)\r\n } else if (c.type === 'OPagetableColumnDate') {\r\n return renderDateColumn(c)\r\n } else if (c.type === 'OPagetableColumnSingleselect') {\r\n return renderSingleSelectColumn(c)\r\n } else if (c.type === 'OPagetableColumnMultiselect') {\r\n return renderMultiSelectColumn(c)\r\n } else if (c.type === 'OPagetableColumnButtongroup') {\r\n return renderButtongroupColumn(c)\r\n } else if (c.type === 'OPagetableColumngroup') {\r\n return renderColumngroupColumn(c)\r\n } else if (c.type === 'OPagetableColumnDiy') {\r\n return renderDiyColumn(c)\r\n } else {\r\n throw new OrionError(`OPagetable不能正确渲染'${c.type.name}'子组件。`)\r\n }\r\n })\r\n }\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n <div class=\"pagetable-wrapper\">\r\n <ElTable ref={elTableRef} data={data} height={'100%'} style={{ width: '100%' }} onSelection-change={(rows) => emit('selectionChange', rows)}>\r\n {showRowNumber && renderIndexColumn()}\r\n {selectionMode && renderSelectionColumn()}\r\n {renderColumns(columns.value)}\r\n </ElTable>\r\n </div>\r\n\r\n <div class=\"pagination-wrapper\">\r\n <ElPagination\r\n currentPage={pagination.currentPage}\r\n onUpdate:current-page={(e) => {\r\n emit('update:pagination', {\r\n ...pagination,\r\n currentPage: e,\r\n })\r\n }}\r\n pageSize={pagination.pageSize}\r\n total={pagination.total}\r\n layout=\"total, ->, prev, pager, next, jumper\"\r\n ></ElPagination>\r\n </div>\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnIndexProps = () => ({})\r\n\r\nexport type PagetableColumnIndexProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnIndexProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnIndex',\r\n inheritAttrs: false,\r\n props: pagetableColumnIndexProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnStringProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type PagetableColumnStringProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnStringProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnString',\r\n inheritAttrs: false,\r\n props: pagetableColumnStringProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, numberType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnNumberProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n thousandsSeparator: booleanType(true),\r\n precision: numberType(-1),\r\n percentage: booleanType(false),\r\n})\r\n\r\nexport type PagetableColumnNumberProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnNumberProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnNumber',\r\n inheritAttrs: false,\r\n props: pagetableColumnNumberProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnDateProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n // Date\r\n format: stringType(),\r\n sourceFormat: stringType(),\r\n})\r\n\r\nexport type PagetableColumnDateProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnDateProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnDate',\r\n inheritAttrs: false,\r\n props: pagetableColumnDateProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnSingleselectProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n code: someType<string | { value: string; content: string }[]>([String, Array]),\r\n})\r\n\r\nexport type PagetableColumnSingleselectProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnSingleselectProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnSingleselect',\r\n inheritAttrs: false,\r\n props: pagetableColumnSingleselectProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnMultiselectProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n\r\n code: someType<string | { value: string; content: string }[]>([String, Array]),\r\n})\r\n\r\nexport type PagetableColumnMultiselectProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnMultiselectProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnMultiselect',\r\n inheritAttrs: false,\r\n props: pagetableColumnMultiselectProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, CustomSlotsType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnButtongroupProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type PagetableColumnButtongroupProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnButtongroupProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnButtongroup',\r\n inheritAttrs: false,\r\n props: pagetableColumnButtongroupProps(),\r\n slots: Object as CustomSlotsType<{\r\n default: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElButton } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableCellButtonProps = () => ({\r\n type: stringType('primary'),\r\n})\r\n\r\nexport type PagetableCellButtonProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableCellButtonProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableCellButton',\r\n inheritAttrs: false,\r\n props: pagetableCellButtonProps(),\r\n emits: ['click'],\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const handleClick = (event: Event) => {\r\n emit('click', event)\r\n }\r\n\r\n return () => {\r\n const { type = 'primary' } = props\r\n const children = slots.default?.()\r\n\r\n return (\r\n <ElButton link type={type} size=\"small\" onClick={handleClick}>\r\n {children}\r\n </ElButton>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType } from '../../_util/type'\r\nimport { ElButton } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumngroupProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n})\r\n\r\nexport type PagetableColumngroupProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumngroupProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumngroup',\r\n inheritAttrs: false,\r\n props: pagetableColumngroupProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../../_util/classNames'\r\nimport OrionError from '../../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple, arrayType, CustomSlotsType } from '../../_util/type'\r\nimport { ElTable, ElTableColumn, ElPagination } from 'element-plus'\r\n\r\nimport type { PageTableI, FixedType } from '../interface'\r\n\r\nexport const pagetableColumnDiyProps = () => ({\r\n head: stringType(),\r\n headAlign: stringType<'left' | 'right' | 'center'>(),\r\n name: stringType(),\r\n width: someType<boolean | string>([Boolean, String]),\r\n fixed: someType<FixedType>([Boolean, String]),\r\n})\r\n\r\nexport type PagetableColumnDiyProps = Partial<ExtractPropTypes<ReturnType<typeof pagetableColumnDiyProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OPagetableColumnDiy',\r\n inheritAttrs: false,\r\n props: pagetableColumnDiyProps(),\r\n slots: Object as CustomSlotsType<{\r\n default: any\r\n }>,\r\n setup(props, { slots, attrs, emit, expose }) {\r\n return () => null\r\n },\r\n})\r\n","import { withInstall } from '../_util'\r\n\r\nimport Pagetable from './Pagetable'\r\nimport PagetableColumnIndex from './columns/PagetableColumnIndex'\r\nimport PagetableColumnString from './columns/PagetableColumnString'\r\nimport PagetableColumnNumber from './columns/PagetableColumnNumber'\r\nimport PagetableColumnDate from './columns/PagetableColumnDate'\r\nimport PagetableColumnSingleselect from './columns/PagetableColumnSingleselect'\r\nimport PagetableColumnMultiselect from './columns/PagetableColumnMultiselect'\r\nimport PagetableColumnButtongroup from './columns/PagetableColumnButtongroup'\r\nimport PagetableCellButton from './columns/PagetableCellButton'\r\nimport PagetableColumngroup from './columns/PagetableColumngroup'\r\nimport PagetableColumnDiy from './columns/PagetableColumnDiy'\r\n\r\nexport type { PagetableProps } from './Pagetable'\r\n\r\nexport default withInstall<\r\n typeof Pagetable,\r\n {\r\n PagetableColumnIndex: typeof PagetableColumnIndex\r\n PagetableColumnString: typeof PagetableColumnString\r\n PagetableColumnNumber: typeof PagetableColumnNumber\r\n PagetableColumnDate: typeof PagetableColumnDate\r\n PagetableColumnSingleselect: typeof PagetableColumnSingleselect\r\n PagetableColumnMultiselect: typeof PagetableColumnMultiselect\r\n PagetableColumnButtongroup: typeof PagetableColumnButtongroup\r\n PagetableCellButton: typeof PagetableCellButton\r\n PagetableColumngroup: typeof PagetableColumngroup\r\n PagetableColumnDiy: typeof PagetableColumnDiy\r\n }\r\n>(Pagetable, {\r\n PagetableColumnIndex,\r\n PagetableColumnString,\r\n PagetableColumnNumber,\r\n PagetableColumnDate,\r\n PagetableColumnSingleselect,\r\n PagetableColumnMultiselect,\r\n PagetableColumnButtongroup,\r\n PagetableCellButton,\r\n PagetableColumngroup,\r\n PagetableColumnDiy,\r\n})\r\n"],"names":["_isSlot","s","Object","prototype","toString","call","_isVNode","pagetableProps","data","arrayType","pagination","objectType","showRowNumber","booleanType","selectionMode","defineComponent","name","inheritAttrs","props","emits","setup","slots","attrs","emit","expose","elTableRef","ref","style","computed","columns","useColumns","clearSelection","value","getSelectionRows","toggleRowSelection","args","toggleAllSelection","cn","classNames","renderIndexColumn","_createVNode","ElTableColumn","index","currentPage","pageSize","renderSelectionColumn","renderStringColumn","column","head","headAlign","width","fixed","renderNumberColumn","thousandsSeparator","precision","percentage","default","scope","row","number2string","property","renderDateColumn","sourceFormat","format","Date","dayjs","isDayjs","formatDate","renderSingleSelectColumn","code","cellValue","codeName","codeData","codeContent","Throne","getCode","getSingleCodeContent","renderMultiSelectColumn","getMultiCodeContent","renderButtongroupColumn","children","rowData","rowIndex","$index","Space","renderColumngroupColumn","renderColumns","renderDiyColumn","_createTextVNode","map","c","type","OrionError","class","ElTable","rows","ElPagination","e","total","pagetableColumnIndexProps","pagetableColumnStringProps","stringType","someType","Boolean","String","pagetableColumnNumberProps","numberType","pagetableColumnDateProps","pagetableColumnSingleselectProps","Array","pagetableColumnMultiselectProps","pagetableColumnButtongroupProps","pagetableCellButtonProps","handleClick","event","ElButton","pagetableColumngroupProps","pagetableColumnDiyProps","withInstall","Pagetable","PagetableColumnIndex","PagetableColumnString","PagetableColumnNumber","PagetableColumnDate","PagetableColumnSingleselect","PagetableColumnMultiselect","PagetableColumnButtongroup","PagetableCellButton","PagetableColumngroup","PagetableColumnDiy"],"mappings":";;;;;;;;;;;;AAgBiC,SAAAA,GAAAC,GAAA;AAAA,SAAA,OAAAA,KAAA,cAAAC,OAAAC,UAAAC,SAAAC,KAAAJ,CAAA,MAAAK,qBAAAA,CAAAA,EAAAL,CAAA;AAAA;AAE1B,MAAMM,KAAiBA,OAAO;AAAA,EACnCC,MAAMC,GAA+B;AAAA,EACrCC,YAAYC,GAAsC;AAAA,EAClDC,eAAeC,EAAY,EAAI;AAAA,EAC/BC,eAAeD,EAAY,EAAK;AAClC,IAIeE,uBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOX,GAAgB;AAAA,EACvBY,OAAO,CAAC,iBAAiB;AAAA,EACzBC,MAAMF,GAAO;AAAA,IAAEG,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,UAAMC,IAAaC,KAEbC,IAAQC,EAAS,OACW,CAAA,EAGj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;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOkG,GAA2B;AAAA,EAClChG,MAAMF,GAAO;AAAA,IAAEG,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,WAAO,MAAM;AAAA,EACf;AACF,CAAC,GCdY6F,KAA0BA,OAAO;AAAA,EAC5CrE,MAAMqD,EAAY;AAAA,EAClBpD,WAAWoD,EAAyC;AAAA,EACpDrF,MAAMqF,EAAY;AAAA,EAClBnD,OAAOoD,EAA2B,CAACC,SAASC,MAAM,CAAC;AAAA,EACnDrD,OAAOmD,EAAoB,CAACC,SAASC,MAAM,CAAC;AAC9C,IAIezF,uBAAgB;AAAA,EAC7BC,MAAM;AAAA,EACNC,cAAc;AAAA,EACdC,OAAOmG,GAAyB;AAAA,EAChChG,OAAOnB;AAAAA,EAGPkB,MAAMF,GAAO;AAAA,IAAEG,OAAAA;AAAAA,IAAOC,OAAAA;AAAAA,IAAOC,MAAAA;AAAAA,IAAMC,QAAAA;AAAAA,EAAO,GAAG;AAC3C,WAAO,MAAM;AAAA,EACf;AACF,CAAC,GCbckB,KAAA4E,EAcbC,IAAW;AAAA,EACX,sBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,uBAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,6BAAAC;AAAA,EACA,4BAAAC;AAAA,EACA,4BAAAC;AAAA,EACA,qBAAAC;AAAA,EACA,sBAAAC;AAAA,EACA,oBAAAC;AACF,CAAC;"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export type DefaultRecordType = any;
|
2
|
+
export type FixedType = 'left' | 'right' | boolean;
|
3
|
+
export interface PageTableI<RecordType = DefaultRecordType> {
|
4
|
+
data: RecordType[];
|
5
|
+
pagination: {
|
6
|
+
currentPage?: number;
|
7
|
+
pageSize?: number;
|
8
|
+
total?: number;
|
9
|
+
};
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interface.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
interface formatI {
|
2
|
+
format(value: Date, targetFormat: string): string;
|
3
|
+
format(value: string, sourceFormat: string, targetFormat: string): string;
|
4
|
+
}
|
5
|
+
export declare const formatDate: formatI['format'];
|
6
|
+
export declare function number2string(num: number | null | undefined, thousandsSeparatorValue: boolean, precisionValue: number, percentageValue: boolean): string;
|
7
|
+
export declare const getSingleCodeContent: (options: Array<{
|
8
|
+
value: string;
|
9
|
+
content: string;
|
10
|
+
}>, curValue: string) => string | null;
|
11
|
+
export declare const getMultiCodeContent: (options: Array<{
|
12
|
+
value: string;
|
13
|
+
content: string;
|
14
|
+
}>, curValue: string) => string | null;
|
15
|
+
export {};
|