hzzt-plus 1.0.7 → 2.0.1
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/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +575 -366
- package/dist/index.full.min.js +10 -10
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +14 -14
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +576 -368
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/es/component.mjs +3 -1
- package/es/component.mjs.map +1 -1
- package/es/components/collapse/index.d.ts +161 -8
- package/es/components/collapse/src/collapse.vue.d.ts +161 -8
- package/es/components/collapse/src/collapse2.mjs +50 -29
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/icon/index.mjs +4 -0
- package/es/components/icon/index.mjs.map +1 -1
- package/es/components/icon/src/components/index.d.ts +2 -0
- package/es/components/icon/src/components/index.mjs +3 -0
- package/es/components/icon/src/components/index.mjs.map +1 -0
- package/es/components/icon/src/components/minus-square-outline.mjs +29 -0
- package/es/components/icon/src/components/minus-square-outline.mjs.map +1 -0
- package/es/components/icon/src/components/minus-square-outline.vue.d.ts +2 -0
- package/es/components/icon/src/components/plus-square-outline.mjs +29 -0
- package/es/components/icon/src/components/plus-square-outline.mjs.map +1 -0
- package/es/components/icon/src/components/plus-square-outline.vue.d.ts +2 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +3 -2
- package/es/components/index.mjs.map +1 -1
- package/es/components/input-range/index.mjs +2 -2
- package/es/components/input-range/src/input-range.mjs +76 -26
- package/es/components/input-range/src/input-range.mjs.map +1 -1
- package/es/components/input-range/src/input-range2.mjs +26 -76
- package/es/components/input-range/src/input-range2.mjs.map +1 -1
- package/es/components/pagination/index.d.ts +2 -2
- package/es/components/pagination/src/index.mjs +49 -21
- package/es/components/pagination/src/index.mjs.map +1 -1
- package/es/components/pagination/src/index.vue.d.ts +2 -2
- package/es/components/scroll/index.d.ts +5 -0
- package/es/components/scroll/index.mjs +9 -0
- package/es/components/scroll/index.mjs.map +1 -0
- package/es/components/scroll/src/scroll.d.ts +2 -0
- package/es/components/scroll/src/scroll.mjs +88 -0
- package/es/components/scroll/src/scroll.mjs.map +1 -0
- package/es/components/scroll/src/scroll.vue.d.ts +147 -0
- package/es/components/scroll/src/scroll2.mjs +2 -0
- package/es/components/scroll/src/scroll2.mjs.map +1 -0
- package/es/components/scroll/style/css.d.ts +2 -0
- package/es/components/scroll/style/css.mjs +3 -0
- package/es/components/scroll/style/css.mjs.map +1 -0
- package/es/components/scroll/style/index.d.ts +2 -0
- package/es/components/scroll/style/index.mjs +3 -0
- package/es/components/scroll/style/index.mjs.map +1 -0
- package/es/components/select-input/index.d.ts +43 -4
- package/es/components/select-input/index.mjs +2 -2
- package/es/components/select-input/src/select-input.d.ts +1 -1
- package/es/components/select-input/src/select-input.mjs +45 -124
- package/es/components/select-input/src/select-input.mjs.map +1 -1
- package/es/components/select-input/src/select-input.vue.d.ts +43 -4
- package/es/components/select-input/src/select-input2.mjs +124 -45
- package/es/components/select-input/src/select-input2.mjs.map +1 -1
- package/es/components/select-textarea/src/select-textarea.d.ts +2 -1
- package/es/components/select-textarea/src/select-textarea.mjs +2 -1
- package/es/components/select-textarea/src/select-textarea.mjs.map +1 -1
- package/es/components/select-textarea/src/select-textarea.vue.d.ts +53 -4
- package/es/components/select-textarea/src/select-textarea2.mjs +14 -9
- package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -1
- package/es/components/title/src/title.d.ts +6 -0
- package/es/components/title/src/title.mjs +4 -1
- package/es/components/title/src/title.mjs.map +1 -1
- package/es/components/title/src/title.vue.d.ts +39 -0
- package/es/components/title/src/title2.mjs +28 -12
- package/es/components/title/src/title2.mjs.map +1 -1
- package/es/index.mjs +3 -2
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/component.js +3 -1
- package/lib/component.js.map +1 -1
- package/lib/components/collapse/index.d.ts +161 -8
- package/lib/components/collapse/src/collapse.vue.d.ts +161 -8
- package/lib/components/collapse/src/collapse2.js +49 -28
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/icon/index.js +4 -0
- package/lib/components/icon/index.js.map +1 -1
- package/lib/components/icon/src/components/index.d.ts +2 -0
- package/lib/components/icon/src/components/index.js +12 -0
- package/lib/components/icon/src/components/index.js.map +1 -0
- package/lib/components/icon/src/components/minus-square-outline.js +33 -0
- package/lib/components/icon/src/components/minus-square-outline.js.map +1 -0
- package/lib/components/icon/src/components/minus-square-outline.vue.d.ts +2 -0
- package/lib/components/icon/src/components/plus-square-outline.js +33 -0
- package/lib/components/icon/src/components/plus-square-outline.js.map +1 -0
- package/lib/components/icon/src/components/plus-square-outline.vue.d.ts +2 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +4 -2
- package/lib/components/index.js.map +1 -1
- package/lib/components/input-range/index.js +2 -2
- package/lib/components/input-range/src/input-range.js +76 -27
- package/lib/components/input-range/src/input-range.js.map +1 -1
- package/lib/components/input-range/src/input-range2.js +27 -76
- package/lib/components/input-range/src/input-range2.js.map +1 -1
- package/lib/components/pagination/index.d.ts +2 -2
- package/lib/components/pagination/src/index.js +48 -20
- package/lib/components/pagination/src/index.js.map +1 -1
- package/lib/components/pagination/src/index.vue.d.ts +2 -2
- package/lib/components/scroll/index.d.ts +5 -0
- package/lib/components/scroll/index.js +14 -0
- package/lib/components/scroll/index.js.map +1 -0
- package/lib/components/scroll/src/scroll.d.ts +2 -0
- package/lib/components/scroll/src/scroll.js +92 -0
- package/lib/components/scroll/src/scroll.js.map +1 -0
- package/lib/components/scroll/src/scroll.vue.d.ts +147 -0
- package/lib/components/scroll/src/scroll2.js +3 -0
- package/lib/components/scroll/src/scroll2.js.map +1 -0
- package/lib/components/scroll/style/css.d.ts +2 -0
- package/lib/components/scroll/style/css.js +6 -0
- package/lib/components/scroll/style/css.js.map +1 -0
- package/lib/components/scroll/style/index.d.ts +2 -0
- package/lib/components/scroll/style/index.js +6 -0
- package/lib/components/scroll/style/index.js.map +1 -0
- package/lib/components/select-input/index.d.ts +43 -4
- package/lib/components/select-input/index.js +2 -2
- package/lib/components/select-input/src/select-input.d.ts +1 -1
- package/lib/components/select-input/src/select-input.js +46 -124
- package/lib/components/select-input/src/select-input.js.map +1 -1
- package/lib/components/select-input/src/select-input.vue.d.ts +43 -4
- package/lib/components/select-input/src/select-input2.js +124 -46
- package/lib/components/select-input/src/select-input2.js.map +1 -1
- package/lib/components/select-textarea/src/select-textarea.d.ts +2 -1
- package/lib/components/select-textarea/src/select-textarea.js +2 -1
- package/lib/components/select-textarea/src/select-textarea.js.map +1 -1
- package/lib/components/select-textarea/src/select-textarea.vue.d.ts +53 -4
- package/lib/components/select-textarea/src/select-textarea2.js +13 -8
- package/lib/components/select-textarea/src/select-textarea2.js.map +1 -1
- package/lib/components/title/src/title.d.ts +6 -0
- package/lib/components/title/src/title.js +4 -1
- package/lib/components/title/src/title.js.map +1 -1
- package/lib/components/title/src/title.vue.d.ts +39 -0
- package/lib/components/title/src/title2.js +27 -11
- package/lib/components/title/src/title2.js.map +1 -1
- package/lib/index.js +34 -32
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/tags.json +1 -1
- package/theme/hzzt-collapse.css +1 -1
- package/theme/hzzt-pagination.css +1 -1
- package/theme/hzzt-scan.css +1 -1
- package/theme/hzzt-scroll.css +1 -0
- package/theme/hzzt-title.css +1 -1
- package/theme/index.css +1 -1
- package/theme/src/collapse.scss +45 -39
- package/theme/src/index.scss +1 -0
- package/theme/src/pagination.scss +24 -6
- package/theme/src/scan.scss +3 -3
- package/theme/src/scroll.scss +42 -0
- package/theme/src/title.scss +14 -5
- package/web-types.json +1 -1
|
@@ -7,8 +7,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
};
|
|
8
8
|
disabled: BooleanConstructor;
|
|
9
9
|
label: StringConstructor;
|
|
10
|
-
|
|
10
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]) | ((new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
11
11
|
inputProps: ObjectConstructor;
|
|
12
|
+
selectProps: ObjectConstructor;
|
|
12
13
|
replace: BooleanConstructor;
|
|
13
14
|
modelValue: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, string, boolean>;
|
|
14
15
|
}, {
|
|
@@ -21,8 +22,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
22
|
};
|
|
22
23
|
disabled: BooleanConstructor;
|
|
23
24
|
label: StringConstructor;
|
|
24
|
-
|
|
25
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]) | ((new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
25
26
|
inputProps: ObjectConstructor;
|
|
27
|
+
selectProps: ObjectConstructor;
|
|
26
28
|
replace: BooleanConstructor;
|
|
27
29
|
modelValue: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, string, boolean>;
|
|
28
30
|
}>> & {
|
|
@@ -63,19 +65,59 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
65
|
disabled: boolean;
|
|
64
66
|
clearable: boolean;
|
|
65
67
|
}>;
|
|
68
|
+
_selectProps: import("vue").ComputedRef<{
|
|
69
|
+
options: import("../..").OptionType[];
|
|
70
|
+
size: "" | "default" | "small" | "large";
|
|
71
|
+
filterable: boolean;
|
|
72
|
+
clearable: boolean;
|
|
73
|
+
allowCreate: boolean;
|
|
74
|
+
}>;
|
|
66
75
|
input: (val: string) => void;
|
|
67
76
|
change: (val: string) => void;
|
|
68
77
|
selectChange: (val: string) => void;
|
|
69
78
|
HzztTitle: import("vue").DefineComponent<{
|
|
70
79
|
readonly label: StringConstructor;
|
|
71
80
|
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
81
|
+
readonly size: {
|
|
82
|
+
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
83
|
+
readonly required: false;
|
|
84
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
85
|
+
__epPropKey: true;
|
|
86
|
+
};
|
|
72
87
|
}, {
|
|
73
88
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
74
89
|
readonly label: StringConstructor;
|
|
75
90
|
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
91
|
+
readonly size: {
|
|
92
|
+
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
93
|
+
readonly required: false;
|
|
94
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
95
|
+
__epPropKey: true;
|
|
96
|
+
};
|
|
76
97
|
}>> & {
|
|
77
98
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
78
99
|
}>>;
|
|
100
|
+
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
101
|
+
ns: {
|
|
102
|
+
namespace: import("vue").ComputedRef<string>;
|
|
103
|
+
b: (blockSuffix?: string) => string;
|
|
104
|
+
e: (element?: string | undefined) => string;
|
|
105
|
+
m: (modifier?: string | undefined) => string;
|
|
106
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
107
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
108
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
109
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
110
|
+
is: {
|
|
111
|
+
(name: string, state: boolean | undefined): string;
|
|
112
|
+
(name: string): string;
|
|
113
|
+
};
|
|
114
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
115
|
+
cssVarName: (name: string) => string;
|
|
116
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
117
|
+
cssVarBlockName: (name: string) => string;
|
|
118
|
+
};
|
|
119
|
+
trueSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
120
|
+
nameKls: import("vue").ComputedRef<string[]>;
|
|
79
121
|
slots: Readonly<{
|
|
80
122
|
[name: string]: import("vue").Slot | undefined;
|
|
81
123
|
}>;
|
|
@@ -83,6 +125,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
125
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
126
|
readonly label: StringConstructor;
|
|
85
127
|
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
128
|
+
readonly size: {
|
|
129
|
+
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
130
|
+
readonly required: false;
|
|
131
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
132
|
+
__epPropKey: true;
|
|
133
|
+
};
|
|
86
134
|
}>>, {
|
|
87
135
|
readonly sideline: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
88
136
|
}>;
|
|
@@ -13057,8 +13105,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13057
13105
|
};
|
|
13058
13106
|
disabled: BooleanConstructor;
|
|
13059
13107
|
label: StringConstructor;
|
|
13060
|
-
|
|
13108
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]) | ((new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
13061
13109
|
inputProps: ObjectConstructor;
|
|
13110
|
+
selectProps: ObjectConstructor;
|
|
13062
13111
|
replace: BooleanConstructor;
|
|
13063
13112
|
modelValue: import("../../../utils").EpPropFinalized<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown, string, boolean>;
|
|
13064
13113
|
}>> & {
|
|
@@ -13068,8 +13117,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13068
13117
|
onSelect?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
13069
13118
|
}, {
|
|
13070
13119
|
disabled: boolean;
|
|
13120
|
+
options: import("../..").OptionType[];
|
|
13071
13121
|
modelValue: import("../../../utils").EpPropMergeType<(new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined) | ((new (...args: any[]) => (string | number | null | undefined) & {}) | (() => string | number | null | undefined))[], unknown, unknown>;
|
|
13072
13122
|
replace: boolean;
|
|
13073
|
-
data: import("../..").OptionType[];
|
|
13074
13123
|
}>;
|
|
13075
13124
|
export default _default;
|
|
@@ -41,6 +41,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
...props.inputProps,
|
|
42
42
|
type: "textarea"
|
|
43
43
|
}));
|
|
44
|
+
const _selectProps = vue.computed(() => ({
|
|
45
|
+
options: props.options,
|
|
46
|
+
size: trueSize.value,
|
|
47
|
+
filterable: true,
|
|
48
|
+
clearable: true,
|
|
49
|
+
allowCreate: true,
|
|
50
|
+
...props.selectProps
|
|
51
|
+
}));
|
|
44
52
|
vue.watch(() => props.modelValue, (v) => {
|
|
45
53
|
inputVal.value = v;
|
|
46
54
|
});
|
|
@@ -72,21 +80,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
80
|
vue.createElementVNode("div", _hoisted_2, [
|
|
73
81
|
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
74
82
|
vue.createVNode(title["default"], {
|
|
83
|
+
size: vue.unref(trueSize),
|
|
75
84
|
class: "margin-l-1",
|
|
76
85
|
label: _ctx.label
|
|
77
|
-
}, null, 8, ["label"])
|
|
86
|
+
}, null, 8, ["size", "label"])
|
|
78
87
|
]),
|
|
79
|
-
!vue.unref(trueDisabled) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelectV2), {
|
|
88
|
+
!vue.unref(trueDisabled) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelectV2), vue.mergeProps({
|
|
80
89
|
key: 0,
|
|
81
90
|
class: "flex-1",
|
|
82
91
|
modelValue: selectValue.value,
|
|
83
92
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
clearable: "",
|
|
87
|
-
onChange: selectChange,
|
|
88
|
-
options: _ctx.data
|
|
89
|
-
}, null, 8, ["modelValue", "options"])) : vue.createCommentVNode("v-if", true),
|
|
93
|
+
onChange: selectChange
|
|
94
|
+
}, vue.unref(_selectProps)), null, 16, ["modelValue"])) : vue.createCommentVNode("v-if", true),
|
|
90
95
|
vue.renderSlot(_ctx.$slots, "right")
|
|
91
96
|
]),
|
|
92
97
|
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-textarea2.js","sources":["../../../../../../packages/components/select-textarea/src/select-textarea.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <div class=\"flex column\">\n <div class=\"flex align-items-center\">\n <slot name=\"title\">\n <hzzt-title class=\"margin-l-1\" :label=\"label\"></hzzt-title>\n </slot>\n <el-select-v2 class=\"flex-1\" v-model=\"selectValue\"
|
|
1
|
+
{"version":3,"file":"select-textarea2.js","sources":["../../../../../../packages/components/select-textarea/src/select-textarea.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <div class=\"flex column\">\n <div class=\"flex align-items-center\">\n <slot name=\"title\">\n <hzzt-title :size=\"trueSize\" class=\"margin-l-1\" :label=\"label\"></hzzt-title>\n </slot>\n <el-select-v2 class=\"flex-1\" v-model=\"selectValue\" @change=\"selectChange\"\n v-if=\"!trueDisabled\" v-bind=\"_selectProps\"></el-select-v2>\n <slot name=\"right\"></slot>\n </div>\n <el-input ref=\"inputRef\" class=\"flex-1 margin-t-1\" v-model=\"inputVal\" v-bind=\"_inputProps\"\n @input=\"input\"\n @change=\"change\"></el-input>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {selectTextareaProps, selectTextareaEmits} from './select-textarea'\n import {computed, ref, watch} from \"vue\";\n import {useGlobalSize, useNamespace, insertCursorPosition} from \"@hzzt-plus/hooks\";\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import HzztTitle from \"@hzzt-plus/components/title/src/title.vue\";\n import {ElInput, ElSelectV2} from 'element-plus'\n\n defineOptions({\n name: 'HzztSelectTextarea',\n })\n\n const props = defineProps(selectTextareaProps)\n const emit = defineEmits(selectTextareaEmits)\n\n const inputVal = ref(props.modelValue);\n const selectValue = ref('');\n const inputRef = ref();\n\n const nsInput = useNamespace('select-textarea')\n const formSize = useFormSize()\n const formDisabled = useFormDisabled()\n\n const trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n )\n\n const trueDisabled = computed(() => props.disabled || formDisabled.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n ])\n\n const _inputProps = computed(() => ({\n disabled: trueDisabled.value,\n clearable: true,\n ...props.inputProps,\n type: 'textarea',\n }))\n\n const _selectProps = computed(() => ({\n options: props.options,\n size: trueSize.value,\n filterable: true,\n clearable: true,\n allowCreate: true,\n ...props.selectProps,\n }))\n\n watch(() => props.modelValue, (v) => {\n inputVal.value = v;\n })\n\n function input(val: string) {\n emit('update:modelValue', val);\n emit('input', val);\n }\n\n function change(val: string) {\n emit('change', val);\n }\n\n function selectChange(val: string) {\n if (!inputVal.value && inputVal.value !== 0) inputVal.value = '';\n selectValue.value = '';\n let content = val;\n if (!props.replace) {\n const inputEl = inputRef.value.$el.getElementsByTagName('textarea')[0];\n content = insertCursorPosition(inputEl, val);\n }\n input(content);\n change(content);\n emit('select', val);\n }\n\n\n</script>\n"],"names":["ref","useNamespace","useFormSize","useFormDisabled","computed","useGlobalSize","watch","insertCursorPosition","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;uCA0BgB,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,QAAA,GAAWA,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACrC,IAAM,MAAA,WAAA,GAAcA,QAAI,EAAE,CAAA,CAAA;AAC1B,IAAA,MAAM,WAAWA,OAAI,EAAA,CAAA;AAErB,IAAM,MAAA,OAAA,GAAUC,mBAAa,iBAAiB,CAAA,CAAA;AAC9C,IAAA,MAAM,WAAWC,uBAAY,EAAA,CAAA;AAC7B,IAAA,MAAM,eAAeC,2BAAgB,EAAA,CAAA;AAErC,IAAA,MAAM,QAAW,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,IAAA,IAAA,QAAA,CAAA,KAAA,IAAAC,qBAAA,EAAA,CAAA,KAAA,CAAA,CAAA;AAAA,IAAA,kBACH,GAAAD,YAAiB,CAAA,MAAA,kBAAuB,YAAE,CAAA,KAAA,CAAA,CAAA;AAAA,IACxD,MAAA,YAAA,GAAAA,YAAA,CAAA,MAAA;AAEA,MAAA;AAEA,MAAM,OAAA,CAAA,CAAA,CAAA,QAAA,CAAe;AAAe,KAAA,CAClC;AAAU,IACV,MAAA,WAAU,GAAAA,YAAc,CAAA,OAAA;AAAA,MACzB,QAAA,EAAA,YAAA,CAAA,KAAA;AAED,MAAM,SAAA,EAAA,IAAA;AAA8B,MAClC,mBAAuB;AAAA,MACvB,IAAW,EAAA,UAAA;AAAA,KAAA,CACX;AAAS,IAAA,MACH,YAAA,GAAAA,YAAA,CAAA,OAAA;AAAA,MACN,OAAA,EAAA,KAAA,CAAA,OAAA;AAEF,MAAM,IAAA,EAAA,QAAA,CAAA;AAA+B,MACnC,UAAe,EAAA,IAAA;AAAA,MACf,SAAe,EAAA,IAAA;AAAA,MACf,WAAY,EAAA,IAAA;AAAA,MACZ,GAAW,KAAA,CAAA,WAAA;AAAA,KAAA,CACX,CAAa,CAAA;AAAA,IAAAE,SACV,CAAM,MAAA,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACT,QAAA,CAAA,KAAA,GAAA,CAAA,CAAA;AAEF,KAAA,CAAA,CAAA;AACE,IAAA,SAAA,KAAiB,CAAA,GAAA,EAAA;AAAA,MAClB,IAAA,CAAA,mBAAA,EAAA,GAAA,CAAA,CAAA;AAED,MAAA,IAAA,CAAA,SAA4B,GAAA,CAAA,CAAA;AAC1B,KAAA;AACA,IAAA,gBAAc,GAAG,EAAA;AAAA,MACnB,IAAA,CAAA,QAAA,EAAA,GAAA,CAAA,CAAA;AAEA,KAAA;AACE,IAAA,qBAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,IAAA,CAAA,QAAA,CAAA,KAAA,IAAA,QAAA,CAAA,KAAA,KAAA,CAAA;AAEA,QAAA,mBAAmC,CAAA;AACjC,MAAA,WAAK,CAAA,KAAkB,GAAA,EAAA,CAAA;AAAsB,MAAA,IAAA,OAAS,GAAQ,GAAA,CAAA;AAC9D,MAAA,IAAA,CAAA,KAAA,CAAA,OAAoB,EAAA;AACpB,QAAA,MAAc,OAAA,GAAA,QAAA,CAAA,KAAA,CAAA,GAAA,CAAA,oBAAA,CAAA,UAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACd,QAAI,UAAgBC,4BAAA,CAAA,OAAA,EAAA,GAAA,CAAA,CAAA;AAClB,OAAA;AACA,MAAU,KAAA,CAAA,OAAA,CAAA,CAAA;AAAiC,MAC7C,MAAA,CAAA,OAAA,CAAA,CAAA;AACA,MAAA,IAAA,CAAA,QAAa,EAAA,GAAA,CAAA,CAAA;AACb,KAAA;AACA,IAAA,OAAK,aAAa,KAAA;AAAA,MACpB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,6 +3,12 @@ import type Title from './title.vue';
|
|
|
3
3
|
export declare const titleProps: {
|
|
4
4
|
readonly label: StringConstructor;
|
|
5
5
|
readonly sideline: import("hzzt-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
6
|
+
readonly size: {
|
|
7
|
+
readonly type: import("vue").PropType<import("hzzt-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
8
|
+
readonly required: false;
|
|
9
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
10
|
+
__epPropKey: true;
|
|
11
|
+
};
|
|
6
12
|
};
|
|
7
13
|
export declare type TitleProps = ExtractPropTypes<typeof titleProps>;
|
|
8
14
|
export declare type TitleInstance = InstanceType<typeof Title>;
|
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../../utils/index.js');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
6
7
|
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var index = require('../../../hooks/use-size/index.js');
|
|
7
9
|
|
|
8
10
|
const titleProps = runtime.buildProps({
|
|
9
11
|
label: String,
|
|
10
12
|
sideline: {
|
|
11
13
|
type: Boolean,
|
|
12
14
|
default: true
|
|
13
|
-
}
|
|
15
|
+
},
|
|
16
|
+
size: index.useSizeProp
|
|
14
17
|
});
|
|
15
18
|
|
|
16
19
|
exports.titleProps = titleProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.js","sources":["../../../../../../packages/components/title/src/title.ts"],"sourcesContent":["import { buildProps } from '@hzzt-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Title from './title.vue'\n\nexport const titleProps = buildProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type TitleProps = ExtractPropTypes<typeof titleProps>\n\nexport type TitleInstance = InstanceType<typeof Title>\n"],"names":["buildProps"],"mappings":"
|
|
1
|
+
{"version":3,"file":"title.js","sources":["../../../../../../packages/components/title/src/title.ts"],"sourcesContent":["import { buildProps } from '@hzzt-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Title from './title.vue'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\n\nexport const titleProps = buildProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n size: useSizeProp,\n} as const)\nexport type TitleProps = ExtractPropTypes<typeof titleProps>\n\nexport type TitleInstance = InstanceType<typeof Title>\n"],"names":["buildProps","useSizeProp"],"mappings":";;;;;;;;;AAEY,MAAC,UAAU,GAAGA,kBAAU,CAAC;AACrC,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,CAAC;;;;"}
|
|
@@ -1,13 +1,46 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
readonly label: StringConstructor;
|
|
3
3
|
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
4
|
+
readonly size: {
|
|
5
|
+
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
6
|
+
readonly required: false;
|
|
7
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
8
|
+
__epPropKey: true;
|
|
9
|
+
};
|
|
4
10
|
}, {
|
|
5
11
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
6
12
|
readonly label: StringConstructor;
|
|
7
13
|
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
14
|
+
readonly size: {
|
|
15
|
+
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
16
|
+
readonly required: false;
|
|
17
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
18
|
+
__epPropKey: true;
|
|
19
|
+
};
|
|
8
20
|
}>> & {
|
|
9
21
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
10
22
|
}>>;
|
|
23
|
+
formSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
24
|
+
ns: {
|
|
25
|
+
namespace: import("vue").ComputedRef<string>;
|
|
26
|
+
b: (blockSuffix?: string) => string;
|
|
27
|
+
e: (element?: string | undefined) => string;
|
|
28
|
+
m: (modifier?: string | undefined) => string;
|
|
29
|
+
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
30
|
+
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
31
|
+
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
32
|
+
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
33
|
+
is: {
|
|
34
|
+
(name: string, state: boolean | undefined): string;
|
|
35
|
+
(name: string): string;
|
|
36
|
+
};
|
|
37
|
+
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
38
|
+
cssVarName: (name: string) => string;
|
|
39
|
+
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
40
|
+
cssVarBlockName: (name: string) => string;
|
|
41
|
+
};
|
|
42
|
+
trueSize: import("vue").ComputedRef<"" | "default" | "small" | "large">;
|
|
43
|
+
nameKls: import("vue").ComputedRef<string[]>;
|
|
11
44
|
slots: Readonly<{
|
|
12
45
|
[name: string]: import("vue").Slot | undefined;
|
|
13
46
|
}>;
|
|
@@ -15,6 +48,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
48
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
49
|
readonly label: StringConstructor;
|
|
17
50
|
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
51
|
+
readonly size: {
|
|
52
|
+
readonly type: import("vue").PropType<import("../../../utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
|
|
53
|
+
readonly required: false;
|
|
54
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
|
+
__epPropKey: true;
|
|
56
|
+
};
|
|
18
57
|
}>>, {
|
|
19
58
|
readonly sideline: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
20
59
|
}>;
|
|
@@ -4,17 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var title = require('./title.js');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
var elementPlus = require('element-plus');
|
|
7
9
|
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
10
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
11
|
+
var index$1 = require('../../../hooks/use-size/index.js');
|
|
8
12
|
|
|
9
13
|
const _hoisted_1 = {
|
|
10
14
|
key: 0,
|
|
11
|
-
class: "hzzt-title flex align-items-center"
|
|
15
|
+
class: "hzzt-title flex align-items-center justify-content-between"
|
|
12
16
|
};
|
|
13
|
-
const _hoisted_2 = {
|
|
17
|
+
const _hoisted_2 = { class: "flex align-items-center" };
|
|
18
|
+
const _hoisted_3 = {
|
|
14
19
|
key: 0,
|
|
15
|
-
class: "
|
|
20
|
+
class: "hzzt-title__line"
|
|
16
21
|
};
|
|
17
|
-
const _hoisted_3 = { class: "label-name" };
|
|
18
22
|
const __default__ = vue.defineComponent({
|
|
19
23
|
name: "HzztTitle"
|
|
20
24
|
});
|
|
@@ -23,6 +27,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
23
27
|
props: title.titleProps,
|
|
24
28
|
setup(__props) {
|
|
25
29
|
const props = __props;
|
|
30
|
+
const formSize = elementPlus.useFormSize();
|
|
31
|
+
const ns = index.useNamespace("title");
|
|
32
|
+
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
33
|
+
const nameKls = vue.computed(() => {
|
|
34
|
+
return [ns.e("name"), ns.em("name", trueSize.value)];
|
|
35
|
+
});
|
|
26
36
|
const slots = vue.useSlots();
|
|
27
37
|
const showLabel = vue.computed(() => {
|
|
28
38
|
var _a, _b, _c;
|
|
@@ -30,13 +40,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
30
40
|
});
|
|
31
41
|
return (_ctx, _cache) => {
|
|
32
42
|
return vue.unref(showLabel) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
vue.
|
|
37
|
-
vue.
|
|
38
|
-
|
|
39
|
-
|
|
43
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
44
|
+
_ctx.sideline ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3)) : vue.createCommentVNode("v-if", true),
|
|
45
|
+
vue.renderSlot(_ctx.$slots, "before"),
|
|
46
|
+
vue.createElementVNode("label", {
|
|
47
|
+
class: vue.normalizeClass(vue.unref(nameKls))
|
|
48
|
+
}, [
|
|
49
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
50
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
|
|
51
|
+
])
|
|
52
|
+
], 2),
|
|
53
|
+
vue.renderSlot(_ctx.$slots, "after")
|
|
54
|
+
]),
|
|
55
|
+
vue.renderSlot(_ctx.$slots, "right")
|
|
40
56
|
])) : vue.createCommentVNode("v-if", true);
|
|
41
57
|
};
|
|
42
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title2.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"
|
|
1
|
+
{"version":3,"file":"title2.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center justify-content-between\">\n <div class=\"flex align-items-center\">\n <span v-if=\"sideline\" class=\"hzzt-title__line\" />\n <slot name=\"before\" />\n <label :class=\"nameKls\">\n <slot>{{ label }}</slot>\n </label>\n <slot name=\"after\" />\n </div>\n\n <slot name=\"right\" />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { titleProps } from './title'\nimport {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\nimport { useFormSize } from 'element-plus'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps(titleProps)\n\nconst formSize = useFormSize()\n\nconst ns = useNamespace('title')\n\nconst trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n)\n\nconst nameKls = computed(() => {\n return [ns.e('name'), ns.em('name', trueSize.value)]\n})\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":["useFormSize","useNamespace","computed","useGlobalSize","useSlots"],"mappings":";;;;;;;;;;;;;;;;;;;;;uCAqBc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,WAAWA,uBAAY,EAAA,CAAA;AAE7B,IAAM,MAAA,EAAA,GAAKC,mBAAa,OAAO,CAAA,CAAA;AAE/B,IAAA,MAAM,QAAW,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,IAAA,IAAA,QAAA,CAAA,KAAA,IAAAC,qBAAA,EAAA,CAAA,KAAA,CAAA,CAAA;AAAA,IAAA,aACH,GAAAD,YAAiB,CAAA,MAAA;AAAyB,MACxD,OAAA,CAAA,EAAA,CAAA,CAAA,CAAA,MAAA,CAAA,EAAA,EAAA,CAAA,EAAA,CAAA,MAAA,EAAA,QAAA,CAAA,KAAA,CAAA,CAAA,CAAA;AAEA,KAAM,CAAA,CAAA;AACJ,IAAO,MAAA,KAAI,GAAAE,YAAQ,EAAG;AAA6B,IACrD,MAAC,SAAA,GAAAF,YAAA,CAAA,MAAA;AAED,MAAA,IAAM,QAAQ,EAAS,CAAA;AAEvB,MAAA,OAAkB,KAAA,CAAA,KAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,CAAA,CAAA;AAAA,KAAA,CAChB;AAA8C,IAChD,OAAA,CAAA,IAAA,EAAA,MAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -26,11 +26,11 @@ var index$a = require('./components/check-button/index.js');
|
|
|
26
26
|
var index$b = require('./components/quarter-picker/index.js');
|
|
27
27
|
var scan = require('./components/scan/src/scan.js');
|
|
28
28
|
var index$c = require('./components/scan/index.js');
|
|
29
|
-
var selectInput = require('./components/select-input/src/select-
|
|
29
|
+
var selectInput = require('./components/select-input/src/select-input.js');
|
|
30
30
|
var index$d = require('./components/select-input/index.js');
|
|
31
31
|
var selectTextarea = require('./components/select-textarea/src/select-textarea.js');
|
|
32
32
|
var index$e = require('./components/select-textarea/index.js');
|
|
33
|
-
var inputRange = require('./components/input-range/src/input-
|
|
33
|
+
var inputRange = require('./components/input-range/src/input-range2.js');
|
|
34
34
|
var index$f = require('./components/input-range/index.js');
|
|
35
35
|
var cascader = require('./components/cascader/src/cascader.js');
|
|
36
36
|
var index$g = require('./components/cascader/index.js');
|
|
@@ -38,20 +38,21 @@ var select = require('./components/select/src/select.js');
|
|
|
38
38
|
var index$h = require('./components/select/index.js');
|
|
39
39
|
var clickInput = require('./components/click-input/src/click-input.js');
|
|
40
40
|
var index$i = require('./components/click-input/index.js');
|
|
41
|
+
var index$j = require('./components/scroll/index.js');
|
|
41
42
|
var key = require('./constants/key.js');
|
|
42
43
|
var size = require('./constants/size.js');
|
|
43
44
|
var date = require('./constants/date.js');
|
|
44
45
|
var event = require('./constants/event.js');
|
|
45
|
-
var index$
|
|
46
|
-
var index$
|
|
47
|
-
var index$
|
|
48
|
-
var index$
|
|
49
|
-
var index$
|
|
50
|
-
var index$
|
|
51
|
-
var index$
|
|
52
|
-
var index$
|
|
53
|
-
var index$
|
|
54
|
-
var index$
|
|
46
|
+
var index$k = require('./directives/download/index.js');
|
|
47
|
+
var index$l = require('./directives/height/index.js');
|
|
48
|
+
var index$m = require('./directives/blur/index.js');
|
|
49
|
+
var index$n = require('./directives/highlight/index.js');
|
|
50
|
+
var index$o = require('./directives/drag/index.js');
|
|
51
|
+
var index$p = require('./hooks/use-locale/index.js');
|
|
52
|
+
var index$q = require('./hooks/use-size/index.js');
|
|
53
|
+
var index$r = require('./hooks/use-namespace/index.js');
|
|
54
|
+
var index$s = require('./hooks/use-letter/index.js');
|
|
55
|
+
var index$t = require('./hooks/use-cursor/index.js');
|
|
55
56
|
|
|
56
57
|
const install = defaults["default"].install;
|
|
57
58
|
const version = defaults["default"].version;
|
|
@@ -96,6 +97,7 @@ exports.HzztSelect = index$h.HzztSelect;
|
|
|
96
97
|
exports.clickInputEmits = clickInput.clickInputEmits;
|
|
97
98
|
exports.clickInputProps = clickInput.clickInputProps;
|
|
98
99
|
exports.HzztClickInput = index$i.HzztClickInput;
|
|
100
|
+
exports.HzztScroll = index$j.HzztScroll;
|
|
99
101
|
exports.INSTALLED_KEY = key.INSTALLED_KEY;
|
|
100
102
|
exports.componentSizeMap = size.componentSizeMap;
|
|
101
103
|
exports.componentSizes = size.componentSizes;
|
|
@@ -104,26 +106,26 @@ exports.datePickTypes = date.datePickTypes;
|
|
|
104
106
|
exports.CHANGE_EVENT = event.CHANGE_EVENT;
|
|
105
107
|
exports.INPUT_EVENT = event.INPUT_EVENT;
|
|
106
108
|
exports.UPDATE_MODEL_EVENT = event.UPDATE_MODEL_EVENT;
|
|
107
|
-
exports.Download = index$
|
|
108
|
-
exports.Height = index$
|
|
109
|
-
exports.Blur = index$
|
|
110
|
-
exports.Highlight = index$
|
|
111
|
-
exports.Drag = index$
|
|
112
|
-
exports.buildLocaleContext = index$
|
|
113
|
-
exports.buildTranslator = index$
|
|
114
|
-
exports.localeContextKey = index$
|
|
115
|
-
exports.translate = index$
|
|
116
|
-
exports.useLocale = index$
|
|
117
|
-
exports.SIZE_INJECTION_KEY = index$
|
|
118
|
-
exports.useGlobalSize = index$
|
|
119
|
-
exports.useSizeProp = index$
|
|
120
|
-
exports.useSizeProps = index$
|
|
121
|
-
exports.defaultNamespace = index$
|
|
122
|
-
exports.namespaceContextKey = index$
|
|
123
|
-
exports.useGetDerivedNamespace = index$
|
|
124
|
-
exports.useNamespace = index$
|
|
125
|
-
exports.numberToLetter = index$
|
|
126
|
-
exports.insertCursorPosition = index$
|
|
109
|
+
exports.Download = index$k["default"];
|
|
110
|
+
exports.Height = index$l["default"];
|
|
111
|
+
exports.Blur = index$m["default"];
|
|
112
|
+
exports.Highlight = index$n["default"];
|
|
113
|
+
exports.Drag = index$o["default"];
|
|
114
|
+
exports.buildLocaleContext = index$p.buildLocaleContext;
|
|
115
|
+
exports.buildTranslator = index$p.buildTranslator;
|
|
116
|
+
exports.localeContextKey = index$p.localeContextKey;
|
|
117
|
+
exports.translate = index$p.translate;
|
|
118
|
+
exports.useLocale = index$p.useLocale;
|
|
119
|
+
exports.SIZE_INJECTION_KEY = index$q.SIZE_INJECTION_KEY;
|
|
120
|
+
exports.useGlobalSize = index$q.useGlobalSize;
|
|
121
|
+
exports.useSizeProp = index$q.useSizeProp;
|
|
122
|
+
exports.useSizeProps = index$q.useSizeProps;
|
|
123
|
+
exports.defaultNamespace = index$r.defaultNamespace;
|
|
124
|
+
exports.namespaceContextKey = index$r.namespaceContextKey;
|
|
125
|
+
exports.useGetDerivedNamespace = index$r.useGetDerivedNamespace;
|
|
126
|
+
exports.useNamespace = index$r.useNamespace;
|
|
127
|
+
exports.numberToLetter = index$s.numberToLetter;
|
|
128
|
+
exports.insertCursorPosition = index$t.insertCursorPosition;
|
|
127
129
|
exports.install = install;
|
|
128
130
|
exports.version = version;
|
|
129
131
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":["installer"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAGA,mBAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAGA,mBAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "2.0.1";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '2.0.1'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
|
package/package.json
CHANGED
package/tags.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"hzzt-cascader":{"attributes":["model-value","size","disabled","options","cascader-props","clearable","readonly","placeholder"],"description":"Title"},"hzzt-check-button":{"attributes":["options","model-value","size","type","is-default"],"description":"Title"},"hzzt-click-input":{"attributes":["model-value","size","disabled","readonly","input-props"],"description":"Title"},"hzzt-collapse":{"attributes":["default-active","title","expand"],"description":"Title"},"hzzt-config-provider":{"attributes":["a11y","size","locale","keyboard-navigation"],"description":"Title"},"hzzt-confirm-password":{"attributes":["placeholder","model-value"],"description":"Title"},"hzzt-dropdown":{"attributes":["options","default-value","label","value","position","props","return-type"],"description":"Title"},"hzzt-icon":{"attributes":["name","type"],"description":"Title"},"hzzt-input-range":{"attributes":["model-value","size","disabled","clearable","start-placeholder","end-placeholder","start-props","end-props"],"description":"Title"},"hzzt-page-size":{"attributes":["model-value","page-size","total","size","page-size-options","disabled","is-manual","is-last-page"],"description":"Title"},"hzzt-pagination":{"attributes":["pagination"],"description":"Title"},"hzzt-quarter-picker":{"attributes":["format","value-format","placeholder","prefix-icon","clear-icon","size","model-value","disabled","clearable","disabled-date"],"description":"Title"},"hzzt-scan":{"attributes":["model-value","placeholder","letter"],"description":"Title"},"hzzt-select-input":{"attributes":["model-value","index-type","size","label","disabled","replace","position","
|
|
1
|
+
{"hzzt-cascader":{"attributes":["model-value","size","disabled","options","cascader-props","clearable","readonly","placeholder"],"description":"Title"},"hzzt-check-button":{"attributes":["options","model-value","size","type","is-default"],"description":"Title"},"hzzt-click-input":{"attributes":["model-value","size","disabled","readonly","input-props"],"description":"Title"},"hzzt-collapse":{"attributes":["default-active","title","expand"],"description":"Title"},"hzzt-config-provider":{"attributes":["a11y","size","locale","keyboard-navigation"],"description":"Title"},"hzzt-confirm-password":{"attributes":["placeholder","model-value"],"description":"Title"},"hzzt-dropdown":{"attributes":["options","default-value","label","value","position","props","return-type"],"description":"Title"},"hzzt-icon":{"attributes":["name","type"],"description":"Title"},"hzzt-input-range":{"attributes":["model-value","size","disabled","clearable","start-placeholder","end-placeholder","start-props","end-props"],"description":"Title"},"hzzt-page-size":{"attributes":["model-value","page-size","total","size","page-size-options","disabled","is-manual","is-last-page"],"description":"Title"},"hzzt-pagination":{"attributes":["pagination"],"description":"Title"},"hzzt-quarter-picker":{"attributes":["format","value-format","placeholder","prefix-icon","clear-icon","size","model-value","disabled","clearable","disabled-date"],"description":"Title"},"hzzt-scan":{"attributes":["model-value","placeholder","letter"],"description":"Title"},"hzzt-select-input":{"attributes":["model-value","index-type","size","label","disabled","replace","position","options","input-props","custom-props","format-label","split"],"description":"Title"},"hzzt-select-textarea":{"attributes":["model-value","size","label","disabled","replace","options","input-props","select-props"],"description":"Title"},"hzzt-select":{"attributes":["model-value","size","select-props","disabled","options","cascader-props","clearable","readonly","replace","placeholder"],"description":"Title"},"hzzt-tab":{"attributes":["tab-list","model-value","closable"],"description":"Title"},"hzzt-title":{"attributes":["label","sideline","size"],"description":"Title"},"hzzt-tooltip":{"attributes":["content"],"description":"Title"}}
|
package/theme/hzzt-collapse.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.hzzt-collapse{color
|
|
1
|
+
.hzzt-collapse{background:var(--hzzt-bg-color);border-radius:4px;padding:8px}.hzzt-collapse__top{align-items:center;display:flex;justify-content:space-between;padding-bottom:4px;white-space:nowrap}.hzzt-collapse__title{color:var(--hzzt-text-color-regular);font-size:16px;font-weight:600;line-height:24px;padding-left:8px;position:relative}.hzzt-collapse__title:before{background:var(--hzzt-color-primary);content:"";height:calc(100% - 6px);left:0;position:absolute;top:50%;transform:translateY(-50%);width:3px}.hzzt-collapse__btn{align-items:center;color:#86909C;cursor:pointer;display:flex;font-size:12px}.hzzt-collapse__btn:hover{color:var(--hzzt-color-primary)}.hzzt-collapse__icon{margin:0 4px;text-align:center}.hzzt-collapse__line{background:var(--hzzt-border-color);flex:1;height:1px;margin-left:4px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.hzzt-pagination{
|
|
1
|
+
.hzzt-pagination{--hzzt-pagination-height:40px;height:var(--hzzt-pagination-height)}.hzzt-pagination .el-input__wrapper{background-color:var(--el-fill-color-light)}.hzzt-pagination .el-input__wrapper.is-focus{background-color:var(--el-input-bg-color,var(--el-fill-color-blank))}.hzzt-pagination__input{width:40px}.hzzt-pagination__input input{text-align:center}.hzzt-pagination__icon{cursor:pointer}.hzzt-pagination__icon.is-disabled{color:var(--el-text-color-disabled);cursor:not-allowed}.hzzt-pagination__count{color:var(--hzzt-color-primary)}
|
package/theme/hzzt-scan.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.hzzt-scan .hzzt-scan-input-backup{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px rgba(0,0,0,0) inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:inline-block;font-family:
|
|
1
|
+
.hzzt-scan .hzzt-scan-input-backup{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px rgba(0,0,0,0) inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:inline-block;font-family:monospace;font-size:var(--el-font-size-base);height:var(--el-input-height);left:0;line-height:var(--el-input-height);outline:0;padding:1px 11px 1px 0;pointer-events:none;position:absolute;top:0;white-space:pre;width:var(--el-input-width)}.hzzt-scan .hzzt-scan-input-backup.placeholder-color{color:var(--el-text-color-placeholder)}.hzzt-scan .hzzt-scan-input-backup::-moz-selection{color:white}.hzzt-scan .hzzt-scan-input-backup::selection{color:white}.hzzt-scan .el-input--small+.hzzt-scan-input-backup{--el-input-height:var(--el-component-size-small);font-size:12px;padding:1px 7px 1px 0}.hzzt-scan .el-input--large+.hzzt-scan-input-backup{--el-input-height:var(--el-component-size-large);font-size:14px;padding:1px 15px 1px 0}.hzzt-scan .hzzt-scan-input-original .el-input__wrapper{padding-left:0}.hzzt-scan .hzzt-scan-input-original .el-input__wrapper input{caret-color:var(--el-input-text-color,var(--el-text-color-regular));color:white;font-family:monospace}.hzzt-scan .hzzt-scan-input-original .el-input__wrapper input::-moz-selection{color:rgba(0,0,0,0)}.hzzt-scan .hzzt-scan-input-original .el-input__wrapper input::selection{color:rgba(0,0,0,0)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.hzzt-scroll.is-scrollable{padding:0 20px}.hzzt-scroll__content{min-width:-moz-fit-content;min-width:fit-content;white-space:nowrap}.hzzt-scroll__nav-next,.hzzt-scroll__nav-prev{align-items:center;color:var(--el-text-color-secondary);cursor:pointer;display:flex;font-size:12px;height:100%;justify-content:center;line-height:44px;position:absolute;text-align:center;width:20px}.hzzt-scroll__nav-next,.hzzt-scroll__nav-prev:hover{color:var(--hzzt-color-primary)}.hzzt-scroll__nav-next{right:0}.hzzt-scroll__nav-prev{left:0}
|
package/theme/hzzt-title.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.hzzt-title{color
|
|
1
|
+
.hzzt-title{color:var(--el-text-color-regular)}.hzzt-title__line{background:var(--hzzt-color-primary);height:18px;margin-right:6px;min-width:3px;width:3px}.hzzt-title__name{color:inherit;font-size:16px;line-height:32px}.hzzt-title__name--large{font-size:18px;line-height:40px}.hzzt-title__name--small{line-height:24px}
|