hzzt-plus 1.0.6 → 1.0.7

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.
Files changed (40) hide show
  1. package/dist/index.full.js +3 -3
  2. package/dist/index.full.min.js +3 -3
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +3 -3
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +3 -3
  7. package/dist/locale/en.js +1 -1
  8. package/dist/locale/en.min.js +1 -1
  9. package/dist/locale/en.min.mjs +1 -1
  10. package/dist/locale/en.mjs +1 -1
  11. package/dist/locale/zh-cn.js +1 -1
  12. package/dist/locale/zh-cn.min.js +1 -1
  13. package/dist/locale/zh-cn.min.mjs +1 -1
  14. package/dist/locale/zh-cn.mjs +1 -1
  15. package/es/components/click-input/src/click-input2.mjs +1 -1
  16. package/es/components/click-input/src/click-input2.mjs.map +1 -1
  17. package/es/components/index.mjs +1 -1
  18. package/es/components/select-input/index.mjs +2 -2
  19. package/es/components/select-input/src/select-input.mjs +124 -45
  20. package/es/components/select-input/src/select-input.mjs.map +1 -1
  21. package/es/components/select-input/src/select-input2.mjs +45 -124
  22. package/es/components/select-input/src/select-input2.mjs.map +1 -1
  23. package/es/index.mjs +1 -1
  24. package/es/version.d.ts +1 -1
  25. package/es/version.mjs +1 -1
  26. package/es/version.mjs.map +1 -1
  27. package/lib/components/click-input/src/click-input2.js +1 -1
  28. package/lib/components/click-input/src/click-input2.js.map +1 -1
  29. package/lib/components/index.js +1 -1
  30. package/lib/components/select-input/index.js +2 -2
  31. package/lib/components/select-input/src/select-input.js +124 -46
  32. package/lib/components/select-input/src/select-input.js.map +1 -1
  33. package/lib/components/select-input/src/select-input2.js +46 -124
  34. package/lib/components/select-input/src/select-input2.js.map +1 -1
  35. package/lib/index.js +1 -1
  36. package/lib/version.d.ts +1 -1
  37. package/lib/version.js +1 -1
  38. package/lib/version.js.map +1 -1
  39. package/package.json +1 -1
  40. package/web-types.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"click-input2.js","sources":["../../../../../../packages/components/click-input/src/click-input.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <el-input\n v-if=\"!trueReadonly\"\n ref=\"inputRef\"\n v-model=\"inputVal\"\n v-bind=\"inputProps\"\n clearable\n :size=\"trueSize\"\n @keyup.enter=\"change\"\n @blur=\"change\"\n />\n <div v-else class=\"width-100%\" :class=\"spanClass\" @click=\"edit\">\n {{ inputVal || ' ' }}\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {computed, ref, watch, nextTick} from 'vue'\n import {clickInputEmits, clickInputProps} from './click-input'\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {ElInput} from 'element-plus'\n\n defineOptions({\n name: 'HzztClickInput',\n })\n\n const props = defineProps(clickInputProps)\n const emit = defineEmits(clickInputEmits)\n\n const _inputVal = ref(props.modelValue || '');\n const inputVal = ref(props.modelValue || '');\n const inputRef = ref();\n const editable = ref(false);\n\n const nsInput = useNamespace('click-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 trueReadonly = computed(() => trueDisabled.value || props.readonly || !editable.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n 'flex width-100% align-items-center',\n ])\n\n const spanClass = computed(() => [\n nsInput.em('span'),\n 'flex width-100% align-items-center',\n ])\n\n watch(() => props.modelValue, (v) => {\n inputVal.value = 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() {\n editable.value = false;\n if (_inputVal.value === inputVal.value) {\n return;\n }\n input(inputVal.value);\n emit('change', inputVal.value);\n }\n\n function edit() {\n if (trueDisabled.value || props.readonly) {\n return;\n }\n editable.value = true;\n nextTick(() => {\n inputRef.value.focus();\n });\n }\n\n</script>\n"],"names":["ref","useNamespace","useFormSize","useFormDisabled","computed","useGlobalSize","watch","nextTick","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;uCAyBgB,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,SAAY,GAAAA,OAAA,CAAI,KAAM,CAAA,UAAA,IAAc,EAAE,CAAA,CAAA;AAC5C,IAAA,MAAM,QAAW,GAAAA,OAAA,CAAI,KAAM,CAAA,UAAA,IAAc,EAAE,CAAA,CAAA;AAC3C,IAAA,MAAM,WAAWA,OAAI,EAAA,CAAA;AACrB,IAAM,MAAA,QAAA,GAAWA,QAAI,KAAK,CAAA,CAAA;AAE1B,IAAM,MAAA,OAAA,GAAUC,mBAAa,aAAa,CAAA,CAAA;AAC1C,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,YAAA,CAAA,KAAA,IAAA,KAAA,CAAA,QAAA,IAAA,CAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAM,eAAeA,YAAS,CAAA,MAAM;AAEpC,MAAM,OAAA,CAAA,CAAA,EAAA;AAEN,MAAM,OAAA,CAAA,CAAA,CAAA,QAAA,CAAe;AAAe,MAClC,oCAAU;AAAA,KACV,CAAA,CAAA;AAAwB,IACxB,MAAA,SAAA,GAAAA,YAAA,CAAA,MAAA;AAAA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input.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <el-input\n v-if=\"!trueReadonly\"\n ref=\"inputRef\"\n v-model=\"inputVal\"\n v-bind=\"inputProps\"\n clearable\n :size=\"trueSize\"\n @keyup.enter=\"change\"\n @blur=\"change\"\n />\n <div v-else class=\"width-100%\" :class=\"spanClass\" @click=\"edit\">\n {{ inputVal || ' ' }}\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {computed, ref, watch, nextTick} from 'vue'\n import {clickInputEmits, clickInputProps} from './click-input'\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {ElInput} from 'element-plus'\n\n defineOptions({\n name: 'HzztClickInput',\n })\n\n const props = defineProps(clickInputProps)\n const emit = defineEmits(clickInputEmits)\n\n const _inputVal = ref(props.modelValue || '');\n const inputVal = ref(props.modelValue || '');\n const inputRef = ref();\n const editable = ref(false);\n\n const nsInput = useNamespace('click-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 trueReadonly = computed(() => trueDisabled.value || props.readonly || !editable.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n 'flex width-100% align-items-center',\n ])\n\n const spanClass = computed(() => [\n nsInput.e('span'),\n 'flex width-100% align-items-center',\n ])\n\n watch(() => props.modelValue, (v) => {\n inputVal.value = 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() {\n editable.value = false;\n if (_inputVal.value === inputVal.value) {\n return;\n }\n input(inputVal.value);\n emit('change', inputVal.value);\n }\n\n function edit() {\n if (trueDisabled.value || props.readonly) {\n return;\n }\n editable.value = true;\n nextTick(() => {\n inputRef.value.focus();\n });\n }\n\n</script>\n"],"names":["ref","useNamespace","useFormSize","useF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;AAAgB,IAChBE,SAAA,CAAA,MAAA,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACD,QAAA,CAAA,KAAA,GAAA,CAAA,IAAA,EAAA,CAAA;AAED,MAAA,SAAY,CAAA,KAAA,GAAkB,CAAA,IAAA,EAAA,CAAA;AAC5B,KAAA,CAAA,CAAA;AACA,IAAA,SAAA,WAAkB;AAAK,MACxB,IAAA,CAAA,mBAAA,EAAA,GAAA,CAAA,CAAA;AAED,MAAA,IAAA,CAAA,SAA4B,GAAA,CAAA,CAAA;AAC1B,KAAA;AACA,IAAA,kBAAiB;AAAA,MACnB,QAAA,CAAA,KAAA,GAAA,KAAA,CAAA;AAEA,MAAA,IAAA,SAAkB,CAAA,KAAA,KAAA,QAAA,CAAA,KAAA,EAAA;AAChB,QAAA,OAAS;AACT,OAAI;AACF,MAAA,KAAA,CAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AAAA,MACF,IAAA,CAAA,QAAA,EAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AACA,KAAA;AACA,IAAK,SAAA,IAAA,GAAA;AAAwB,MAC/B,IAAA,YAAA,CAAA,KAAA,IAAA,KAAA,CAAA,QAAA,EAAA;AAEA,QAAA,OAAgB;AACd,OAAI;AACF,MAAA,QAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,MACFC,YAAA,CAAA,MAAA;AACA,QAAA,QAAiB,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA;AACjB,OAAA,CAAA,CAAA;AACE,KAAA;AAAqB,IAAA,OACtB,CAAA,IAAA,EAAA,MAAA,KAAA;AAAA,MACH,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -26,7 +26,7 @@ var configProviderProps = require('./config-provider/src/config-provider-props.j
26
26
  var constants = require('./config-provider/src/constants.js');
27
27
  var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
28
28
  var scan = require('./scan/src/scan.js');
29
- var selectInput = require('./select-input/src/select-input.js');
29
+ var selectInput = require('./select-input/src/select-input2.js');
30
30
  var selectTextarea = require('./select-textarea/src/select-textarea.js');
31
31
  var inputRange = require('./input-range/src/input-range.js');
32
32
  var cascader = require('./cascader/src/cascader.js');
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../../utils/index.js');
6
- var selectInput$1 = require('./src/select-input2.js');
7
- var selectInput = require('./src/select-input.js');
6
+ var selectInput$1 = require('./src/select-input.js');
7
+ var selectInput = require('./src/select-input2.js');
8
8
  var install = require('../../utils/vue/install.js');
9
9
 
10
10
  const HzztSelectInput = install.withInstall(selectInput$1["default"]);
@@ -2,54 +2,132 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('../../../utils/index.js');
5
+ var vue = require('vue');
6
+ var selectInput = require('./select-input2.js');
6
7
  require('../../../hooks/index.js');
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');
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-letter/index.js');
12
14
 
13
- const selectInputProps = runtime.buildProps({
14
- modelValue: {
15
- type: runtime.definePropType([
16
- String,
17
- Number
18
- ]),
19
- default: ""
20
- },
21
- indexType: {
22
- type: String,
23
- default: "number"
24
- },
25
- disabled: Boolean,
26
- replace: Boolean,
27
- label: String,
28
- data: {
29
- type: runtime.definePropType(Array),
30
- default: () => []
31
- },
32
- inputProps: Object,
33
- customProps: Object,
34
- position: {
35
- type: String,
36
- default: "left"
37
- },
38
- formatLabel: {
39
- type: Function
40
- },
41
- split: {
42
- type: String,
43
- default: ""
44
- },
45
- size: index.useSizeProp
15
+ const _hoisted_1 = { slot: "append" };
16
+ const _hoisted_2 = { key: 0 };
17
+ const __default__ = vue.defineComponent({
18
+ name: "HzztSelectInput"
46
19
  });
47
- const selectInputEmits = {
48
- [event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value),
49
- input: (value) => shared.isString(value),
50
- change: (value) => shared.isString(value)
51
- };
20
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
+ ...__default__,
22
+ props: selectInput.selectInputProps,
23
+ emits: selectInput.selectInputEmits,
24
+ setup(__props, { emit }) {
25
+ const props = __props;
26
+ const inputVal = vue.ref(props.modelValue);
27
+ const nsInput = index.useNamespace("select-input");
28
+ const formSize = elementPlus.useFormSize();
29
+ const formDisabled = elementPlus.useFormDisabled();
30
+ const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
31
+ const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
32
+ const containerCls = vue.computed(() => [
33
+ nsInput.b(),
34
+ nsInput.m(trueSize.value)
35
+ ]);
36
+ const inputContainerCls = vue.computed(() => [
37
+ "flex",
38
+ props.position === "top" ? "column" : "row align-items-center"
39
+ ]);
40
+ const inputCls = vue.computed(() => [
41
+ "flex-1",
42
+ props.label ? props.position === "top" ? "margin-b-1" : "margin-l-1" : ""
43
+ ]);
44
+ const _inputProps = vue.computed(() => ({
45
+ disabled: trueDisabled.value,
46
+ clearable: true,
47
+ ...props.inputProps
48
+ }));
49
+ vue.watch(() => props.modelValue, (v) => {
50
+ inputVal.value = v;
51
+ });
52
+ function input(val) {
53
+ emit("update:modelValue", val);
54
+ emit("input", val);
55
+ }
56
+ function change(val) {
57
+ emit("change", val);
58
+ }
59
+ function getLinkName(item, index) {
60
+ let prefix = "";
61
+ if (props.indexType == "number") {
62
+ prefix = `\uFF08${index + 1}\uFF09`;
63
+ } else if (props.indexType == "letter") {
64
+ prefix = `\uFF08${index$2.numberToLetter(index)}\uFF09`;
65
+ }
66
+ return prefix + (item.label || item.value);
67
+ }
68
+ function select(item) {
69
+ const value = item.value || item.label;
70
+ let content = "";
71
+ if (!inputVal.value)
72
+ inputVal.value = "";
73
+ if (props.formatLabel) {
74
+ content = props.formatLabel(value);
75
+ } else if (props.replace) {
76
+ content = value;
77
+ } else {
78
+ content = inputVal.value ? `${inputVal.value}${props.split}${value}` : value;
79
+ }
80
+ inputVal.value = content;
81
+ input(content);
82
+ change(content);
83
+ }
84
+ return (_ctx, _cache) => {
85
+ return vue.openBlock(), vue.createElementBlock("div", {
86
+ class: vue.normalizeClass(vue.unref(containerCls))
87
+ }, [
88
+ vue.createElementVNode("div", {
89
+ class: vue.normalizeClass(vue.unref(inputContainerCls))
90
+ }, [
91
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
92
+ vue.createVNode(title["default"], { label: _ctx.label }, null, 8, ["label"])
93
+ ]),
94
+ vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
95
+ ref: "inputRef",
96
+ class: vue.unref(inputCls),
97
+ modelValue: inputVal.value,
98
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event)
99
+ }, vue.unref(_inputProps), {
100
+ onInput: input,
101
+ onChange: change
102
+ }), {
103
+ default: vue.withCtx(() => [
104
+ vue.createElementVNode("template", _hoisted_1, [
105
+ vue.renderSlot(_ctx.$slots, "append")
106
+ ])
107
+ ]),
108
+ _: 3
109
+ }, 16, ["class", "modelValue"])
110
+ ], 2),
111
+ _ctx.data.length && !vue.unref(trueDisabled) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
112
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.data, (item, index) => {
113
+ return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), vue.mergeProps({
114
+ key: index,
115
+ class: "margin-r-4"
116
+ }, _ctx.customProps, {
117
+ onClick: ($event) => select(item)
118
+ }), {
119
+ default: vue.withCtx(() => [
120
+ vue.createTextVNode(vue.toDisplayString(getLinkName(item, index)), 1)
121
+ ]),
122
+ _: 2
123
+ }, 1040, ["onClick"]);
124
+ }), 128))
125
+ ])) : vue.createCommentVNode("v-if", true)
126
+ ], 2);
127
+ };
128
+ }
129
+ });
130
+ var SelectInput = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "select-input.vue"]]);
52
131
 
