hzzt-plus 1.0.0 → 1.0.2
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 -0
- package/dist/index.full.js +5236 -2048
- package/dist/index.full.min.js +17 -17
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +18 -18
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5231 -2051
- 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/confirm-password/index.d.ts +46 -22
- package/es/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
- package/es/components/dropdown/index.d.ts +5 -5
- package/es/components/dropdown/src/index.mjs +3 -2
- package/es/components/dropdown/src/index.mjs.map +1 -1
- package/es/components/dropdown/src/index.vue.d.ts +6 -5
- package/es/components/icon/src/index.vue.d.ts +4 -4
- package/es/components/index.d.ts +2 -0
- package/es/components/index.mjs +4 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/page-size/index.d.ts +10225 -532
- package/es/components/page-size/src/index.mjs.map +1 -1
- package/es/components/page-size/src/index.vue.d.ts +10225 -532
- package/es/components/pagination/index.d.ts +4 -4
- package/es/components/pagination/src/index.vue.d.ts +4 -4
- package/es/components/quarter-picker/index.d.ts +121 -97
- package/es/components/quarter-picker/src/index.vue.d.ts +121 -97
- package/es/components/scan/src/scan.vue.d.ts +46 -22
- package/es/components/scan/src/scan2.mjs.map +1 -1
- package/es/components/select-input/index.d.ts +826 -0
- package/es/components/select-input/index.mjs +9 -0
- package/es/components/select-input/index.mjs.map +1 -0
- package/es/components/select-input/src/select-input.d.ts +41 -0
- package/es/components/select-input/src/select-input.mjs +50 -0
- package/es/components/select-input/src/select-input.mjs.map +1 -0
- package/es/components/select-input/src/select-input.vue.d.ts +826 -0
- package/es/components/select-input/src/select-input2.mjs +129 -0
- package/es/components/select-input/src/select-input2.mjs.map +1 -0
- package/es/components/select-input/style/css.d.ts +2 -0
- package/es/components/select-input/style/css.mjs +3 -0
- package/es/components/select-input/style/css.mjs.map +1 -0
- package/es/components/select-input/style/index.d.ts +2 -0
- package/es/components/select-input/style/index.mjs +3 -0
- package/es/components/select-input/style/index.mjs.map +1 -0
- package/es/components/select-textarea/index.d.ts +13076 -0
- package/es/components/select-textarea/index.mjs +9 -0
- package/es/components/select-textarea/index.mjs.map +1 -0
- package/es/components/select-textarea/src/select-textarea.d.ts +26 -0
- package/es/components/select-textarea/src/select-textarea.mjs +35 -0
- package/es/components/select-textarea/src/select-textarea.mjs.map +1 -0
- package/es/components/select-textarea/src/select-textarea.vue.d.ts +13075 -0
- package/es/components/select-textarea/src/select-textarea2.mjs +105 -0
- package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -0
- package/es/components/select-textarea/style/css.d.ts +2 -0
- package/es/components/select-textarea/style/css.mjs +3 -0
- package/es/components/select-textarea/style/css.mjs.map +1 -0
- package/es/components/select-textarea/style/index.d.ts +2 -0
- package/es/components/select-textarea/style/index.mjs +3 -0
- package/es/components/select-textarea/style/index.mjs.map +1 -0
- package/es/components/tab/index.d.ts +4 -4
- package/es/components/tab/src/index.vue.d.ts +4 -4
- package/es/components/title/index.mjs +2 -2
- package/es/components/title/index.mjs.map +1 -1
- package/es/components/title/src/title2.mjs +3 -4
- package/es/components/title/src/title2.mjs.map +1 -1
- package/es/components/tooltip/index.d.ts +7615 -316
- package/es/components/tooltip/src/tooltip.vue.d.ts +7615 -316
- package/es/hooks/index.d.ts +2 -0
- package/es/hooks/index.mjs +2 -0
- package/es/hooks/index.mjs.map +1 -1
- package/es/hooks/use-cursor/index.d.ts +1 -0
- package/es/hooks/use-cursor/index.mjs +14 -0
- package/es/hooks/use-cursor/index.mjs.map +1 -0
- package/es/hooks/use-letter/index.d.ts +1 -0
- package/es/hooks/use-letter/index.mjs +13 -0
- package/es/hooks/use-letter/index.mjs.map +1 -0
- package/es/index.mjs +6 -0
- 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/confirm-password/index.d.ts +46 -22
- package/lib/components/confirm-password/src/confirm-password.vue.d.ts +46 -22
- package/lib/components/dropdown/index.d.ts +5 -5
- package/lib/components/dropdown/src/index.js +3 -2
- package/lib/components/dropdown/src/index.js.map +1 -1
- package/lib/components/dropdown/src/index.vue.d.ts +6 -5
- package/lib/components/icon/src/index.vue.d.ts +4 -4
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +10 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/page-size/index.d.ts +10225 -532
- package/lib/components/page-size/src/index.js.map +1 -1
- package/lib/components/page-size/src/index.vue.d.ts +10225 -532
- package/lib/components/pagination/index.d.ts +4 -4
- package/lib/components/pagination/src/index.vue.d.ts +4 -4
- package/lib/components/quarter-picker/index.d.ts +121 -97
- package/lib/components/quarter-picker/src/index.vue.d.ts +121 -97
- package/lib/components/scan/src/scan.vue.d.ts +46 -22
- package/lib/components/scan/src/scan2.js.map +1 -1
- package/lib/components/select-input/index.d.ts +826 -0
- package/lib/components/select-input/index.js +16 -0
- package/lib/components/select-input/index.js.map +1 -0
- package/lib/components/select-input/src/select-input.d.ts +41 -0
- package/lib/components/select-input/src/select-input.js +55 -0
- package/lib/components/select-input/src/select-input.js.map +1 -0
- package/lib/components/select-input/src/select-input.vue.d.ts +826 -0
- package/lib/components/select-input/src/select-input2.js +133 -0
- package/lib/components/select-input/src/select-input2.js.map +1 -0
- package/lib/components/select-input/style/css.d.ts +2 -0
- package/lib/components/select-input/style/css.js +6 -0
- package/lib/components/select-input/style/css.js.map +1 -0
- package/lib/components/select-input/style/index.d.ts +2 -0
- package/lib/components/select-input/style/index.js +6 -0
- package/lib/components/select-input/style/index.js.map +1 -0
- package/lib/components/select-textarea/index.d.ts +13076 -0
- package/lib/components/select-textarea/index.js +16 -0
- package/lib/components/select-textarea/index.js.map +1 -0
- package/lib/components/select-textarea/src/select-textarea.d.ts +26 -0
- package/lib/components/select-textarea/src/select-textarea.js +40 -0
- package/lib/components/select-textarea/src/select-textarea.js.map +1 -0
- package/lib/components/select-textarea/src/select-textarea.vue.d.ts +13075 -0
- package/lib/components/select-textarea/src/select-textarea2.js +109 -0
- package/lib/components/select-textarea/src/select-textarea2.js.map +1 -0
- package/lib/components/select-textarea/style/css.d.ts +2 -0
- package/lib/components/select-textarea/style/css.js +6 -0
- package/lib/components/select-textarea/style/css.js.map +1 -0
- package/lib/components/select-textarea/style/index.d.ts +2 -0
- package/lib/components/select-textarea/style/index.js +6 -0
- package/lib/components/select-textarea/style/index.js.map +1 -0
- package/lib/components/tab/index.d.ts +4 -4
- package/lib/components/tab/src/index.vue.d.ts +4 -4
- package/lib/components/title/index.js.map +1 -1
- package/lib/components/title/src/title2.js +3 -4
- package/lib/components/title/src/title2.js.map +1 -1
- package/lib/components/tooltip/index.d.ts +7615 -316
- package/lib/components/tooltip/src/tooltip.vue.d.ts +7615 -316
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/use-cursor/index.d.ts +1 -0
- package/lib/hooks/use-cursor/index.js +18 -0
- package/lib/hooks/use-cursor/index.js.map +1 -0
- package/lib/hooks/use-letter/index.d.ts +1 -0
- package/lib/hooks/use-letter/index.js +17 -0
- package/lib/hooks/use-letter/index.js.map +1 -0
- package/lib/index.js +40 -26
- 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 +3 -3
- package/tags.json +1 -0
- package/theme/hzzt-select-input.css +0 -0
- package/theme/hzzt-select-textarea.css +0 -0
- package/theme/src/index.scss +2 -0
- package/theme/src/select-input.scss +0 -0
- package/theme/src/select-textarea.scss +0 -0
- package/web-types.json +692 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var selectTextarea = require('./select-textarea.js');
|
|
7
|
+
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-cursor/index.js');
|
|
14
|
+
|
|
15
|
+
const _hoisted_1 = { class: "flex column" };
|
|
16
|
+
const _hoisted_2 = { class: "flex align-items-center" };
|
|
17
|
+
const __default__ = vue.defineComponent({
|
|
18
|
+
name: "HzztSelectTextarea"
|
|
19
|
+
});
|
|
20
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
21
|
+
...__default__,
|
|
22
|
+
props: selectTextarea.selectTextareaProps,
|
|
23
|
+
emits: selectTextarea.selectTextareaEmits,
|
|
24
|
+
setup(__props, { emit }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const inputVal = vue.ref(props.modelValue);
|
|
27
|
+
const selectValue = vue.ref("");
|
|
28
|
+
const inputRef = vue.ref();
|
|
29
|
+
const nsInput = index.useNamespace("select-textarea");
|
|
30
|
+
const formSize = elementPlus.useFormSize();
|
|
31
|
+
const formDisabled = elementPlus.useFormDisabled();
|
|
32
|
+
const trueSize = vue.computed(() => props.size || formSize.value || index$1.useGlobalSize().value);
|
|
33
|
+
const trueDisabled = vue.computed(() => props.disabled || formDisabled.value);
|
|
34
|
+
const containerCls = vue.computed(() => [
|
|
35
|
+
nsInput.b(),
|
|
36
|
+
nsInput.m(trueSize.value)
|
|
37
|
+
]);
|
|
38
|
+
const _inputProps = vue.computed(() => ({
|
|
39
|
+
disabled: trueDisabled.value,
|
|
40
|
+
clearable: true,
|
|
41
|
+
...props.inputProps,
|
|
42
|
+
type: "textarea"
|
|
43
|
+
}));
|
|
44
|
+
vue.watch(() => props.modelValue, (v) => {
|
|
45
|
+
inputVal.value = v;
|
|
46
|
+
});
|
|
47
|
+
function input(val) {
|
|
48
|
+
emit("update:modelValue", val);
|
|
49
|
+
emit("input", val);
|
|
50
|
+
}
|
|
51
|
+
function change(val) {
|
|
52
|
+
emit("change", val);
|
|
53
|
+
}
|
|
54
|
+
function selectChange(val) {
|
|
55
|
+
if (!inputVal.value && inputVal.value !== 0)
|
|
56
|
+
inputVal.value = "";
|
|
57
|
+
let content = val;
|
|
58
|
+
if (!props.replace) {
|
|
59
|
+
const inputEl = inputRef.value.getElementsByTagName("textarea")[0];
|
|
60
|
+
content = index$2.insertCursorPosition(inputEl, val);
|
|
61
|
+
}
|
|
62
|
+
input(content);
|
|
63
|
+
change(content);
|
|
64
|
+
emit("select", val);
|
|
65
|
+
}
|
|
66
|
+
return (_ctx, _cache) => {
|
|
67
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
68
|
+
class: vue.normalizeClass(vue.unref(containerCls))
|
|
69
|
+
}, [
|
|
70
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
71
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
72
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
73
|
+
vue.createVNode(title["default"], {
|
|
74
|
+
class: "margin-l-1",
|
|
75
|
+
label: _ctx.label
|
|
76
|
+
}, null, 8, ["label"])
|
|
77
|
+
]),
|
|
78
|
+
!vue.unref(trueDisabled) ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElSelectV2), {
|
|
79
|
+
key: 0,
|
|
80
|
+
class: "flex-1",
|
|
81
|
+
modelValue: selectValue.value,
|
|
82
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectValue.value = $event),
|
|
83
|
+
"allow-create": "",
|
|
84
|
+
filterable: "",
|
|
85
|
+
clearable: "",
|
|
86
|
+
onChange: selectChange,
|
|
87
|
+
options: _ctx.data
|
|
88
|
+
}, null, 8, ["modelValue", "options"])) : vue.createCommentVNode("v-if", true),
|
|
89
|
+
vue.renderSlot(_ctx.$slots, "right")
|
|
90
|
+
]),
|
|
91
|
+
vue.createVNode(vue.unref(elementPlus.ElInput), vue.mergeProps({
|
|
92
|
+
ref_key: "inputRef",
|
|
93
|
+
ref: inputRef,
|
|
94
|
+
class: "flex-1 margin-t-1",
|
|
95
|
+
modelValue: inputVal.value,
|
|
96
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => inputVal.value = $event)
|
|
97
|
+
}, vue.unref(_inputProps), {
|
|
98
|
+
onInput: input,
|
|
99
|
+
onChange: change
|
|
100
|
+
}), null, 16, ["modelValue"])
|
|
101
|
+
])
|
|
102
|
+
], 2);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
var SelectTextarea = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "select-textarea.vue"]]);
|
|
107
|
+
|
|
108
|
+
exports["default"] = SelectTextarea;
|
|
109
|
+
//# sourceMappingURL=select-textarea2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-textarea2.js","sources":["../../../../../../packages/components/select-textarea/src/select-textarea.vue"],"sourcesContent":["<template>\n <div :class=\"containerCls\">\n <div class=\"flex column\">\n <div class=\"flex align-items-center\">\n <slot name=\"title\">\n <hzzt-title class=\"margin-l-1\" :label=\"label\"></hzzt-title>\n </slot>\n <el-select-v2 class=\"flex-1\" v-model=\"selectValue\" allow-create filterable clearable @change=\"selectChange\"\n v-if=\"!trueDisabled\" :options=\"data\"></el-select-v2>\n <slot name=\"right\"></slot>\n </div>\n <el-input ref=\"inputRef\" class=\"flex-1 margin-t-1\" v-model=\"inputVal\" v-bind=\"_inputProps\"\n @input=\"input\"\n @change=\"change\"></el-input>\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {selectTextareaProps, selectTextareaEmits} from './select-textarea'\n import {computed, ref, watch} from \"vue\";\n import {useGlobalSize, useNamespace, insertCursorPosition} from \"@hzzt-plus/hooks\";\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import HzztTitle from \"@hzzt-plus/components/title/src/title.vue\";\n import {ElInput, ElSelectV2} from 'element-plus'\n\n defineOptions({\n name: 'HzztSelectTextarea',\n })\n\n const props = defineProps(selectTextareaProps)\n const emit = defineEmits(selectTextareaEmits)\n\n const inputVal = ref(props.modelValue);\n const selectValue = ref('');\n const inputRef = ref();\n\n const nsInput = useNamespace('select-textarea')\n const formSize = useFormSize()\n const formDisabled = useFormDisabled()\n\n const trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n )\n\n const trueDisabled = computed(() => props.disabled || formDisabled.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n ])\n\n const _inputProps = computed(() => ({\n disabled: trueDisabled.value,\n clearable: true,\n ...props.inputProps,\n type: 'textarea',\n }))\n\n watch(() => props.modelValue, (v) => {\n inputVal.value = v;\n })\n\n function input(val: string) {\n emit('update:modelValue', val);\n emit('input', val);\n }\n\n function change(val: string) {\n emit('change', val);\n }\n\n function selectChange(val: string) {\n if (!inputVal.value && inputVal.value !== 0) inputVal.value = '';\n let content = val;\n if (!props.replace) {\n const inputEl = inputRef.value.getElementsByTagName('textarea')[0];\n content = insertCursorPosition(inputEl, val);\n }\n input(content);\n change(content);\n emit('select', val);\n }\n\n\n</script>\n"],"names":["ref","useNamespace","useFormSize","useFormDisabled","computed","useGlobalSize","watch","insertCursorPosition","_openBlock","_createElementBlock"],"mappings":";;;;;;;;;;;;;;;;uCA0BgB,CAAA;AAAA,EACZ,IAAM,EAAA,oBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAKA,IAAM,MAAA,QAAA,GAAWA,OAAI,CAAA,KAAA,CAAM,UAAU,CAAA,CAAA;AACrC,IAAM,MAAA,WAAA,GAAcA,QAAI,EAAE,CAAA,CAAA;AAC1B,IAAA,MAAM,WAAWA,OAAI,EAAA,CAAA;AAErB,IAAM,MAAA,OAAA,GAAUC,mBAAa,iBAAiB,CAAA,CAAA;AAC9C,IAAA,MAAM,WAAWC,uBAAY,EAAA,CAAA;AAC7B,IAAA,MAAM,eAAeC,2BAAgB,EAAA,CAAA;AAErC,IAAA,MAAM,QAAW,GAAAC,YAAA,CAAA,MAAA,KAAA,CAAA,IAAA,IAAA,QAAA,CAAA,KAAA,IAAAC,qBAAA,EAAA,CAAA,KAAA,CAAA,CAAA;AAAA,IAAA,kBACH,GAAAD,YAAiB,CAAA,MAAA,kBAAuB,YAAE,CAAA,KAAA,CAAA,CAAA;AAAA,IACxD,MAAA,YAAA,GAAAA,YAAA,CAAA,MAAA;AAEA,MAAA;AAEA,MAAM,OAAA,CAAA,CAAA,CAAA,QAAA,CAAe;AAAe,KAAA,CAClC;AAAU,IACV,MAAA,WAAU,GAAAA,YAAc,CAAA,OAAA;AAAA,MACzB,QAAA,EAAA,YAAA,CAAA,KAAA;AAED,MAAM,SAAA,EAAA,IAAA;AAA8B,MAClC,mBAAuB;AAAA,MACvB,IAAW,EAAA,UAAA;AAAA,KAAA,CACX;AAAS,IAAAE,SACH,CAAA,MAAA,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACN,QAAA,CAAA,KAAA,GAAA,CAAA,CAAA;AAEF,KAAA,CAAA,CAAA;AACE,IAAA,SAAA,KAAiB,CAAA,GAAA,EAAA;AAAA,MAClB,IAAA,CAAA,mBAAA,EAAA,GAAA,CAAA,CAAA;AAED,MAAA,IAAA,CAAA,SAA4B,GAAA,CAAA,CAAA;AAC1B,KAAA;AACA,IAAA,gBAAc,GAAG,EAAA;AAAA,MACnB,IAAA,CAAA,QAAA,EAAA,GAAA,CAAA,CAAA;AAEA,KAAA;AACE,IAAA,qBAAkB,CAAA,GAAA,EAAA;AAAA,MACpB,IAAA,CAAA,QAAA,CAAA,KAAA,IAAA,QAAA,CAAA,KAAA,KAAA,CAAA;AAEA,QAAA,mBAAmC,CAAA;AACjC,MAAA,IAAI,OAAC,GAAS,GAAS,CAAA;AAAsB,MAAA,IAAA,CAAA,KAAA,CAAS,OAAQ,EAAA;AAC9D,QAAA,MAAc,OAAA,GAAA,QAAA,CAAA,KAAA,CAAA,oBAAA,CAAA,UAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AACd,QAAI,UAAgBC,4BAAA,CAAA,OAAA,EAAA,GAAA,CAAA,CAAA;AAClB,OAAA;AACA,MAAU,KAAA,CAAA,OAAA,CAAA,CAAA;AAAiC,MAC7C,MAAA,CAAA,OAAA,CAAA,CAAA;AACA,MAAA,IAAA,CAAA,QAAa,EAAA,GAAA,CAAA,CAAA;AACb,KAAA;AACA,IAAA,OAAK,aAAa,KAAA;AAAA,MACpB,OAAAC,aAAA,EAAA,EAAAC,sBAAA,CAAA,KAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -75,7 +75,7 @@ export declare const HzztTab: import("hzzt-plus/es/utils").SFCWithInstall<import
|
|
|
75
75
|
$data: {};
|
|
76
76
|
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
77
77
|
readonly size: {
|
|
78
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
78
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
79
79
|
readonly required: false;
|
|
80
80
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
81
81
|
__epPropKey: true;
|
|
@@ -102,7 +102,7 @@ export declare const HzztTab: import("hzzt-plus/es/utils").SFCWithInstall<import
|
|
|
102
102
|
$el: any;
|
|
103
103
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
104
104
|
readonly size: {
|
|
105
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
105
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
106
106
|
readonly required: false;
|
|
107
107
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
108
108
|
__epPropKey: true;
|
|
@@ -135,7 +135,7 @@ export declare const HzztTab: import("hzzt-plus/es/utils").SFCWithInstall<import
|
|
|
135
135
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
136
136
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
137
137
|
readonly size: {
|
|
138
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
138
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
139
139
|
readonly required: false;
|
|
140
140
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
141
141
|
__epPropKey: true;
|
|
@@ -152,7 +152,7 @@ export declare const HzztTab: import("hzzt-plus/es/utils").SFCWithInstall<import
|
|
|
152
152
|
__isSuspense?: undefined;
|
|
153
153
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
154
154
|
readonly size: {
|
|
155
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
155
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
156
156
|
readonly required: false;
|
|
157
157
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
158
158
|
__epPropKey: true;
|
|
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
$data: {};
|
|
77
77
|
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
78
78
|
readonly size: {
|
|
79
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
79
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
80
80
|
readonly required: false;
|
|
81
81
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
82
|
__epPropKey: true;
|
|
@@ -103,7 +103,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
103
103
|
$el: any;
|
|
104
104
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
105
105
|
readonly size: {
|
|
106
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
106
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
107
107
|
readonly required: false;
|
|
108
108
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
109
109
|
__epPropKey: true;
|
|
@@ -136,7 +136,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
136
136
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
137
137
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
138
138
|
readonly size: {
|
|
139
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
139
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
140
140
|
readonly required: false;
|
|
141
141
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
142
142
|
__epPropKey: true;
|
|
@@ -153,7 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
153
153
|
__isSuspense?: undefined;
|
|
154
154
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
155
155
|
readonly size: {
|
|
156
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) =>
|
|
156
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown>>;
|
|
157
157
|
readonly required: false;
|
|
158
158
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
159
159
|
__epPropKey: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../packages/components/title/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\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":["withInstall","Title"],"mappings":";;;;;;;;;AAEY,MAAC,SAAS,GAAGA,mBAAW,CAACC,kBAAK;;;;;;"}
|
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
require('../../index.js');
|
|
7
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
8
6
|
var title = require('./title.js');
|
|
7
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
9
8
|
|
|
10
9
|
const _hoisted_1 = {
|
|
11
10
|
key: 0,
|
|
@@ -42,7 +41,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
41
|
};
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
|
-
var
|
|
44
|
+
var HzztTitle = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "title.vue"]]);
|
|
46
45
|
|
|
47
|
-
exports["default"] =
|
|
46
|
+
exports["default"] = HzztTitle;
|
|
48
47
|
//# sourceMappingURL=title2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title2.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"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 '
|
|
1
|
+
{"version":3,"file":"title2.js","sources":["../../../../../../packages/components/title/src/title.vue"],"sourcesContent":["<template>\n <div v-if=\"showLabel\" class=\"hzzt-title flex align-items-center\">\n <span v-if=\"sideline\" class=\"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 './title'\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":["useSlots","computed"],"mappings":";;;;;;;;;;;;;;;;;uCAcc,CAAA;AAAA,EACZ,IAAM,EAAA,WAAA;AACR,CAAA,CAAA,CAAA;;;;;;AAIA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,SAAY,GAAAC,YAAA,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;;;;;;;;;;;;;;;;;;;"}
|