ll-plus 2.2.18 → 2.2.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/component.mjs +3 -1
- package/es/component.mjs.map +1 -1
- package/es/components/checkbox/index.d.ts +4 -0
- package/es/components/checkbox/src/checkbox-group.vue.d.ts +4 -0
- package/es/components/checkbox/src/checkbox-group.vue2.mjs +1 -1
- package/es/components/checkbox/src/checkbox-group.vue2.mjs.map +1 -1
- package/es/components/checkbox/src/checkbox.d.ts +1 -0
- package/es/components/checkbox/src/checkbox.mjs +4 -0
- package/es/components/checkbox/src/checkbox.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +2 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/key-value/src/components/key-value-item.vue2.mjs +11 -6
- package/es/components/key-value/src/components/key-value-item.vue2.mjs.map +1 -1
- package/es/components/key-value/src/key-value.vue2.mjs +8 -6
- package/es/components/key-value/src/key-value.vue2.mjs.map +1 -1
- package/es/components/upload-drag/index.d.ts +1 -2
- package/es/components/upload-drag/index.mjs.map +1 -1
- package/es/components/uri-input/index.d.ts +51 -0
- package/es/components/uri-input/index.mjs +10 -0
- package/es/components/uri-input/index.mjs.map +1 -0
- package/es/components/uri-input/src/uri-input.d.ts +22 -0
- package/es/components/uri-input/src/uri-input.mjs +51 -0
- package/es/components/uri-input/src/uri-input.mjs.map +1 -0
- package/es/components/uri-input/src/uri-input.vue.d.ts +42 -0
- package/es/components/uri-input/src/uri-input.vue.mjs +8 -0
- package/es/components/uri-input/src/uri-input.vue.mjs.map +1 -0
- package/es/components/uri-input/src/uri-input.vue2.mjs +82 -0
- package/es/components/uri-input/src/uri-input.vue2.mjs.map +1 -0
- package/es/index.mjs +2 -0
- package/es/index.mjs.map +1 -1
- package/es/utils/props/runtime.d.ts +2 -2
- package/global.d.ts +1 -0
- package/index.full.js +316 -175
- package/index.full.min.js +15 -15
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +15 -15
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +312 -176
- package/lib/component.js +3 -1
- package/lib/component.js.map +1 -1
- package/lib/components/checkbox/index.d.ts +4 -0
- package/lib/components/checkbox/src/checkbox-group.vue.d.ts +4 -0
- package/lib/components/checkbox/src/checkbox-group.vue2.js +1 -1
- package/lib/components/checkbox/src/checkbox-group.vue2.js.map +1 -1
- package/lib/components/checkbox/src/checkbox.d.ts +1 -0
- package/lib/components/checkbox/src/checkbox.js +4 -0
- package/lib/components/checkbox/src/checkbox.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/key-value/src/components/key-value-item.vue2.js +10 -5
- package/lib/components/key-value/src/components/key-value-item.vue2.js.map +1 -1
- package/lib/components/key-value/src/key-value.vue2.js +8 -6
- package/lib/components/key-value/src/key-value.vue2.js.map +1 -1
- package/lib/components/upload-drag/index.d.ts +1 -2
- package/lib/components/upload-drag/index.js.map +1 -1
- package/lib/components/uri-input/index.d.ts +51 -0
- package/lib/components/uri-input/index.js +19 -0
- package/lib/components/uri-input/index.js.map +1 -0
- package/lib/components/uri-input/src/uri-input.d.ts +22 -0
- package/lib/components/uri-input/src/uri-input.js +56 -0
- package/lib/components/uri-input/src/uri-input.js.map +1 -0
- package/lib/components/uri-input/src/uri-input.vue.d.ts +42 -0
- package/lib/components/uri-input/src/uri-input.vue.js +12 -0
- package/lib/components/uri-input/src/uri-input.vue.js.map +1 -0
- package/lib/components/uri-input/src/uri-input.vue2.js +86 -0
- package/lib/components/uri-input/src/uri-input.vue2.js.map +1 -0
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/types/packages/components/checkbox/index.d.ts +4 -0
- package/types/packages/components/checkbox/src/checkbox-group.vue.d.ts +4 -0
- package/types/packages/components/checkbox/src/checkbox.d.ts +1 -0
- package/types/packages/components/index.d.ts +1 -0
- package/types/packages/components/upload-drag/index.d.ts +1 -2
- package/types/packages/components/uri-input/index.d.ts +51 -0
- package/types/packages/components/uri-input/src/uri-input.d.ts +22 -0
- package/types/packages/components/uri-input/src/uri-input.vue.d.ts +42 -0
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var lodashEs = require('lodash-es');
|
|
7
|
+
var uriInput = require('./uri-input.js');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
11
|
+
...{ name: "LlUriInput" },
|
|
12
|
+
__name: "uri-input",
|
|
13
|
+
props: uriInput.uriInputProps,
|
|
14
|
+
emits: uriInput.uriInputEmits,
|
|
15
|
+
setup(__props, { emit: __emit }) {
|
|
16
|
+
const props = __props;
|
|
17
|
+
const emits = __emit;
|
|
18
|
+
const attrs = vue.useAttrs();
|
|
19
|
+
const innerValue = vue.ref();
|
|
20
|
+
const innerPrefix = vue.ref();
|
|
21
|
+
const getBindValue = vue.computed(() => {
|
|
22
|
+
return lodashEs.omit(attrs, Object.keys(uriInput.uriInputProps));
|
|
23
|
+
});
|
|
24
|
+
const handleChange = () => {
|
|
25
|
+
const url = innerValue.value ? innerPrefix.value + innerValue.value + (props.suffix || "") : "";
|
|
26
|
+
emits("update:value", url);
|
|
27
|
+
emits("change", url);
|
|
28
|
+
};
|
|
29
|
+
vue.watch(
|
|
30
|
+
() => props.value,
|
|
31
|
+
(val) => {
|
|
32
|
+
const { prefix, url } = uriInput.getHttpMethodUri(val);
|
|
33
|
+
innerPrefix.value = prefix;
|
|
34
|
+
innerValue.value = url;
|
|
35
|
+
if (props.suffix) {
|
|
36
|
+
innerValue.value = url.replace(props.suffix, "");
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
immediate: true
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
vue.watch(innerValue, () => {
|
|
44
|
+
handleChange();
|
|
45
|
+
});
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
const _component_ll_select = vue.resolveComponent("ll-select");
|
|
48
|
+
const _component_ll_input = vue.resolveComponent("ll-input");
|
|
49
|
+
return vue.openBlock(), vue.createBlock(_component_ll_input, vue.mergeProps({
|
|
50
|
+
value: innerValue.value,
|
|
51
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => innerValue.value = $event),
|
|
52
|
+
disabled: props.disabled
|
|
53
|
+
}, getBindValue.value), vue.createSlots({
|
|
54
|
+
addonBefore: vue.withCtx(() => [
|
|
55
|
+
vue.createVNode(_component_ll_select, {
|
|
56
|
+
value: innerPrefix.value,
|
|
57
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => innerPrefix.value = $event),
|
|
58
|
+
options: vue.unref(uriInput.httpUriOptions),
|
|
59
|
+
style: { "width": "90px" },
|
|
60
|
+
disabled: props.disabled,
|
|
61
|
+
onChange: handleChange
|
|
62
|
+
}, null, 8, ["value", "options", "disabled"])
|
|
63
|
+
]),
|
|
64
|
+
_: 2
|
|
65
|
+
/* DYNAMIC */
|
|
66
|
+
}, [
|
|
67
|
+
props.suffix ? {
|
|
68
|
+
name: "suffix",
|
|
69
|
+
fn: vue.withCtx(() => [
|
|
70
|
+
vue.createElementVNode(
|
|
71
|
+
"span",
|
|
72
|
+
null,
|
|
73
|
+
vue.toDisplayString(props.suffix),
|
|
74
|
+
1
|
|
75
|
+
/* TEXT */
|
|
76
|
+
)
|
|
77
|
+
]),
|
|
78
|
+
key: "0"
|
|
79
|
+
} : void 0
|
|
80
|
+
]), 1040, ["value", "disabled"]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
exports.default = _sfc_main;
|
|
86
|
+
//# sourceMappingURL=uri-input.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uri-input.vue2.js","sources":["../../../../../packages/components/uri-input/src/uri-input.vue"],"sourcesContent":["<template>\n <ll-input\n v-model:value=\"innerValue\"\n :disabled=\"props.disabled\"\n v-bind=\"getBindValue\"\n >\n <template #addonBefore>\n <ll-select\n v-model:value=\"innerPrefix\"\n :options=\"httpUriOptions\"\n style=\"width: 90px\"\n :disabled=\"props.disabled\"\n @change=\"handleChange\"\n />\n </template>\n <template v-if=\"props.suffix\" #suffix>\n <span>{{ props.suffix }}</span>\n </template>\n </ll-input>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, useAttrs, watch, computed } from 'vue'\nimport { omit } from 'lodash-es'\nimport {\n uriInputProps,\n uriInputEmits,\n httpUriOptions,\n getHttpMethodUri\n} from './uri-input'\n\n//Component Config\ndefineOptions({ name: 'LlUriInput' })\nconst props = defineProps(uriInputProps)\nconst emits = defineEmits(uriInputEmits)\nconst attrs = useAttrs()\n\nconst innerValue = ref()\nconst innerPrefix = ref()\n\nconst getBindValue = computed(() => {\n return omit(attrs, Object.keys(uriInputProps))\n})\n\nconst handleChange = () => {\n const url = innerValue.value\n ? innerPrefix.value + innerValue.value + (props.suffix || '')\n : ''\n emits('update:value', url)\n emits('change', url)\n}\n\nwatch(\n () => props.value,\n val => {\n const { prefix, url } = getHttpMethodUri(val)\n innerPrefix.value = prefix\n innerValue.value = url\n if (props.suffix) {\n innerValue.value = url.replace(props.suffix, '')\n }\n },\n {\n immediate: true\n }\n)\n\nwatch(innerValue, () => {\n handleChange()\n})\n</script>\n"],"names":["useAttrs","ref","computed","omit","uriInputProps","watch","getHttpMethodUri"],"mappings":";;;;;;;;;;;;;;;AAiCA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AACd,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,aAAaC,OAAI,EAAA,CAAA;AACvB,IAAA,MAAM,cAAcA,OAAI,EAAA,CAAA;AAExB,IAAM,MAAA,YAAA,GAAeC,aAAS,MAAM;AAClC,MAAA,OAAOC,aAAK,CAAA,KAAA,EAAO,MAAO,CAAA,IAAA,CAAKC,sBAAa,CAAC,CAAA,CAAA;AAAA,KAC9C,CAAA,CAAA;AAED,IAAA,MAAM,eAAe,MAAM;AACzB,MAAM,MAAA,GAAA,GAAM,WAAW,KACnB,GAAA,WAAA,CAAY,QAAQ,UAAW,CAAA,KAAA,IAAS,KAAM,CAAA,MAAA,IAAU,EACxD,CAAA,GAAA,EAAA,CAAA;AACJ,MAAA,KAAA,CAAM,gBAAgB,GAAG,CAAA,CAAA;AACzB,MAAA,KAAA,CAAM,UAAU,GAAG,CAAA,CAAA;AAAA,KACrB,CAAA;AAEA,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,KAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,MAAM,EAAE,MAAA,EAAQ,GAAI,EAAA,GAAIC,0BAAiB,GAAG,CAAA,CAAA;AAC5C,QAAA,WAAA,CAAY,KAAQ,GAAA,MAAA,CAAA;AACpB,QAAA,UAAA,CAAW,KAAQ,GAAA,GAAA,CAAA;AACnB,QAAA,IAAI,MAAM,MAAQ,EAAA;AAChB,UAAA,UAAA,CAAW,KAAQ,GAAA,GAAA,CAAI,OAAQ,CAAA,KAAA,CAAM,QAAQ,EAAE,CAAA,CAAA;AAAA,SACjD;AAAA,OACF;AAAA,MACA;AAAA,QACE,SAAW,EAAA,IAAA;AAAA,OACb;AAAA,KACF,CAAA;AAEA,IAAAD,SAAA,CAAM,YAAY,MAAM;AACtB,MAAa,YAAA,EAAA,CAAA;AAAA,KACd,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -104,6 +104,8 @@ var dropdown = require('./components/dropdown/src/dropdown.js');
|
|
|
104
104
|
var index$I = require('./components/dropdown/index.js');
|
|
105
105
|
var uploadDrag = require('./components/upload-drag/src/upload-drag.js');
|
|
106
106
|
var index$J = require('./components/upload-drag/index.js');
|
|
107
|
+
var uriInput = require('./components/uri-input/src/uri-input.js');
|
|
108
|
+
var index$K = require('./components/uri-input/index.js');
|
|
107
109
|
|
|
108
110
|
"use strict";
|
|
109
111
|
const install = defaults.default.install;
|
|
@@ -295,5 +297,10 @@ exports.LlDropdown = index$I.LlDropdown;
|
|
|
295
297
|
exports.LlDropdownButton = index$I.LlDropdownButton;
|
|
296
298
|
exports.ILlUploadDragProps = uploadDrag.ILlUploadDragProps;
|
|
297
299
|
exports.LlUploadDrag = index$J.LlUploadDrag;
|
|
300
|
+
exports.getHttpMethodUri = uriInput.getHttpMethodUri;
|
|
301
|
+
exports.httpUriOptions = uriInput.httpUriOptions;
|
|
302
|
+
exports.uriInputEmits = uriInput.uriInputEmits;
|
|
303
|
+
exports.uriInputProps = uriInput.uriInputProps;
|
|
304
|
+
exports.LlUriInput = index$K.LlUriInput;
|
|
298
305
|
exports.install = install;
|
|
299
306
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n// 按需导入 import {ZIcon} from 'll-plus'\nexport * from '@ll-plus/components/index'\n\nexport const install = installer.install\nexport default installer\n"],"names":["installer"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../packages/ll-plus/index.ts"],"sourcesContent":["import installer from './defaults'\n// 按需导入 import {ZIcon} from 'll-plus'\nexport * from '@ll-plus/components/index'\n\nexport const install = installer.install\nexport default installer\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,MAAM,UAAUA,gBAAU,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -27,6 +27,6 @@ export declare const buildProp: <Type = never, Value = never, Validator = never,
|
|
|
27
27
|
export type TestProps = Record<string, {
|
|
28
28
|
[epPropKey]: true;
|
|
29
29
|
} | NativePropType | EpPropInput<any, any, any, any, any>>;
|
|
30
|
-
export declare const buildProps: <Props extends Record<string,
|
|
30
|
+
export declare const buildProps: <Props extends Record<string, {
|
|
31
31
|
__epPropKey: true;
|
|
32
|
-
}
|
|
32
|
+
} | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|
package/package.json
CHANGED
|
@@ -665,6 +665,7 @@ export declare const LlCheckboxGroup: import("ll-plus/es/utils").SFCWithInstall<
|
|
|
665
665
|
default: any;
|
|
666
666
|
};
|
|
667
667
|
}>>))[], unknown, unknown, () => void, boolean>;
|
|
668
|
+
readonly allSpan: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
|
|
668
669
|
}, {
|
|
669
670
|
props: import("@vue/shared").LooseRequired<{
|
|
670
671
|
readonly options: (import("ant-design-vue").CheckboxOptionType & {
|
|
@@ -751,6 +752,7 @@ export declare const LlCheckboxGroup: import("ll-plus/es/utils").SFCWithInstall<
|
|
|
751
752
|
default: any;
|
|
752
753
|
};
|
|
753
754
|
}>>;
|
|
755
|
+
readonly allSpan: number;
|
|
754
756
|
} & {}>;
|
|
755
757
|
bem: {
|
|
756
758
|
b: (blockSuffix?: string) => string;
|
|
@@ -1904,6 +1906,7 @@ export declare const LlCheckboxGroup: import("ll-plus/es/utils").SFCWithInstall<
|
|
|
1904
1906
|
default: any;
|
|
1905
1907
|
};
|
|
1906
1908
|
}>>))[], unknown, unknown, () => void, boolean>;
|
|
1909
|
+
readonly allSpan: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
|
|
1907
1910
|
}>>, {
|
|
1908
1911
|
readonly options: (import("ant-design-vue").CheckboxOptionType & {
|
|
1909
1912
|
colOptions?: Partial<import("vue").ExtractPropTypes<{
|
|
@@ -1989,6 +1992,7 @@ export declare const LlCheckboxGroup: import("ll-plus/es/utils").SFCWithInstall<
|
|
|
1989
1992
|
default: any;
|
|
1990
1993
|
};
|
|
1991
1994
|
}>>;
|
|
1995
|
+
readonly allSpan: number;
|
|
1992
1996
|
}, {}>>;
|
|
1993
1997
|
export * from './src/checkbox';
|
|
1994
1998
|
declare module 'vue' {
|
|
@@ -329,6 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
329
329
|
default: any;
|
|
330
330
|
};
|
|
331
331
|
}>>))[], unknown, unknown, () => void, boolean>;
|
|
332
|
+
readonly allSpan: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
|
|
332
333
|
}, {
|
|
333
334
|
props: import("@vue/shared").LooseRequired<{
|
|
334
335
|
readonly options: (import("ant-design-vue").CheckboxOptionType & {
|
|
@@ -415,6 +416,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
415
416
|
default: any;
|
|
416
417
|
};
|
|
417
418
|
}>>;
|
|
419
|
+
readonly allSpan: number;
|
|
418
420
|
} & {}>;
|
|
419
421
|
bem: {
|
|
420
422
|
b: (blockSuffix?: string) => string;
|
|
@@ -1568,6 +1570,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1568
1570
|
default: any;
|
|
1569
1571
|
};
|
|
1570
1572
|
}>>))[], unknown, unknown, () => void, boolean>;
|
|
1573
|
+
readonly allSpan: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
|
|
1571
1574
|
}>>, {
|
|
1572
1575
|
readonly options: (import("ant-design-vue").CheckboxOptionType & {
|
|
1573
1576
|
colOptions?: Partial<import("vue").ExtractPropTypes<{
|
|
@@ -1653,5 +1656,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1653
1656
|
default: any;
|
|
1654
1657
|
};
|
|
1655
1658
|
}>>;
|
|
1659
|
+
readonly allSpan: number;
|
|
1656
1660
|
}, {}>;
|
|
1657
1661
|
export default _default;
|
|
@@ -197,6 +197,7 @@ export declare const checkboxGroupProps: {
|
|
|
197
197
|
default: any;
|
|
198
198
|
};
|
|
199
199
|
}>>))[], unknown, unknown, () => void, boolean>;
|
|
200
|
+
readonly allSpan: import("ll-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 24, boolean>;
|
|
200
201
|
};
|
|
201
202
|
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
|
202
203
|
export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import UploadDrag from './src/upload-drag.vue';
|
|
2
1
|
export declare const LlUploadDrag: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
2
|
value: {
|
|
4
3
|
type: ArrayConstructor;
|
|
@@ -104,6 +103,6 @@ export default LlUploadDrag;
|
|
|
104
103
|
export * from './src/upload-drag';
|
|
105
104
|
declare module 'vue' {
|
|
106
105
|
interface GlobalComponents {
|
|
107
|
-
LlUploadDrag: typeof
|
|
106
|
+
LlUploadDrag: typeof LlUploadDrag;
|
|
108
107
|
}
|
|
109
108
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file LlUriInput组件引出
|
|
3
|
+
*/
|
|
4
|
+
export declare const LlUriInput: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
5
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [StringConstructor, null], unknown, unknown, "", boolean>;
|
|
6
|
+
readonly suffix: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
7
|
+
readonly disabled: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
8
|
+
}, {
|
|
9
|
+
props: import("@vue/shared").LooseRequired<{
|
|
10
|
+
readonly value: any;
|
|
11
|
+
readonly disabled: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
12
|
+
readonly suffix: string;
|
|
13
|
+
readonly onChange?: ((value: string) => any) | undefined;
|
|
14
|
+
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
15
|
+
} & {}>;
|
|
16
|
+
emits: ((event: "change", value: string) => void) & ((event: "update:value", value: string) => void);
|
|
17
|
+
attrs: {
|
|
18
|
+
[x: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
innerValue: import("vue").Ref<any>;
|
|
21
|
+
innerPrefix: import("vue").Ref<any>;
|
|
22
|
+
getBindValue: import("vue").ComputedRef<import("lodash").Omit<{
|
|
23
|
+
[x: string]: unknown;
|
|
24
|
+
}, string>>;
|
|
25
|
+
handleChange: () => void;
|
|
26
|
+
readonly httpUriOptions: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
|
+
'update:value': (value: string) => boolean;
|
|
32
|
+
change: (value: string) => boolean;
|
|
33
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [StringConstructor, null], unknown, unknown, "", boolean>;
|
|
35
|
+
readonly suffix: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
36
|
+
readonly disabled: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
37
|
+
}>> & {
|
|
38
|
+
onChange?: ((value: string) => any) | undefined;
|
|
39
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
readonly value: any;
|
|
42
|
+
readonly disabled: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
43
|
+
readonly suffix: string;
|
|
44
|
+
}, {}>>;
|
|
45
|
+
export default LlUriInput;
|
|
46
|
+
export * from './src/uri-input';
|
|
47
|
+
declare module 'vue' {
|
|
48
|
+
interface GlobalComponents {
|
|
49
|
+
LlUriInput: typeof LlUriInput;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type UriInput from './uri-input.vue';
|
|
3
|
+
export declare const httpUriOptions: {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const getHttpMethodUri: (uri: string) => {
|
|
8
|
+
prefix: string;
|
|
9
|
+
url: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const uriInputProps: {
|
|
12
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [StringConstructor, null], unknown, unknown, "", boolean>;
|
|
13
|
+
readonly suffix: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
14
|
+
readonly disabled: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
15
|
+
};
|
|
16
|
+
export declare const uriInputEmits: {
|
|
17
|
+
'update:value': (value: string) => boolean;
|
|
18
|
+
change: (value: string) => boolean;
|
|
19
|
+
};
|
|
20
|
+
export type UriInputProps = ExtractPropTypes<typeof uriInputProps>;
|
|
21
|
+
export type UriInputEmits = typeof uriInputEmits;
|
|
22
|
+
export type UriInputInstance = InstanceType<typeof UriInput>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [StringConstructor, null], unknown, unknown, "", boolean>;
|
|
3
|
+
readonly suffix: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
4
|
+
readonly disabled: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
5
|
+
}, {
|
|
6
|
+
props: import("@vue/shared").LooseRequired<{
|
|
7
|
+
readonly value: any;
|
|
8
|
+
readonly disabled: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
9
|
+
readonly suffix: string;
|
|
10
|
+
readonly onChange?: ((value: string) => any) | undefined;
|
|
11
|
+
readonly "onUpdate:value"?: ((value: string) => any) | undefined;
|
|
12
|
+
} & {}>;
|
|
13
|
+
emits: ((event: "change", value: string) => void) & ((event: "update:value", value: string) => void);
|
|
14
|
+
attrs: {
|
|
15
|
+
[x: string]: unknown;
|
|
16
|
+
};
|
|
17
|
+
innerValue: import("vue").Ref<any>;
|
|
18
|
+
innerPrefix: import("vue").Ref<any>;
|
|
19
|
+
getBindValue: import("vue").ComputedRef<import("lodash").Omit<{
|
|
20
|
+
[x: string]: unknown;
|
|
21
|
+
}, string>>;
|
|
22
|
+
handleChange: () => void;
|
|
23
|
+
readonly httpUriOptions: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
'update:value': (value: string) => boolean;
|
|
29
|
+
change: (value: string) => boolean;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
readonly value: import("ll-plus/es/utils").EpPropFinalized<readonly [StringConstructor, null], unknown, unknown, "", boolean>;
|
|
32
|
+
readonly suffix: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
33
|
+
readonly disabled: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
34
|
+
}>> & {
|
|
35
|
+
onChange?: ((value: string) => any) | undefined;
|
|
36
|
+
"onUpdate:value"?: ((value: string) => any) | undefined;
|
|
37
|
+
}, {
|
|
38
|
+
readonly value: any;
|
|
39
|
+
readonly disabled: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
40
|
+
readonly suffix: string;
|
|
41
|
+
}, {}>;
|
|
42
|
+
export default _default;
|
|
@@ -27,6 +27,6 @@ export declare const buildProp: <Type = never, Value = never, Validator = never,
|
|
|
27
27
|
export type TestProps = Record<string, {
|
|
28
28
|
[epPropKey]: true;
|
|
29
29
|
} | NativePropType | EpPropInput<any, any, any, any, any>>;
|
|
30
|
-
export declare const buildProps: <Props extends Record<string,
|
|
30
|
+
export declare const buildProps: <Props extends Record<string, {
|
|
31
31
|
__epPropKey: true;
|
|
32
|
-
}
|
|
32
|
+
} | NativePropType | EpPropInput<any, any, any, any, any>>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|