53
- exports.selectInputEmits = selectInputEmits;
54
- exports.selectInputProps = selectInputProps;
132
+ exports["default"] = SelectInput;
55
133
  //# sourceMappingURL=select-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"select-input.js","sources":["../../../../../../packages/components/select-input/src/select-input.ts"],"sourcesContent":["import {buildProps, definePropType, isString} from '@hzzt-plus/utils'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\n\nimport type { ExtractPropTypes } from 'vue'\nimport type SelectInput from './select-input.vue'\nimport {UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\nimport {OptionType} from \"@hzzt-plus/components/select/src/select\";\n\nexport const selectInputProps = buildProps({\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n ]),\n default: '',\n },\n indexType: {\n type: String,\n default: 'number',\n },\n disabled: Boolean,\n replace: Boolean,\n label: String,\n data: {\n type: definePropType<OptionType[]>(Array),\n default: () => [],\n },\n inputProps: Object,\n customProps: Object,\n position: {\n type: String,\n default: 'left',\n },\n formatLabel: {\n type: Function,\n },\n split: {\n type: String,\n default: '',\n },\n size: useSizeProp,\n})\n\nexport type SelectInputProps = ExtractPropTypes<typeof selectInputProps>\n\nexport const selectInputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string | undefined) => isString(value),\n input: (value: string | undefined) => isString(value),\n change: (value: string | undefined) => isString(value),\n}\nexport type SelectInputEmits = typeof selectInputEmits\n\nexport type SelectInputInstance = InstanceType<typeof SelectInput>\n"],"names":["buildProps","definePropType","useSizeProp","UPDATE_MODEL_EVENT","isString"],"mappings":";;;;;;;;;;;;AAGY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,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,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAKA,eAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,KAAK,KAAKA,eAAQ,CAAC,KAAK,CAAC;AACpC;;;;;"}
