hys-ui 0.1.0 → 0.2.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/CHANGELOG.md +137 -1
- package/README.md +18 -6
- package/dist/components/HysAccordion/HysAccordion.vue.js +1 -1
- package/dist/components/HysAccordion/HysAccordion2.vue.js +181 -47
- package/dist/components/HysAlert/HysAlert.vue.js +14 -14
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +23 -20
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +7 -0
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +627 -0
- package/dist/components/HysAvatar/HysAvatar.vue.js +5 -35
- package/dist/components/HysAvatar/HysAvatar2.vue.js +221 -2
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +7 -0
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +252 -0
- package/dist/components/HysBadge/HysBadge.vue.js +2 -2
- package/dist/components/HysBadge/HysBadge2.vue.js +154 -26
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +5 -38
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +74 -2
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +29 -28
- package/dist/components/HysCalendar/HysCalendar.vue.js +5 -84
- package/dist/components/HysCalendar/HysCalendar2.vue.js +803 -2
- package/dist/components/HysCard/HysCard.vue.js +1 -1
- package/dist/components/HysCard/HysCard2.vue.js +177 -44
- package/dist/components/HysCascader/HysCascader.vue.js +5 -182
- package/dist/components/HysCascader/HysCascader2.vue.js +760 -2
- package/dist/components/HysCascader/HysCascaderColumn.vue.js +7 -0
- package/dist/components/HysCascader/HysCascaderColumn2.vue.js +232 -0
- package/dist/components/HysCheckbox/HysCheckbox.vue.js +5 -39
- package/dist/components/HysCheckbox/HysCheckbox2.vue.js +200 -2
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup.vue.js +7 -0
- package/dist/components/HysCheckboxGroup/HysCheckboxGroup2.vue.js +237 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +107 -106
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +52 -51
- package/dist/components/HysCommentEditor/HysCommentEditor.vue.js +17 -17
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +397 -390
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +268 -139
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +807 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +7 -0
- package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +357 -0
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +268 -158
- package/dist/components/HysDivider/HysDivider.vue.js +2 -2
- package/dist/components/HysDivider/HysDivider2.vue.js +33 -13
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +55 -54
- package/dist/components/HysFileManager/HysFileManager.vue.js +5 -63
- package/dist/components/HysFileManager/HysFileManager2.vue.js +86 -2
- package/dist/components/HysForm/HysForm.vue.js +3 -3
- package/dist/components/HysForm/HysForm2.vue.js +580 -92
- package/dist/components/HysFormItem/HysFormItem.vue.js +5 -69
- package/dist/components/HysFormItem/HysFormItem2.vue.js +521 -2
- package/dist/components/HysGantt/HysGantt.vue.js +5 -264
- package/dist/components/HysGantt/HysGantt2.vue.js +1399 -2
- package/dist/components/HysInput/HysInput.vue.js +2 -2
- package/dist/components/HysInput/HysInput2.vue.js +468 -120
- package/dist/components/HysMention/HysMention.vue.js +2 -2
- package/dist/components/HysMention/HysMention2.vue.js +89 -88
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +35 -35
- package/dist/components/HysNotificationCenter/HysNotificationCenter.vue.js +37 -36
- package/dist/components/HysNumberInput/HysNumberInput.vue.js +2 -2
- package/dist/components/HysNumberInput/HysNumberInput2.vue.js +561 -70
- package/dist/components/HysOrgTree/HysOrgTree.vue.js +41 -36
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +93 -91
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix.vue.js +5 -41
- package/dist/components/HysPermissionMatrix/HysPermissionMatrix2.vue.js +101 -2
- package/dist/components/HysRadio/HysRadio.vue.js +7 -0
- package/dist/components/HysRadio/HysRadio2.vue.js +180 -0
- package/dist/components/HysRadioGroup/HysRadioGroup.vue.js +5 -40
- package/dist/components/HysRadioGroup/HysRadioGroup2.vue.js +205 -2
- package/dist/components/HysRating/HysRating.vue.js +1 -1
- package/dist/components/HysRating/HysRating2.vue.js +288 -68
- package/dist/components/HysResizablePanel/HysResizablePanel.vue.js +46 -28
- package/dist/components/HysRichTextEditor/HysRichTextEditor.vue.js +2 -2
- package/dist/components/HysRichTextEditor/HysRichTextEditor2.vue.js +87 -67
- package/dist/components/HysSearch/HysSearch.vue.js +50 -38
- package/dist/components/HysSegmented/HysSegmented.vue.js +5 -58
- package/dist/components/HysSegmented/HysSegmented2.vue.js +273 -2
- package/dist/components/HysSelect/HysSelect.vue.js +3 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +859 -164
- package/dist/components/HysSkeleton/HysSkeleton.vue.js +2 -2
- package/dist/components/HysSkeleton/HysSkeleton2.vue.js +126 -29
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +532 -59
- package/dist/components/HysSlider/SliderTooltip.vue.js +7 -0
- package/dist/components/HysSlider/SliderTooltip2.vue.js +156 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +48 -42
- package/dist/components/HysSteps/HysSteps.vue.js +2 -2
- package/dist/components/HysSteps/HysSteps2.vue.js +111 -36
- package/dist/components/HysSwitch/HysSwitch.vue.js +2 -2
- package/dist/components/HysSwitch/HysSwitch2.vue.js +235 -42
- package/dist/components/HysTable/HysTable.vue.js +1 -1
- package/dist/components/HysTable/HysTable2.vue.js +1471 -82
- package/dist/components/HysTable/HysTableFilterOptions.vue.js +7 -0
- package/dist/components/HysTable/HysTableFilterOptions2.vue.js +133 -0
- package/dist/components/HysTabs/HysTabs.vue.js +2 -2
- package/dist/components/HysTabs/HysTabs2.vue.js +262 -66
- package/dist/components/HysTagInput/HysTagInput.vue.js +43 -42
- package/dist/components/HysTextarea/HysTextarea.vue.js +137 -66
- package/dist/components/HysToast/HysToast.vue.js +2 -2
- package/dist/components/HysToast/HysToast2.vue.js +121 -38
- package/dist/components/HysTour/HysTour.vue.js +47 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +5 -207
- package/dist/components/HysTransfer/HysTransfer2.vue.js +416 -2
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +7 -0
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +454 -0
- package/dist/components/HysTree/HysTree.vue.js +2 -3
- package/dist/components/HysTree/HysTree2.vue.js +641 -301
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +5 -129
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +558 -2
- package/dist/components/HysTreeSelect/HysTreeSelectPanel.vue.js +7 -0
- package/dist/components/HysTreeSelect/HysTreeSelectPanel2.vue.js +323 -0
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +97 -78
- package/dist/composables/autocomplete.js +50 -0
- package/dist/composables/avatar.js +57 -0
- package/dist/composables/calendar.js +96 -0
- package/dist/composables/cascader.js +79 -0
- package/dist/composables/choice.js +38 -0
- package/dist/composables/choiceModel.js +67 -0
- package/dist/composables/datePicker.js +227 -0
- package/dist/composables/formContext.js +94 -3
- package/dist/composables/formLayout.js +57 -0
- package/dist/composables/formValidation.js +240 -0
- package/dist/composables/ganttConflicts.js +143 -0
- package/dist/composables/numberInput.js +91 -0
- package/dist/composables/rating.js +16 -0
- package/dist/composables/selectOptions.js +54 -0
- package/dist/composables/table.js +150 -0
- package/dist/composables/textInput.js +34 -0
- package/dist/composables/toastEscape.js +16 -0
- package/dist/composables/transfer.js +63 -0
- package/dist/composables/tree.js +118 -0
- package/dist/composables/treeSelect.js +71 -0
- package/dist/composables/useCascader.js +438 -0
- package/dist/composables/useDatePicker.js +425 -0
- package/dist/composables/useDialog.js +16 -16
- package/dist/composables/useFloating.js +98 -52
- package/dist/composables/useGanttDependencies.js +306 -0
- package/dist/composables/useGanttHistory.js +157 -0
- package/dist/composables/useGanttLabelResize.js +100 -0
- package/dist/composables/useHysToast.js +148 -0
- package/dist/composables/useTable.js +474 -0
- package/dist/composables/useTextareaSize.js +72 -0
- package/dist/composables/useTransfer.js +257 -0
- package/dist/composables/useTree.js +439 -0
- package/dist/composables/useTreeSelect.js +361 -0
- package/dist/config.js +18 -15
- package/dist/index.js +149 -136
- package/dist/style.css +1 -1
- package/dist/types/components/HysAccordion/HysAccordion.vue.d.ts +61 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +201 -0
- package/dist/types/components/HysAvatar/HysAvatar.vue.d.ts +28 -15
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +99 -0
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +41 -4
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +38 -10
- package/dist/types/components/HysButton/HysButton.vue.d.ts +0 -1
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +119 -29
- package/dist/types/components/HysCard/HysCard.vue.d.ts +57 -5
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +129 -41
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +55 -0
- package/dist/types/components/HysCheckbox/HysCheckbox.vue.d.ts +55 -27
- package/dist/types/components/HysCheckboxGroup/HysCheckboxGroup.vue.d.ts +73 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +1 -1
- package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +90 -0
- package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +93 -0
- package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +66 -14
- package/dist/types/components/HysDivider/HysDivider.vue.d.ts +8 -3
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -0
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +8 -4
- package/dist/types/components/HysForm/HysForm.vue.d.ts +110 -18
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +108 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +88 -4
- package/dist/types/components/HysInput/HysInput.vue.d.ts +52 -29
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -2
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +93 -33
- package/dist/types/components/HysOrgTree/HysOrgTree.vue.d.ts +4 -1
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +1 -1
- package/dist/types/components/HysPermissionMatrix/HysPermissionMatrix.vue.d.ts +8 -1
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +3 -3
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysRadio/HysRadio.vue.d.ts +56 -0
- package/dist/types/components/HysRadioGroup/HysRadioGroup.vue.d.ts +62 -17
- package/dist/types/components/HysRating/HysRating.vue.d.ts +85 -5
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +6 -0
- package/dist/types/components/HysRichTextEditor/HysRichTextEditor.vue.d.ts +4 -4
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +2 -2
- package/dist/types/components/HysSegmented/HysSegmented.vue.d.ts +64 -32
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +120 -14
- package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +30 -2
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +66 -9
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +22 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +6 -0
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +65 -9
- package/dist/types/components/HysSwitch/HysSwitch.vue.d.ts +76 -17
- package/dist/types/components/HysTable/HysTable.vue.d.ts +206 -32
- package/dist/types/components/HysTable/HysTableFilterOptions.vue.d.ts +18 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +76 -23
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +5 -5
- package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +44 -27
- package/dist/types/components/HysToast/HysToast.vue.d.ts +55 -7
- package/dist/types/components/HysTour/HysTour.vue.d.ts +5 -3
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +55 -30
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +105 -0
- package/dist/types/components/HysTree/HysTree.vue.d.ts +140 -73
- package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +102 -23
- package/dist/types/components/HysTreeSelect/HysTreeSelectPanel.vue.d.ts +56 -0
- package/dist/types/composables/autocomplete.d.ts +106 -0
- package/dist/types/composables/avatar.d.ts +70 -0
- package/dist/types/composables/calendar.d.ts +66 -0
- package/dist/types/composables/cascader.d.ts +192 -0
- package/dist/types/composables/choice.d.ts +110 -0
- package/dist/types/composables/choiceModel.d.ts +11 -0
- package/dist/types/composables/datePicker.d.ts +247 -0
- package/dist/types/composables/formContext.d.ts +138 -8
- package/dist/types/composables/formLayout.d.ts +11 -0
- package/dist/types/composables/formValidation.d.ts +13 -0
- package/dist/types/composables/gantt.d.ts +68 -0
- package/dist/types/composables/ganttConflicts.d.ts +30 -0
- package/dist/types/composables/numberInput.d.ts +45 -0
- package/dist/types/composables/rating.d.ts +18 -0
- package/dist/types/composables/segmented.d.ts +15 -0
- package/dist/types/composables/selectOptions.d.ts +44 -0
- package/dist/types/composables/slider.d.ts +21 -0
- package/dist/types/composables/table.d.ts +309 -0
- package/dist/types/composables/textInput.d.ts +76 -0
- package/dist/types/composables/toastEscape.d.ts +1 -0
- package/dist/types/composables/transfer.d.ts +180 -0
- package/dist/types/composables/tree.d.ts +237 -0
- package/dist/types/composables/treeSelect.d.ts +167 -0
- package/dist/types/composables/useCascader.d.ts +162 -0
- package/dist/types/composables/useDatePicker.d.ts +79 -0
- package/dist/types/composables/useFloating.d.ts +8 -5
- package/dist/types/composables/useGanttDependencies.d.ts +83 -0
- package/dist/types/composables/useGanttHistory.d.ts +42 -0
- package/dist/types/composables/useGanttLabelResize.d.ts +23 -0
- package/dist/types/composables/useHysToast.d.ts +50 -0
- package/dist/types/composables/useTable.d.ts +60 -0
- package/dist/types/composables/useTextareaSize.d.ts +3 -0
- package/dist/types/composables/useTransfer.d.ts +58 -0
- package/dist/types/composables/useTree.d.ts +77 -0
- package/dist/types/composables/useTreeSelect.d.ts +117 -0
- package/dist/types/index.d.ts +38 -7
- package/package.json +47 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysInput2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f4ad545f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,158 +1,506 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { X as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as Fe, inject as Ce, useAttrs as Ne, ref as j, useId as ee, computed as c, watch as T, onMounted as qe, onActivated as He, onDeactivated as We, onBeforeUnmount as Ue, openBlock as s, createElementBlock as w, mergeProps as Le, unref as n, toDisplayString as W, createCommentVNode as g, createElementVNode as te, normalizeClass as U, renderSlot as C, createBlock as A, resolveDynamicComponent as G, withKeys as Xe, isRef as Je, withModifiers as Be, createTextVNode as Ie, nextTick as ae } from "vue";
|
|
2
|
+
import { X as Qe, EyeOff as Ye, Eye as Ze } from "lucide-vue-next";
|
|
3
|
+
import { useHysControlState as _e, fieldKey as et, formKey as tt } from "../../composables/formContext.js";
|
|
4
|
+
import { useHysRootAttrs as at } from "../../config.js";
|
|
5
|
+
import { textLengthLimit as Ee, textCount as Se, textLimit as ot } from "../../composables/textInput.js";
|
|
6
|
+
import { useTextareaSize as nt } from "../../composables/useTextareaSize.js";
|
|
7
|
+
const ut = ["for"], it = {
|
|
6
8
|
key: 0,
|
|
7
9
|
class: "hys-ui-input-addon"
|
|
8
|
-
},
|
|
10
|
+
}, lt = {
|
|
9
11
|
key: 0,
|
|
12
|
+
class: "hys-ui-input-affix hys-ui-input-prefix"
|
|
13
|
+
}, st = { class: "hys-ui-input-trailing" }, rt = ["aria-label", "aria-pressed", "disabled"], dt = {
|
|
14
|
+
key: 2,
|
|
10
15
|
class: "hys-ui-input-affix"
|
|
11
|
-
},
|
|
12
|
-
key: 3,
|
|
13
|
-
class: "hys-ui-input-affix"
|
|
14
|
-
}, _ = {
|
|
15
|
-
key: 4,
|
|
16
|
-
class: "hys-ui-input-count"
|
|
17
|
-
}, ee = {
|
|
16
|
+
}, ct = ["id"], vt = {
|
|
18
17
|
key: 1,
|
|
19
18
|
class: "hys-ui-input-addon"
|
|
20
|
-
},
|
|
19
|
+
}, pt = ["name", "value", "disabled"], ft = ["id"], ht = ["id"], Pt = /* @__PURE__ */ Fe({
|
|
21
20
|
inheritAttrs: !1,
|
|
22
21
|
__name: "HysInput",
|
|
23
22
|
props: {
|
|
24
|
-
modelValue: {
|
|
23
|
+
modelValue: {},
|
|
24
|
+
defaultValue: {},
|
|
25
25
|
placeholder: {},
|
|
26
26
|
type: { default: "text" },
|
|
27
|
+
label: {},
|
|
27
28
|
disabled: { type: Boolean },
|
|
28
29
|
readonly: { type: Boolean },
|
|
29
30
|
ariaLabel: {},
|
|
30
31
|
error: {},
|
|
32
|
+
status: {},
|
|
31
33
|
clearable: { type: Boolean },
|
|
34
|
+
clearIcon: {},
|
|
35
|
+
prefixIcon: {},
|
|
36
|
+
suffixIcon: {},
|
|
32
37
|
showPassword: { type: Boolean },
|
|
33
|
-
|
|
38
|
+
showPasswordOn: { default: "click" },
|
|
39
|
+
passwordVisible: { type: Boolean, default: void 0 },
|
|
40
|
+
defaultPasswordVisible: { type: Boolean },
|
|
41
|
+
showCount: { type: [Boolean, Object] },
|
|
42
|
+
showWordLimit: { type: Boolean },
|
|
43
|
+
countPosition: { default: "inside" },
|
|
44
|
+
wordLimitPosition: {},
|
|
45
|
+
countGraphemes: { type: [Boolean, Function] },
|
|
34
46
|
maxlength: {},
|
|
35
47
|
minlength: {},
|
|
48
|
+
formatter: {},
|
|
49
|
+
parser: {},
|
|
50
|
+
allowInput: {},
|
|
36
51
|
autocomplete: {},
|
|
37
52
|
name: {},
|
|
38
|
-
size: {
|
|
53
|
+
size: {},
|
|
54
|
+
rows: { default: 2 },
|
|
55
|
+
autosize: { type: [Boolean, Object] },
|
|
56
|
+
resize: { default: "vertical" },
|
|
57
|
+
inputProps: {},
|
|
58
|
+
autofocus: { type: Boolean },
|
|
59
|
+
selectOnFocus: { type: Boolean },
|
|
60
|
+
bordered: { type: Boolean, default: !0 },
|
|
61
|
+
round: { type: Boolean }
|
|
39
62
|
},
|
|
40
|
-
emits: ["update:modelValue", "input", "change", "clear", "focus", "blur", "pressEnter"],
|
|
41
|
-
setup(
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
63
|
+
emits: ["update:modelValue", "input", "change", "clear", "focus", "blur", "pressEnter", "compositionstart", "compositionupdate", "compositionend", "update:passwordVisible", "passwordVisibleChange"],
|
|
64
|
+
setup(o, { expose: ze, emit: $e }) {
|
|
65
|
+
const a = o, p = $e, { disabled: r, size: oe } = _e(a), v = Ce(et, void 0), X = Ce(tt, void 0), Me = at(), I = Ne(), i = j(), ne = ee(), Oe = ee(), J = ee(), ue = j(String(a.defaultValue ?? "")), l = c(
|
|
66
|
+
() => a.modelValue === void 0 ? ue.value : String(a.modelValue ?? "")
|
|
67
|
+
), f = j(!1), K = j(""), E = j(a.defaultPasswordVisible), L = c(
|
|
68
|
+
() => a.passwordVisible ?? E.value ?? !1
|
|
69
|
+
), B = c(() => a.type === "textarea"), m = c(() => Ee(a.maxlength)), D = c(() => Ee(a.minlength)), S = c(() => Se(l.value, a.countGraphemes)), Q = c(
|
|
70
|
+
() => m.value !== void 0 && S.value > m.value
|
|
71
|
+
), ie = c(
|
|
72
|
+
() => {
|
|
73
|
+
var e;
|
|
74
|
+
return !!(a.error || (e = v == null ? void 0 : v.invalid) != null && e.value || v != null && v.error.value || a.status === "error" || Q.value);
|
|
75
|
+
}
|
|
76
|
+
), le = c(
|
|
77
|
+
() => {
|
|
78
|
+
var e;
|
|
79
|
+
return ie.value ? "error" : a.status ?? ((e = v == null ? void 0 : v.status) == null ? void 0 : e.value);
|
|
80
|
+
}
|
|
81
|
+
), se = c(
|
|
82
|
+
() => {
|
|
83
|
+
var e;
|
|
84
|
+
return I.id || ((e = a.inputProps) == null ? void 0 : e.id) || (v == null ? void 0 : v.id.value) || (a.label ? Oe : void 0);
|
|
85
|
+
}
|
|
86
|
+
), Y = c(() => !!(a.showCount || a.showWordLimit)), re = c(
|
|
87
|
+
() => (a.wordLimitPosition ?? a.countPosition) === "outside"
|
|
88
|
+
), F = c(
|
|
89
|
+
() => !!(a.countGraphemes || a.formatter || a.parser)
|
|
90
|
+
), de = c(
|
|
91
|
+
() => !!(a.formatter || a.parser) && !!a.name
|
|
92
|
+
), ce = c(() => {
|
|
93
|
+
try {
|
|
94
|
+
if (typeof a.showCount == "object")
|
|
95
|
+
return a.showCount.formatter({
|
|
96
|
+
value: l.value,
|
|
97
|
+
count: S.value,
|
|
98
|
+
maxLength: m.value
|
|
99
|
+
});
|
|
100
|
+
} catch {
|
|
101
|
+
}
|
|
102
|
+
return String(S.value) + (m.value === void 0 ? "" : " / " + m.value);
|
|
103
|
+
});
|
|
104
|
+
let k = !0, N = 0, z, ve = "", x, $, M = l.value;
|
|
105
|
+
function Z(e, t = !1, u = e) {
|
|
106
|
+
try {
|
|
107
|
+
return a.formatter ? String(a.formatter(e, { userTyping: t, input: u })) : e;
|
|
108
|
+
} catch {
|
|
109
|
+
return e;
|
|
110
|
+
}
|
|
54
111
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
112
|
+
function _(e) {
|
|
113
|
+
const t = a.parser ? a.parser(e) : e;
|
|
114
|
+
if (typeof t != "string" && (typeof t != "number" || !Number.isFinite(t)))
|
|
115
|
+
throw Error("Invalid input parser result");
|
|
116
|
+
return String(t);
|
|
117
|
+
}
|
|
118
|
+
function q(e) {
|
|
119
|
+
K.value = e, ve = e, i.value && i.value.value !== e && (i.value.value = e);
|
|
120
|
+
}
|
|
121
|
+
function P() {
|
|
122
|
+
q(Z(l.value));
|
|
123
|
+
}
|
|
124
|
+
function Re() {
|
|
125
|
+
return Object.fromEntries(
|
|
126
|
+
Object.entries({ ...a.inputProps, ...I }).filter(
|
|
127
|
+
([e]) => ![
|
|
128
|
+
"class",
|
|
129
|
+
"style",
|
|
130
|
+
"type",
|
|
131
|
+
"value",
|
|
132
|
+
"defaultValue",
|
|
133
|
+
"modelModifiers"
|
|
134
|
+
].includes(e)
|
|
135
|
+
)
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
function O() {
|
|
139
|
+
const e = i.value;
|
|
140
|
+
if (!e) return;
|
|
141
|
+
const t = Se(l.value, a.countGraphemes);
|
|
142
|
+
e.setCustomValidity(
|
|
143
|
+
F.value && l.value && D.value !== void 0 && t < D.value ? "请至少输入 " + D.value + " 个字符" : F.value && m.value !== void 0 && t > m.value ? "请最多输入 " + m.value + " 个字符" : ""
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
function pe(e) {
|
|
147
|
+
const t = ++N;
|
|
148
|
+
z = e, a.modelValue === void 0 && (ue.value = e), p("update:modelValue", e), p("input", e), ae(() => {
|
|
149
|
+
t !== N || !k || (l.value !== e && P(), z = void 0, O());
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function je(e, t, u) {
|
|
153
|
+
if (!a.parser)
|
|
154
|
+
return Math.max(
|
|
155
|
+
0,
|
|
156
|
+
Math.min(
|
|
157
|
+
t.length,
|
|
158
|
+
t.length - (e.length - u)
|
|
159
|
+
)
|
|
160
|
+
);
|
|
161
|
+
try {
|
|
162
|
+
const h = _(e.slice(0, u)).length;
|
|
163
|
+
if (!h)
|
|
164
|
+
return Math.max(0, t.length - (e.length - u));
|
|
165
|
+
let d = 0, y = t.length;
|
|
166
|
+
for (; d < y; ) {
|
|
167
|
+
const V = Math.floor((d + y) / 2);
|
|
168
|
+
_(t.slice(0, V)).length >= h ? y = V : d = V + 1;
|
|
169
|
+
}
|
|
170
|
+
return d;
|
|
171
|
+
} catch {
|
|
172
|
+
return Math.min(u, t.length);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
function fe(e) {
|
|
176
|
+
const t = e.target;
|
|
177
|
+
if (!k || r.value || a.readonly) {
|
|
178
|
+
P();
|
|
179
|
+
return;
|
|
180
|
+
}
|
|
181
|
+
if (f.value) {
|
|
182
|
+
K.value = t.value;
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (x !== void 0) {
|
|
186
|
+
const d = x === t.value;
|
|
187
|
+
if (x = void 0, d) return;
|
|
188
|
+
}
|
|
189
|
+
const u = t.value, h = t.selectionStart;
|
|
190
|
+
try {
|
|
191
|
+
const d = ot(
|
|
192
|
+
_(u),
|
|
193
|
+
m.value,
|
|
194
|
+
a.countGraphemes
|
|
195
|
+
);
|
|
196
|
+
if (a.allowInput && !a.allowInput(d))
|
|
197
|
+
throw Error("Rejected input");
|
|
198
|
+
const y = Z(d, !0, u);
|
|
199
|
+
if (q(y), h !== null && y !== u)
|
|
200
|
+
try {
|
|
201
|
+
const V = je(u, y, h);
|
|
202
|
+
t.setSelectionRange(V, V);
|
|
203
|
+
} catch {
|
|
204
|
+
}
|
|
205
|
+
pe(d);
|
|
206
|
+
} catch {
|
|
207
|
+
const d = ve;
|
|
208
|
+
if (q(d), h !== null)
|
|
209
|
+
try {
|
|
210
|
+
const y = Math.max(
|
|
211
|
+
0,
|
|
212
|
+
h - (u.length - d.length)
|
|
213
|
+
);
|
|
214
|
+
t.setSelectionRange(y, y);
|
|
215
|
+
} catch {
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
function he() {
|
|
59
220
|
var e;
|
|
60
|
-
|
|
61
|
-
}
|
|
221
|
+
!k || r.value || a.readonly || (f.value = !1, x = void 0, q(Z("")), pe(""), M = "", p("change", ""), p("clear"), (e = i.value) == null || e.focus());
|
|
222
|
+
}
|
|
223
|
+
async function ye() {
|
|
224
|
+
await ae(), !(!k || r.value || a.readonly || f.value) && (P(), O(), M !== l.value && (M = l.value, p("change", l.value)));
|
|
225
|
+
}
|
|
226
|
+
function Te(e) {
|
|
227
|
+
var t;
|
|
228
|
+
f.value && (f.value = !1, p("compositionend", e), fe(e), x = (t = i.value) == null ? void 0 : t.value);
|
|
229
|
+
}
|
|
230
|
+
function H(e) {
|
|
231
|
+
r.value || !k || (a.passwordVisible === void 0 && (E.value = e), p("update:passwordVisible", e), p("passwordVisibleChange", e));
|
|
232
|
+
}
|
|
233
|
+
async function Ae() {
|
|
234
|
+
if (r.value || a.showPasswordOn === "mousedown") return;
|
|
235
|
+
const e = i.value, t = e == null ? void 0 : e.selectionStart, u = e == null ? void 0 : e.selectionEnd;
|
|
236
|
+
if (H(!L.value), await ae(), !(!k || r.value) && (e == null || e.focus({ preventScroll: !0 }), t != null && u != null))
|
|
237
|
+
try {
|
|
238
|
+
e == null || e.setSelectionRange(t, u);
|
|
239
|
+
} catch {
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
function R() {
|
|
243
|
+
$ == null || $(), $ = void 0;
|
|
244
|
+
}
|
|
245
|
+
function Ge(e) {
|
|
246
|
+
if (e.button !== 0 || a.showPasswordOn !== "mousedown" || r.value)
|
|
247
|
+
return;
|
|
248
|
+
e.preventDefault(), R(), H(!0);
|
|
249
|
+
const t = () => {
|
|
250
|
+
H(!1), R();
|
|
251
|
+
};
|
|
252
|
+
document.addEventListener("pointerup", t, !0), document.addEventListener("pointercancel", t, !0), window.addEventListener("blur", t), $ = () => {
|
|
253
|
+
document.removeEventListener("pointerup", t, !0), document.removeEventListener("pointercancel", t, !0), window.removeEventListener("blur", t);
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
function Ke(e) {
|
|
257
|
+
a.showPasswordOn === "mousedown" && [" ", "Enter"].includes(e.key) && (e.preventDefault(), H(!L.value));
|
|
258
|
+
}
|
|
259
|
+
const De = nt(i, a, oe, K);
|
|
260
|
+
function me() {
|
|
261
|
+
R(), k = !1, N++, z = void 0, f.value = !1, x = void 0, E.value = !1, P();
|
|
262
|
+
}
|
|
263
|
+
return T(
|
|
264
|
+
l,
|
|
265
|
+
() => {
|
|
266
|
+
z !== l.value && (f.value = !1, P(), M = l.value), O();
|
|
267
|
+
},
|
|
268
|
+
{ flush: "sync" }
|
|
269
|
+
), T(
|
|
270
|
+
() => [a.formatter, a.parser, a.type],
|
|
271
|
+
() => {
|
|
272
|
+
f.value = !1, P(), R(), E.value = !1;
|
|
273
|
+
}
|
|
274
|
+
), T(
|
|
275
|
+
() => [r.value, a.readonly],
|
|
276
|
+
() => {
|
|
277
|
+
(r.value || a.readonly) && (R(), E.value = !1, f.value = !1, P());
|
|
278
|
+
}
|
|
279
|
+
), T(
|
|
280
|
+
() => [a.countGraphemes, a.maxlength, a.minlength],
|
|
281
|
+
O
|
|
282
|
+
), T(
|
|
283
|
+
() => X == null ? void 0 : X.resetting.value,
|
|
284
|
+
(e) => {
|
|
285
|
+
e && (N++, z = void 0, f.value = !1, x = void 0, P(), M = l.value);
|
|
286
|
+
},
|
|
287
|
+
{ flush: "sync" }
|
|
288
|
+
), qe(() => {
|
|
62
289
|
var e;
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
290
|
+
P(), O(), a.autofocus && !r.value && ((e = i.value) == null || e.focus());
|
|
291
|
+
}), He(() => {
|
|
292
|
+
k = !0;
|
|
293
|
+
}), We(me), Ue(me), ze({
|
|
294
|
+
input: i,
|
|
295
|
+
textarea: c(
|
|
296
|
+
() => B.value ? i.value : void 0
|
|
297
|
+
),
|
|
298
|
+
isComposing: f,
|
|
299
|
+
focus: (e) => {
|
|
300
|
+
var t;
|
|
301
|
+
r.value || (t = i.value) == null || t.focus(e);
|
|
302
|
+
},
|
|
303
|
+
blur: () => {
|
|
304
|
+
var e;
|
|
305
|
+
return (e = i.value) == null ? void 0 : e.blur();
|
|
306
|
+
},
|
|
307
|
+
select: () => {
|
|
308
|
+
var e;
|
|
309
|
+
return (e = i.value) == null ? void 0 : e.select();
|
|
310
|
+
},
|
|
311
|
+
clear: he,
|
|
312
|
+
resize: De,
|
|
313
|
+
setSelectionRange: (e, t, u) => {
|
|
314
|
+
var h;
|
|
315
|
+
try {
|
|
316
|
+
(h = i.value) == null || h.setSelectionRange(e, t, u);
|
|
317
|
+
} catch {
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
scrollTo: (e) => {
|
|
321
|
+
var t;
|
|
322
|
+
return (t = i.value) == null ? void 0 : t.scrollTo(e);
|
|
323
|
+
}
|
|
324
|
+
}), (e, t) => {
|
|
325
|
+
var u, h, d, y, V, we, be, ge, xe, Pe, Ve;
|
|
326
|
+
return s(), w("div", Le(n(Me), {
|
|
327
|
+
class: ["hys-ui-input-wrap", [
|
|
328
|
+
n(I).class,
|
|
329
|
+
"hys-ui-input-" + n(oe),
|
|
330
|
+
{ "hys-ui-input-disabled": n(r), "hys-ui-input-textarea": B.value }
|
|
331
|
+
]],
|
|
332
|
+
style: n(I).style
|
|
69
333
|
}), [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
334
|
+
o.label ? (s(), w("label", {
|
|
335
|
+
key: 0,
|
|
336
|
+
class: "hys-ui-input-label",
|
|
337
|
+
for: se.value
|
|
338
|
+
}, W(o.label), 9, ut)) : g("", !0),
|
|
339
|
+
te("div", {
|
|
340
|
+
class: U(["hys-ui-input-group", {
|
|
341
|
+
"hys-ui-input-has-prepend": e.$slots.prepend,
|
|
342
|
+
"hys-ui-input-has-append": e.$slots.append
|
|
343
|
+
}])
|
|
344
|
+
}, [
|
|
345
|
+
e.$slots.prepend ? (s(), w("div", it, [
|
|
346
|
+
C(e.$slots, "prepend", {}, void 0, !0)
|
|
347
|
+
])) : g("", !0),
|
|
348
|
+
te("div", {
|
|
349
|
+
class: U(["hys-ui-input-shell", [
|
|
350
|
+
le.value ? "hys-ui-input-shell-" + le.value : "",
|
|
351
|
+
{ "hys-ui-input-borderless": !o.bordered, "hys-ui-input-round": o.round }
|
|
352
|
+
]])
|
|
76
353
|
}, [
|
|
77
|
-
|
|
78
|
-
f(e.$slots, "prefix", {}, void 0, !0)
|
|
79
|
-
])) : r("", !0),
|
|
80
|
-
b("input", V({
|
|
354
|
+
(s(), A(G(B.value ? "textarea" : "input"), Le({
|
|
81
355
|
ref_key: "input",
|
|
82
|
-
ref:
|
|
83
|
-
},
|
|
84
|
-
id:
|
|
85
|
-
class:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
value:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
356
|
+
ref: i
|
|
357
|
+
}, Re(), {
|
|
358
|
+
id: se.value,
|
|
359
|
+
class: [
|
|
360
|
+
(u = o.inputProps) == null ? void 0 : u.class,
|
|
361
|
+
B.value ? "hys-ui-input hys-ui-ex-control" : "hys-ui-input"
|
|
362
|
+
],
|
|
363
|
+
"data-hys-ui-field-managed": "",
|
|
364
|
+
"aria-label": o.ariaLabel || n(I)["aria-label"] || ((h = n(v)) == null ? void 0 : h.label.value) || (o.label || (d = o.inputProps) == null ? void 0 : d["aria-label"]),
|
|
365
|
+
"aria-invalid": ie.value || void 0,
|
|
366
|
+
"aria-required": ((y = n(v)) == null ? void 0 : y.required.value) || ((V = o.inputProps) == null ? void 0 : V["aria-required"]),
|
|
367
|
+
"aria-describedby": [
|
|
368
|
+
o.error ? n(ne) : (we = n(v)) == null ? void 0 : we.describedBy.value,
|
|
369
|
+
n(I)["aria-describedby"] || ((be = o.inputProps) == null ? void 0 : be["aria-describedby"]),
|
|
370
|
+
Y.value ? n(J) : void 0
|
|
371
|
+
].filter(Boolean).join(" ") || void 0,
|
|
372
|
+
value: K.value,
|
|
373
|
+
placeholder: o.placeholder ?? ((ge = o.inputProps) == null ? void 0 : ge.placeholder),
|
|
374
|
+
type: B.value ? void 0 : o.showPassword && L.value && o.type === "password" ? "text" : o.type,
|
|
375
|
+
disabled: n(r),
|
|
376
|
+
readonly: o.readonly,
|
|
377
|
+
maxlength: F.value ? void 0 : m.value,
|
|
378
|
+
minlength: F.value ? void 0 : D.value,
|
|
379
|
+
autocomplete: o.autocomplete ?? ((xe = o.inputProps) == null ? void 0 : xe.autocomplete),
|
|
380
|
+
name: de.value ? void 0 : o.name ?? ((Pe = o.inputProps) == null ? void 0 : Pe.name),
|
|
381
|
+
rows: B.value ? o.rows : void 0,
|
|
382
|
+
style: [
|
|
383
|
+
(Ve = o.inputProps) == null ? void 0 : Ve.style,
|
|
384
|
+
B.value ? { resize: o.autosize ? "none" : a.resize } : void 0
|
|
385
|
+
],
|
|
386
|
+
onInput: fe,
|
|
387
|
+
onCompositionstart: t[0] || (t[0] = (b) => {
|
|
388
|
+
f.value = !0, Je(x) ? x.value = void 0 : x = void 0, p("compositionstart", b);
|
|
103
389
|
}),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
390
|
+
onCompositionupdate: t[1] || (t[1] = (b) => p("compositionupdate", b)),
|
|
391
|
+
onCompositionend: Te,
|
|
392
|
+
onChange: ye,
|
|
393
|
+
onFocus: t[2] || (t[2] = (b) => {
|
|
394
|
+
var ke;
|
|
395
|
+
o.selectOnFocus && ((ke = i.value) == null || ke.select()), p("focus", b);
|
|
396
|
+
}),
|
|
397
|
+
onBlur: t[3] || (t[3] = (b) => {
|
|
398
|
+
ye(), p("blur", b);
|
|
399
|
+
}),
|
|
400
|
+
onKeydown: t[4] || (t[4] = Xe((b) => !b.isComposing && !f.value && b.keyCode !== 229 && p("pressEnter", b), ["enter"]))
|
|
401
|
+
}), null, 16, ["id", "class", "aria-label", "aria-invalid", "aria-required", "aria-describedby", "value", "placeholder", "type", "disabled", "readonly", "maxlength", "minlength", "autocomplete", "name", "rows", "style"])),
|
|
402
|
+
e.$slots.prefix || o.prefixIcon ? (s(), w("span", lt, [
|
|
403
|
+
C(e.$slots, "prefix", {}, () => [
|
|
404
|
+
(s(), A(G(o.prefixIcon), {
|
|
405
|
+
size: 16,
|
|
406
|
+
"aria-hidden": "true"
|
|
407
|
+
}))
|
|
408
|
+
], !0)
|
|
409
|
+
])) : g("", !0),
|
|
410
|
+
te("div", st, [
|
|
411
|
+
o.clearable && l.value && !n(r) && !o.readonly ? (s(), w("button", {
|
|
412
|
+
key: 0,
|
|
413
|
+
type: "button",
|
|
414
|
+
class: "hys-ui-input-action",
|
|
415
|
+
"aria-label": "清空输入",
|
|
416
|
+
onMousedown: t[5] || (t[5] = Be(() => {
|
|
417
|
+
}, ["prevent"])),
|
|
418
|
+
onClick: he
|
|
419
|
+
}, [
|
|
420
|
+
C(e.$slots, "clear-icon", {}, () => [
|
|
421
|
+
(s(), A(G(o.clearIcon || n(Qe)), {
|
|
422
|
+
size: 14,
|
|
423
|
+
"aria-hidden": "true"
|
|
424
|
+
}))
|
|
425
|
+
], !0)
|
|
426
|
+
], 32)) : g("", !0),
|
|
427
|
+
o.showPassword && o.type === "password" ? (s(), w("button", {
|
|
428
|
+
key: 1,
|
|
429
|
+
type: "button",
|
|
430
|
+
class: "hys-ui-input-action",
|
|
431
|
+
"aria-label": L.value ? "隐藏密码" : "显示密码",
|
|
432
|
+
"aria-pressed": L.value,
|
|
433
|
+
disabled: n(r),
|
|
434
|
+
onMousedown: t[6] || (t[6] = Be(() => {
|
|
435
|
+
}, ["prevent"])),
|
|
436
|
+
onPointerdown: Ge,
|
|
437
|
+
onKeydown: Ke,
|
|
438
|
+
onClick: Ae
|
|
439
|
+
}, [
|
|
440
|
+
C(e.$slots, "password-icon", { visible: L.value }, () => [
|
|
441
|
+
(s(), A(G(L.value ? n(Ye) : n(Ze)), {
|
|
442
|
+
size: 16,
|
|
443
|
+
"aria-hidden": "true"
|
|
444
|
+
}))
|
|
445
|
+
], !0)
|
|
446
|
+
], 40, rt)) : g("", !0),
|
|
447
|
+
e.$slots.suffix || o.suffixIcon ? (s(), w("span", dt, [
|
|
448
|
+
C(e.$slots, "suffix", {}, () => [
|
|
449
|
+
(s(), A(G(o.suffixIcon), {
|
|
450
|
+
size: 16,
|
|
451
|
+
"aria-hidden": "true"
|
|
452
|
+
}))
|
|
453
|
+
], !0)
|
|
454
|
+
])) : g("", !0),
|
|
455
|
+
Y.value && !re.value ? (s(), w("small", {
|
|
456
|
+
key: 3,
|
|
457
|
+
id: n(J),
|
|
458
|
+
class: U(["hys-ui-input-count", { "hys-ui-input-count-error": Q.value }])
|
|
459
|
+
}, [
|
|
460
|
+
C(e.$slots, "count", {
|
|
461
|
+
value: l.value,
|
|
462
|
+
count: S.value,
|
|
463
|
+
maxLength: m.value
|
|
464
|
+
}, () => [
|
|
465
|
+
Ie(W(ce.value), 1)
|
|
466
|
+
], !0)
|
|
467
|
+
], 10, ct)) : g("", !0)
|
|
468
|
+
])
|
|
141
469
|
], 2),
|
|
142
|
-
e.$slots.append ? (s(),
|
|
143
|
-
|
|
144
|
-
])) :
|
|
145
|
-
]),
|
|
146
|
-
|
|
147
|
-
key:
|
|
148
|
-
|
|
470
|
+
e.$slots.append ? (s(), w("div", vt, [
|
|
471
|
+
C(e.$slots, "append", {}, void 0, !0)
|
|
472
|
+
])) : g("", !0)
|
|
473
|
+
], 2),
|
|
474
|
+
de.value ? (s(), w("input", {
|
|
475
|
+
key: 1,
|
|
476
|
+
type: "hidden",
|
|
477
|
+
name: o.name,
|
|
478
|
+
value: l.value,
|
|
479
|
+
disabled: n(r)
|
|
480
|
+
}, null, 8, pt)) : g("", !0),
|
|
481
|
+
Y.value && re.value ? (s(), w("small", {
|
|
482
|
+
key: 2,
|
|
483
|
+
id: n(J),
|
|
484
|
+
class: U(["hys-ui-input-count hys-ui-input-count-outside", { "hys-ui-input-count-error": Q.value }])
|
|
485
|
+
}, [
|
|
486
|
+
C(e.$slots, "count", {
|
|
487
|
+
value: l.value,
|
|
488
|
+
count: S.value,
|
|
489
|
+
maxLength: m.value
|
|
490
|
+
}, () => [
|
|
491
|
+
Ie(W(ce.value), 1)
|
|
492
|
+
], !0)
|
|
493
|
+
], 10, ft)) : g("", !0),
|
|
494
|
+
o.error ? (s(), w("small", {
|
|
495
|
+
key: 3,
|
|
496
|
+
id: n(ne),
|
|
149
497
|
class: "hys-ui-error-text",
|
|
150
498
|
role: "alert"
|
|
151
|
-
},
|
|
499
|
+
}, W(o.error), 9, ht)) : g("", !0)
|
|
152
500
|
], 16);
|
|
153
501
|
};
|
|
154
502
|
}
|
|
155
503
|
});
|
|
156
504
|
export {
|
|
157
|
-
|
|
505
|
+
Pt as default
|
|
158
506
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysMention2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-68c4bc79"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|