hzzt-plus 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +505 -193
- package/dist/index.full.min.js +12 -12
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +500 -194
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/es/component.mjs +5 -1
- package/es/component.mjs.map +1 -1
- package/es/components/click-input/index.d.ts +638 -0
- package/es/components/click-input/index.mjs +9 -0
- package/es/components/click-input/index.mjs.map +1 -0
- package/es/components/click-input/src/click-input.d.ts +22 -0
- package/es/components/click-input/src/click-input.mjs +26 -0
- package/es/components/click-input/src/click-input.mjs.map +1 -0
- package/es/components/click-input/src/click-input.vue.d.ts +638 -0
- package/es/components/click-input/src/click-input2.mjs +89 -0
- package/es/components/click-input/src/click-input2.mjs.map +1 -0
- package/es/components/click-input/style/css.d.ts +2 -0
- package/es/components/click-input/style/css.mjs +3 -0
- package/es/components/click-input/style/css.mjs.map +1 -0
- package/es/components/click-input/style/index.d.ts +2 -0
- package/es/components/click-input/style/index.mjs +3 -0
- package/es/components/click-input/style/index.mjs.map +1 -0
- package/es/components/collapse/index.mjs +2 -2
- package/es/components/collapse/src/collapse.mjs +0 -67
- package/es/components/collapse/src/collapse.mjs.map +1 -1
- package/es/components/collapse/src/collapse2.mjs +67 -0
- package/es/components/collapse/src/collapse2.mjs.map +1 -1
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +5 -1
- package/es/components/index.mjs.map +1 -1
- package/es/components/scan/index.mjs +2 -2
- package/es/components/scan/src/scan.mjs +23 -144
- package/es/components/scan/src/scan.mjs.map +1 -1
- package/es/components/scan/src/scan2.mjs +144 -23
- package/es/components/scan/src/scan2.mjs.map +1 -1
- package/es/components/select/index.d.ts +5 -0
- package/es/components/select/index.mjs +9 -0
- package/es/components/select/index.mjs.map +1 -0
- package/es/components/select/src/select.d.ts +38 -0
- package/es/components/select/src/select.mjs +43 -0
- package/es/components/select/src/select.mjs.map +1 -0
- package/es/components/select/src/select.vue.d.ts +13241 -0
- package/es/components/select/src/select2.mjs +183 -0
- package/es/components/select/src/select2.mjs.map +1 -0
- package/es/components/select/style/css.d.ts +2 -0
- package/es/components/select/style/css.mjs +3 -0
- package/es/components/select/style/css.mjs.map +1 -0
- package/es/components/select/style/index.d.ts +2 -0
- package/es/components/select/style/index.mjs +3 -0
- package/es/components/select/style/index.mjs.map +1 -0
- package/es/components/select-input/index.d.ts +6 -6
- package/es/components/select-input/src/select-input.d.ts +1 -7
- package/es/components/select-input/src/select-input.mjs.map +1 -1
- package/es/components/select-input/src/select-input.vue.d.ts +1 -1
- package/es/components/select-input/src/select-input2.mjs.map +1 -1
- package/es/index.mjs +5 -1
- package/es/index.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +2 -0
- package/lib/component.js +5 -1
- package/lib/component.js.map +1 -1
- package/lib/components/click-input/index.d.ts +638 -0
- package/lib/components/click-input/index.js +16 -0
- package/lib/components/click-input/index.js.map +1 -0
- package/lib/components/click-input/src/click-input.d.ts +22 -0
- package/lib/components/click-input/src/click-input.js +31 -0
- package/lib/components/click-input/src/click-input.js.map +1 -0
- package/lib/components/click-input/src/click-input.vue.d.ts +638 -0
- package/lib/components/click-input/src/click-input2.js +93 -0
- package/lib/components/click-input/src/click-input2.js.map +1 -0
- package/lib/components/click-input/style/css.d.ts +2 -0
- package/lib/components/click-input/style/css.js +6 -0
- package/lib/components/click-input/style/css.js.map +1 -0
- package/lib/components/click-input/style/index.d.ts +2 -0
- package/lib/components/click-input/style/index.js +6 -0
- package/lib/components/click-input/style/index.js.map +1 -0
- package/lib/components/collapse/index.js +2 -2
- package/lib/components/collapse/src/collapse.js +0 -70
- package/lib/components/collapse/src/collapse.js.map +1 -1
- package/lib/components/collapse/src/collapse2.js +70 -0
- package/lib/components/collapse/src/collapse2.js.map +1 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +11 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/scan/index.js +2 -2
- package/lib/components/scan/src/scan.js +24 -144
- package/lib/components/scan/src/scan.js.map +1 -1
- package/lib/components/scan/src/scan2.js +144 -24
- package/lib/components/scan/src/scan2.js.map +1 -1
- package/lib/components/select/index.d.ts +5 -0
- package/lib/components/select/index.js +16 -0
- package/lib/components/select/index.js.map +1 -0
- package/lib/components/select/src/select.d.ts +38 -0
- package/lib/components/select/src/select.js +48 -0
- package/lib/components/select/src/select.js.map +1 -0
- package/lib/components/select/src/select.vue.d.ts +13241 -0
- package/lib/components/select/src/select2.js +187 -0
- package/lib/components/select/src/select2.js.map +1 -0
- package/lib/components/select/style/css.d.ts +2 -0
- package/lib/components/select/style/css.js +6 -0
- package/lib/components/select/style/css.js.map +1 -0
- package/lib/components/select/style/index.d.ts +2 -0
- package/lib/components/select/style/index.js +6 -0
- package/lib/components/select/style/index.js.map +1 -0
- package/lib/components/select-input/index.d.ts +6 -6
- package/lib/components/select-input/src/select-input.d.ts +1 -7
- package/lib/components/select-input/src/select-input.js.map +1 -1
- package/lib/components/select-input/src/select-input.vue.d.ts +1 -1
- package/lib/components/select-input/src/select-input2.js.map +1 -1
- package/lib/index.js +41 -31
- package/lib/index.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/tags.json +1 -1
- package/theme/hzzt-click-input.css +1 -0
- package/theme/hzzt-select.css +1 -0
- package/theme/index.css +1 -1
- package/theme/src/click-input.scss +19 -0
- package/theme/src/index.scss +2 -0
- package/theme/src/mixins/mixins.scss +3 -0
- package/theme/src/select.scss +10 -0
- package/web-types.json +1 -1
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var select = require('./select.js');
|
|
7
|
+
var elementPlus = require('element-plus');
|
|
8
|
+
require('../../../hooks/index.js');
|
|
9
|
+
var index$2 = require('../../icon/src/index.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
|
+
|
|
14
|
+
const __default__ = vue.defineComponent({
|
|
15
|
+
name: "HzztSelect",
|
|
16
|
+
inheritAttrs: false
|
|
17
|
+
});
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
19
|
+
...__default__,
|
|
20
|
+
props: select.selectProps,
|
|
21
|
+
emits: select.selectEmits,
|
|
22
|
+
setup(__props, { emit }) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const attrs = vue.useAttrs();
|
|
25
|
+
const inputVal = vue.ref(props.modelValue);
|
|
26
|
+
const selectVal = vue.ref();
|
|
27
|
+
const inputRef = vue.ref();
|
|
28
|
+
const selectRef = vue.ref();
|
|
29
|
+
const arrowName = vue.ref("arrow-down");
|
|
30
|
+
const nsSelect = index.useNamespace("select");
|
|
31
|
+
const formSize = elementPlus.useFormSize();
|
|
32
|
+
const formDisabled = elementPlus.useFormDisabled();
|
|
33
|
+
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
34
|
+
const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
|
|
35
|
+
const trueReadonly = vue.computed(() => props.readonly || trueDisabled.value);
|
|
36
|
+
const containerCls = vue.computed(() => [
|
|
37
|
+
"relative",
|
|
38
|
+
"line-height-1",
|
|
39
|
+
attrs.class,
|
|
40
|
+
nsSelect.b(),
|
|
41
|
+
nsSelect.m(trueSize.value)
|
|
42
|
+
]);
|
|
43
|
+
const containerStyle = vue.computed(() => attrs.style);
|
|
44
|
+
const inputCls = vue.computed(() => [
|
|
45
|
+
nsSelect.e("input"),
|
|
46
|
+
"width-100%"
|
|
47
|
+
]);
|
|
48
|
+
const selectCls = vue.computed(() => [
|
|
49
|
+
nsSelect.e("select"),
|
|
50
|
+
"width-100%"
|
|
51
|
+
]);
|
|
52
|
+
const _inputProps = vue.computed(() => ({
|
|
53
|
+
disabled: trueDisabled.value,
|
|
54
|
+
size: trueSize.value,
|
|
55
|
+
clearable: props.clearable,
|
|
56
|
+
placeholder: props.placeholder,
|
|
57
|
+
readonly: props.readonly,
|
|
58
|
+
...attrs,
|
|
59
|
+
class: "",
|
|
60
|
+
style: {
|
|
61
|
+
position: trueReadonly.value ? "static" : "absolute",
|
|
62
|
+
left: 0,
|
|
63
|
+
top: 0,
|
|
64
|
+
right: 0,
|
|
65
|
+
zIndex: 2
|
|
66
|
+
}
|
|
67
|
+
}));
|
|
68
|
+
const _selectProps = vue.computed(() => ({
|
|
69
|
+
options: props.options,
|
|
70
|
+
size: trueSize.value,
|
|
71
|
+
filterable: true,
|
|
72
|
+
popperClass: "select-v2-popper-min-width-100",
|
|
73
|
+
...props.selectProps
|
|
74
|
+
}));
|
|
75
|
+
vue.watch(() => props.modelValue, (v) => {
|
|
76
|
+
inputVal.value = v;
|
|
77
|
+
});
|
|
78
|
+
vue.watch(() => inputVal.value, (v) => {
|
|
79
|
+
selectVal.value = v;
|
|
80
|
+
});
|
|
81
|
+
function input(str) {
|
|
82
|
+
var _a;
|
|
83
|
+
if ((_a = selectRef.value) == null ? void 0 : _a.dropdownMenuVisible) {
|
|
84
|
+
selectRef.value.states.inputValue = inputVal.value;
|
|
85
|
+
selectRef.value.debouncedOnInputChange();
|
|
86
|
+
}
|
|
87
|
+
emit("update:modelValue", str);
|
|
88
|
+
emit("input", str);
|
|
89
|
+
}
|
|
90
|
+
function change(str) {
|
|
91
|
+
emit("change", str);
|
|
92
|
+
}
|
|
93
|
+
function keydown(e) {
|
|
94
|
+
var _a, _b;
|
|
95
|
+
const key = "key" in e && e.key;
|
|
96
|
+
if (key === "ArrowDown") {
|
|
97
|
+
emit("arrow-down", e);
|
|
98
|
+
selectRef.value.dropdownMenuVisible = false;
|
|
99
|
+
} else if (key === "ArrowUp") {
|
|
100
|
+
emit("arrow-up", e);
|
|
101
|
+
selectRef.value.dropdownMenuVisible = false;
|
|
102
|
+
} else if (key === "ArrowLeft") {
|
|
103
|
+
const index = inputRef.value.input.selectionStart;
|
|
104
|
+
if (index === 0) {
|
|
105
|
+
emit("arrow-left", e);
|
|
106
|
+
selectRef.value.dropdownMenuVisible = false;
|
|
107
|
+
}
|
|
108
|
+
} else if (key === "ArrowRight") {
|
|
109
|
+
const index = inputRef.value.input.selectionStart;
|
|
110
|
+
if (((_b = (_a = inputVal.value) == null ? void 0 : _a.length) != null ? _b : 0) === index) {
|
|
111
|
+
emit("arrow-right", e);
|
|
112
|
+
selectRef.value.dropdownMenuVisible = false;
|
|
113
|
+
}
|
|
114
|
+
} else if (key === "Enter") {
|
|
115
|
+
emit("enter", e);
|
|
116
|
+
selectRef.value.dropdownMenuVisible = false;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function showSelect() {
|
|
120
|
+
if (selectRef.value) {
|
|
121
|
+
selectRef.value.dropdownMenuVisible = !selectRef.value.dropdownMenuVisible;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
function selectChange(v) {
|
|
125
|
+
let str = inputVal.value || "";
|
|
126
|
+
if (props.replace) {
|
|
127
|
+
str = v;
|
|
128
|
+
} else {
|
|
129
|
+
str += v;
|
|
130
|
+
}
|
|
131
|
+
emit("update:modelValue", str);
|
|
132
|
+
emit("input", str);
|
|
133
|
+
inputVal.value = str;
|
|
134
|
+
setTimeout(() => {
|
|
135
|
+
inputRef.value.focus();
|
|
136
|
+
selectRef.value.dropdownMenuVisible = false;
|
|
137
|
+
emit("change", str);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function selectVisibleChange(v) {
|
|
141
|
+
arrowName.value = v ? "arrow-up" : "arrow-down";
|
|
142
|
+
}
|
|
143
|
+
return (_ctx, _cache) => {
|
|
144
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
145
|
+
class: vue.normalizeClass(vue.unref(containerCls)),
|
|
146
|
+
style: vue.normalizeStyle(vue.unref(containerStyle))
|
|
147
|
+
}, [
|
|
148
|
+
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
149
|
+
class: vue.unref(inputCls),
|
|
150
|
+
modelValue: inputVal.value,
|
|
151
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
|
|
152
|
+
ref_key: "inputRef",
|
|
153
|
+
ref: inputRef
|
|
154
|
+
}, vue.unref(_inputProps), {
|
|
155
|
+
onInput: input,
|
|
156
|
+
onChange: change,
|
|
157
|
+
onKeydown: keydown
|
|
158
|
+
}), {
|
|
159
|
+
suffix: vue.withCtx(() => [
|
|
160
|
+
!vue.unref(trueReadonly) ? (vue.openBlock(), vue.createBlock(index$2["default"], {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: "pointer",
|
|
163
|
+
name: arrowName.value,
|
|
164
|
+
onClick: showSelect
|
|
165
|
+
}, null, 8, ["name"])) : vue.createCommentVNode("v-if", true)
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}, 16, ["class", "modelValue"]),
|
|
169
|
+
!vue.unref(trueReadonly) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelectV2), vue.mergeProps({
|
|
170
|
+
key: 0,
|
|
171
|
+
class: vue.unref(selectCls),
|
|
172
|
+
modelValue: selectVal.value,
|
|
173
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectVal.value = $event),
|
|
174
|
+
ref_key: "selectRef",
|
|
175
|
+
ref: selectRef
|
|
176
|
+
}, vue.unref(_selectProps), {
|
|
177
|
+
onChange: selectChange,
|
|
178
|
+
onVisibleChange: selectVisibleChange
|
|
179
|
+
}), null, 16, ["class", "modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
180
|
+
], 6);
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
var Select = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "select.vue"]]);
|
|
185
|
+
|
|
186
|
+
exports["default"] = Select;
|
|
187
|
+
//# sourceMappingURL=select2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select2.js","sources":["../../../../../../packages/components/select/src/select.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\" :style=\"containerStyle\">\n <el-input\n :class=\"inputCls\"\n v-model=\"inputVal\"\n ref=\"inputRef\"\n v-bind=\"_inputProps\"\n @input=\"input\"\n @change=\"change\"\n @keydown=\"keydown\"\n >\n <template #suffix>\n <hzzt-icon v-if=\"!trueReadonly\" class=\"pointer\" :name=\"arrowName\"\n @click=\"showSelect\"></hzzt-icon>\n </template>\n </el-input>\n <el-select-v2 v-if=\"!trueReadonly\" :class=\"selectCls\" v-model=\"selectVal\" ref=\"selectRef\" v-bind=\"_selectProps\"\n @change=\"selectChange\" @visible-change=\"selectVisibleChange\">\n </el-select-v2>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {selectEmits, selectProps} from './select'\n import {computed, ref, useAttrs, watch} from \"vue\";\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n import {ElInput, ElSelectV2} from 'element-plus'\n import type {CSSProperties} from 'vue'\n import HzztIcon from \"@hzzt-plus/components/icon/src/index.vue\";\n\n\n defineOptions({\n name: 'HzztSelect',\n inheritAttrs: false,\n })\n\n const props = defineProps(selectProps)\n const emit = defineEmits(selectEmits)\n\n const attrs = useAttrs();\n\n const inputVal = ref(props.modelValue);\n const selectVal = ref();\n const inputRef = ref();\n const selectRef = ref();\n const arrowName = ref('arrow-down');\n\n const nsSelect = useNamespace('select');\n\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(() => props.readonly || trueDisabled.value)\n\n const containerCls = computed(() => [\n 'relative',\n 'line-height-1',\n attrs.class,\n nsSelect.b(),\n nsSelect.m(trueSize.value),\n ])\n\n const containerStyle = computed(() => attrs.style as CSSProperties)\n\n const inputCls = computed(() => [\n nsSelect.e('input'),\n 'width-100%'\n ])\n\n const selectCls = computed(() => [\n nsSelect.e('select'),\n 'width-100%'\n ])\n\n const _inputProps = computed(() => ({\n disabled: trueDisabled.value,\n size: trueSize.value,\n clearable: props.clearable,\n placeholder: props.placeholder,\n readonly: props.readonly,\n ...attrs,\n class: '',\n style: {\n position: trueReadonly.value ? 'static' : 'absolute',\n left: 0,\n top: 0,\n right: 0,\n zIndex: 2,\n },\n }))\n\n const _selectProps = computed(() => ({\n options: props.options,\n size: trueSize.value,\n filterable: true,\n popperClass: 'select-v2-popper-min-width-100',\n ...props.selectProps,\n }))\n\n watch(() => props.modelValue, (v) => {\n inputVal.value = v;\n })\n\n watch(() => inputVal.value, (v) => {\n selectVal.value = v;\n })\n\n function input(str: string) {\n if (selectRef.value?.dropdownMenuVisible) {\n selectRef.value.states.inputValue = inputVal.value;\n selectRef.value.debouncedOnInputChange();\n }\n emit('update:modelValue', str)\n emit('input', str)\n }\n\n function change(str: string) {\n emit('change', str)\n }\n\n function keydown(e: KeyboardEvent | Event) {\n const key = \"key\" in e && e.key;\n if (key === 'ArrowDown') {\n emit('arrow-down', e);\n selectRef.value.dropdownMenuVisible = false;\n } else if (key === 'ArrowUp') {\n emit('arrow-up', e);\n selectRef.value.dropdownMenuVisible = false;\n } else if (key === 'ArrowLeft') {\n const index = inputRef.value.input.selectionStart;\n if (index === 0) {\n emit('arrow-left', e);\n selectRef.value.dropdownMenuVisible = false;\n }\n } else if (key === 'ArrowRight') {\n const index = inputRef.value.input.selectionStart;\n if ((inputVal.value?.length ?? 0) === index) {\n emit('arrow-right', e);\n selectRef.value.dropdownMenuVisible = false;\n }\n } else if (key === 'Enter') {\n emit('enter', e);\n selectRef.value.dropdownMenuVisible = false;\n }\n }\n\n function showSelect() {\n if (selectRef.value) {\n selectRef.value.dropdownMenuVisible = !selectRef.value.dropdownMenuVisible;\n }\n }\n\n function selectChange(v: string) {\n let str = inputVal.value || '';\n if (props.replace) {\n str = v;\n } else {\n str += v;\n }\n emit('update:modelValue', str);\n emit('input', str)\n inputVal.value = str;\n setTimeout(() => {\n inputRef.value.focus();\n selectRef.value.dropdownMenuVisible = false;\n emit('change', str);\n });\n }\n\n function selectVisibleChange(v: boolean) {\n arrowName.value = v ? 'arrow-up' : 'arrow-down'\n }\n\n\n</script>\n"],"names":["useAttrs","ref","useNamespace","useFormSize","useFormDisabled","computed","useGlobalSize","watch"],"mappings":";;;;;;;;;;;;;uCAgCgB,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AAAA,EACN,YAAc,EAAA,KAAA;AAChB,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,QAAA,GAAWC,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACrC,IAAA,MAAM,YAAYA,OAAI,EAAA,CAAA;AACtB,IAAA,MAAM,WAAWA,OAAI,EAAA,CAAA;AACrB,IAAA,MAAM,YAAYA,OAAI,EAAA,CAAA;AACtB,IAAM,MAAA,SAAA,GAAYA,QAAI,YAAY,CAAA,CAAA;AAElC,IAAM,MAAA,QAAA,GAAWC,mBAAa,QAAQ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mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -4,7 +4,7 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
|
|
|
4
4
|
disabled: BooleanConstructor;
|
|
5
5
|
replace: BooleanConstructor;
|
|
6
6
|
label: StringConstructor;
|
|
7
|
-
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("
|
|
7
|
+
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("..").OptionType[]) | (() => import("..").OptionType[]) | ((new (...args: any[]) => import("..").OptionType[]) | (() => import("..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
8
8
|
inputProps: ObjectConstructor;
|
|
9
9
|
customProps: ObjectConstructor;
|
|
10
10
|
position: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -28,7 +28,7 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
|
|
|
28
28
|
disabled: BooleanConstructor;
|
|
29
29
|
replace: BooleanConstructor;
|
|
30
30
|
label: StringConstructor;
|
|
31
|
-
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("
|
|
31
|
+
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("..").OptionType[]) | (() => import("..").OptionType[]) | ((new (...args: any[]) => import("..").OptionType[]) | (() => import("..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
32
32
|
inputProps: ObjectConstructor;
|
|
33
33
|
customProps: ObjectConstructor;
|
|
34
34
|
position: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -83,8 +83,8 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
|
|
|
83
83
|
}>;
|
|
84
84
|
input: (val: string) => void;
|
|
85
85
|
change: (val: string) => void;
|
|
86
|
-
getLinkName: (item: import("
|
|
87
|
-
select: (item: import("
|
|
86
|
+
getLinkName: (item: import("..").OptionType, index: number) => string;
|
|
87
|
+
select: (item: import("..").OptionType) => void;
|
|
88
88
|
HzztTitle: import("vue").DefineComponent<{
|
|
89
89
|
readonly label: StringConstructor;
|
|
90
90
|
readonly sideline: import("hzzt-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
@@ -792,7 +792,7 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
|
|
|
792
792
|
disabled: BooleanConstructor;
|
|
793
793
|
replace: BooleanConstructor;
|
|
794
794
|
label: StringConstructor;
|
|
795
|
-
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("
|
|
795
|
+
data: import("hzzt-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("..").OptionType[]) | (() => import("..").OptionType[]) | ((new (...args: any[]) => import("..").OptionType[]) | (() => import("..").OptionType[]))[], unknown, unknown, () => never[], boolean>;
|
|
796
796
|
inputProps: ObjectConstructor;
|
|
797
797
|
customProps: ObjectConstructor;
|
|
798
798
|
position: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -818,7 +818,7 @@ export declare const HzztSelectInput: import("hzzt-plus/es/utils").SFCWithInstal
|
|
|
818
818
|
modelValue: import("hzzt-plus/es/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>;
|
|
819
819
|
replace: boolean;
|
|
820
820
|
split: string;
|
|
821
|
-
data: import("
|
|
821
|
+
data: import("..").OptionType[];
|
|
822
822
|
position: string;
|
|
823
823
|
indexType: string;
|
|
824
824
|
}>> & Record<string, any>;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
|
2
2
|
import type SelectInput from './select-input.vue';
|
|
3
|
-
|
|
4
|
-
export declare type Option = OptionCommon & {
|
|
5
|
-
created?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare type OptionGroup = OptionCommon;
|
|
8
|
-
export declare type OptionType = Option | OptionGroup;
|
|
3
|
+
import { OptionType } from "hzzt-plus/es/components/select/src/select";
|
|
9
4
|
export declare const selectInputProps: {
|
|
10
5
|
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>;
|
|
11
6
|
indexType: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -38,4 +33,3 @@ export declare const selectInputEmits: {
|
|
|
38
33
|
};
|
|
39
34
|
export declare type SelectInputEmits = typeof selectInputEmits;
|
|
40
35
|
export declare type SelectInputInstance = InstanceType<typeof SelectInput>;
|
|
41
|
-
export {};
|
|
@@ -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\";\
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { OptionType } from
|
|
1
|
+
import { OptionType } from "hzzt-plus/es/components/select/src/select";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
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>;
|
|
4
4
|
indexType: import("../../../utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
@@ -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 {
|
|
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,kBAA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;;;;;;;"}
|
package/lib/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var index$8 = require('./components/page-size/index.js');
|
|
|
24
24
|
var index$9 = require('./components/confirm-password/index.js');
|
|
25
25
|
var index$a = require('./components/check-button/index.js');
|
|
26
26
|
var index$b = require('./components/quarter-picker/index.js');
|
|
27
|
-
var scan = require('./components/scan/src/
|
|
27
|
+
var scan = require('./components/scan/src/scan.js');
|
|
28
28
|
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');
|
|
@@ -34,20 +34,24 @@ var inputRange = require('./components/input-range/src/input-range.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');
|
|
37
|
+
var select = require('./components/select/src/select.js');
|
|
38
|
+
var index$h = require('./components/select/index.js');
|
|
39
|
+
var clickInput = require('./components/click-input/src/click-input.js');
|
|
40
|
+
var index$i = require('./components/click-input/index.js');
|
|
37
41
|
var key = require('./constants/key.js');
|
|
38
42
|
var size = require('./constants/size.js');
|
|
39
43
|
var date = require('./constants/date.js');
|
|
40
44
|
var event = require('./constants/event.js');
|
|
41
|
-
var index$
|
|
42
|
-
var index$
|
|
43
|
-
var index$
|
|
44
|
-
var index$
|
|
45
|
-
var index$
|
|
46
|
-
var index$
|
|
47
|
-
var index$
|
|
48
|
-
var index$
|
|
49
|
-
var index$
|
|
50
|
-
var index$
|
|
45
|
+
var index$j = require('./directives/download/index.js');
|
|
46
|
+
var index$k = require('./directives/height/index.js');
|
|
47
|
+
var index$l = require('./directives/blur/index.js');
|
|
48
|
+
var index$m = require('./directives/highlight/index.js');
|
|
49
|
+
var index$n = require('./directives/drag/index.js');
|
|
50
|
+
var index$o = require('./hooks/use-locale/index.js');
|
|
51
|
+
var index$p = require('./hooks/use-size/index.js');
|
|
52
|
+
var index$q = require('./hooks/use-namespace/index.js');
|
|
53
|
+
var index$r = require('./hooks/use-letter/index.js');
|
|
54
|
+
var index$s = require('./hooks/use-cursor/index.js');
|
|
51
55
|
|
|
52
56
|
const install = defaults["default"].install;
|
|
53
57
|
const version = defaults["default"].version;
|
|
@@ -86,6 +90,12 @@ exports.HzztInputRange = index$f.HzztInputRange;
|
|
|
86
90
|
exports.cascaderEmits = cascader.cascaderEmits;
|
|
87
91
|
exports.cascaderProps = cascader.cascaderProps;
|
|
88
92
|
exports.HzztCascader = index$g.HzztCascader;
|
|
93
|
+
exports.selectEmits = select.selectEmits;
|
|
94
|
+
exports.selectProps = select.selectProps;
|
|
95
|
+
exports.HzztSelect = index$h.HzztSelect;
|
|
96
|
+
exports.clickInputEmits = clickInput.clickInputEmits;
|
|
97
|
+
exports.clickInputProps = clickInput.clickInputProps;
|
|
98
|
+
exports.HzztClickInput = index$i.HzztClickInput;
|
|
89
99
|
exports.INSTALLED_KEY = key.INSTALLED_KEY;
|
|
90
100
|
exports.componentSizeMap = size.componentSizeMap;
|
|
91
101
|
exports.componentSizes = size.componentSizes;
|
|
@@ -94,26 +104,26 @@ exports.datePickTypes = date.datePickTypes;
|
|
|
94
104
|
exports.CHANGE_EVENT = event.CHANGE_EVENT;
|
|
95
105
|
exports.INPUT_EVENT = event.INPUT_EVENT;
|
|
96
106
|
exports.UPDATE_MODEL_EVENT = event.UPDATE_MODEL_EVENT;
|
|
97
|
-
exports.Download = index$
|
|
98
|
-
exports.Height = index$
|
|
99
|
-
exports.Blur = index$
|
|
100
|
-
exports.Highlight = index$
|
|
101
|
-
exports.Drag = index$
|
|
102
|
-
exports.buildLocaleContext = index$
|
|
103
|
-
exports.buildTranslator = index$
|
|
104
|
-
exports.localeContextKey = index$
|
|
105
|
-
exports.translate = index$
|
|
106
|
-
exports.useLocale = index$
|
|
107
|
-
exports.SIZE_INJECTION_KEY = index$
|
|
108
|
-
exports.useGlobalSize = index$
|
|
109
|
-
exports.useSizeProp = index$
|
|
110
|
-
exports.useSizeProps = index$
|
|
111
|
-
exports.defaultNamespace = index$
|
|
112
|
-
exports.namespaceContextKey = index$
|
|
113
|
-
exports.useGetDerivedNamespace = index$
|
|
114
|
-
exports.useNamespace = index$
|
|
115
|
-
exports.numberToLetter = index$
|
|
116
|
-
exports.insertCursorPosition = index$
|
|
107
|
+
exports.Download = index$j["default"];
|
|
108
|
+
exports.Height = index$k["default"];
|
|
109
|
+
exports.Blur = index$l["default"];
|
|
110
|
+
exports.Highlight = index$m["default"];
|
|
111
|
+
exports.Drag = index$n["default"];
|
|
112
|
+
exports.buildLocaleContext = index$o.buildLocaleContext;
|
|
113
|
+
exports.buildTranslator = index$o.buildTranslator;
|
|
114
|
+
exports.localeContextKey = index$o.localeContextKey;
|
|
115
|
+
exports.translate = index$o.translate;
|
|
116
|
+
exports.useLocale = index$o.useLocale;
|
|
117
|
+
exports.SIZE_INJECTION_KEY = index$p.SIZE_INJECTION_KEY;
|
|
118
|
+
exports.useGlobalSize = index$p.useGlobalSize;
|
|
119
|
+
exports.useSizeProp = index$p.useSizeProp;
|
|
120
|
+
exports.useSizeProps = index$p.useSizeProps;
|
|
121
|
+
exports.defaultNamespace = index$q.defaultNamespace;
|
|
122
|
+
exports.namespaceContextKey = index$q.namespaceContextKey;
|
|
123
|
+
exports.useGetDerivedNamespace = index$q.useGetDerivedNamespace;
|
|
124
|
+
exports.useNamespace = index$q.useNamespace;
|
|
125
|
+
exports.numberToLetter = index$r.numberToLetter;
|
|
126
|
+
exports.insertCursorPosition = index$s.insertCursorPosition;
|
|
117
127
|
exports.install = install;
|
|
118
128
|
exports.version = version;
|
|
119
129
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":["installer"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../packages/hzzt-plus/index.ts"],"sourcesContent":["import installer from './defaults'\nexport * from '@hzzt-plus/components'\nexport * from '@hzzt-plus/constants'\nexport * from '@hzzt-plus/directives'\nexport * from '@hzzt-plus/hooks'\nexport * from './make-installer'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":["installer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAGA,mBAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAGA,mBAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.6";
|
package/lib/version.js
CHANGED
package/lib/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../packages/hzzt-plus/version.ts"],"sourcesContent":["export const version = '1.0.
|
|
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;;;;"}
|
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-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","data","input-props","custom-props","format-label","split"],"description":"Title"},"hzzt-select-textarea":{"attributes":["model-value","size","label","disabled","replace","data","input-props"],"description":"Title"},"hzzt-tab":{"attributes":["tab-list","model-value","closable"],"description":"Title"},"hzzt-title":{"attributes":["label","sideline"],"description":"Title"},"hzzt-tooltip":{"attributes":["content"],"description":"Title"}}
|
|
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","data","input-props","custom-props","format-label","split"],"description":"Title"},"hzzt-select-textarea":{"attributes":["model-value","size","label","disabled","replace","data","input-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"],"description":"Title"},"hzzt-tooltip":{"attributes":["content"],"description":"Title"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.hzzt-click-input__span{min-height:32px}.hzzt-click-input--large .hzzt-click-input__span{min-height:40px}.hzzt-click-input--small .hzzt-click-input__span{min-height:24px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.select-v2-popper-min-width-100 .el-select-dropdown{min-width:100px!important}.select-v2-popper-min-width-100 .el-select-dropdown .el-select-dropdown__list{min-width:100px!important;width:100%!important}
|