ll-plus 2.6.19 → 2.6.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/components/input/index.d.ts +7 -1
- package/es/components/input/src/input.d.ts +1 -0
- package/es/components/input/src/input.vue.d.ts +7 -1
- package/es/packages/components/input/src/input.mjs +7 -0
- package/es/packages/components/input/src/input.mjs.map +1 -1
- package/es/packages/components/input/src/input.vue2.mjs +4 -2
- package/es/packages/components/input/src/input.vue2.mjs.map +1 -1
- package/es/utils/props/runtime.d.ts +2 -2
- package/index.full.js +11 -2
- package/index.full.min.js +1 -1
- package/index.full.min.js.map +1 -1
- package/index.full.min.mjs +1 -1
- package/index.full.min.mjs.map +1 -1
- package/index.full.mjs +11 -2
- package/lib/components/input/index.d.ts +7 -1
- package/lib/components/input/src/input.d.ts +1 -0
- package/lib/components/input/src/input.vue.d.ts +7 -1
- package/lib/packages/components/input/src/input.js +7 -0
- package/lib/packages/components/input/src/input.js.map +1 -1
- package/lib/packages/components/input/src/input.vue2.js +4 -2
- package/lib/packages/components/input/src/input.vue2.js.map +1 -1
- package/lib/utils/props/runtime.d.ts +2 -2
- package/package.json +1 -1
- package/types/packages/components/input/index.d.ts +7 -1
- package/types/packages/components/input/src/input.d.ts +1 -0
- package/types/packages/components/input/src/input.vue.d.ts +7 -1
- package/types/packages/utils/props/runtime.d.ts +2 -2
|
@@ -24,6 +24,7 @@ export declare const LlInput: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
24
24
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
25
|
__epPropKey: true;
|
|
26
26
|
};
|
|
27
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
27
28
|
}, {
|
|
28
29
|
bem: {
|
|
29
30
|
b: (blockSuffix?: string) => string;
|
|
@@ -36,6 +37,7 @@ export declare const LlInput: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
36
37
|
is: (name?: string) => string;
|
|
37
38
|
};
|
|
38
39
|
props: import("@vue/shared").LooseRequired<{
|
|
40
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
39
41
|
readonly value?: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | undefined))[], unknown, unknown>;
|
|
40
42
|
readonly suffixIcon?: string | undefined;
|
|
41
43
|
readonly prefixIcon?: string | undefined;
|
|
@@ -1305,6 +1307,7 @@ export declare const LlInput: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
1305
1307
|
visibilityToggle: boolean;
|
|
1306
1308
|
}, {}>;
|
|
1307
1309
|
computedAttrs: import("vue").ComputedRef<{
|
|
1310
|
+
allowClear: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1308
1311
|
value: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | undefined))[], unknown, unknown>;
|
|
1309
1312
|
suffixIcon: string | undefined;
|
|
1310
1313
|
prefixIcon: string | undefined;
|
|
@@ -1336,7 +1339,10 @@ export declare const LlInput: import("ll-plus/es/utils").SFCWithInstall<import("
|
|
|
1336
1339
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1337
1340
|
__epPropKey: true;
|
|
1338
1341
|
};
|
|
1339
|
-
|
|
1342
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1343
|
+
}>>, {
|
|
1344
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1345
|
+
}, {}>>;
|
|
1340
1346
|
export default LlInput;
|
|
1341
1347
|
export * from './src/input';
|
|
1342
1348
|
declare module 'vue' {
|
|
@@ -26,6 +26,7 @@ export declare const inputProps: {
|
|
|
26
26
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
27
27
|
__epPropKey: true;
|
|
28
28
|
};
|
|
29
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
29
30
|
};
|
|
30
31
|
export type InputProps = ExtractPropTypes<typeof inputProps>;
|
|
31
32
|
export type InputValue = AntInputProps['value'];
|
|
@@ -23,6 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
24
24
|
__epPropKey: true;
|
|
25
25
|
};
|
|
26
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
27
|
}, {
|
|
27
28
|
bem: {
|
|
28
29
|
b: (blockSuffix?: string) => string;
|
|
@@ -35,6 +36,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
36
|
is: (name?: string) => string;
|
|
36
37
|
};
|
|
37
38
|
props: import("@vue/shared").LooseRequired<{
|
|
39
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
38
40
|
readonly value?: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | undefined))[], unknown, unknown>;
|
|
39
41
|
readonly suffixIcon?: string | undefined;
|
|
40
42
|
readonly prefixIcon?: string | undefined;
|
|
@@ -1304,6 +1306,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1304
1306
|
visibilityToggle: boolean;
|
|
1305
1307
|
}, {}>;
|
|
1306
1308
|
computedAttrs: import("vue").ComputedRef<{
|
|
1309
|
+
allowClear: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1307
1310
|
value: import("ll-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | undefined))[], unknown, unknown>;
|
|
1308
1311
|
suffixIcon: string | undefined;
|
|
1309
1312
|
prefixIcon: string | undefined;
|
|
@@ -1335,5 +1338,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1335
1338
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1336
1339
|
__epPropKey: true;
|
|
1337
1340
|
};
|
|
1338
|
-
|
|
1341
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1342
|
+
}>>, {
|
|
1343
|
+
readonly allowClear: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1344
|
+
}, {}>;
|
|
1339
1345
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.mjs","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { InputProps as AntInputProps } from 'ant-design-vue'\nimport type Input from './input.vue'\n\nexport const inputProps = buildProps({\n /**\n * @description input的value\n */\n value: {\n type: definePropType<AntInputProps['value']>(String)\n },\n /**\n * @description 带有前缀图标的 input\n */\n prefixIcon: {\n type: String\n },\n /**\n * @description 带有后缀图标的 input\n */\n suffixIcon: {\n type: String\n },\n /**\n * @description 是否显示密码框\n */\n showPassword: {\n type: Boolean\n }\n} as const)\n\n// props\nexport type InputProps = ExtractPropTypes<typeof inputProps> // ExtractPropTypes和defineCpmponent类似\nexport type InputValue = AntInputProps['value']\n\n// instance\nexport type InputInstance = InstanceType<typeof Input>\n"],"names":[],"mappings":";;;;AAMO,MAAM,aAAa,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAAuC,MAAM,CAAA;AAAA,GACrD;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,OAAA;AAAA,GACR;AACF,CAAU;;;;"}
|
|
1
|
+
{"version":3,"file":"input.mjs","sources":["../../../../../../packages/components/input/src/input.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { InputProps as AntInputProps } from 'ant-design-vue'\nimport type Input from './input.vue'\n\nexport const inputProps = buildProps({\n /**\n * @description input的value\n */\n value: {\n type: definePropType<AntInputProps['value']>(String)\n },\n /**\n * @description 带有前缀图标的 input\n */\n prefixIcon: {\n type: String\n },\n /**\n * @description 带有后缀图标的 input\n */\n suffixIcon: {\n type: String\n },\n /**\n * @description 是否显示密码框\n */\n showPassword: {\n type: Boolean\n },\n /**\n * @description 是否显示密码框\n */\n allowClear: {\n type: Boolean,\n default: true\n }\n} as const)\n\n// props\nexport type InputProps = ExtractPropTypes<typeof inputProps> // ExtractPropTypes和defineCpmponent类似\nexport type InputValue = AntInputProps['value']\n\n// instance\nexport type InputInstance = InstanceType<typeof Input>\n"],"names":[],"mappings":";;;;AAMO,MAAM,aAAa,UAAW,CAAA;AAAA;AAAA;AAAA;AAAA,EAInC,KAAO,EAAA;AAAA,IACL,IAAA,EAAM,eAAuC,MAAM,CAAA;AAAA,GACrD;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,MAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,YAAc,EAAA;AAAA,IACZ,IAAM,EAAA,OAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AACF,CAAU;;;;"}
|
|
@@ -34,7 +34,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
ref_key: "inputRef",
|
|
35
35
|
ref: inputRef,
|
|
36
36
|
class: unref(bem).b()
|
|
37
|
-
}, computedAttrs.value
|
|
37
|
+
}, computedAttrs.value, {
|
|
38
|
+
"allow-clear": props.allowClear
|
|
39
|
+
}), createSlots({
|
|
38
40
|
_: 2
|
|
39
41
|
/* DYNAMIC */
|
|
40
42
|
}, [
|
|
@@ -66,7 +68,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
68
|
]),
|
|
67
69
|
key: "1"
|
|
68
70
|
} : void 0
|
|
69
|
-
]), 1040, ["class"]);
|
|
71
|
+
]), 1040, ["class", "allow-clear"]);
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.vue2.mjs","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <component\n :is=\"componentType\"\n ref=\"inputRef\"\n :class=\"bem.b()\"\n v-bind=\"computedAttrs\"\n >\n <template v-for=\"item in Object.keys($slots)\" :key=\"item\" #[item]=\"data\">\n <slot :name=\"item\" v-bind=\"data || {}\"></slot>\n </template>\n <template v-if=\"prefixIcon\" #prefix>\n <ll-icon :icon-name=\"prefixIcon\" class-name=\"prefix-icon\" />\n </template>\n <template v-if=\"suffixIcon\" #suffix>\n <ll-icon :icon-name=\"suffixIcon\" class-name=\"suffix-icon\" />\n </template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, useAttrs, watchEffect } from 'vue'\nimport { Input } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { InputValue, inputProps } from './input'\n\ndefineOptions({ name: 'LlInput' })\n\nconst bem = createNamespace('input')\n\nconst props = defineProps(inputProps)\n\nconst innerValue = ref<InputValue>('')\n\nconst inputRef = ref()\n\nwatchEffect(() => {\n if (props.value !== innerValue.value) {\n innerValue.value = props.value\n }\n})\n\nconst componentType = props.showPassword ? Input.Password : Input\n\nconst computedAttrs = computed(() => {\n const attrs = { ...useAttrs(), ...props }\n\n return attrs\n})\n\nconst focus = () => {\n inputRef.value.focus()\n}\n\ndefineExpose({ focus })\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"input.vue2.mjs","sources":["../../../../../../packages/components/input/src/input.vue"],"sourcesContent":["<template>\n <component\n :is=\"componentType\"\n ref=\"inputRef\"\n :class=\"bem.b()\"\n v-bind=\"computedAttrs\"\n :allow-clear=\"props.allowClear\"\n >\n <template v-for=\"item in Object.keys($slots)\" :key=\"item\" #[item]=\"data\">\n <slot :name=\"item\" v-bind=\"data || {}\"></slot>\n </template>\n <template v-if=\"prefixIcon\" #prefix>\n <ll-icon :icon-name=\"prefixIcon\" class-name=\"prefix-icon\" />\n </template>\n <template v-if=\"suffixIcon\" #suffix>\n <ll-icon :icon-name=\"suffixIcon\" class-name=\"suffix-icon\" />\n </template>\n </component>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, useAttrs, watchEffect } from 'vue'\nimport { Input } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { InputValue, inputProps } from './input'\n\ndefineOptions({ name: 'LlInput' })\n\nconst bem = createNamespace('input')\n\nconst props = defineProps(inputProps)\n\nconst innerValue = ref<InputValue>('')\n\nconst inputRef = ref()\n\nwatchEffect(() => {\n if (props.value !== innerValue.value) {\n innerValue.value = props.value\n }\n})\n\nconst componentType = props.showPassword ? Input.Password : Input\n\nconst computedAttrs = computed(() => {\n const attrs = { ...useAttrs(), ...props }\n\n return attrs\n})\n\nconst focus = () => {\n inputRef.value.focus()\n}\n\ndefineExpose({ focus })\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;AA4BA,IAAM,MAAA,GAAA,GAAM,gBAAgB,OAAO,CAAA,CAAA;AAEnC,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAM,MAAA,UAAA,GAAa,IAAgB,EAAE,CAAA,CAAA;AAErC,IAAA,MAAM,WAAW,GAAI,EAAA,CAAA;AAErB,IAAA,WAAA,CAAY,MAAM;AAChB,MAAI,IAAA,KAAA,CAAM,KAAU,KAAA,UAAA,CAAW,KAAO,EAAA;AACpC,QAAA,UAAA,CAAW,QAAQ,KAAM,CAAA,KAAA,CAAA;AAAA,OAC3B;AAAA,KACD,CAAA,CAAA;AAED,IAAA,MAAM,aAAgB,GAAA,KAAA,CAAM,YAAe,GAAA,KAAA,CAAM,QAAW,GAAA,KAAA,CAAA;AAE5D,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,MAAM,QAAQ,EAAE,GAAG,QAAS,EAAA,EAAG,GAAG,KAAM,EAAA,CAAA;AAExC,MAAO,OAAA,KAAA,CAAA;AAAA,KACR,CAAA,CAAA;AAED,IAAA,MAAM,QAAQ,MAAM;AAClB,MAAA,QAAA,CAAS,MAAM,KAAM,EAAA,CAAA;AAAA,KACvB,CAAA;AAEA,IAAa,QAAA,CAAA,EAAE,OAAO,CAAA,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, NativePropType | EpPropInput<any, any, any, any, any> | {
|
|
31
31
|
__epPropKey: true;
|
|
32
|
-
}
|
|
32
|
+
}>>(props: Props) => { [K in keyof Props]: IfEpProp<Props[K], Props[K], IfNativePropType<Props[K], Props[K], EpPropConvert<Props[K]>>>; };
|
package/index.full.js
CHANGED
|
@@ -62803,6 +62803,13 @@
|
|
|
62803
62803
|
*/
|
|
62804
62804
|
showPassword: {
|
|
62805
62805
|
type: Boolean
|
|
62806
|
+
},
|
|
62807
|
+
/**
|
|
62808
|
+
* @description 是否显示密码框
|
|
62809
|
+
*/
|
|
62810
|
+
allowClear: {
|
|
62811
|
+
type: Boolean,
|
|
62812
|
+
default: true
|
|
62806
62813
|
}
|
|
62807
62814
|
});
|
|
62808
62815
|
|
|
@@ -62835,7 +62842,9 @@
|
|
|
62835
62842
|
ref_key: "inputRef",
|
|
62836
62843
|
ref: inputRef,
|
|
62837
62844
|
class: require$$0.unref(bem).b()
|
|
62838
|
-
}, computedAttrs.value
|
|
62845
|
+
}, computedAttrs.value, {
|
|
62846
|
+
"allow-clear": props.allowClear
|
|
62847
|
+
}), require$$0.createSlots({
|
|
62839
62848
|
_: 2
|
|
62840
62849
|
/* DYNAMIC */
|
|
62841
62850
|
}, [
|
|
@@ -62867,7 +62876,7 @@
|
|
|
62867
62876
|
]),
|
|
62868
62877
|
key: "1"
|
|
62869
62878
|
} : void 0
|
|
62870
|
-
]), 1040, ["class"]);
|
|
62879
|
+
]), 1040, ["class", "allow-clear"]);
|
|
62871
62880
|
};
|
|
62872
62881
|
}
|
|
62873
62882
|
});
|