1
+ {"version":3,"file":"select-input.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=\"data.length&&!trueDisabled\">\n <el-link v-for=\"(item, index) in data\" :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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AA,IAAmB,CAAA,KAAA,IAAA,IAAA,CAAA,KAAM,CAAA,CAAA;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,132 +2,54 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var vue = require('vue');
6
- var selectInput = require('./select-input.js');
5
+ require('../../../utils/index.js');
7
6
  require('../../../hooks/index.js');
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-letter/index.js');
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');
14
12
 
15
- const _hoisted_1 = { slot: "append" };
16
- const _hoisted_2 = { key: 0 };
17
- const __default__ = vue.defineComponent({
18
- name: "HzztSelectInput"
13
+ const selectInputProps = runtime.buildProps({
14
+ modelValue: {
15
+ type: runtime.definePropType([
16
+ String,
17
+ Number
18
+ ]),
19
+ default: ""
20
+ },
21
+ indexType: {
22
+ type: String,
23
+ default: "number"
24
+ },
25
+ disabled: Boolean,
26
+ replace: Boolean,
27
+ label: String,
28
+ data: {
29
+ type: runtime.definePropType(Array),
30
+ default: () => []
31
+ },
32
+ inputProps: Object,
33
+ customProps: Object,
34
+ position: {
35
+ type: String,
36
+ default: "left"
37
+ },
38
+ formatLabel: {
39
+ type: Function
40
+ },
41
+ split: {
42
+ type: String,
43
+ default: ""
44
+ },
45
+ size: index.useSizeProp
19
46
  });
20
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
21
- ...__default__,
22
- props: selectInput.selectInputProps,
23
- emits: selectInput.selectInputEmits,
24
- setup(__props, { emit }) {
25
- const props = __props;
26
- const inputVal = vue.ref(props.modelValue);
27
- const nsInput = index.useNamespace("select-input");
28
- const formSize = elementPlus.useFormSize();
29
- const formDisabled = elementPlus.useFormDisabled();
30
- const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
31
- const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
32
- const containerCls = vue.computed(() => [
33
- nsInput.b(),
34
- nsInput.m(trueSize.value)
35
- ]);
36
- const inputContainerCls = vue.computed(() => [
37
- "flex",
38
- props.position === "top" ? "column" : "row align-items-center"
39
- ]);
40
- const inputCls = vue.computed(() => [
41
- "flex-1",
42
- props.label ? props.position === "top" ? "margin-b-1" : "margin-l-1" : ""
43
- ]);
44
- const _inputProps = vue.computed(() => ({
45
- disabled: trueDisabled.value,
46
- clearable: true,
47
- ...props.inputProps
48
- }));
49
- vue.watch(() => props.modelValue, (v) => {
50
- inputVal.value = v;
51
- });
52
- function input(val) {
53
- emit("update:modelValue", val);
54
- emit("input", val);
55
- }
56
- function change(val) {
57
- emit("change", val);
58
- }
59
- function getLinkName(item, index) {
60
- let prefix = "";
61
- if (props.indexType == "number") {
62
- prefix = `\uFF08${index + 1}\uFF09`;
63
- } else if (props.indexType == "letter") {
64
- prefix = `\uFF08${index$2.numberToLetter(index)}\uFF09`;
65
- }
66
- return prefix + (item.label || item.value);
67
- }
68
- function select(item) {
69
- const value = item.value || item.label;
70
- let content = "";
71
- if (!inputVal.value)
72
- inputVal.value = "";
73
- if (props.formatLabel) {
74
- content = props.formatLabel(value);
75
- } else if (props.replace) {
76
- content = value;
77
- } else {
78
- content = inputVal.value ? `${inputVal.value}${props.split}${value}` : value;
79
- }
80
- inputVal.value = content;
81
- input(content);
82
- change(content);
83
- }
84
- return (_ctx, _cache) => {
85
- return vue.openBlock(), vue.createElementBlock("div", {
86
- class: vue.normalizeClass(vue.unref(containerCls))
87
- }, [
88
- vue.createElementVNode("div", {
89
- class: vue.normalizeClass(vue.unref(inputContainerCls))
90
- }, [
91
- vue.renderSlot(_ctx.$slots, "title", {}, () => [
92
- vue.createVNode(title["default"], { label: _ctx.label }, null, 8, ["label"])
93
- ]),
94
- vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
95
- ref: "inputRef",
96
- class: vue.unref(inputCls),
97
- modelValue: inputVal.value,
98
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event)
99
- }, vue.unref(_inputProps), {
100
- onInput: input,
101
- onChange: change
102
- }), {
103
- default: vue.withCtx(() => [
104
- vue.createElementVNode("template", _hoisted_1, [
105
- vue.renderSlot(_ctx.$slots, "append")
106
- ])
107
- ]),
108
- _: 3
109
- }, 16, ["class", "modelValue"])
110
- ], 2),
111
- _ctx.data.length && !vue.unref(trueDisabled) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
112
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.data, (item, index) => {
113
- return vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElLink), vue.mergeProps({
114
- key: index,
115
- class: "margin-r-4"
116
- }, _ctx.customProps, {
117
- onClick: ($event) => select(item)
118
- }), {
119
- default: vue.withCtx(() => [
120
- vue.createTextVNode(vue.toDisplayString(getLinkName(item, index)), 1)
121
- ]),
122
- _: 2
123
- }, 1040, ["onClick"]);
124
- }), 128))
125
- ])) : vue.createCommentVNode("v-if", true)
126
- ], 2);
127
- };
128
- }
129
- });
130
- var SelectInput = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "select-input.vue"]]);
47
+ const selectInputEmits = {
48
+ [event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value),
49
+ input: (value) => shared.isString(value),
50
+ change: (value) => shared.isString(value)
51
+ };
131
52
 
