hzzt-plus 0.0.9 → 1.0.0
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/dist/index.css +1 -1
- package/dist/index.full.js +395 -217
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +13 -13
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +390 -219
- package/es/component.mjs +3 -1
- package/es/component.mjs.map +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.mjs +3 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/scan/index.d.ts +5 -0
- package/es/components/scan/index.mjs +9 -0
- package/es/components/scan/index.mjs.map +1 -0
- package/es/components/scan/src/scan.d.ts +15 -0
- package/es/components/scan/src/scan.mjs +28 -0
- package/es/components/scan/src/scan.mjs.map +1 -0
- package/es/components/scan/src/scan.vue.d.ts +572 -0
- package/es/components/scan/src/scan2.mjs +149 -0
- package/es/components/scan/src/scan2.mjs.map +1 -0
- package/es/components/scan/style/css.d.ts +2 -0
- package/es/components/scan/style/css.mjs +3 -0
- package/es/components/scan/style/css.mjs.map +1 -0
- package/es/components/scan/style/index.d.ts +2 -0
- package/es/components/scan/style/index.mjs +3 -0
- package/es/components/scan/style/index.mjs.map +1 -0
- package/es/components/title/index.d.ts +4 -29
- package/es/components/title/index.mjs +2 -1
- package/es/components/title/index.mjs.map +1 -1
- package/es/components/title/src/title.d.ts +8 -0
- package/es/components/title/src/title.mjs +8 -43
- package/es/components/title/src/title.mjs.map +1 -1
- package/es/components/title/src/title.vue.d.ts +7 -16
- package/es/components/title/src/title2.mjs +44 -0
- package/es/components/title/src/title2.mjs.map +1 -0
- package/es/constants/index.d.ts +1 -0
- package/es/constants/index.mjs +1 -0
- package/es/constants/index.mjs.map +1 -1
- package/es/index.mjs +4 -0
- package/es/index.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/component.js +3 -1
- package/lib/component.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/scan/index.d.ts +5 -0
- package/lib/components/scan/index.js +16 -0
- package/lib/components/scan/index.js.map +1 -0
- package/lib/components/scan/src/scan.d.ts +15 -0
- package/lib/components/scan/src/scan.js +33 -0
- package/lib/components/scan/src/scan.js.map +1 -0
- package/lib/components/scan/src/scan.vue.d.ts +572 -0
- package/lib/components/scan/src/scan2.js +153 -0
- package/lib/components/scan/src/scan2.js.map +1 -0
- package/lib/components/scan/style/css.d.ts +2 -0
- package/lib/components/scan/style/css.js +6 -0
- package/lib/components/scan/style/css.js.map +1 -0
- package/lib/components/scan/style/index.d.ts +2 -0
- package/lib/components/scan/style/index.js +6 -0
- package/lib/components/scan/style/index.js.map +1 -0
- package/lib/components/title/index.d.ts +4 -29
- package/lib/components/title/index.js +3 -1
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/title/src/title.d.ts +8 -0
- package/lib/components/title/src/title.js +8 -43
- package/lib/components/title/src/title.js.map +1 -1
- package/lib/components/title/src/title.vue.d.ts +7 -16
- package/lib/components/title/src/title2.js +48 -0
- package/lib/components/title/src/title2.js.map +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +4 -0
- package/lib/constants/index.js.map +1 -1
- package/lib/index.js +37 -26
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/theme/hzzt-scan.css +1 -0
- package/theme/index.css +1 -1
- package/theme/src/index.scss +1 -0
- package/theme/src/scan.scss +80 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { createElementVNode, defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, toDisplayString } from 'vue';
|
|
2
|
+
import { ElInput } from 'element-plus';
|
|
3
|
+
import { scanProps, scanEmits } from './scan.mjs';
|
|
4
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
5
|
+
|
|
6
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("div", { style: { "width": "0", "height": "0", "overflow": "hidden" } }, [
|
|
7
|
+
/* @__PURE__ */ createElementVNode("input", {
|
|
8
|
+
readonly: "",
|
|
9
|
+
style: { "width": "0", "height": "0", "overflow": "hidden" }
|
|
10
|
+
}),
|
|
11
|
+
/* @__PURE__ */ createElementVNode("input", {
|
|
12
|
+
readonly: "",
|
|
13
|
+
type: "password",
|
|
14
|
+
autocomplete: "off",
|
|
15
|
+
style: { "width": "0", "height": "0", "overflow": "hidden" }
|
|
16
|
+
})
|
|
17
|
+
], -1);
|
|
18
|
+
const _hoisted_2 = {
|
|
19
|
+
class: "width-100%",
|
|
20
|
+
style: { "overflow": "hidden" }
|
|
21
|
+
};
|
|
22
|
+
const __default__ = defineComponent({
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
name: "HzztScan"
|
|
25
|
+
});
|
|
26
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
|
+
...__default__,
|
|
28
|
+
props: scanProps,
|
|
29
|
+
emits: scanEmits,
|
|
30
|
+
setup(__props, { expose, emit }) {
|
|
31
|
+
const props = __props;
|
|
32
|
+
const readonly = ref(true);
|
|
33
|
+
const innerValue = ref(" ");
|
|
34
|
+
const inputRef = ref();
|
|
35
|
+
const showValue = computed(() => {
|
|
36
|
+
if (innerValue.value === " ") {
|
|
37
|
+
return ` ${props.placeholder}`;
|
|
38
|
+
} else {
|
|
39
|
+
return innerValue.value;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const inputType = computed(() => {
|
|
43
|
+
if (innerValue.value && !readonly.value) {
|
|
44
|
+
return "password";
|
|
45
|
+
} else {
|
|
46
|
+
return "text";
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
watch(() => props.modelValue, (v) => {
|
|
50
|
+
if (!v) {
|
|
51
|
+
innerValue.value = " ";
|
|
52
|
+
} else {
|
|
53
|
+
innerValue.value = ` ${changeLetter(v)}`;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
watch(() => innerValue.value, (v) => {
|
|
57
|
+
if (!v) {
|
|
58
|
+
innerValue.value = " ";
|
|
59
|
+
}
|
|
60
|
+
const str = innerValue.value[0] === " " ? innerValue.value.slice(1) : innerValue.value;
|
|
61
|
+
const final = changeLetter(str != null ? str : "");
|
|
62
|
+
emit("update:modelValue", final);
|
|
63
|
+
emit("input", final);
|
|
64
|
+
});
|
|
65
|
+
function changeLetter(v) {
|
|
66
|
+
if (props.letter === "upper") {
|
|
67
|
+
return v.toLocaleUpperCase();
|
|
68
|
+
} else if (props.letter === "lower") {
|
|
69
|
+
return v.toLocaleLowerCase();
|
|
70
|
+
} else {
|
|
71
|
+
return v;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function inputFocus() {
|
|
75
|
+
readonly.value = false;
|
|
76
|
+
}
|
|
77
|
+
function inputBlur() {
|
|
78
|
+
readonly.value = true;
|
|
79
|
+
}
|
|
80
|
+
function inputChange() {
|
|
81
|
+
emit("change", props.modelValue);
|
|
82
|
+
}
|
|
83
|
+
function focus() {
|
|
84
|
+
readonly.value = false;
|
|
85
|
+
setTimeout(() => {
|
|
86
|
+
inputRef.value.focus();
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
function blur() {
|
|
90
|
+
readonly.value = true;
|
|
91
|
+
inputRef.value.blur();
|
|
92
|
+
}
|
|
93
|
+
function clear() {
|
|
94
|
+
inputRef.value.clear();
|
|
95
|
+
}
|
|
96
|
+
expose({
|
|
97
|
+
focus,
|
|
98
|
+
blur,
|
|
99
|
+
clear
|
|
100
|
+
});
|
|
101
|
+
return (_ctx, _cache) => {
|
|
102
|
+
return openBlock(), createElementBlock("div", {
|
|
103
|
+
class: normalizeClass(["hzzt-scan", _ctx.$attrs.class]),
|
|
104
|
+
style: normalizeStyle([{ "position": "relative" }, _ctx.$attrs.style])
|
|
105
|
+
}, [
|
|
106
|
+
_hoisted_1,
|
|
107
|
+
createVNode(unref(ElInput), mergeProps({
|
|
108
|
+
ref_key: "inputRef",
|
|
109
|
+
ref: inputRef,
|
|
110
|
+
modelValue: innerValue.value,
|
|
111
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
|
|
112
|
+
}, {
|
|
113
|
+
..._ctx.$attrs,
|
|
114
|
+
class: "",
|
|
115
|
+
style: "",
|
|
116
|
+
onChange: ""
|
|
117
|
+
}, {
|
|
118
|
+
readonly: readonly.value,
|
|
119
|
+
type: unref(inputType),
|
|
120
|
+
class: "hzzt-scan-input-original",
|
|
121
|
+
autocomplete: "off",
|
|
122
|
+
onFocus: inputFocus,
|
|
123
|
+
onBlur: inputBlur,
|
|
124
|
+
onChange: inputChange
|
|
125
|
+
}), createSlots({
|
|
126
|
+
_: 2
|
|
127
|
+
}, [
|
|
128
|
+
renderList(_ctx.$slots, (_, key, index) => {
|
|
129
|
+
return {
|
|
130
|
+
name: key,
|
|
131
|
+
fn: withCtx(() => [
|
|
132
|
+
renderSlot(_ctx.$slots, key)
|
|
133
|
+
])
|
|
134
|
+
};
|
|
135
|
+
})
|
|
136
|
+
]), 1040, ["modelValue", "readonly", "type"]),
|
|
137
|
+
createElementVNode("div", {
|
|
138
|
+
class: normalizeClass(["hzzt-scan-input-backup", { "placeholder-color": innerValue.value === " " }])
|
|
139
|
+
}, [
|
|
140
|
+
createElementVNode("div", _hoisted_2, toDisplayString(unref(showValue)), 1)
|
|
141
|
+
], 2)
|
|
142
|
+
], 6);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
var Scan = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "scan.vue"]]);
|
|
147
|
+
|
|
148
|
+
export { Scan as default };
|
|
149
|
+
//# sourceMappingURL=scan2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan2.mjs","sources":["../../../../../../packages/components/scan/src/scan.vue"],"sourcesContent":["<template>\n <div\n class=\"hzzt-scan\"\n style=\"position: relative\"\n :class=\"$attrs.class\"\n :style=\"$attrs.style\"\n >\n <div style=\"width: 0; height: 0; overflow: hidden\">\n <input readonly style=\"width: 0; height: 0; overflow: hidden\" />\n <input\n readonly\n type=\"password\"\n autocomplete=\"off\"\n style=\"width: 0; height: 0; overflow: hidden\"\n />\n </div>\n\n <el-input\n ref=\"inputRef\"\n v-model=\"innerValue\"\n v-bind=\"{\n ...$attrs,\n class: '',\n style: '',\n onChange: '',\n }\"\n :readonly=\"readonly\"\n :type=\"inputType\"\n class=\"hzzt-scan-input-original\"\n autocomplete=\"off\"\n @focus=\"inputFocus\"\n @blur=\"inputBlur\"\n @change=\"inputChange\"\n >\n <template v-for=\"(_, key, index) in $slots\" :key=\"index\" #[key]>\n <slot :name=\"key\" />\n </template>\n </el-input>\n <div\n class=\"hzzt-scan-input-backup\"\n :class=\"{ 'placeholder-color': innerValue === ' ' }\"\n >\n <div class=\"width-100%\" style=\"overflow: hidden\">\n {{ showValue }}\n </div>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, ref, watch } from 'vue'\nimport { ElInput } from 'element-plus'\nimport { scanEmits, scanProps } from '@hzzt-plus/components/scan/src/scan'\n\ndefineOptions({\n inheritAttrs: false,\n name: 'HzztScan',\n})\n\nconst props = defineProps(scanProps)\n\nconst emit = defineEmits(scanEmits)\n\nconst readonly = ref(true)\nconst innerValue = ref(' ')\nconst inputRef = ref()\n\nconst showValue = computed(() => {\n if (innerValue.value === ' ') {\n return ` ${props.placeholder}`\n } else {\n return innerValue.value\n }\n})\n\nconst inputType = computed(() => {\n if (innerValue.value && !readonly.value) {\n return 'password'\n } else {\n return 'text'\n }\n})\n\nwatch(\n () => props.modelValue,\n (v) => {\n if (!v) {\n innerValue.value = ' '\n } else {\n innerValue.value = ` ${changeLetter(v)}`\n }\n }\n)\n\nwatch(\n () => innerValue.value,\n (v) => {\n if (!v) {\n innerValue.value = ' '\n }\n const str =\n innerValue.value[0] === ' ' ? innerValue.value.slice(1) : innerValue.value\n const final = changeLetter(str ?? '')\n emit('update:modelValue', final)\n emit('input', final)\n }\n)\n\nfunction changeLetter(v: string) {\n if (props.letter === 'upper') {\n return v.toLocaleUpperCase()\n } else if (props.letter === 'lower') {\n return v.toLocaleLowerCase()\n } else {\n return v\n }\n}\n\nfunction inputFocus() {\n readonly.value = false\n}\n\nfunction inputBlur() {\n readonly.value = true\n}\n\nfunction inputChange() {\n emit('change', props.modelValue)\n}\n\nfunction focus() {\n readonly.value = false\n setTimeout(() => {\n inputRef.value.focus()\n })\n}\n\nfunction blur() {\n readonly.value = true\n inputRef.value.blur()\n}\n\nfunction clear() {\n inputRef.value.clear()\n}\n\ndefineExpose({\n focus,\n blur,\n clear,\n})\n</script>\n"],"names":["_defineComponent","_openBlock","_createElementBlock","_normalizeClass","_normalizeStyle","_createVNode","_unref","_mergeProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAkDA,EAAS,IAAA,EAAA,UAAA;AACT,CAAA,CAAA,CAAA;AACA,MAAA,4BAAqCA,eAAA,CAAA;;;AAEvB,EACZ,KAAc,EAAA,SAAA;AAAA,EACd,KAAM,CAAA,OAAA,EAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA;AACR,IAAA,MAAA,KAAA,GAAA,OAAA,CAAA;;;;;;;AAMA,OAAM,MAAA;AACN,QAAM,OAAA,gBAAoB,CAAA;AAC1B,OAAA;AAEA,KAAM,CAAA,CAAA;AACJ,IAAI,MAAA,SAAA,YAAqB,MAAK;AAC5B,MAAO,IAAA,gBAAqB,IAAA,CAAA,QAAA,CAAA,KAAA,EAAA;AAAA,QACvB,OAAA,UAAA,CAAA;AACL,OAAA,MAAA;AAAkB,QACpB,OAAA,MAAA,CAAA;AAAA,OACD;AAED,KAAM,CAAA,CAAA;AACJ,IAAA,KAAA,CAAI,MAAW,KAAA,CAAA,UAAU,EAAA,CAAA,CAAA,KAAgB;AACvC,MAAO,IAAA,CAAA,CAAA,EAAA;AAAA,QACF,UAAA,CAAA,KAAA,GAAA,GAAA,CAAA;AACL,OAAO,MAAA;AAAA,QACT,UAAA,CAAA,KAAA,GAAA,CAAA,CAAA,EAAA,YAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,OACD;AAED,KAAA,CAAA,CAAA;AAAA,IAAA,YACc,UAAA,CAAA,KAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACZ,IAAO,CAAA,CAAA,EAAA;AACL,QAAA,UAAQ,CAAA,KAAA,GAAA,GAAA,CAAA;AACN,OAAA;AAAmB,MAAA,MACd,GAAA,GAAA,UAAA,CAAA,KAAA,CAAA,CAAA,CAAA,KAAA,GAAA,GAAA,UAAA,CAAA,KAAA,CAAA,KAAA,CAAA,CAAA,CAAA,GAAA,UAAA,CAAA,KAAA,CAAA;AACL,MAAA,MAAA,KAAA,GAAA,YAAmB,CAAI,GAAa,IAAA,IAAA,GAAC,GAAC,GAAA,EAAA,CAAA,CAAA;AAAA,MACxC,IAAA,CAAA,mBAAA,EAAA,KAAA,CAAA,CAAA;AAAA,MACF,IAAA,CAAA,OAAA,EAAA,KAAA,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AAEA,IAAA,SAAA,YAAA,CAAA,CAAA,EAAA;AAAA,MACE,SAAiB,CAAA,MAAA,KAAA,OAAA,EAAA;AAAA,QACV,OAAA,CAAA,CAAA,iBAAA,EAAA,CAAA;AACL,OAAA,MAAK,IAAG,KAAA,CAAA,MAAA,KAAA,OAAA,EAAA;AACN,QAAA,OAAA,CAAA,CAAA,iBAAmB,EAAA,CAAA;AAAA,OACrB,MAAA;AACA,QAAM,OAAA,CAAA,CAAA;AAEN,OAAM;AACN,KAAA;AACA,IAAA,SAAK,UAAc,GAAA;AAAA,MACrB,QAAA,CAAA,KAAA,GAAA,KAAA,CAAA;AAAA,KACF;AAEA,IAAA,SAAS;AACP,MAAI,QAAA,CAAA,YAAiB,CAAS;AAC5B,KAAA;AAA2B,IAC7B,SAAA,WAAiB,GAAA;AACf,MAAA,IAAA,CAAA,QAA2B,EAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAAA,KAAA;AAE3B,IAAO,SAAA,KAAA,GAAA;AAAA,MACT,QAAA,CAAA,KAAA,GAAA,KAAA,CAAA;AAAA,MACF,UAAA,CAAA,MAAA;AAEA,QAAA,QAAsB,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA;AACpB,OAAA,CAAA,CAAA;AAAiB,KACnB;AAEA,IAAA,SAAS,IAAY,GAAA;AACnB,MAAA,QAAA,CAAS,KAAQ,GAAA,IAAA,CAAA;AAAA,MACnB,QAAA,CAAA,KAAA,CAAA,IAAA,EAAA,CAAA;AAEA,KAAA;AACE,IAAK,SAAA,KAAA,GAAU;AAAgB,MACjC,QAAA,CAAA,KAAA,CAAA,KAAA,EAAA,CAAA;AAEA,KAAA;AACE,IAAA,MAAA,CAAA;AACA,MAAA,KAAA;AACE,MAAA,IAAA;AAAqB,MACvB,KAAC;AAAA,KACH,CAAA,CAAA;AAEA,IAAA,OAAA,CAAA,IAAgB,EAAA,MAAA,KAAA;AACd,MAAA,OAAAC,SAAiB,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA;AACjB,QAAA,KAAA,EAASC,cAAW,CAAA,CAAA,WAAA,EAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AAAA,QACtB,KAAA,EAAAC,cAAA,CAAA,CAAA,EAAA,UAAA,EAAA,UAAA,EAAA,EAAA,IAAA,CAAA,MAAA,CAAA,KAAA,CAAA,CAAA;AAEA,OAAA,EAAA;AACE,QAAA;AAAqB,QACvBC,WAAA,CAAAC,KAAA,CAAA,OAAA,CAAA,EAAAC,UAAA,CAAA;AAEA,UAAa,OAAA,EAAA,UAAA;AAAA,UACX,GAAA,EAAA,QAAA;AAAA,UACA,UAAA,EAAA,UAAA,CAAA,KAAA;AAAA,UACA,qBAAA,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,KAAA,UAAA,CAAA,KAAA,GAAA,MAAA,CAAA;AAAA,SACD,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,30 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
7
|
-
}, {
|
|
8
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
label: StringConstructor;
|
|
10
|
-
sideline: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
|
-
}>> & {
|
|
15
|
-
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
16
|
-
}>>;
|
|
17
|
-
slots: Readonly<{
|
|
18
|
-
[name: string]: import("vue").Slot | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
showLabel: import("vue").ComputedRef<import("vue").VNodeNormalizedChildren | undefined>;
|
|
21
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
-
label: StringConstructor;
|
|
23
|
-
sideline: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
}>>, {
|
|
28
|
-
sideline: boolean;
|
|
29
|
-
}>> & Record<string, any>;
|
|
1
|
+
import Title from './src/title.vue';
|
|
2
|
+
import type { SFCWithInstall } from 'hzzt-plus/es/utils';
|
|
3
|
+
export declare const HzztTitle: SFCWithInstall<typeof Title>;
|
|
30
4
|
export default HzztTitle;
|
|
5
|
+
export * from './src/title';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/title.vue'\n\nexport const HzztTitle = withInstall(Title)\nexport default HzztTitle\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\n\nimport Title from './src/title.vue'\nimport type { SFCWithInstall } from '@hzzt-plus/utils'\n\nexport const HzztTitle: SFCWithInstall<typeof Title> = withInstall(Title)\nexport default HzztTitle\n\nexport * from './src/title'\n"],"names":[],"mappings":";;;;;AAEY,MAAC,SAAS,GAAG,WAAW,CAAC,KAAK;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
import type Title from './title.vue';
|
|
3
|
+
export declare const titleProps: {
|
|
4
|
+
readonly label: StringConstructor;
|
|
5
|
+
readonly sideline: import("hzzt-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
6
|
+
};
|
|
7
|
+
export declare type TitleProps = ExtractPropTypes<typeof titleProps>;
|
|
8
|
+
export declare type TitleInstance = InstanceType<typeof Title>;
|
|
@@ -1,48 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import '../../../utils/index.mjs';
|
|
2
|
+
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
|
3
3
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "decorative-line"
|
|
11
|
-
};
|
|
12
|
-
const _hoisted_3 = { class: "label-name" };
|
|
13
|
-
const __default__ = defineComponent({
|
|
14
|
-
name: "HzztTitle"
|
|
15
|
-
});
|
|
16
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
|
-
...__default__,
|
|
18
|
-
props: {
|
|
19
|
-
label: String,
|
|
20
|
-
sideline: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: true
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
setup(__props) {
|
|
26
|
-
const props = __props;
|
|
27
|
-
const slots = useSlots();
|
|
28
|
-
const showLabel = computed(() => {
|
|
29
|
-
var _a, _b, _c;
|
|
30
|
-
return props.label || ((_c = (_b = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b[0]) == null ? void 0 : _c.children);
|
|
31
|
-
});
|
|
32
|
-
return (_ctx, _cache) => {
|
|
33
|
-
return unref(showLabel) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
34
|
-
__props.sideline ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("v-if", true),
|
|
35
|
-
renderSlot(_ctx.$slots, "before"),
|
|
36
|
-
createElementVNode("label", _hoisted_3, [
|
|
37
|
-
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
38
|
-
createTextVNode(toDisplayString(__props.label), 1)
|
|
39
|
-
])
|
|
40
|
-
])
|
|
41
|
-
])) : createCommentVNode("v-if", true);
|
|
42
|
-
};
|
|
4
|
+
const titleProps = buildProps({
|
|
5
|
+
label: String,
|
|
6
|
+
sideline: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: true
|
|
43
9
|
}
|
|
44
10
|
});
|
|
45
|
-
var Title = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "title.vue"]]);
|
|
46
11
|
|
|
47
|
-
export {
|
|
12
|
+
export { titleProps };
|
|
48
13
|
//# sourceMappingURL=title.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.mjs","sources":["../../../../../../packages/components/title/src/title.
|
|
1
|
+
{"version":3,"file":"title.mjs","sources":["../../../../../../packages/components/title/src/title.ts"],"sourcesContent":["import { buildProps } from '@hzzt-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type Title from './title.vue'\n\nexport const titleProps = buildProps({\n label: String,\n sideline: {\n type: Boolean,\n default: true,\n },\n} as const)\nexport type TitleProps = ExtractPropTypes<typeof titleProps>\n\nexport type TitleInstance = InstanceType<typeof Title>\n"],"names":[],"mappings":";;;AACY,MAAC,UAAU,GAAG,UAAU,CAAC;AACrC,EAAE,KAAK,EAAE,MAAM;AACf,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,CAAC;;;;"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
label: StringConstructor;
|
|
3
|
-
sideline:
|
|
4
|
-
type: BooleanConstructor;
|
|
5
|
-
default: boolean;
|
|
6
|
-
};
|
|
2
|
+
readonly label: StringConstructor;
|
|
3
|
+
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
7
4
|
}, {
|
|
8
5
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
-
label: StringConstructor;
|
|
10
|
-
sideline:
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
6
|
+
readonly label: StringConstructor;
|
|
7
|
+
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
14
8
|
}>> & {
|
|
15
9
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
16
10
|
}>>;
|
|
@@ -19,12 +13,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
13
|
}>;
|
|
20
14
|
showLabel: import("vue").ComputedRef<import("vue").VNodeNormalizedChildren | undefined>;
|
|
21
15
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
-
label: StringConstructor;
|
|
23
|
-
sideline:
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
16
|
+
readonly label: StringConstructor;
|
|
17
|
+
readonly sideline: import("../../../utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
27
18
|
}>>, {
|
|
28
|
-
sideline:
|
|
19
|
+
readonly sideline: import("../../../utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
29
20
|
}>;
|
|
30
21
|
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent, useSlots, computed, unref, openBlock, createElementBlock, createCommentVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString } from 'vue';
|
|
2
|
+
import '../../index.mjs';
|
|
3
|
+
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
|
4
|
+
import { titleProps } from './title.mjs';
|
|
5
|
+
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "hzzt-title flex align-items-center"
|
|
9
|
+
};
|
|
10
|
+
const _hoisted_2 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "decorative-line"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_3 = { class: "label-name" };
|
|
15
|
+
const __default__ = defineComponent({
|
|
16
|
+
name: "HzztTitle"
|
|
17
|
+
});
|
|
18
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
|
+
...__default__,
|
|
20
|
+
props: titleProps,
|
|
21
|
+
setup(__props) {
|
|
22
|
+
const props = __props;
|
|
23
|
+
const slots = useSlots();
|
|
24
|
+
const showLabel = computed(() => {
|
|
25
|
+
var _a, _b, _c;
|
|
26
|
+
return props.label || ((_c = (_b = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b[0]) == null ? void 0 : _c.children);
|
|
27
|
+
});
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return unref(showLabel) ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
30
|
+
_ctx.sideline ? (openBlock(), createElementBlock("span", _hoisted_2)) : createCommentVNode("v-if", true),
|
|
31
|
+
renderSlot(_ctx.$slots, "before"),
|
|
32
|
+
createElementVNode("label", _hoisted_3, [
|
|
33
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
34
|
+
createTextVNode(toDisplayString(_ctx.label), 1)
|
|
35
|
+
])
|
|
36
|
+
])
|
|
37
|
+
])) : createCommentVNode("v-if", true);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
var Title = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "title.vue"]]);
|
|
42
|
+
|
|
43
|
+
export { Title as default };
|
|
44
|
+
//# sourceMappingURL=title2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title2.mjs","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"decorative-line\" />\n <slot name=\"before\" />\n <label class=\"label-name\">\n <slot>{{ label }}</slot>\n </label>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { titleProps } from '@hzzt-plus/components'\n\ndefineOptions({\n name: 'HzztTitle',\n})\n\nconst props = defineProps(titleProps)\n\nconst slots = useSlots()\n\nconst showLabel = computed(\n () => props.label || slots?.default?.()?.[0]?.children\n)\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;mCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,SAAY,GAAA,QAAA,CAAA,MAAA;AAAA,MAChB,MAAM,EAAM,EAAA,EAAA,EAAA,CAAA;AAAkC,MAChD,OAAA,KAAA,CAAA,KAAA,KAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,IAAA,CAAA,KAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,CAAA,CAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;"}
|
package/es/constants/index.d.ts
CHANGED
package/es/constants/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { INSTALLED_KEY } from './key.mjs';
|
|
2
2
|
export { componentSizeMap, componentSizes } from './size.mjs';
|
|
3
3
|
export { WEEK_DAYS, datePickTypes } from './date.mjs';
|
|
4
|
+
export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from './event.mjs';
|
|
4
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
package/es/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import './constants/index.mjs';
|
|
|
5
5
|
import './directives/index.mjs';
|
|
6
6
|
import './hooks/index.mjs';
|
|
7
7
|
export { makeInstaller } from './make-installer.mjs';
|
|
8
|
+
export { titleProps } from './components/title/src/title.mjs';
|
|
8
9
|
export { HzztTitle } from './components/title/index.mjs';
|
|
9
10
|
export { HzztDropdown } from './components/dropdown/index.mjs';
|
|
10
11
|
export { HzztCollapse } from './components/collapse/index.mjs';
|
|
@@ -20,9 +21,12 @@ export { HzztPageSize } from './components/page-size/index.mjs';
|
|
|
20
21
|
export { HzztConfirmPassword } from './components/confirm-password/index.mjs';
|
|
21
22
|
export { HzztCheckButton } from './components/check-button/index.mjs';
|
|
22
23
|
export { HzztQuarterPicker } from './components/quarter-picker/index.mjs';
|
|
24
|
+
export { scanEmits, scanProps } from './components/scan/src/scan.mjs';
|
|
25
|
+
export { HzztScan } from './components/scan/index.mjs';
|
|
23
26
|
export { INSTALLED_KEY } from './constants/key.mjs';
|
|
24
27
|
export { componentSizeMap, componentSizes } from './constants/size.mjs';
|
|
25
28
|
export { WEEK_DAYS, datePickTypes } from './constants/date.mjs';
|
|
29
|
+
export { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from './constants/event.mjs';
|
|
26
30
|
export { default as Download } from './directives/download/index.mjs';
|
|
27
31
|
export { default as Height } from './directives/height/index.mjs';
|
|
28
32
|
export { default as Blur } from './directives/blur/index.mjs';
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","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":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","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":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,OAAO,GAAG,SAAS,CAAC,QAAQ;AAC7B,MAAC,OAAO,GAAG,SAAS,CAAC;;;;"}
|
package/global.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ declare module 'vue' {
|
|
|
13
13
|
HzztConfirmPassword: typeof import('hzzt-plus')['HzztConfirmPassword']
|
|
14
14
|
HzztCheckButton: typeof import('hzzt-plus')['HzztCheckButton']
|
|
15
15
|
HzztQuarterPicker: typeof import('hzzt-plus')['HzztQuarterPicker']
|
|
16
|
+
HzztScan: typeof import('hzzt-plus')['HzztScan']
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
|
package/lib/component.js
CHANGED
|
@@ -14,6 +14,7 @@ var index$8 = require('./components/page-size/index.js');
|
|
|
14
14
|
var index$9 = require('./components/confirm-password/index.js');
|
|
15
15
|
var index$a = require('./components/check-button/index.js');
|
|
16
16
|
var index$b = require('./components/quarter-picker/index.js');
|
|
17
|
+
var index$c = require('./components/scan/index.js');
|
|
17
18
|
|
|
18
19
|
var Components = [
|
|
19
20
|
index.HzztConfigProvider,
|
|
@@ -27,7 +28,8 @@ var Components = [
|
|
|
27
28
|
index$8.HzztPageSize,
|
|
28
29
|
index$9.HzztConfirmPassword,
|
|
29
30
|
index$a.HzztCheckButton,
|
|
30
|
-
index$b.HzztQuarterPicker
|
|
31
|
+
index$b.HzztQuarterPicker,
|
|
32
|
+
index$c.HzztScan
|
|
31
33
|
];
|
|
32
34
|
|
|
33
35
|
exports["default"] = Components;
|
package/lib/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker"],"mappings":"
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import { HzztTitle } from '@hzzt-plus/components/title'\nimport { HzztDropdown } from '@hzzt-plus/components/dropdown'\nimport { HzztCollapse } from '@hzzt-plus/components/collapse'\nimport { HzztConfigProvider } from '@hzzt-plus/components/config-provider'\nimport { HzztTab } from '@hzzt-plus/components/tab'\nimport { HzztIcon } from '@hzzt-plus/components/icon'\nimport { HzztPagination } from '@hzzt-plus/components/pagination'\nimport { HzztTooltip } from '@hzzt-plus/components/tooltip'\nimport { HzztPageSize } from '@hzzt-plus/components/page-size'\nimport { HzztConfirmPassword } from '@hzzt-plus/components/confirm-password'\nimport { HzztCheckButton } from '@hzzt-plus/components/check-button'\nimport { HzztQuarterPicker } from '@hzzt-plus/components/quarter-picker'\nimport { HzztScan } from '@hzzt-plus/components/scan'\n\nimport type { Plugin } from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n HzztTooltip,\n HzztPageSize,\n HzztConfirmPassword,\n HzztCheckButton,\n HzztQuarterPicker,\n HzztScan,\n] as Plugin[]\n"],"names":["HzztConfigProvider","HzztTitle","HzztDropdown","HzztCollapse","HzztTab","HzztIcon","HzztPagination","HzztTooltip","HzztPageSize","HzztConfirmPassword","HzztCheckButton","HzztQuarterPicker","HzztScan"],"mappings":";;;;;;;;;;;;;;;;;;AAaA,iBAAe;AACf,EAAEA,wBAAkB;AACpB,EAAEC,iBAAS;AACX,EAAEC,oBAAY;AACd,EAAEC,oBAAY;AACd,EAAEC,eAAO;AACT,EAAEC,gBAAQ;AACV,EAAEC,sBAAc;AAChB,EAAEC,mBAAW;AACb,EAAEC,oBAAY;AACd,EAAEC,2BAAmB;AACrB,EAAEC,uBAAe;AACjB,EAAEC,yBAAiB;AACnB,EAAEC,gBAAQ;AACV,CAAC;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -14,9 +14,12 @@ var index$8 = require('./page-size/index.js');
|
|
|
14
14
|
var index$9 = require('./confirm-password/index.js');
|
|
15
15
|
var index$a = require('./check-button/index.js');
|
|
16
16
|
var index$b = require('./quarter-picker/index.js');
|
|
17
|
+
var index$c = require('./scan/index.js');
|
|
18
|
+
var title = require('./title/src/title.js');
|
|
17
19
|
var configProviderProps = require('./config-provider/src/config-provider-props.js');
|
|
18
20
|
var constants = require('./config-provider/src/constants.js');
|
|
19
21
|
var useGlobalConfig = require('./config-provider/src/hooks/use-global-config.js');
|
|
22
|
+
var scan = require('./scan/src/scan.js');
|
|
20
23
|
|
|
21
24
|
|
|
22
25
|
|
|
@@ -32,8 +35,12 @@ exports.HzztPageSize = index$8.HzztPageSize;
|
|
|
32
35
|
exports.HzztConfirmPassword = index$9.HzztConfirmPassword;
|
|
33
36
|
exports.HzztCheckButton = index$a.HzztCheckButton;
|
|
34
37
|
exports.HzztQuarterPicker = index$b.HzztQuarterPicker;
|
|
38
|
+
exports.HzztScan = index$c.HzztScan;
|
|
39
|
+
exports.titleProps = title.titleProps;
|
|
35
40
|
exports.configProviderProps = configProviderProps.configProviderProps;
|
|
36
41
|
exports.configProviderContextKey = constants.configProviderContextKey;
|
|
37
42
|
exports.provideGlobalConfig = useGlobalConfig.provideGlobalConfig;
|
|
38
43
|
exports.useGlobalConfig = useGlobalConfig.useGlobalConfig;
|
|
44
|
+
exports.scanEmits = scan.scanEmits;
|
|
45
|
+
exports.scanProps = scan.scanProps;
|
|
39
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../utils/index.js');
|
|
6
|
+
var scan$1 = require('./src/scan2.js');
|
|
7
|
+
var scan = require('./src/scan.js');
|
|
8
|
+
var install = require('../../utils/vue/install.js');
|
|
9
|
+
|
|
10
|
+
const HzztScan = install.withInstall(scan$1["default"]);
|
|
11
|
+
|
|
12
|
+
exports.scanEmits = scan.scanEmits;
|
|
13
|
+
exports.scanProps = scan.scanProps;
|
|
14
|
+
exports.HzztScan = HzztScan;
|
|
15
|
+
exports["default"] = HzztScan;
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/scan/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\nimport Scan from './src/scan.vue'\nimport type { SFCWithInstall } from '@hzzt-plus/utils'\n\nexport const HzztScan: SFCWithInstall<typeof Scan> = withInstall(Scan)\nexport default HzztScan\n\nexport * from './src/scan'\n"],"names":["withInstall","Scan"],"mappings":";;;;;;;;;AAEY,MAAC,QAAQ,GAAGA,mBAAW,CAACC,iBAAI;;;;;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type Scan from './scan.vue';
|
|
2
|
+
import type { ExtractPropTypes } from 'vue';
|
|
3
|
+
export declare const scanProps: {
|
|
4
|
+
readonly modelValue: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
5
|
+
readonly placeholder: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
6
|
+
readonly letter: import("hzzt-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "upper", boolean>;
|
|
7
|
+
};
|
|
8
|
+
export declare type ScanProps = ExtractPropTypes<typeof scanProps>;
|
|
9
|
+
export declare const scanEmits: {
|
|
10
|
+
"update:modelValue": (value: string) => boolean;
|
|
11
|
+
change: (value: string) => boolean;
|
|
12
|
+
input: (value: string) => boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare type ScanEmits = typeof scanEmits;
|
|
15
|
+
export declare type ScanInstance = InstanceType<typeof Scan>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
require('../../../utils/index.js');
|
|
6
|
+
require('../../../constants/index.js');
|
|
7
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
8
|
+
var event = require('../../../constants/event.js');
|
|
9
|
+
var shared = require('@vue/shared');
|
|
10
|
+
|
|
11
|
+
const scanProps = runtime.buildProps({
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: ""
|
|
15
|
+
},
|
|
16
|
+
placeholder: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: ""
|
|
19
|
+
},
|
|
20
|
+
letter: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "upper"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const scanEmits = {
|
|
26
|
+
[event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value),
|
|
27
|
+
[event.CHANGE_EVENT]: (value) => shared.isString(value),
|
|
28
|
+
[event.INPUT_EVENT]: (value) => shared.isString(value)
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
exports.scanEmits = scanEmits;
|
|
32
|
+
exports.scanProps = scanProps;
|
|
33
|
+
//# sourceMappingURL=scan.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.js","sources":["../../../../../../packages/components/scan/src/scan.ts"],"sourcesContent":["import { buildProps, isString } from '@hzzt-plus/utils'\nimport {\n CHANGE_EVENT,\n INPUT_EVENT,\n UPDATE_MODEL_EVENT,\n} from '@hzzt-plus/constants'\nimport type Scan from './scan.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const scanProps = buildProps({\n modelValue: {\n type: String,\n default: '',\n },\n placeholder: {\n type: String,\n default: '',\n },\n letter: {\n type: String,\n default: 'upper',\n },\n} as const)\nexport type ScanProps = ExtractPropTypes<typeof scanProps>\n\nexport const scanEmits = {\n [UPDATE_MODEL_EVENT]: (value: string) => isString(value),\n [CHANGE_EVENT]: (value: string) => isString(value),\n [INPUT_EVENT]: (value: string) => isString(value),\n}\nexport type ScanEmits = typeof scanEmits\n\nexport type ScanInstance = InstanceType<typeof Scan>\n"],"names":["buildProps","UPDATE_MODEL_EVENT","isString","CHANGE_EVENT","INPUT_EVENT"],"mappings":";;;;;;;;;;AAMY,MAAC,SAAS,GAAGA,kBAAU,CAAC;AACpC,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,OAAO;AACpB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,SAAS,GAAG;AACzB,EAAE,CAACC,wBAAkB,GAAG,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC;AAClD,EAAE,CAACC,kBAAY,GAAG,CAAC,KAAK,KAAKD,eAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE,CAACE,iBAAW,GAAG,CAAC,KAAK,KAAKF,eAAQ,CAAC,KAAK,CAAC;AAC3C;;;;;"}
|