orion-design 0.1.29 → 0.1.31
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Throne/index.js +30 -14
- package/dist/Throne/index.js.map +1 -1
- package/dist/_commonjsHelpers-DWwsNxpa.js +9 -0
- package/dist/_commonjsHelpers-DWwsNxpa.js.map +1 -0
- package/dist/components/Button/index.js +40 -33
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Flex/index.js +122 -89
- package/dist/components/Flex/index.js.map +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.js.map +1 -1
- package/dist/components/Form/LovInput/LovInput.js +2 -2
- package/dist/components/Form/LovInput/LovInput.js.map +1 -1
- package/dist/components/Form/LovInput/hooks/useLov.js +5 -5
- package/dist/components/Form/LovInput/hooks/useLov.js.map +1 -1
- package/dist/components/Form/LovInput/index.js +4 -4
- package/dist/components/Form/hooks/FormItemValidateTrigger.js +2 -2
- package/dist/components/Form/hooks/FormItemValidateTrigger.js.map +1 -1
- package/dist/components/Form/hooks/index.js +128 -66
- package/dist/components/Form/hooks/index.js.map +1 -1
- package/dist/components/Form/index.js +836 -656
- package/dist/components/Form/index.js.map +1 -1
- package/dist/components/Form/utils/index.js +30 -18
- package/dist/components/Form/utils/index.js.map +1 -1
- package/dist/components/LovTable/LovPagetable.vue.d.ts +28 -0
- package/dist/components/LovTable/index.d.ts +14 -0
- package/dist/components/LovTable/index.js +179 -105
- package/dist/components/LovTable/index.js.map +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -0
- package/dist/components/Modal/ModalLocator.vue.d.ts +20 -0
- package/dist/components/Modal/index.d.ts +4 -1
- package/dist/components/Modal/index.js +127 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/types.d.ts +18 -0
- package/dist/components/Modal/types.js +7 -0
- package/dist/components/Modal/types.js.map +1 -0
- package/dist/components/Modal/useModal.d.ts +1 -3
- package/dist/components/Modal/useModal.js +5 -4
- package/dist/components/Modal/useModal.js.map +1 -1
- package/dist/components/Pagetable/Pagetable.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnLink.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +13 -0
- package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +13 -0
- package/dist/components/Pagetable/hooks/useColumns.js +88 -74
- package/dist/components/Pagetable/hooks/useColumns.js.map +1 -1
- package/dist/components/Pagetable/index.d.ts +9 -0
- package/dist/components/Pagetable/index.js +697 -491
- package/dist/components/Pagetable/index.js.map +1 -1
- package/dist/components/Pagetable/utils/index.js +92 -54
- package/dist/components/Pagetable/utils/index.js.map +1 -1
- package/dist/components/Querytable/hooks/useColumns.js +82 -74
- package/dist/components/Querytable/hooks/useColumns.js.map +1 -1
- package/dist/components/Querytable/index.js +579 -469
- package/dist/components/Querytable/index.js.map +1 -1
- package/dist/components/Querytable/utils/index.js +92 -54
- package/dist/components/Querytable/utils/index.js.map +1 -1
- package/dist/components/RichTextEditor/index.js +100 -74
- package/dist/components/RichTextEditor/index.js.map +1 -1
- package/dist/components/Tabs/constants.js +2 -2
- package/dist/components/Tabs/constants.js.map +1 -1
- package/dist/components/Tabs/index.js +603 -358
- package/dist/components/Tabs/index.js.map +1 -1
- package/dist/components/Tabs/tab-bar.js +6 -6
- package/dist/components/Tabs/tab-bar.js.map +1 -1
- package/dist/components/Tabs/tab-pane.js +3 -3
- package/dist/components/Tabs/tab-pane.js.map +1 -1
- package/dist/components/_constants/aria.js +2 -2
- package/dist/components/_constants/aria.js.map +1 -1
- package/dist/components/_constants/event.js +6 -4
- package/dist/components/_constants/event.js.map +1 -1
- package/dist/components/_constants/index.js +6 -6
- package/dist/components/_hooks/index.js +7 -7
- package/dist/components/_hooks/use-namespace/index.js +74 -39
- package/dist/components/_hooks/use-namespace/index.js.map +1 -1
- package/dist/components/_hooks/use-ordered-children/index.js +29 -19
- package/dist/components/_hooks/use-ordered-children/index.js.map +1 -1
- package/dist/components/_util/arrays.js +9 -5
- package/dist/components/_util/arrays.js.map +1 -1
- package/dist/components/_util/browser.js +6 -6
- package/dist/components/_util/browser.js.map +1 -1
- package/dist/components/_util/classNames.js +22 -17
- package/dist/components/_util/classNames.js.map +1 -1
- package/dist/components/_util/dom/aria.js +74 -39
- package/dist/components/_util/dom/aria.js.map +1 -1
- package/dist/components/_util/dom/element.js +9 -8
- package/dist/components/_util/dom/element.js.map +1 -1
- package/dist/components/_util/dom/event.js +14 -7
- package/dist/components/_util/dom/event.js.map +1 -1
- package/dist/components/_util/dom/index.js +36 -36
- package/dist/components/_util/dom/position.js +49 -25
- package/dist/components/_util/dom/position.js.map +1 -1
- package/dist/components/_util/dom/scroll.js +103 -61
- package/dist/components/_util/dom/scroll.js.map +1 -1
- package/dist/components/_util/dom/style.js +65 -50
- package/dist/components/_util/dom/style.js.map +1 -1
- package/dist/components/_util/easings.js +8 -4
- package/dist/components/_util/easings.js.map +1 -1
- package/dist/components/_util/error.js +12 -11
- package/dist/components/_util/error.js.map +1 -1
- package/dist/components/_util/functions.js +3 -3
- package/dist/components/_util/i18n.js +2 -2
- package/dist/components/_util/i18n.js.map +1 -1
- package/dist/components/_util/index.js +137 -137
- package/dist/components/_util/isValid.js +4 -2
- package/dist/components/_util/isValid.js.map +1 -1
- package/dist/components/_util/objects.js +18 -14
- package/dist/components/_util/objects.js.map +1 -1
- package/dist/components/_util/props-util/index.js +46 -20
- package/dist/components/_util/props-util/index.js.map +1 -1
- package/dist/components/_util/props-util/initDefaultProps.js +18 -10
- package/dist/components/_util/props-util/initDefaultProps.js.map +1 -1
- package/dist/components/_util/raf.js +5 -4
- package/dist/components/_util/raf.js.map +1 -1
- package/dist/components/_util/rand.js +4 -3
- package/dist/components/_util/rand.js.map +1 -1
- package/dist/components/_util/strings.js +9 -8
- package/dist/components/_util/strings.js.map +1 -1
- package/dist/components/_util/throttleByRaf.js +16 -10
- package/dist/components/_util/throttleByRaf.js.map +1 -1
- package/dist/components/_util/type.js +41 -38
- package/dist/components/_util/type.js.map +1 -1
- package/dist/components/_util/types.js +41 -22
- package/dist/components/_util/types.js.map +1 -1
- package/dist/components/_util/typescript.js +2 -2
- package/dist/components/_util/typescript.js.map +1 -1
- package/dist/components/_util/util.js +85 -43
- package/dist/components/_util/util.js.map +1 -1
- package/dist/components/_util/vue/global-node.js +27 -15
- package/dist/components/_util/vue/global-node.js.map +1 -1
- package/dist/components/_util/vue/icon.js +29 -25
- package/dist/components/_util/vue/icon.js.map +1 -1
- package/dist/components/_util/vue/index.js +41 -41
- package/dist/components/_util/vue/install.js +35 -18
- package/dist/components/_util/vue/install.js.map +1 -1
- package/dist/components/_util/vue/props/index.js +6 -6
- package/dist/components/_util/vue/props/runtime.js +46 -30
- package/dist/components/_util/vue/props/runtime.js.map +1 -1
- package/dist/components/_util/vue/refs.js +12 -6
- package/dist/components/_util/vue/refs.js.map +1 -1
- package/dist/components/_util/vue/size.js +5 -3
- package/dist/components/_util/vue/size.js.map +1 -1
- package/dist/components/_util/vue/validator.js +5 -4
- package/dist/components/_util/vue/validator.js.map +1 -1
- package/dist/components/_util/vue/vnode.js +100 -54
- package/dist/components/_util/vue/vnode.js.map +1 -1
- package/dist/components/_util/vue-types/index.js +231 -220
- package/dist/components/_util/vue-types/index.js.map +1 -1
- package/dist/components/components.js +20 -20
- package/dist/components/index.js +38 -35
- package/dist/components/index.js.map +1 -1
- package/dist/components-8oZ2kpUC.js +27 -0
- package/dist/components-8oZ2kpUC.js.map +1 -0
- package/dist/components-B3d9m_tn.js +27 -0
- package/dist/components-B3d9m_tn.js.map +1 -0
- package/dist/error/OrionError.js +8 -4
- package/dist/error/OrionError.js.map +1 -1
- package/dist/functions-BeMkokbY.js +63 -0
- package/dist/functions-BeMkokbY.js.map +1 -0
- package/dist/index-BOKLZnqH.js +54 -0
- package/dist/index-BOKLZnqH.js.map +1 -0
- package/dist/index-D1m0KTpK.js +69 -0
- package/dist/index-D1m0KTpK.js.map +1 -0
- package/dist/index-DR5ZP7mD.js +160 -0
- package/dist/index-DR5ZP7mD.js.map +1 -0
- package/dist/index-DkwIULcN.js +200 -0
- package/dist/index-DkwIULcN.js.map +1 -0
- package/dist/index.css +797 -1
- package/dist/index.js +36 -36
- package/dist/print/LodopFuncs.js +101 -43
- package/dist/print/LodopFuncs.js.map +1 -1
- package/dist/print/index.js +200 -108
- package/dist/print/index.js.map +1 -1
- package/dist/request/ErrorHandlerChain.js +17 -14
- package/dist/request/ErrorHandlerChain.js.map +1 -1
- package/dist/request/RequestFilterChain.js +16 -13
- package/dist/request/RequestFilterChain.js.map +1 -1
- package/dist/request/ResponseParserChain.js +17 -14
- package/dist/request/ResponseParserChain.js.map +1 -1
- package/dist/request/disivion/DateSerializer.js +47 -22
- package/dist/request/disivion/DateSerializer.js.map +1 -1
- package/dist/request/disivion/DivisionErrorHandler.js +40 -25
- package/dist/request/disivion/DivisionErrorHandler.js.map +1 -1
- package/dist/request/disivion/DivisionResponseParser.js +16 -10
- package/dist/request/disivion/DivisionResponseParser.js.map +1 -1
- package/dist/request/disivion/index.js +305 -201
- package/dist/request/disivion/index.js.map +1 -1
- package/dist/request/error/BizExceptionResponseError.js +11 -5
- package/dist/request/error/BizExceptionResponseError.js.map +1 -1
- package/dist/request/error/ExceptionResponseError.js +11 -5
- package/dist/request/error/ExceptionResponseError.js.map +1 -1
- package/dist/request/error/ResponseError.js +9 -4
- package/dist/request/error/ResponseError.js.map +1 -1
- package/dist/request/error/SessionExceptionResponseError.js +11 -5
- package/dist/request/error/SessionExceptionResponseError.js.map +1 -1
- package/dist/request/index.js +11 -11
- package/dist/utils/DateUtil.js +48 -33
- package/dist/utils/DateUtil.js.map +1 -1
- package/dist/utils/NumberUtil.js +6 -6
- package/dist/utils/NumberUtil.js.map +1 -1
- package/dist/utils/cloneDeep.js +2 -2
- package/dist/utils/delay.js +3 -3
- package/dist/utils/delay.js.map +1 -1
- package/dist/utils/functions.js +3 -3
- package/dist/utils/index.js +12 -12
- package/dist/utils/md5.js +191 -93
- package/dist/utils/md5.js.map +1 -1
- package/dist/utils/uuid.js +35 -25
- package/dist/utils/uuid.js.map +1 -1
- package/dist/version/index.js +2 -2
- package/dist/version/version.d.ts +1 -1
- package/dist/version/version.js +2 -2
- package/dist/version/version.js.map +1 -1
- package/package.json +1 -1
- package/dist/components-J6-qau6Y.js +0 -73
- package/dist/components-J6-qau6Y.js.map +0 -1
package/dist/Throne/index.js
CHANGED
@@ -1,20 +1,36 @@
|
|
1
|
-
import
|
2
|
-
let
|
3
|
-
throw new
|
4
|
-
}, n = (e) => {
|
5
|
-
throw new o("Throne.getIcon not configured!");
|
6
|
-
}, r = (e) => {
|
7
|
-
throw new o("Throne.getCode not configured!");
|
1
|
+
import OrionError from "../error/OrionError.js";
|
2
|
+
let hasAuth = () => {
|
3
|
+
throw new OrionError(`Throne.hasAuth not configured!`);
|
8
4
|
};
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
5
|
+
let getIcon = (iconId) => {
|
6
|
+
throw new OrionError(`Throne.getIcon not configured!`);
|
7
|
+
};
|
8
|
+
let getCode = (codeName) => {
|
9
|
+
throw new OrionError(`Throne.getCode not configured!`);
|
10
|
+
};
|
11
|
+
const Throne = {
|
12
|
+
hasAuth: (authId) => {
|
13
|
+
return hasAuth(authId);
|
14
|
+
},
|
15
|
+
getIcon: (iconId) => {
|
16
|
+
return getIcon(iconId);
|
17
|
+
},
|
18
|
+
getCode: (codeName) => {
|
19
|
+
return getCode(codeName);
|
20
|
+
},
|
21
|
+
impl: (throne) => {
|
22
|
+
if (throne.hasAuth) {
|
23
|
+
hasAuth = throne.hasAuth;
|
24
|
+
}
|
25
|
+
if (throne.getIcon) {
|
26
|
+
getIcon = throne.getIcon;
|
27
|
+
}
|
28
|
+
if (throne.getCode) {
|
29
|
+
getCode = throne.getCode;
|
30
|
+
}
|
15
31
|
}
|
16
32
|
};
|
17
33
|
export {
|
18
|
-
|
34
|
+
Throne as default
|
19
35
|
};
|
20
36
|
//# sourceMappingURL=index.js.map
|
package/dist/Throne/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/Throne/index.ts"],"sourcesContent":["import OrionError from '../error/OrionError'\r\nimport type { Ref } from 'vue'\r\n\r\nimport type { CodeData } from '../components/types'\r\n\r\nexport interface ThroneType {\r\n hasAuth: (authId: string) => boolean | null\r\n getIcon: (iconId: string) => () => unknown\r\n getCode: (codeName: string) => Ref<CodeData>\r\n impl: (throne: Partial<ThroneType>) => void\r\n}\r\n\r\nlet hasAuth: ThroneType['hasAuth'] = () => {\r\n throw new OrionError(`Throne.hasAuth not configured!`)\r\n}\r\n\r\nlet getIcon: ThroneType['getIcon'] = (iconId) => {\r\n throw new OrionError(`Throne.getIcon not configured!`)\r\n}\r\n\r\nlet getCode: ThroneType['getCode'] = (codeName) => {\r\n throw new OrionError(`Throne.getCode not configured!`)\r\n}\r\n\r\nconst Throne: ThroneType = {\r\n hasAuth: (authId) => {\r\n return hasAuth(authId)\r\n },\r\n getIcon: (iconId) => {\r\n return getIcon(iconId)\r\n },\r\n getCode: (codeName) => {\r\n return getCode(codeName)\r\n },\r\n impl: (throne) => {\r\n if (throne.hasAuth) {\r\n hasAuth = throne.hasAuth\r\n }\r\n\r\n if (throne.getIcon) {\r\n getIcon = throne.getIcon\r\n }\r\n\r\n if (throne.getCode) {\r\n getCode = throne.getCode\r\n }\r\n },\r\n}\r\n\r\nexport default Throne\r\n"],"names":[
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/Throne/index.ts"],"sourcesContent":["import OrionError from '../error/OrionError'\r\nimport type { Ref } from 'vue'\r\n\r\nimport type { CodeData } from '../components/types'\r\n\r\nexport interface ThroneType {\r\n hasAuth: (authId: string) => boolean | null\r\n getIcon: (iconId: string) => () => unknown\r\n getCode: (codeName: string) => Ref<CodeData>\r\n impl: (throne: Partial<ThroneType>) => void\r\n}\r\n\r\nlet hasAuth: ThroneType['hasAuth'] = () => {\r\n throw new OrionError(`Throne.hasAuth not configured!`)\r\n}\r\n\r\nlet getIcon: ThroneType['getIcon'] = (iconId) => {\r\n throw new OrionError(`Throne.getIcon not configured!`)\r\n}\r\n\r\nlet getCode: ThroneType['getCode'] = (codeName) => {\r\n throw new OrionError(`Throne.getCode not configured!`)\r\n}\r\n\r\nconst Throne: ThroneType = {\r\n hasAuth: (authId) => {\r\n return hasAuth(authId)\r\n },\r\n getIcon: (iconId) => {\r\n return getIcon(iconId)\r\n },\r\n getCode: (codeName) => {\r\n return getCode(codeName)\r\n },\r\n impl: (throne) => {\r\n if (throne.hasAuth) {\r\n hasAuth = throne.hasAuth\r\n }\r\n\r\n if (throne.getIcon) {\r\n getIcon = throne.getIcon\r\n }\r\n\r\n if (throne.getCode) {\r\n getCode = throne.getCode\r\n }\r\n },\r\n}\r\n\r\nexport default Throne\r\n"],"names":[],"mappings":";AAYA,IAAI,UAAiC,MAAM;AACnC,QAAA,IAAI,WAAW,gCAAgC;AACvD;AAEA,IAAI,UAAiC,CAAC,WAAW;AACzC,QAAA,IAAI,WAAW,gCAAgC;AACvD;AAEA,IAAI,UAAiC,CAAC,aAAa;AAC3C,QAAA,IAAI,WAAW,gCAAgC;AACvD;AAEA,MAAM,SAAqB;AAAA,EACzB,SAAS,CAAC,WAAW;AACnB,WAAO,QAAQ,MAAM;AAAA,EACvB;AAAA,EACA,SAAS,CAAC,WAAW;AACnB,WAAO,QAAQ,MAAM;AAAA,EACvB;AAAA,EACA,SAAS,CAAC,aAAa;AACrB,WAAO,QAAQ,QAAQ;AAAA,EACzB;AAAA,EACA,MAAM,CAAC,WAAW;AAChB,QAAI,OAAO,SAAS;AAClB,gBAAU,OAAO;AAAA,IACnB;AAEA,QAAI,OAAO,SAAS;AAClB,gBAAU,OAAO;AAAA,IACnB;AAEA,QAAI,OAAO,SAAS;AAClB,gBAAU,OAAO;AAAA,IACnB;AAAA,EACF;AACF;"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
2
|
+
function getDefaultExportFromCjs(x) {
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
4
|
+
}
|
5
|
+
export {
|
6
|
+
commonjsGlobal as c,
|
7
|
+
getDefaultExportFromCjs as g
|
8
|
+
};
|
9
|
+
//# sourceMappingURL=_commonjsHelpers-DWwsNxpa.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers-DWwsNxpa.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -1,46 +1,53 @@
|
|
1
1
|
import "lodash-es";
|
2
|
-
import { defineComponent
|
3
|
-
import { withInstall
|
4
|
-
import { ElButton
|
5
|
-
import { S as
|
6
|
-
const
|
7
|
-
name: "OButton",
|
2
|
+
import { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, computed, createElementBlock, normalizeStyle, createVNode } from "vue";
|
3
|
+
import { withInstall } from "../_util/vue/install.js";
|
4
|
+
import { ElButton } from "element-plus";
|
5
|
+
import { S as Space } from "../../index-BOKLZnqH.js";
|
6
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
7
|
+
...{ name: "OButton" },
|
8
8
|
__name: "Button",
|
9
|
-
setup(
|
10
|
-
return (
|
11
|
-
default
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
9
|
+
setup(__props) {
|
10
|
+
return (_ctx, _cache) => {
|
11
|
+
return _ctx.$slots.default ? (openBlock(), createBlock(unref(ElButton), { key: 0 }, {
|
12
|
+
default: withCtx(() => [
|
13
|
+
renderSlot(_ctx.$slots, "default")
|
14
|
+
]),
|
15
|
+
_: 3
|
16
|
+
})) : (openBlock(), createBlock(unref(ElButton), { key: 1 }));
|
17
|
+
};
|
16
18
|
}
|
17
|
-
})
|
18
|
-
|
19
|
-
inheritAttrs:
|
19
|
+
});
|
20
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
21
|
+
...{ name: "OButtongroup", inheritAttrs: false },
|
20
22
|
__name: "ButtonGroup",
|
21
23
|
props: {
|
22
24
|
gutter: { type: [Boolean, String] },
|
23
25
|
align: { default: "right" }
|
24
26
|
},
|
25
|
-
setup(
|
26
|
-
const
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
27
|
+
setup(__props) {
|
28
|
+
const style = computed(() => {
|
29
|
+
return {
|
30
|
+
textAlign: __props.align
|
31
|
+
};
|
32
|
+
});
|
33
|
+
return (_ctx, _cache) => {
|
34
|
+
return openBlock(), createElementBlock("div", {
|
35
|
+
style: normalizeStyle(style.value)
|
36
|
+
}, [
|
37
|
+
createVNode(unref(Space), { gutter: _ctx.gutter }, {
|
38
|
+
default: withCtx(() => [
|
39
|
+
renderSlot(_ctx.$slots, "default")
|
40
|
+
]),
|
41
|
+
_: 3
|
42
|
+
}, 8, ["gutter"])
|
43
|
+
], 4);
|
44
|
+
};
|
39
45
|
}
|
40
|
-
})
|
41
|
-
|
46
|
+
});
|
47
|
+
const index = withInstall(_sfc_main$1, {
|
48
|
+
ButtonGroup: _sfc_main
|
42
49
|
});
|
43
50
|
export {
|
44
|
-
|
51
|
+
index as default
|
45
52
|
};
|
46
53
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Button/ButtonGroup/ButtonGroup.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <div :style=\"style\">\r\n <space :gutter=\"gutter\"> <slot></slot> </space>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, CSSProperties } from 'vue'\r\nimport type { ButtonGroupProps } from './ButtonGroup'\r\nimport Space from '../../Space'\r\n\r\ndefineOptions({ name: 'OButtongroup', inheritAttrs: false })\r\n\r\nconst { gutter, align = 'right' } = defineProps<ButtonGroupProps>()\r\nconst style = computed<CSSProperties>(() => {\r\n return {\r\n textAlign: align,\r\n }\r\n})\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Button from './Button.vue'\r\nimport ButtonGroup from './ButtonGroup/ButtonGroup.vue'\r\n\r\nexport default withInstall<typeof Button, { ButtonGroup: typeof ButtonGroup }>(Button, {\r\n ButtonGroup\r\n})\r\n"],"names":["
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Button/ButtonGroup/ButtonGroup.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <div :style=\"style\">\r\n <space :gutter=\"gutter\"> <slot></slot> </space>\r\n </div>\r\n</template>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed, CSSProperties } from 'vue'\r\nimport type { ButtonGroupProps } from './ButtonGroup'\r\nimport Space from '../../Space'\r\n\r\ndefineOptions({ name: 'OButtongroup', inheritAttrs: false })\r\n\r\nconst { gutter, align = 'right' } = defineProps<ButtonGroupProps>()\r\nconst style = computed<CSSProperties>(() => {\r\n return {\r\n textAlign: align,\r\n }\r\n})\r\n</script>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Button from './Button.vue'\r\nimport ButtonGroup from './ButtonGroup/ButtonGroup.vue'\r\n\r\nexport default withInstall<typeof Button, { ButtonGroup: typeof ButtonGroup }>(Button, {\r\n ButtonGroup\r\n})\r\n"],"names":["Button","ButtonGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcM,UAAA,QAAQ,SAAwB,MAAM;AACnC,aAAA;AAAA,QACL,WAAW,QAAA;AAAA,MAAA;AAAA,IACb,CACD;;;;;;;;;;;;;;;ACbD,MAAe,QAAA,YAAgEA,aAAQ;AAAA,EAAA,aACrFC;AACF,CAAC;"}
|
@@ -1,119 +1,152 @@
|
|
1
|
-
import { defineComponent
|
2
|
-
import
|
3
|
-
import
|
4
|
-
import { anyType
|
5
|
-
const
|
6
|
-
gutter:
|
1
|
+
import { defineComponent, computed, createVNode } from "vue";
|
2
|
+
import classNames from "../_util/classNames.js";
|
3
|
+
import OrionError from "../../error/OrionError.js";
|
4
|
+
import { anyType, booleanType } from "../_util/type.js";
|
5
|
+
const rowProps = () => ({
|
6
|
+
gutter: anyType(),
|
7
7
|
height: String
|
8
|
-
})
|
8
|
+
});
|
9
|
+
const Row = /* @__PURE__ */ defineComponent({
|
9
10
|
name: "ORowflex",
|
10
|
-
inheritAttrs:
|
11
|
-
props:
|
12
|
-
setup(
|
13
|
-
slots
|
14
|
-
attrs
|
15
|
-
emit
|
16
|
-
expose
|
11
|
+
inheritAttrs: false,
|
12
|
+
props: rowProps(),
|
13
|
+
setup(props, {
|
14
|
+
slots,
|
15
|
+
attrs,
|
16
|
+
emit,
|
17
|
+
expose
|
17
18
|
}) {
|
18
|
-
const
|
19
|
-
const
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
19
|
+
const style = computed(() => {
|
20
|
+
const rowStyle = {};
|
21
|
+
rowStyle.gap = props.gutter === true || props.gutter === "" ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : void 0;
|
22
|
+
if (props.height) {
|
23
|
+
if (props.height == "fill") {
|
24
|
+
throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
|
25
|
+
} else if (props.height == "need") ;
|
26
|
+
else {
|
27
|
+
rowStyle.height = props.height;
|
28
|
+
}
|
29
|
+
} else {
|
30
|
+
rowStyle.height = "100%";
|
31
|
+
}
|
32
|
+
return rowStyle;
|
27
33
|
});
|
28
34
|
return () => {
|
29
|
-
var
|
30
|
-
const
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
+
var _a;
|
36
|
+
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
37
|
+
const cn = classNames("orion-flex", "orion-flex-row", "orion-flex-justify-start");
|
38
|
+
return createVNode("div", {
|
39
|
+
"class": [cn, attrs.class],
|
40
|
+
"style": [style.value, attrs.style]
|
41
|
+
}, [children]);
|
35
42
|
};
|
36
43
|
}
|
37
|
-
})
|
38
|
-
|
44
|
+
});
|
45
|
+
const colProps = () => ({
|
46
|
+
gutter: anyType(),
|
39
47
|
height: String
|
40
|
-
})
|
48
|
+
});
|
49
|
+
const Col = /* @__PURE__ */ defineComponent({
|
41
50
|
name: "OColflex",
|
42
|
-
inheritAttrs:
|
43
|
-
props:
|
44
|
-
setup(
|
45
|
-
slots
|
46
|
-
attrs
|
47
|
-
emit
|
48
|
-
expose
|
51
|
+
inheritAttrs: false,
|
52
|
+
props: colProps(),
|
53
|
+
setup(props, {
|
54
|
+
slots,
|
55
|
+
attrs,
|
56
|
+
emit,
|
57
|
+
expose
|
49
58
|
}) {
|
50
|
-
const
|
51
|
-
const
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
+
const style = computed(() => {
|
60
|
+
const rowStyle = {};
|
61
|
+
rowStyle.gap = props.gutter === true || props.gutter === "" ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : void 0;
|
62
|
+
if (props.height) {
|
63
|
+
if (props.height == "fill") {
|
64
|
+
throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
|
65
|
+
} else if (props.height == "need") ;
|
66
|
+
else {
|
67
|
+
rowStyle.height = props.height;
|
68
|
+
}
|
69
|
+
} else {
|
70
|
+
rowStyle.height = "100%";
|
71
|
+
}
|
72
|
+
return rowStyle;
|
59
73
|
});
|
60
74
|
return () => {
|
61
|
-
var
|
62
|
-
const
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
75
|
+
var _a;
|
76
|
+
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
77
|
+
const cn = classNames("orion-flex", "orion-flex-column");
|
78
|
+
return createVNode("div", {
|
79
|
+
"class": [cn, attrs.class],
|
80
|
+
"style": [style.value, attrs.style]
|
81
|
+
}, [children]);
|
67
82
|
};
|
68
83
|
}
|
69
|
-
})
|
84
|
+
});
|
85
|
+
const itemProps = () => ({
|
70
86
|
flexBasic: String,
|
71
|
-
hidden:
|
72
|
-
})
|
87
|
+
hidden: booleanType(false)
|
88
|
+
});
|
89
|
+
const Item = /* @__PURE__ */ defineComponent({
|
73
90
|
name: "OFlexitem",
|
74
|
-
inheritAttrs:
|
75
|
-
props:
|
76
|
-
setup(
|
77
|
-
slots
|
78
|
-
attrs
|
79
|
-
emit
|
80
|
-
expose
|
91
|
+
inheritAttrs: false,
|
92
|
+
props: itemProps(),
|
93
|
+
setup(props, {
|
94
|
+
slots,
|
95
|
+
attrs,
|
96
|
+
emit,
|
97
|
+
expose
|
81
98
|
}) {
|
82
|
-
const
|
83
|
-
const
|
84
|
-
|
85
|
-
|
99
|
+
const style = computed(() => {
|
100
|
+
const itemStyle = {};
|
101
|
+
if (props.flexBasic !== "need" && props.flexBasic !== "fill") {
|
102
|
+
itemStyle["flex"] = `0 0 ${props.flexBasic}`;
|
103
|
+
}
|
104
|
+
return itemStyle;
|
105
|
+
});
|
106
|
+
const classes = computed(() => {
|
86
107
|
const {
|
87
|
-
hidden
|
88
|
-
} =
|
89
|
-
let
|
90
|
-
|
91
|
-
"
|
108
|
+
hidden
|
109
|
+
} = props;
|
110
|
+
let flexClass = "orion-flexitem-fill";
|
111
|
+
if (props.flexBasic) {
|
112
|
+
if (props.flexBasic == "need") {
|
113
|
+
flexClass = "orion-flexitem-auto";
|
114
|
+
} else if (props.flexBasic !== "need" && props.flexBasic !== "fill") {
|
115
|
+
flexClass = "orion-flexitem-fixed";
|
116
|
+
}
|
117
|
+
}
|
118
|
+
return ["orion-flexitem", flexClass, {
|
119
|
+
[`orion-hidden`]: hidden
|
92
120
|
}];
|
93
121
|
});
|
94
122
|
return () => {
|
95
|
-
var
|
96
|
-
const
|
97
|
-
return
|
98
|
-
class: [
|
99
|
-
style: [
|
100
|
-
}, [
|
123
|
+
var _a;
|
124
|
+
const children = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
125
|
+
return createVNode("div", {
|
126
|
+
"class": [classes.value, attrs.class],
|
127
|
+
"style": [style.value, attrs.style]
|
128
|
+
}, [children]);
|
101
129
|
};
|
102
130
|
}
|
103
131
|
});
|
104
|
-
|
105
|
-
|
132
|
+
Row.install = function(app) {
|
133
|
+
app.component(Row.name, Row);
|
134
|
+
return app;
|
106
135
|
};
|
107
|
-
|
108
|
-
|
136
|
+
Col.install = function(app) {
|
137
|
+
app.component(Col.name, Col);
|
138
|
+
return app;
|
109
139
|
};
|
110
|
-
|
111
|
-
|
140
|
+
Item.install = function(app) {
|
141
|
+
app.component(Item.name, Item);
|
142
|
+
return app;
|
112
143
|
};
|
113
|
-
const
|
144
|
+
const Rowflex = Row;
|
145
|
+
const Colflex = Col;
|
146
|
+
const Flexitem = Item;
|
114
147
|
export {
|
115
|
-
|
116
|
-
|
117
|
-
|
148
|
+
Colflex,
|
149
|
+
Flexitem,
|
150
|
+
Rowflex
|
118
151
|
};
|
119
152
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Flex/Row.tsx","../../../src/components/Flex/Col.tsx","../../../src/components/Flex/Item.tsx","../../../src/components/Flex/index.ts"],"sourcesContent":["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 } from '../_util/type'\r\n\r\nexport const rowProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'ORowflex',\r\n inheritAttrs: false,\r\n props: rowProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\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 } from '../_util/type'\r\n\r\nexport const colProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OColflex',\r\n inheritAttrs: false,\r\n props: colProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-column')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\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 } from '../_util/type'\r\n\r\nexport const itemProps = () => ({\r\n flexBasic: String,\r\n hidden: booleanType(false),\r\n})\r\n\r\nexport type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OFlexitem',\r\n inheritAttrs: false,\r\n props: itemProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const itemStyle: CSSProperties = {}\r\n\r\n if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n itemStyle['flex'] = `0 0 ${props.flexBasic}`\r\n }\r\n\r\n return itemStyle\r\n })\r\n\r\n const classes = computed(() => {\r\n const { hidden } = props\r\n\r\n let flexClass = 'orion-flexitem-fill'\r\n if (props.flexBasic) {\r\n if (props.flexBasic == 'need') {\r\n flexClass = 'orion-flexitem-auto'\r\n } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n flexClass = 'orion-flexitem-fixed'\r\n }\r\n }\r\n\r\n return ['orion-flexitem', flexClass, { [`orion-hidden`]: hidden }]\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n return (\r\n <div class={[classes.value, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import type { App, Plugin } from 'vue'\r\n\r\nimport Row from './Row'\r\nimport Col from './Col'\r\nimport Item from './Item'\r\n\r\nRow.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Row.name, Row)\r\n return app\r\n}\r\nCol.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Col.name, Col)\r\n return app\r\n}\r\nItem.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Item.name, Item)\r\n return app\r\n}\r\n\r\nexport const Rowflex = Row as typeof Row & Plugin\r\nexport const Colflex = Col as typeof Col & Plugin\r\nexport const Flexitem = Item as typeof Item & Plugin\r\n\r\nexport type { RowProps as RowflexProps } from './Row'\r\nexport type { ColProps as ColflexProps } from './Col'\r\nexport type { ItemProps as FlexitemProps } from './Item'\r\n"],"names":["rowProps","gutter","anyType","height","String","defineComponent","name","inheritAttrs","props","setup","slots","attrs","emit","expose","style","computed","rowStyle","gap","undefined","OrionError","children","default","cn","classNames","_createVNode","class","value","colProps","itemProps","flexBasic","hidden","booleanType","itemStyle","classes","flexClass"
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Flex/Row.tsx","../../../src/components/Flex/Col.tsx","../../../src/components/Flex/Item.tsx","../../../src/components/Flex/index.ts"],"sourcesContent":["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 } from '../_util/type'\r\n\r\nexport const rowProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'ORowflex',\r\n inheritAttrs: false,\r\n props: rowProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\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 } from '../_util/type'\r\n\r\nexport const colProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OColflex',\r\n inheritAttrs: false,\r\n props: colProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-column')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\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 } from '../_util/type'\r\n\r\nexport const itemProps = () => ({\r\n flexBasic: String,\r\n hidden: booleanType(false),\r\n})\r\n\r\nexport type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OFlexitem',\r\n inheritAttrs: false,\r\n props: itemProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const itemStyle: CSSProperties = {}\r\n\r\n if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n itemStyle['flex'] = `0 0 ${props.flexBasic}`\r\n }\r\n\r\n return itemStyle\r\n })\r\n\r\n const classes = computed(() => {\r\n const { hidden } = props\r\n\r\n let flexClass = 'orion-flexitem-fill'\r\n if (props.flexBasic) {\r\n if (props.flexBasic == 'need') {\r\n flexClass = 'orion-flexitem-auto'\r\n } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n flexClass = 'orion-flexitem-fixed'\r\n }\r\n }\r\n\r\n return ['orion-flexitem', flexClass, { [`orion-hidden`]: hidden }]\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n return (\r\n <div class={[classes.value, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import type { App, Plugin } from 'vue'\r\n\r\nimport Row from './Row'\r\nimport Col from './Col'\r\nimport Item from './Item'\r\n\r\nRow.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Row.name, Row)\r\n return app\r\n}\r\nCol.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Col.name, Col)\r\n return app\r\n}\r\nItem.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Item.name, Item)\r\n return app\r\n}\r\n\r\nexport const Rowflex = Row as typeof Row & Plugin\r\nexport const Colflex = Col as typeof Col & Plugin\r\nexport const Flexitem = Item as typeof Item & Plugin\r\n\r\nexport type { RowProps as RowflexProps } from './Row'\r\nexport type { ColProps as ColflexProps } from './Col'\r\nexport type { ItemProps as FlexitemProps } from './Item'\r\n"],"names":["rowProps","gutter","anyType","height","String","defineComponent","name","inheritAttrs","props","setup","slots","attrs","emit","expose","style","computed","rowStyle","gap","undefined","OrionError","children","default","cn","classNames","_createVNode","class","value","colProps","itemProps","flexBasic","hidden","booleanType","itemStyle","classes","flexClass"],"mappings":"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"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Form.js","sources":["../../../src/components/Form/Form.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\nimport type { FormRules as ElFormRules, FormItemRule as ElFormItemRule } from 'element-plus'\r\nimport type { Arrayable as ElArrayable } from 'element-plus/es/utils/typescript'\r\n\r\nexport type FormRules = ElFormRules\r\nexport type FormItemRule = ElFormItemRule\r\nexport type Arrayable<T> = ElArrayable<T>\r\n\r\nexport interface FormProps {\r\n rules?: FormRules\r\n itemSpan?: number\r\n itemLabelWidth?: string | number\r\n disabled?: boolean\r\n modelValue: Record<string, any>\r\n}\r\n\r\nexport interface FormExpose {\r\n validate: () => Promise<boolean>\r\n}\r\n\r\nexport interface FormContext {\r\n modelValue: Record<string, any>\r\n updateModelValue: (name: string, value: any) => void\r\n updateModelValueMulti: (data: Record<string, any>) => void\r\n rules?: FormRules\r\n itemSpan: number\r\n disabled?: boolean\r\n}\r\n\r\nexport const formContextKey: InjectionKey<FormContext> = Symbol('formContextKey')\r\n"],"names":[
|
1
|
+
{"version":3,"file":"Form.js","sources":["../../../src/components/Form/Form.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\nimport type { FormRules as ElFormRules, FormItemRule as ElFormItemRule } from 'element-plus'\r\nimport type { Arrayable as ElArrayable } from 'element-plus/es/utils/typescript'\r\n\r\nexport type FormRules = ElFormRules\r\nexport type FormItemRule = ElFormItemRule\r\nexport type Arrayable<T> = ElArrayable<T>\r\n\r\nexport interface FormProps {\r\n rules?: FormRules\r\n itemSpan?: number\r\n itemLabelWidth?: string | number\r\n disabled?: boolean\r\n modelValue: Record<string, any>\r\n}\r\n\r\nexport interface FormExpose {\r\n validate: () => Promise<boolean>\r\n}\r\n\r\nexport interface FormContext {\r\n modelValue: Record<string, any>\r\n updateModelValue: (name: string, value: any) => void\r\n updateModelValueMulti: (data: Record<string, any>) => void\r\n rules?: FormRules\r\n itemSpan: number\r\n disabled?: boolean\r\n}\r\n\r\nexport const formContextKey: InjectionKey<FormContext> = Symbol('formContextKey')\r\n"],"names":[],"mappings":"AA6Ba,MAAA,iBAA4C,OAAO,gBAAgB;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LovInput.js","sources":["../../../../src/components/Form/LovInput/LovInput.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\nimport { FormItemRule, Arrayable } from '../Form'\r\n\r\nexport interface LovInputProps {\r\n name: string\r\n label?: string\r\n span?: number\r\n labelWidth?: string | number\r\n required?: boolean\r\n rules?: Arrayable<FormItemRule>\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n readonly?: boolean\r\n fillMapping?: string | ((params: Record<string, any>) => void)\r\n}\r\n\r\nexport type KeydownHandler = (code: string) => void\r\n\r\nexport interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n registerKeydownHandler: (handler: KeydownHandler) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":[
|
1
|
+
{"version":3,"file":"LovInput.js","sources":["../../../../src/components/Form/LovInput/LovInput.ts"],"sourcesContent":["import { InjectionKey } from 'vue'\r\nimport { FormItemRule, Arrayable } from '../Form'\r\n\r\nexport interface LovInputProps {\r\n name: string\r\n label?: string\r\n span?: number\r\n labelWidth?: string | number\r\n required?: boolean\r\n rules?: Arrayable<FormItemRule>\r\n maxlength?: string | number\r\n placeholder?: string\r\n disabled?: boolean\r\n readonly?: boolean\r\n fillMapping?: string | ((params: Record<string, any>) => void)\r\n}\r\n\r\nexport type KeydownHandler = (code: string) => void\r\n\r\nexport interface LovContext {\r\n lovValue: any\r\n backfill: (params: Record<string, any>) => void\r\n registerKeydownHandler: (handler: KeydownHandler) => void\r\n}\r\n\r\nexport const lovContextKey: InjectionKey<LovContext> = Symbol('lovContextKey')\r\n"],"names":[],"mappings":"AAyBa,MAAA,gBAA0C,OAAO,eAAe;"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { inject
|
2
|
-
import { lovContextKey
|
3
|
-
function
|
4
|
-
return
|
1
|
+
import { inject } from "vue";
|
2
|
+
import { lovContextKey } from "../LovInput.js";
|
3
|
+
function useLov() {
|
4
|
+
return inject(lovContextKey);
|
5
5
|
}
|
6
6
|
export {
|
7
|
-
|
7
|
+
useLov as default
|
8
8
|
};
|
9
9
|
//# sourceMappingURL=useLov.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useLov.js","sources":["../../../../../src/components/Form/LovInput/hooks/useLov.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport { lovContextKey } from '../LovInput'\r\n\r\nexport default function useLov() {\r\n return inject(lovContextKey)\r\n}\r\n"],"names":[
|
1
|
+
{"version":3,"file":"useLov.js","sources":["../../../../../src/components/Form/LovInput/hooks/useLov.ts"],"sourcesContent":["import { inject } from 'vue'\r\nimport { lovContextKey } from '../LovInput'\r\n\r\nexport default function useLov() {\r\n return inject(lovContextKey)\r\n}\r\n"],"names":[],"mappings":";;AAGA,SAAwB,SAAS;AAC/B,SAAO,OAAO,aAAa;AAC7B;"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { lovContextKey
|
2
|
-
import { default as
|
1
|
+
import { lovContextKey } from "./LovInput.js";
|
2
|
+
import { default as default2 } from "./hooks/useLov.js";
|
3
3
|
export {
|
4
|
-
|
5
|
-
|
4
|
+
lovContextKey,
|
5
|
+
default2 as useLov
|
6
6
|
};
|
7
7
|
//# sourceMappingURL=index.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const formItemValidateTrigger = {
|
2
2
|
OFormString: "blur",
|
3
3
|
OFormSingleselect: "change",
|
4
4
|
OFormMultiselect: "change",
|
@@ -13,6 +13,6 @@ const r = {
|
|
13
13
|
OFormDiy: "blur"
|
14
14
|
};
|
15
15
|
export {
|
16
|
-
|
16
|
+
formItemValidateTrigger as default
|
17
17
|
};
|
18
18
|
//# sourceMappingURL=FormItemValidateTrigger.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormItemValidateTrigger.js","sources":["../../../../src/components/Form/hooks/FormItemValidateTrigger.ts"],"sourcesContent":["export default {\r\n OFormString: 'blur',\r\n OFormSingleselect: 'change',\r\n OFormMultiselect: 'change',\r\n OFormRadiogroup: 'change',\r\n OFormCheckboxgroup: 'change',\r\n OFormCheckbox: 'change',\r\n OFormSwitch: 'change',\r\n OFormTextarea: 'blur',\r\n OFormPassword: 'blur',\r\n OFormDate: 'blur',\r\n OFormFile: 'blur',\r\n OFormDiy: 'blur',\r\n}\r\n"],"names":[
|
1
|
+
{"version":3,"file":"FormItemValidateTrigger.js","sources":["../../../../src/components/Form/hooks/FormItemValidateTrigger.ts"],"sourcesContent":["export default {\r\n OFormString: 'blur',\r\n OFormSingleselect: 'change',\r\n OFormMultiselect: 'change',\r\n OFormRadiogroup: 'change',\r\n OFormCheckboxgroup: 'change',\r\n OFormCheckbox: 'change',\r\n OFormSwitch: 'change',\r\n OFormTextarea: 'blur',\r\n OFormPassword: 'blur',\r\n OFormDate: 'blur',\r\n OFormFile: 'blur',\r\n OFormDiy: 'blur',\r\n}\r\n"],"names":[],"mappings":"AAAA,MAAe,0BAAA;AAAA,EACb,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,aAAa;AAAA,EACb,eAAe;AAAA,EACf,eAAe;AAAA,EACf,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AACZ;"}
|