132
- exports["default"] = SelectInput;
53
+ exports.selectInputEmits = selectInputEmits;
54
+ exports.selectInputProps = selectInputProps;
133
55
  //# sourceMappingURL=select-input2.js.map
@@ -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=\"data.length&&!trueDisabled\">\n <el-link v-for=\"(item, index) in data\" :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,wBAAA;AAAA,KACvC,CAAA,CAAA;AAAA,IACA,MAAA,QAAmB,GAAAA,YAAA,CAAA,MAAmB;AAAA,MACvC,QAAA;AAED,MAAM,KAAA,CAAA,KAAA,GAAA,cAA0B,KAAA,KAAA,GAAA,YAAA,GAAA,YAAA,GAAA,EAAA;AAAA,KAC9B,CAAA,CAAA;AAAA,IAAA,iBACc,GAAAA,YA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A,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"select-input2.js","sources":["../../../../../../packages/components/select-input/src/select-input.ts"],"sourcesContent":["import {buildProps, definePropType, isString} from '@hzzt-plus/utils'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\n\nimport type { ExtractPropTypes } from 'vue'\nimport type SelectInput from './select-input.vue'\nimport {UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\nimport {OptionType} from \"@hzzt-plus/components/select/src/select\";\n\nexport const selectInputProps = buildProps({\n modelValue: {\n type: definePropType<string | number | null | undefined>([\n String,\n Number,\n ]),\n default: '',\n },\n indexType: {\n type: String,\n default: 'number',\n },\n disabled: Boolean,\n replace: Boolean,\n label: String,\n data: {\n type: definePropType<OptionType[]>(Array),\n default: () => [],\n },\n inputProps: Object,\n customProps: Object,\n position: {\n type: String,\n default: 'left',\n },\n formatLabel: {\n type: Function,\n },\n split: {\n type: String,\n default: '',\n },\n size: useSizeProp,\n})\n\nexport type SelectInputProps = ExtractPropTypes<typeof selectInputProps>\n\nexport const selectInputEmits = {\n [UPDATE_MODEL_EVENT]: (value: string | undefined) => isString(value),\n input: (value: string | undefined) => isString(value),\n change: (value: string | undefined) => isString(value),\n}\nexport type SelectInputEmits = typeof selectInputEmits\n\nexport type SelectInputInstance = InstanceType<typeof SelectInput>\n"],"names":["buildProps","definePropType","useSizeProp","UPDATE_MODEL_EVENT","isString"],"mappings":";;;;;;;;;;;;AAGY,MAAC,gBAAgB,GAAGA,kBAAU,CAAC;AAC3C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAEC,sBAAc,CAAC;AACzB,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEA,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,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,QAAQ;AAClB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAEC,iBAAW;AACnB,CAAC,EAAE;AACS,MAAC,gBAAgB,GAAG;AAChC,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,KAAK,EAAE,CAAC,KAAK,KAAKA,eAAQ,CAAC,KAAK,CAAC;AACnC,EAAE,MAAM,EAAE,CAAC,KAAK,KAAKA,eAAQ,CAAC,KAAK,CAAC;AACpC;;;;;"}
package/lib/index.js CHANGED
@@ -26,7 +26,7 @@ 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-input.js');
29
+ var selectInput = require('./components/select-input/src/select-input2.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');
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.0.6";
1
+ export declare const version = "1.0.7";
package/lib/version.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const version = "1.0.6";
5
+ const version = "1.0.7";
6
6
 
