hzzt-plus 2.0.0 → 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.full.js +20 -14
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +20 -14
- 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/components/index.mjs +2 -2
- 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/scroll/index.mjs +2 -2
- package/es/components/scroll/src/scroll.mjs +86 -0
- package/es/components/scroll/src/scroll.mjs.map +1 -1
- package/es/components/scroll/src/scroll2.mjs +0 -86
- package/es/components/scroll/src/scroll2.mjs.map +1 -1
- package/es/components/select-input/index.d.ts +4 -4
- package/es/components/select-input/src/select-input.d.ts +1 -1
- package/es/components/select-input/src/select-input.mjs +1 -1
- package/es/components/select-input/src/select-input.mjs.map +1 -1
- package/es/components/select-input/src/select-input.vue.d.ts +4 -4
- package/es/components/select-input/src/select-input2.mjs +2 -2
- package/es/components/select-input/src/select-input2.mjs.map +1 -1
- package/es/components/select-textarea/index.mjs +2 -2
- package/es/components/select-textarea/src/select-textarea.d.ts +2 -1
- package/es/components/select-textarea/src/select-textarea.mjs +31 -100
- package/es/components/select-textarea/src/select-textarea.mjs.map +1 -1
- package/es/components/select-textarea/src/select-textarea.vue.d.ts +14 -4
- package/es/components/select-textarea/src/select-textarea2.mjs +105 -30
- package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/index.js +2 -2
- 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/scroll/index.js +2 -2
- package/lib/components/scroll/src/scroll.js +89 -0
- package/lib/components/scroll/src/scroll.js.map +1 -1
- package/lib/components/scroll/src/scroll2.js +0 -89
- package/lib/components/scroll/src/scroll2.js.map +1 -1
- package/lib/components/select-input/index.d.ts +4 -4
- package/lib/components/select-input/src/select-input.d.ts +1 -1
- package/lib/components/select-input/src/select-input.js +1 -1
- package/lib/components/select-input/src/select-input.js.map +1 -1
- package/lib/components/select-input/src/select-input.vue.d.ts +4 -4
- package/lib/components/select-input/src/select-input2.js +2 -2
- package/lib/components/select-input/src/select-input2.js.map +1 -1
- package/lib/components/select-textarea/index.js +2 -2
- package/lib/components/select-textarea/src/select-textarea.d.ts +2 -1
- package/lib/components/select-textarea/src/select-textarea.js +32 -100
- package/lib/components/select-textarea/src/select-textarea.js.map +1 -1
- package/lib/components/select-textarea/src/select-textarea.vue.d.ts +14 -4
- package/lib/components/select-textarea/src/select-textarea2.js +105 -31
- package/lib/components/select-textarea/src/select-textarea2.js.map +1 -1
- package/lib/index.js +2 -2
- 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/web-types.json +1 -1
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
disabled: BooleanConstructor;
|
|
6
6
|
replace: BooleanConstructor;
|
|
7
7
|
label: StringConstructor;
|
|
8
|
-
|
|
8
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => OptionType[]) | (() => OptionType[]) | ((new (...args: any[]) => OptionType[]) | (() => OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
9
9
|
inputProps: ObjectConstructor;
|
|
10
10
|
customProps: ObjectConstructor;
|
|
11
11
|
position: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
disabled: BooleanConstructor;
|
|
30
30
|
replace: BooleanConstructor;
|
|
31
31
|
label: StringConstructor;
|
|
32
|
-
|
|
32
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => OptionType[]) | (() => OptionType[]) | ((new (...args: any[]) => OptionType[]) | (() => OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
33
33
|
inputProps: ObjectConstructor;
|
|
34
34
|
customProps: ObjectConstructor;
|
|
35
35
|
position: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -832,7 +832,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
832
832
|
disabled: BooleanConstructor;
|
|
833
833
|
replace: BooleanConstructor;
|
|
834
834
|
label: StringConstructor;
|
|
835
|
-
|
|
835
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => OptionType[]) | (() => OptionType[]) | ((new (...args: any[]) => OptionType[]) | (() => OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
836
836
|
inputProps: ObjectConstructor;
|
|
837
837
|
customProps: ObjectConstructor;
|
|
838
838
|
position: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -855,10 +855,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
855
855
|
onInput?: ((value: string | undefined) => any) | undefined;
|
|
856
856
|
}, {
|
|
857
857
|
disabled: boolean;
|
|
858
|
+
options: OptionType[];
|
|
858
859
|
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>;
|
|
859
860
|
replace: boolean;
|
|
860
861
|
split: string;
|
|
861
|
-
data: OptionType[];
|
|
862
862
|
position: string;
|
|
863
863
|
indexType: string;
|
|
864
864
|
}>;
|
|
@@ -108,8 +108,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
108
108
|
_: 3
|
|
109
109
|
}, 16, ["class", "modelValue"])
|
|
110
110
|
], 2),
|
|
111
|
-
_ctx.
|
|
112
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.
|
|
111
|
+
_ctx.options.length && !vue.unref(trueDisabled) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
|
|
112
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (item, index) => {
|
|
113
113
|
return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), vue.mergeProps({
|
|
114
114
|
key: index,
|
|
115
115
|
class: "margin-r-4"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-input2.js","sources":["../../../../../../packages/components/select-input/src/select-input.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <div :class=\"inputContainerCls\">\n <slot name=\"title\">\n <hzzt-title :label=\"label\"></hzzt-title>\n </slot>\n <el-input ref=\"inputRef\"\n :class=\"inputCls\"\n v-model=\"inputVal\"\n v-bind=\"_inputProps\"\n @input=\"input\"\n @change=\"change\"\n >\n <template slot=\"append\">\n <slot name=\"append\"></slot>\n </template>\n </el-input>\n </div>\n <div v-if=\"
|
|
1
|
+
{"version":3,"file":"select-input2.js","sources":["../../../../../../packages/components/select-input/src/select-input.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <div :class=\"inputContainerCls\">\n <slot name=\"title\">\n <hzzt-title :label=\"label\"></hzzt-title>\n </slot>\n <el-input ref=\"inputRef\"\n :class=\"inputCls\"\n v-model=\"inputVal\"\n v-bind=\"_inputProps\"\n @input=\"input\"\n @change=\"change\"\n >\n <template slot=\"append\">\n <slot name=\"append\"></slot>\n </template>\n </el-input>\n </div>\n <div v-if=\"options.length&&!trueDisabled\">\n <el-link v-for=\"(item, index) in options\" :key=\"index\" class=\"margin-r-4\" v-bind=\"customProps\" @click=\"select(item)\">\n {{ getLinkName(item, index) }}\n </el-link>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {computed, ref, watch} from 'vue'\n import {selectInputEmits, selectInputProps} from './select-input'\n import {useGlobalSize, useNamespace, numberToLetter} 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, ElLink} from 'element-plus'\n import {OptionType} from \"@hzzt-plus/components/select/src/select\";\n\n defineOptions({\n name: 'HzztSelectInput',\n })\n\n const props = defineProps(selectInputProps)\n const emit = defineEmits(selectInputEmits)\n\n const inputVal = ref(props.modelValue);\n\n const nsInput = useNamespace('select-input')\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 inputContainerCls = computed(() => [\n 'flex',\n props.position === 'top' ? 'column' : 'row align-items-center'\n ])\n\n const inputCls = computed(() => [\n 'flex-1',\n props.label ? props.position === 'top' ? 'margin-b-1' : 'margin-l-1' : ''\n ])\n\n const _inputProps = computed(() => ({\n disabled: trueDisabled.value,\n clearable: true,\n ...props.inputProps,\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 getLinkName(item: OptionType, index: number) {\n let prefix = '';\n if (props.indexType == 'number') {\n prefix = `(${index + 1})`\n } else if (props.indexType == 'letter') {\n prefix = `(${numberToLetter(index)})`\n }\n return prefix + (item.label || item.value);\n }\n\n function select(item: OptionType) {\n const value = item.value||item.label;\n let content = '';\n if (!inputVal.value) inputVal.value = '';\n if (props.formatLabel) {\n content = props.formatLabel(value);\n } else if (props.replace) {\n content = value;\n } else {\n content = inputVal.value ? `${inputVal.value}${props.split}${value}` : value;\n }\n inputVal.value = content;\n input(content);\n change(content);\n }\n\n</script>\n"],"names":["ref","useNamespace","useFormSize","useFormDisabled","computed","useGlobalSize","watch","numberToLetter","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;uCAmCgB,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,QAAA,GAAWA,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AAErC,IAAM,MAAA,OAAA,GAAUC,mBAAa,cAAc,CAAA,CAAA;AAC3C,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,iBAAwB,GAAAA,YAAA,CAAA,MAAA;AAAA,MACzB,MAAA;AAED,MAAM,KAAA,CAAA,QAAA,KAAA,KAAoB,WAAe,GAAA,wBAA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AA;AAAA,KACpC;AACA,IAAO,SAAA,MAAA,CAAA,IAAe,EAAA;AAAc,MACtC,MAAA,KAAA,GAAA,IAAA,CAAA,KAAA,IAAA,IAAA,CAAA,KAAA,CAAA;AAEA,MAAA,IAAA,UAAgB,EAAkB,CAAA;AAChC,MAAM,IAAA,CAAA,QAAA,CAAQ,KAAK;AACnB,QAAA,QAAc,CAAA,KAAA,GAAA,EAAA,CAAA;AACd,MAAA,IAAI,KAAU,CAAA,WAAA,EAAA;AAAO,QAAA,OAAA,GAAiB,KAAA,CAAA,WAAA,CAAA,KAAA,CAAA,CAAA;AACtC,OAAA,UAAuB,KAAA,CAAA,OAAA,EAAA;AACrB,QAAU,OAAA,GAAA,KAAA,CAAM;AAAiB,OACnC,MAAA;AACE,QAAU,OAAA,GAAA,QAAA,CAAA,KAAA,GAAA,CAAA,EAAA,QAAA,CAAA,KAAA,CAAA,EAAA,KAAA,CAAA,KAAA,CAAA,EAAA,KAAA,CAAA,CAAA,GAAA,KAAA,CAAA;AAAA,OACL;AACL,MAAU,QAAA,CAAA,KAAA,GAAA,OAAiB,CAAA;AAA4C,MACzE,KAAA,CAAA,OAAA,CAAA,CAAA;AACA,MAAA,MAAA,CAAA,OAAiB,CAAA,CAAA;AACjB,KAAA;AACA,IAAA,OAAA,CAAA,IAAc,EAAA,MAAA,KAAA;AAAA,MAChB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var selectTextarea$1 = require('./src/select-
|
|
7
|
-
var selectTextarea = require('./src/select-
|
|
6
|
+
var selectTextarea$1 = require('./src/select-textarea2.js');
|
|
7
|
+
var selectTextarea = require('./src/select-textarea.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const HzztSelectTextarea = install.withInstall(selectTextarea$1["default"]);
|
|
@@ -10,8 +10,9 @@ export declare const selectTextareaProps: {
|
|
|
10
10
|
};
|
|
11
11
|
disabled: BooleanConstructor;
|
|
12
12
|
label: StringConstructor;
|
|
13
|
-
|
|
13
|
+
options: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => OptionType[]) | (() => OptionType[]) | ((new (...args: any[]) => OptionType[]) | (() => OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
14
14
|
inputProps: ObjectConstructor;
|
|
15
|
+
selectProps: ObjectConstructor;
|
|
15
16
|
replace: BooleanConstructor;
|
|
16
17
|
modelValue: import("hzzt-plus/es/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>;
|
|
17
18
|
};
|
|
@@ -2,109 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
var selectTextarea = require('./select-textarea2.js');
|
|
5
|
+
require('../../../utils/index.js');
|
|
7
6
|
require('../../../hooks/index.js');
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
7
|
+
require('../../../constants/index.js');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
9
|
+
var index = require('../../../hooks/use-size/index.js');
|
|
10
|
+
var event = require('../../../constants/event.js');
|
|
11
|
+
var shared = require('@vue/shared');
|
|
12
|
+
var types = require('../../../utils/types.js');
|
|
14
13
|
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
33
|
-
const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
|
|
34
|
-
const containerCls = vue.computed(() => [
|
|
35
|
-
nsInput.b(),
|
|
36
|
-
nsInput.m(trueSize.value)
|
|
37
|
-
]);
|
|
38
|
-
const _inputProps = vue.computed(() => ({
|
|
39
|
-
disabled: trueDisabled.value,
|
|
40
|
-
clearable: true,
|
|
41
|
-
...props.inputProps,
|
|
42
|
-
type: "textarea"
|
|
43
|
-
}));
|
|
44
|
-
vue.watch(() => props.modelValue, (v) => {
|
|
45
|
-
inputVal.value = v;
|
|
46
|
-
});
|
|
47
|
-
function input(val) {
|
|
48
|
-
emit("update:modelValue", val);
|
|
49
|
-
emit("input", val);
|
|
50
|
-
}
|
|
51
|
-
function change(val) {
|
|
52
|
-
emit("change", val);
|
|
53
|
-
}
|
|
54
|
-
function selectChange(val) {
|
|
55
|
-
if (!inputVal.value && inputVal.value !== 0)
|
|
56
|
-
inputVal.value = "";
|
|
57
|
-
selectValue.value = "";
|
|
58
|
-
let content = val;
|
|
59
|
-
if (!props.replace) {
|
|
60
|
-
const inputEl = inputRef.value.$el.getElementsByTagName("textarea")[0];
|
|
61
|
-
content = index$2.insertCursorPosition(inputEl, val);
|
|
62
|
-
}
|
|
63
|
-
input(content);
|
|
64
|
-
change(content);
|
|
65
|
-
emit("select", val);
|
|
66
|
-
}
|
|
67
|
-
return (_ctx, _cache) => {
|
|
68
|
-
return vue.openBlock(), vue.createElementBlock("div", {
|
|
69
|
-
class: vue.normalizeClass(vue.unref(containerCls))
|
|
70
|
-
}, [
|
|
71
|
-
vue.createElementVNode("div", _hoisted_1, [
|
|
72
|
-
vue.createElementVNode("div", _hoisted_2, [
|
|
73
|
-
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
74
|
-
vue.createVNode(title["default"], {
|
|
75
|
-
class: "margin-l-1",
|
|
76
|
-
label: _ctx.label
|
|
77
|
-
}, null, 8, ["label"])
|
|
78
|
-
]),
|
|
79
|
-
!vue.unref(trueDisabled) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelectV2), {
|
|
80
|
-
key: 0,
|
|
81
|
-
class: "flex-1",
|
|
82
|
-
modelValue: selectValue.value,
|
|
83
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
84
|
-
"allow-create": "",
|
|
85
|
-
filterable: "",
|
|
86
|
-
clearable: "",
|
|
87
|
-
onChange: selectChange,
|
|
88
|
-
options: _ctx.data
|
|
89
|
-
}, null, 8, ["modelValue", "options"])) : vue.createCommentVNode("v-if", true),
|
|
90
|
-
vue.renderSlot(_ctx.$slots, "right")
|
|
91
|
-
]),
|
|
92
|
-
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
93
|
-
ref_key: "inputRef",
|
|
94
|
-
ref: inputRef,
|
|
95
|
-
class: "flex-1 margin-t-1",
|
|
96
|
-
modelValue: inputVal.value,
|
|
97
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputVal.value = $event)
|
|
98
|
-
}, vue.unref(_inputProps), {
|
|
99
|
-
onInput: input,
|
|
100
|
-
onChange: change
|
|
101
|
-
}), null, 16, ["modelValue"])
|
|
102
|
-
])
|
|
103
|
-
], 2);
|
|
104
|
-
};
|
|
14
|
+
const selectTextareaProps = runtime.buildProps({
|
|
15
|
+
size: index.useSizeProp,
|
|
16
|
+
disabled: Boolean,
|
|
17
|
+
label: String,
|
|
18
|
+
options: {
|
|
19
|
+
type: runtime.definePropType(Array),
|
|
20
|
+
default: () => []
|
|
21
|
+
},
|
|
22
|
+
inputProps: Object,
|
|
23
|
+
selectProps: Object,
|
|
24
|
+
replace: Boolean,
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: runtime.definePropType([
|
|
27
|
+
String,
|
|
28
|
+
Number
|
|
29
|
+
]),
|
|
30
|
+
default: ""
|
|
105
31
|
}
|
|
106
32
|
});
|
|
107
|
-
|
|
33
|
+
const selectTextareaEmits = {
|
|
34
|
+
[event.UPDATE_MODEL_EVENT]: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val),
|
|
35
|
+
[event.CHANGE_EVENT]: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val),
|
|
36
|
+
[event.INPUT_EVENT]: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val),
|
|
37
|
+
select: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val)
|
|
38
|
+
};
|
|
108
39
|
|
|
109
|
-
exports
|
|
40
|
+
exports.selectTextareaEmits = selectTextareaEmits;
|
|
41
|
+
exports.selectTextareaProps = selectTextareaProps;
|
|
110
42
|
//# sourceMappingURL=select-textarea.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-textarea.js","sources":["../../../../../../packages/components/select-textarea/src/select-textarea.
|
|
1
|
+
{"version":3,"file":"select-textarea.js","sources":["../../../../../../packages/components/select-textarea/src/select-textarea.ts"],"sourcesContent":["import {buildProps, definePropType, isString, isNumber, isBoolean} from '@hzzt-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type SelectTextarea from './select-textarea.vue'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\nimport {OptionType} from \"@hzzt-plus/components\";\nimport {CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\nexport const selectTextareaProps = buildProps({\n size: useSizeProp,\n disabled: Boolean,\n label: String,\n options: {\n type: definePropType<OptionType[]>(Array),\n default: () => [],\n },\n inputProps: Object,\n selectProps: Object,\n replace: Boolean,\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n ]),\n default: '',\n },\n})\n\nexport type SelectTextareaProps = ExtractPropTypes<typeof selectTextareaProps>\n\nexport const selectTextareaEmits = {\n [UPDATE_MODEL_EVENT]: (val: string | number | boolean | undefined) =>\n isString(val) || isNumber(val) || isBoolean(val),\n [CHANGE_EVENT]: (val: string | number | boolean | undefined) =>\n isString(val) || isNumber(val) || isBoolean(val),\n [INPUT_EVENT]: (val: string | number | boolean | undefined) =>\n isString(val) || isNumber(val) || isBoolean(val),\n select: (val: string | number | boolean | undefined) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\nexport type SelectTextareaEmits = typeof selectTextareaEmits\n\nexport type SelectTextareaInstance = InstanceType<typeof SelectTextarea>\n"],"names":["buildProps","useSizeProp","definePropType","UPDATE_MODEL_EVENT","isString","isNumber","isBoolean","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;;;;AAGY,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,IAAI,EAAEC,iBAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEC,sBAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,WAAW,EAAE,MAAM;AACrB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEA,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,CAAC,EAAE;AACS,MAAC,mBAAmB,GAAG;AACnC,EAAE,CAACC,wBAAkB,GAAG,CAAC,GAAG,KAAKC,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AACjF,EAAE,CAACC,kBAAY,GAAG,CAAC,GAAG,KAAKH,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AAC3E,EAAE,CAACE,iBAAW,GAAG,CAAC,GAAG,KAAKJ,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AAC1E,EAAE,MAAM,EAAE,CAAC,GAAG,KAAKF,eAAQ,CAAC,GAAG,CAAC,IAAIC,cAAQ,CAAC,GAAG,CAAC,IAAIC,eAAS,CAAC,GAAG,CAAC;AACnE;;;;;"}
|
|
@@ -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,6 +65,13 @@ 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;
|
|
@@ -13096,8 +13105,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13096
13105
|
};
|
|
13097
13106
|
disabled: BooleanConstructor;
|
|
13098
13107
|
label: StringConstructor;
|
|
13099
|
-
|
|
13108
|
+
options: import("../../../utils").EpPropFinalized<(new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]) | ((new (...args: any[]) => import("../..").OptionType[]) | (() => import("../..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
13100
13109
|
inputProps: ObjectConstructor;
|
|
13110
|
+
selectProps: ObjectConstructor;
|
|
13101
13111
|
replace: BooleanConstructor;
|
|
13102
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>;
|
|
13103
13113
|
}>> & {
|
|
@@ -13107,8 +13117,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13107
13117
|
onSelect?: ((val: string | number | boolean | undefined) => any) | undefined;
|
|
13108
13118
|
}, {
|
|
13109
13119
|
disabled: boolean;
|
|
13120
|
+
options: import("../..").OptionType[];
|
|
13110
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>;
|
|
13111
13122
|
replace: boolean;
|
|
13112
|
-
data: import("../..").OptionType[];
|
|
13113
13123
|
}>;
|
|
13114
13124
|
export default _default;
|
|
@@ -2,40 +2,114 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var selectTextarea = require('./select-textarea.js');
|
|
6
7
|
require('../../../hooks/index.js');
|
|
7
|
-
require('
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
8
|
+
var elementPlus = require('element-plus');
|
|
9
|
+
var title = require('../../title/src/title2.js');
|
|
10
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
11
|
+
var index = require('../../../hooks/use-namespace/index.js');
|
|
12
|
+
var index$1 = require('../../../hooks/use-size/index.js');
|
|
13
|
+
var index$2 = require('../../../hooks/use-cursor/index.js');
|
|
13
14
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
15
|
+
const _hoisted_1 = { class: "flex column" };
|
|
16
|
+
const _hoisted_2 = { class: "flex align-items-center" };
|
|
17
|
+
const __default__ = vue.defineComponent({
|
|
18
|
+
name: "HzztSelectTextarea"
|
|
19
|
+
});
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
21
|
+
...__default__,
|
|
22
|
+
props: selectTextarea.selectTextareaProps,
|
|
23
|
+
emits: selectTextarea.selectTextareaEmits,
|
|
24
|
+
setup(__props, { emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const inputVal = vue.ref(props.modelValue);
|
|
27
|
+
const selectValue = vue.ref("");
|
|
28
|
+
const inputRef = vue.ref();
|
|
29
|
+
const nsInput = index.useNamespace("select-textarea");
|
|
30
|
+
const formSize = elementPlus.useFormSize();
|
|
31
|
+
const formDisabled = elementPlus.useFormDisabled();
|
|
32
|
+
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
33
|
+
const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
|
|
34
|
+
const containerCls = vue.computed(() => [
|
|
35
|
+
nsInput.b(),
|
|
36
|
+
nsInput.m(trueSize.value)
|
|
37
|
+
]);
|
|
38
|
+
const _inputProps = vue.computed(() => ({
|
|
39
|
+
disabled: trueDisabled.value,
|
|
40
|
+
clearable: true,
|
|
41
|
+
...props.inputProps,
|
|
42
|
+
type: "textarea"
|
|
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
|
+
}));
|
|
52
|
+
vue.watch(() => props.modelValue, (v) => {
|
|
53
|
+
inputVal.value = v;
|
|
54
|
+
});
|
|
55
|
+
function input(val) {
|
|
56
|
+
emit("update:modelValue", val);
|
|
57
|
+
emit("input", val);
|
|
58
|
+
}
|
|
59
|
+
function change(val) {
|
|
60
|
+
emit("change", val);
|
|
61
|
+
}
|
|
62
|
+
function selectChange(val) {
|
|
63
|
+
if (!inputVal.value && inputVal.value !== 0)
|
|
64
|
+
inputVal.value = "";
|
|
65
|
+
selectValue.value = "";
|
|
66
|
+
let content = val;
|
|
67
|
+
if (!props.replace) {
|
|
68
|
+
const inputEl = inputRef.value.$el.getElementsByTagName("textarea")[0];
|
|
69
|
+
content = index$2.insertCursorPosition(inputEl, val);
|
|
70
|
+
}
|
|
71
|
+
input(content);
|
|
72
|
+
change(content);
|
|
73
|
+
emit("select", val);
|
|
74
|
+
}
|
|
75
|
+
return (_ctx, _cache) => {
|
|
76
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
77
|
+
class: vue.normalizeClass(vue.unref(containerCls))
|
|
78
|
+
}, [
|
|
79
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
80
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
81
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
82
|
+
vue.createVNode(title["default"], {
|
|
83
|
+
size: vue.unref(trueSize),
|
|
84
|
+
class: "margin-l-1",
|
|
85
|
+
label: _ctx.label
|
|
86
|
+
}, null, 8, ["size", "label"])
|
|
87
|
+
]),
|
|
88
|
+
!vue.unref(trueDisabled) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelectV2), vue.mergeProps({
|
|
89
|
+
key: 0,
|
|
90
|
+
class: "flex-1",
|
|
91
|
+
modelValue: selectValue.value,
|
|
92
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
93
|
+
onChange: selectChange
|
|
94
|
+
}, vue.unref(_selectProps)), null, 16, ["modelValue"])) : vue.createCommentVNode("v-if", true),
|
|
95
|
+
vue.renderSlot(_ctx.$slots, "right")
|
|
96
|
+
]),
|
|
97
|
+
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
98
|
+
ref_key: "inputRef",
|
|
99
|
+
ref: inputRef,
|
|
100
|
+
class: "flex-1 margin-t-1",
|
|
101
|
+
modelValue: inputVal.value,
|
|
102
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputVal.value = $event)
|
|
103
|
+
}, vue.unref(_inputProps), {
|
|
104
|
+
onInput: input,
|
|
105
|
+
onChange: change
|
|
106
|
+
}), null, 16, ["modelValue"])
|
|
107
|
+
])
|
|
108
|
+
], 2);
|
|
109
|
+
};
|
|
30
110
|
}
|
|
31
111
|
});
|
|
32
|
-
|
|
33
|
-
[event.UPDATE_MODEL_EVENT]: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val),
|
|
34
|
-
[event.CHANGE_EVENT]: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val),
|
|
35
|
-
[event.INPUT_EVENT]: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val),
|
|
36
|
-
select: (val) => shared.isString(val) || types.isNumber(val) || types.isBoolean(val)
|
|
37
|
-
};
|
|
112
|
+
var SelectTextarea = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "select-textarea.vue"]]);
|
|
38
113
|
|
|
39
|
-
exports
|
|
40
|
-
exports.selectTextareaProps = selectTextareaProps;
|
|
114
|
+
exports["default"] = SelectTextarea;
|
|
41
115
|
//# sourceMappingURL=select-textarea2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-textarea2.js","sources":["../../../../../../packages/components/select-textarea/src/select-textarea.
|
|
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":";;;;;;;;;;;;;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|
var index$c = require('./components/scan/index.js');
|
|
29
29
|
var selectInput = require('./components/select-input/src/select-input.js');
|
|
30
30
|
var index$d = require('./components/select-input/index.js');
|
|
31
|
-
var selectTextarea = require('./components/select-textarea/src/select-
|
|
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');
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.0.
|
|
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 = '2.0.
|
|
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"}}
|