7
7
  exports.version = version;
8
8
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '1.0.6'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.js","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '1.0.7'\n"],"names":[],"mappings":";;;;AAAY,MAAC,OAAO,GAAG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hzzt-plus",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "A Component Library for Vue 3",
5
5
  "keywords": [
6
6
  "hzzt-plus",
package/web-types.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"hzzt-plus","version":"1.0.6","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{"vue-components":[{"name":"hzzt-cascader","source":{"symbol":"HzztCascader"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"cascader-props","description":"cascaderProps.","type":["object"]},{"name":"clearable","description":"clearable.","type":["boolean"]},{"name":"readonly","description":"readonly.","type":["boolean"]},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"}]},{"name":"hzzt-check-button","source":{"symbol":"HzztCheckButton"},"description":"Title","props":[{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"type","description":"type.","type":["string"],"default":"primary"},{"name":"is-default","description":"isDefault.","type":["boolean"],"default":"true"}]},{"name":"hzzt-click-input","source":{"symbol":"HzztClickInput"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"readonly","description":"readonly.","type":["boolean"]},{"name":"input-props","description":"inputProps.","type":["object"]}]},{"name":"hzzt-collapse","source":{"symbol":"HzztCollapse"},"description":"Title","props":[{"name":"default-active","description":"defaultActive.","type":["boolean"],"default":"false"},{"name":"title","description":"title.","type":["string"],"default":"''"},{"name":"expand","description":"expand.","type":["boolean"],"default":"true"}]},{"name":"hzzt-config-provider","source":{"symbol":"HzztConfigProvider"},"description":"Title","props":[{"name":"a11y","description":"a11y.","type":["boolean"],"default":"true"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"locale","description":"Locale Object","type":[{"name":"{name: string, el: TranslatePair} languages","source":{"symbol":"{name: string, el: TranslatePair} languages"}}],"default":"en"},{"name":"keyboard-navigation","description":"keyboardNavigation.","type":["boolean"],"default":"true"}]},{"name":"hzzt-confirm-password","source":{"symbol":"HzztConfirmPassword"},"description":"Title","props":[{"name":"placeholder","description":"placeholder.","type":["string"],"default":"请输入密码"},{"name":"model-value","description":"modelValue.","type":["string"]}]},{"name":"hzzt-dropdown","source":{"symbol":"HzztDropdown"},"description":"Title","props":[{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"default-value","description":"defaultValue.","type":["array"],"default":"[]"},{"name":"label","description":"label.","type":["string"],"default":"''"},{"name":"value","description":"value.","type":["string"],"default":"''"},{"name":"position","description":"position.","type":["string"],"default":"right"},{"name":"props","description":"props.","type":["object"]},{"name":"return-type","description":"returnType.","type":["string"],"default":"Array"}]},{"name":"hzzt-icon","source":{"symbol":"HzztIcon"},"description":"Title","props":[{"name":"name","description":"name.","type":["[string]"]},{"name":"type","description":"type.","type":["string"],"default":"el"}]},{"name":"hzzt-input-range","source":{"symbol":"HzztInputRange"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["array"],"default":"[]"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"clearable","description":"clearable.","type":["boolean"]},{"name":"start-placeholder","description":"startPlaceholder.","type":["string"]},{"name":"end-placeholder","description":"endPlaceholder.","type":["string"]},{"name":"start-props","description":"startProps.","type":["object"]},{"name":"end-props","description":"endProps.","type":["object"]}]},{"name":"hzzt-page-size","source":{"symbol":"HzztPageSize"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["number"],"default":"1"},{"name":"page-size","description":"pageSize.","type":["number"],"default":"20"},{"name":"total","description":"total.","type":["number"],"default":"0"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"page-size-options","description":"pageSizeOptions.","type":["array"],"default":"[20, 50, 100, 200, 500, 1000, 2000]"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"is-manual","description":"isManual.","type":["boolean"]},{"name":"is-last-page","description":"isLastPage.","type":["boolean"]}]},{"name":"hzzt-pagination","source":{"symbol":"HzztPagination"},"description":"Title","props":[{"name":"pagination","description":"pagination.","type":["object"]}]},{"name":"hzzt-quarter-picker","source":{"symbol":"HzztQuarterPicker"},"description":"Title","props":[{"name":"format","description":"format.","type":["string"],"default":"YYYY-Q"},{"name":"value-format","description":"valueFormat.","type":["string"],"default":"''"},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"},{"name":"prefix-icon","description":"prefixIcon.","type":["string"],"default":"''"},{"name":"clear-icon","description":"clearIcon.","type":["string"],"default":"circle-close"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"model-value","description":"modelValue.","type":["string"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"clearable","description":"clearable.","type":["boolean"],"default":"true"},{"name":"disabled-date","description":"disabledDate.","type":["Function"]}]},{"name":"hzzt-scan","source":{"symbol":"HzztScan"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"},{"name":"letter","description":"letter.","type":["string"],"default":"upper"}]},{"name":"hzzt-select-input","source":{"symbol":"HzztSelectInput"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"index-type","description":"indexType.","type":["string"],"default":"number"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"label","description":"label.","type":["string"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"replace","description":"replace.","type":["boolean"]},{"name":"position","description":"position.","type":["string"],"default":"left"},{"name":"data","description":"data.","type":["array"],"default":"[]"},{"name":"input-props","description":"inputProps.","type":["object"]},{"name":"custom-props","description":"customProps.","type":["object"]},{"name":"format-label","description":"formatLabel.","type":["Function"]},{"name":"split","description":"split.","type":["string"],"default":"''"}]},{"name":"hzzt-select-textarea","source":{"symbol":"HzztSelectTextarea"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"label","description":"label.","type":["string"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"replace","description":"replace.","type":["boolean"]},{"name":"data","description":"data.","type":["array"],"default":"[]"},{"name":"input-props","description":"inputProps.","type":["object"]}]},{"name":"hzzt-select","source":{"symbol":"HzztSelect"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"select-props","description":"selectProps.","type":["object"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"cascader-props","description":"cascaderProps.","type":["object"]},{"name":"clearable","description":"clearable.","type":["boolean"]},{"name":"readonly","description":"readonly.","type":["boolean"]},{"name":"replace","description":"replace.","type":["boolean"],"default":"true"},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"}]},{"name":"hzzt-tab","source":{"symbol":"HzztTab"},"description":"Title","props":[{"name":"tab-list","description":"tabList.","type":["array"],"default":"[]"},{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"closable","description":"closable.","type":["boolean"],"default":"false"}]},{"name":"hzzt-title","source":{"symbol":"HzztTitle"},"description":"Title","props":[{"name":"label","description":"title label.","type":["string"]},{"name":"sideline","description":"sideline.","type":["boolean"],"default":"true"}]},{"name":"hzzt-tooltip","source":{"symbol":"HzztTooltip"},"description":"Title","props":[{"name":"content","description":"content.","type":["string"]}]}]}}}
1
+ {"$schema":"http://json.schemastore.org/web-types","framework":"vue","name":"hzzt-plus","version":"1.0.7","js-types-syntax":"typescript","description-markup":"markdown","contributions":{"html":{"vue-components":[{"name":"hzzt-cascader","source":{"symbol":"HzztCascader"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"cascader-props","description":"cascaderProps.","type":["object"]},{"name":"clearable","description":"clearable.","type":["boolean"]},{"name":"readonly","description":"readonly.","type":["boolean"]},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"}]},{"name":"hzzt-check-button","source":{"symbol":"HzztCheckButton"},"description":"Title","props":[{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"type","description":"type.","type":["string"],"default":"primary"},{"name":"is-default","description":"isDefault.","type":["boolean"],"default":"true"}]},{"name":"hzzt-click-input","source":{"symbol":"HzztClickInput"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"readonly","description":"readonly.","type":["boolean"]},{"name":"input-props","description":"inputProps.","type":["object"]}]},{"name":"hzzt-collapse","source":{"symbol":"HzztCollapse"},"description":"Title","props":[{"name":"default-active","description":"defaultActive.","type":["boolean"],"default":"false"},{"name":"title","description":"title.","type":["string"],"default":"''"},{"name":"expand","description":"expand.","type":["boolean"],"default":"true"}]},{"name":"hzzt-config-provider","source":{"symbol":"HzztConfigProvider"},"description":"Title","props":[{"name":"a11y","description":"a11y.","type":["boolean"],"default":"true"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"locale","description":"Locale Object","type":[{"name":"{name: string, el: TranslatePair} languages","source":{"symbol":"{name: string, el: TranslatePair} languages"}}],"default":"en"},{"name":"keyboard-navigation","description":"keyboardNavigation.","type":["boolean"],"default":"true"}]},{"name":"hzzt-confirm-password","source":{"symbol":"HzztConfirmPassword"},"description":"Title","props":[{"name":"placeholder","description":"placeholder.","type":["string"],"default":"请输入密码"},{"name":"model-value","description":"modelValue.","type":["string"]}]},{"name":"hzzt-dropdown","source":{"symbol":"HzztDropdown"},"description":"Title","props":[{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"default-value","description":"defaultValue.","type":["array"],"default":"[]"},{"name":"label","description":"label.","type":["string"],"default":"''"},{"name":"value","description":"value.","type":["string"],"default":"''"},{"name":"position","description":"position.","type":["string"],"default":"right"},{"name":"props","description":"props.","type":["object"]},{"name":"return-type","description":"returnType.","type":["string"],"default":"Array"}]},{"name":"hzzt-icon","source":{"symbol":"HzztIcon"},"description":"Title","props":[{"name":"name","description":"name.","type":["[string]"]},{"name":"type","description":"type.","type":["string"],"default":"el"}]},{"name":"hzzt-input-range","source":{"symbol":"HzztInputRange"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["array"],"default":"[]"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"clearable","description":"clearable.","type":["boolean"]},{"name":"start-placeholder","description":"startPlaceholder.","type":["string"]},{"name":"end-placeholder","description":"endPlaceholder.","type":["string"]},{"name":"start-props","description":"startProps.","type":["object"]},{"name":"end-props","description":"endProps.","type":["object"]}]},{"name":"hzzt-page-size","source":{"symbol":"HzztPageSize"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["number"],"default":"1"},{"name":"page-size","description":"pageSize.","type":["number"],"default":"20"},{"name":"total","description":"total.","type":["number"],"default":"0"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"page-size-options","description":"pageSizeOptions.","type":["array"],"default":"[20, 50, 100, 200, 500, 1000, 2000]"},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"is-manual","description":"isManual.","type":["boolean"]},{"name":"is-last-page","description":"isLastPage.","type":["boolean"]}]},{"name":"hzzt-pagination","source":{"symbol":"HzztPagination"},"description":"Title","props":[{"name":"pagination","description":"pagination.","type":["object"]}]},{"name":"hzzt-quarter-picker","source":{"symbol":"HzztQuarterPicker"},"description":"Title","props":[{"name":"format","description":"format.","type":["string"],"default":"YYYY-Q"},{"name":"value-format","description":"valueFormat.","type":["string"],"default":"''"},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"},{"name":"prefix-icon","description":"prefixIcon.","type":["string"],"default":"''"},{"name":"clear-icon","description":"clearIcon.","type":["string"],"default":"circle-close"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"model-value","description":"modelValue.","type":["string"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"clearable","description":"clearable.","type":["boolean"],"default":"true"},{"name":"disabled-date","description":"disabledDate.","type":["Function"]}]},{"name":"hzzt-scan","source":{"symbol":"HzztScan"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"},{"name":"letter","description":"letter.","type":["string"],"default":"upper"}]},{"name":"hzzt-select-input","source":{"symbol":"HzztSelectInput"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"index-type","description":"indexType.","type":["string"],"default":"number"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"label","description":"label.","type":["string"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"replace","description":"replace.","type":["boolean"]},{"name":"position","description":"position.","type":["string"],"default":"left"},{"name":"data","description":"data.","type":["array"],"default":"[]"},{"name":"input-props","description":"inputProps.","type":["object"]},{"name":"custom-props","description":"customProps.","type":["object"]},{"name":"format-label","description":"formatLabel.","type":["Function"]},{"name":"split","description":"split.","type":["string"],"default":"''"}]},{"name":"hzzt-select-textarea","source":{"symbol":"HzztSelectTextarea"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"label","description":"label.","type":["string"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"replace","description":"replace.","type":["boolean"]},{"name":"data","description":"data.","type":["array"],"default":"[]"},{"name":"input-props","description":"inputProps.","type":["object"]}]},{"name":"hzzt-select","source":{"symbol":"HzztSelect"},"description":"Title","props":[{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"size","description":"size.","type":["string"],"default":"^[enum]`'large' | 'default' | 'small'`"},{"name":"select-props","description":"selectProps.","type":["object"]},{"name":"disabled","description":"disabled.","type":["boolean"]},{"name":"options","description":"options.","type":["array"],"default":"[]"},{"name":"cascader-props","description":"cascaderProps.","type":["object"]},{"name":"clearable","description":"clearable.","type":["boolean"]},{"name":"readonly","description":"readonly.","type":["boolean"]},{"name":"replace","description":"replace.","type":["boolean"],"default":"true"},{"name":"placeholder","description":"placeholder.","type":["string"],"default":"''"}]},{"name":"hzzt-tab","source":{"symbol":"HzztTab"},"description":"Title","props":[{"name":"tab-list","description":"tabList.","type":["array"],"default":"[]"},{"name":"model-value","description":"modelValue.","type":["string"],"default":"''"},{"name":"closable","description":"closable.","type":["boolean"],"default":"false"}]},{"name":"hzzt-title","source":{"symbol":"HzztTitle"},"description":"Title","props":[{"name":"label","description":"title label.","type":["string"]},{"name":"sideline","description":"sideline.","type":["boolean"],"default":"true"}]},{"name":"hzzt-tooltip","source":{"symbol":"HzztTooltip"},"description":"Title","props":[{"name":"content","description":"content.","type":["string"]}]}]}}}