@ug666/ui-vue 0.3.0-beta.3 → 0.3.0-beta.4
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/RELEASE_PROVENANCE.json +2 -2
- package/dist/ai/SKILL.md +3 -1
- package/dist/ai/manifest.json +5 -1
- package/dist/ai/references/components/accordion.md +1 -1
- package/dist/ai/references/components/admin-shell.md +1 -1
- package/dist/ai/references/components/alert.md +1 -1
- package/dist/ai/references/components/app-tabs.md +1 -1
- package/dist/ai/references/components/autocomplete.md +1 -1
- package/dist/ai/references/components/avatar-group.md +1 -1
- package/dist/ai/references/components/avatar.md +1 -1
- package/dist/ai/references/components/backtop.md +1 -1
- package/dist/ai/references/components/badge.md +1 -1
- package/dist/ai/references/components/bar-chart.md +1 -1
- package/dist/ai/references/components/breadcrumb.md +1 -1
- package/dist/ai/references/components/button.md +1 -1
- package/dist/ai/references/components/calendar.md +1 -1
- package/dist/ai/references/components/card.md +1 -1
- package/dist/ai/references/components/carousel.md +1 -1
- package/dist/ai/references/components/cascader.md +1 -1
- package/dist/ai/references/components/checkbox.md +1 -1
- package/dist/ai/references/components/collapse.md +1 -1
- package/dist/ai/references/components/color-picker.md +1 -1
- package/dist/ai/references/components/config-provider.md +1 -1
- package/dist/ai/references/components/confirm-dialog.md +1 -1
- package/dist/ai/references/components/container.md +1 -1
- package/dist/ai/references/components/context-menu.md +1 -1
- package/dist/ai/references/components/copy-field.md +1 -1
- package/dist/ai/references/components/data-panel.md +1 -1
- package/dist/ai/references/components/data-table-identity.md +1 -1
- package/dist/ai/references/components/data-table-toolbar.md +1 -1
- package/dist/ai/references/components/data-table.md +1 -1
- package/dist/ai/references/components/date-picker.md +1 -1
- package/dist/ai/references/components/date-range-picker.md +1 -1
- package/dist/ai/references/components/date-time-picker.md +1 -1
- package/dist/ai/references/components/descriptions.md +1 -1
- package/dist/ai/references/components/dialog.md +1 -1
- package/dist/ai/references/components/dock.md +1 -1
- package/dist/ai/references/components/donut-chart.md +1 -1
- package/dist/ai/references/components/drawer.md +1 -1
- package/dist/ai/references/components/dropdown.md +1 -1
- package/dist/ai/references/components/empty-state.md +1 -1
- package/dist/ai/references/components/fab.md +1 -1
- package/dist/ai/references/components/feature-grid.md +1 -1
- package/dist/ai/references/components/fieldset.md +1 -1
- package/dist/ai/references/components/file-input.md +1 -1
- package/dist/ai/references/components/form.md +1 -1
- package/dist/ai/references/components/gauge-chart.md +1 -1
- package/dist/ai/references/components/heatmap-chart.md +1 -1
- package/dist/ai/references/components/icon.md +1 -1
- package/dist/ai/references/components/image.md +1 -1
- package/dist/ai/references/components/index.md +1 -1
- package/dist/ai/references/components/indicator.md +1 -1
- package/dist/ai/references/components/infinite-scroll.md +1 -1
- package/dist/ai/references/components/input.md +1 -1
- package/dist/ai/references/components/join.md +1 -1
- package/dist/ai/references/components/kbd.md +1 -1
- package/dist/ai/references/components/label.md +1 -1
- package/dist/ai/references/components/landing-hero.md +1 -1
- package/dist/ai/references/components/layout.md +1 -1
- package/dist/ai/references/components/link.md +1 -1
- package/dist/ai/references/components/list.md +1 -1
- package/dist/ai/references/components/loading.md +1 -1
- package/dist/ai/references/components/modal.md +1 -1
- package/dist/ai/references/components/navbar.md +1 -1
- package/dist/ai/references/components/navigation-menu.md +1 -1
- package/dist/ai/references/components/notification.md +1 -1
- package/dist/ai/references/components/number-input.md +1 -1
- package/dist/ai/references/components/otp-input.md +1 -1
- package/dist/ai/references/components/page-header.md +1 -1
- package/dist/ai/references/components/pagination.md +1 -1
- package/dist/ai/references/components/popconfirm.md +1 -1
- package/dist/ai/references/components/popover.md +1 -1
- package/dist/ai/references/components/progress.md +1 -1
- package/dist/ai/references/components/quick-access.md +1 -1
- package/dist/ai/references/components/radar-chart.md +1 -1
- package/dist/ai/references/components/radial-progress.md +1 -1
- package/dist/ai/references/components/radio.md +1 -1
- package/dist/ai/references/components/ranking-list.md +1 -1
- package/dist/ai/references/components/rating.md +1 -1
- package/dist/ai/references/components/result.md +1 -1
- package/dist/ai/references/components/scrollbar.md +1 -1
- package/dist/ai/references/components/select.md +1 -1
- package/dist/ai/references/components/selection-list.md +1 -1
- package/dist/ai/references/components/separator.md +1 -1
- package/dist/ai/references/components/sheet.md +1 -1
- package/dist/ai/references/components/sidebar.md +1 -1
- package/dist/ai/references/components/skeleton.md +1 -1
- package/dist/ai/references/components/slider.md +1 -1
- package/dist/ai/references/components/space.md +1 -1
- package/dist/ai/references/components/spinner.md +1 -1
- package/dist/ai/references/components/splitter.md +1 -1
- package/dist/ai/references/components/stack.md +1 -1
- package/dist/ai/references/components/stacked-bar-chart.md +1 -1
- package/dist/ai/references/components/statistic-card.md +1 -1
- package/dist/ai/references/components/statistic.md +1 -1
- package/dist/ai/references/components/steps.md +1 -1
- package/dist/ai/references/components/switch.md +1 -1
- package/dist/ai/references/components/table.md +1 -1
- package/dist/ai/references/components/tabs.md +1 -1
- package/dist/ai/references/components/tag.md +1 -1
- package/dist/ai/references/components/text.md +1 -1
- package/dist/ai/references/components/textarea.md +1 -1
- package/dist/ai/references/components/theme-configurator-dialog.md +1 -1
- package/dist/ai/references/components/theme-configurator.md +1 -1
- package/dist/ai/references/components/theme-controller.md +1 -1
- package/dist/ai/references/components/time-picker.md +1 -1
- package/dist/ai/references/components/time-range-picker.md +1 -1
- package/dist/ai/references/components/time-select.md +1 -1
- package/dist/ai/references/components/timeline.md +1 -1
- package/dist/ai/references/components/toast.md +1 -1
- package/dist/ai/references/components/tooltip.md +1 -1
- package/dist/ai/references/components/transfer.md +1 -1
- package/dist/ai/references/components/tree-select.md +1 -1
- package/dist/ai/references/components/tree-table.md +1 -1
- package/dist/ai/references/components/tree.md +1 -1
- package/dist/ai/references/components/trend-chart.md +1 -1
- package/dist/ai/references/components/upload.md +1 -1
- package/dist/ai/references/release.md +3 -2
- package/dist/ai/ui-vue.zip +0 -0
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.vue.d.ts +2 -0
- package/dist/components/input.vue.d.ts.map +1 -1
- package/dist/components/select.vue.d.ts +5 -0
- package/dist/components/select.vue.d.ts.map +1 -1
- package/dist/components/switch.vue.d.ts +3 -0
- package/dist/components/switch.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/input-DCkW3OFz.js +2 -0
- package/dist/input-DCkW3OFz.js.map +1 -0
- package/dist/input-DVoSFTsm.cjs +2 -0
- package/dist/input-DVoSFTsm.cjs.map +1 -0
- package/dist/patterns/data-table.vue.d.ts +5 -0
- package/dist/patterns/data-table.vue.d.ts.map +1 -1
- package/dist/patterns/index.cjs +1 -1
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.js +1 -1
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/page-header.vue.d.ts +3 -0
- package/dist/patterns/page-header.vue.d.ts.map +1 -1
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +1 -1
- package/dist/sidebar-BSNp75Nt.cjs +2 -0
- package/dist/sidebar-BSNp75Nt.cjs.map +1 -0
- package/dist/sidebar-X6SZ2KFT.js +2 -0
- package/dist/sidebar-X6SZ2KFT.js.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/themes/dense.css +1 -0
- package/dist/tokens.css +1 -1
- package/dist/{tree-select-DQnl6LzW.cjs → tree-select-7bZHiPGm.cjs} +2 -2
- package/dist/tree-select-7bZHiPGm.cjs.map +1 -0
- package/dist/{tree-select-DsR5dxIn.js → tree-select-Cx9nczAd.js} +2 -2
- package/dist/tree-select-Cx9nczAd.js.map +1 -0
- package/package.json +10 -5
- package/dist/input-Bdyp6ABh.cjs +0 -2
- package/dist/input-Bdyp6ABh.cjs.map +0 -1
- package/dist/input-DERQW5r8.js +0 -2
- package/dist/input-DERQW5r8.js.map +0 -1
- package/dist/sidebar-O1_kmFSE.js +0 -2
- package/dist/sidebar-O1_kmFSE.js.map +0 -1
- package/dist/sidebar-VFEdi6LG.cjs +0 -2
- package/dist/sidebar-VFEdi6LG.cjs.map +0 -1
- package/dist/tree-select-DQnl6LzW.cjs.map +0 -1
- package/dist/tree-select-DsR5dxIn.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input-DVoSFTsm.cjs","names":["$slots","_useModel","getCurrentInstance","ref","useAttrs","useUIConfig","useId","computed","resolveDisabled","resolveControlSize","countTextCharacters","cn","isAriaInvalid","_useSlots","isControlComposing","limitTextByCount","nextTick","_openBlock","_createElementBlock","_toDisplayString","_createCommentVNode","_createElementVNode","_normalizeClass","_unref","_renderSlot","_createBlock","_resolveDynamicComponent","_createTextVNode","_mergeProps","X","EyeOff","Eye","_sfc_main","require_button","require","vue","_lucide_vue","_ug666_ui_core","_ug666_ui_web","_hoisted_1","_hoisted_2","_hoisted_3","class","_hoisted_4","_hoisted_5","_hoisted_6","key","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","input_default","defineComponent","name","inheritAttrs","__name","props","mergeModels","label","default","error","helperText","id","type","disabled","Boolean","readonly","size","focusRingWidth","placeholder","prefix","suffix","prefixIcon","suffixIcon","clearIcon","passwordVisibleIcon","passwordHiddenIcon","clearable","showPassword","showWordLimit","wordLimitPosition","countCharacters","maxlength","formatter","Function","parser","modelValue","modelModifiers","emits","setup","__props","expose","__expose","emit","__emit","useModel","instance","getCurrentInstance","localValue","ref","hasModelValue","Object","prototype","hasOwnProperty","call","vnode","commitValue","value","attrs","useAttrs","config","useUIConfig","generatedId","useId","inputRef","focused","composing","compositionValue","lastCompositionValue","passwordVisible","resetForm","resetActive","resetTasks","Set","inputId","computed","messageId","resolvedDisabled","resolveDisabled","resolvedSize","resolveControlSize","rawValue","boundValue","String","displayValue","canClear","length","canTogglePassword","resolvedType","hasMessage","characterCount","countTextCharacters","hasInsideCount","usesCanonicalSubmitValue","state","resolvedInvalid","filter","join","sizeClass","paddingClass","wrapperClasses","cn","inputClasses","slots","ariaDescribedBy","ariaInvalid","isAriaInvalid","inputAttrs","nextAttrs","onKeydown","useSlots","handleInput","event","target","isControlComposing","parsedValue","nextValue","limitTextByCount","handleCompositionStart","handleCompositionEnd","handleKeyDown","handlers","handler","Array","isArray","handleChange","handleBlur","handleFocus","clear","focus","handleFormReset","owner","task","setTimeout","delete","defaultPrevented","form","add","bindFormReset","nextForm","removeEventListener","addEventListener","onMounted","nextTick","watch","onBeforeUnmount","clearTimeout","blur","select","el","_ctx","_cache","openBlock","createElementBlock","for","toDisplayString","createCommentVNode","createElementVNode","$slots","prepend","normalizeClass","unref","renderSlot","append","createBlock","resolveDynamicComponent","createTextVNode","mergeProps","ref_key","onBlur","onChange","onCompositionend","onCompositionstart","onFocus","onInput","onClick","X","$event","EyeOff","Eye","defineProperty","exports","enumerable","get"],"sources":["../src/components/input.vue","../src/components/input.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { TextCountFunction } from '@ug666/ui-core'\nimport type { Component } from 'vue'\nimport type { ControlSize } from './config-provider.vue'\n\nexport interface InputProps {\n label?: string\n error?: string\n helperText?: string\n id?: string\n type?: string\n disabled?: boolean\n readonly?: boolean\n size?: ControlSize\n /** 焦点外环宽度,单位为 CSS 像素;默认 1px。 */\n focusRingWidth?: 0 | 1 | 2 | 3\n placeholder?: string\n prefix?: string | number\n suffix?: string | number\n prefixIcon?: Component\n suffixIcon?: Component\n clearIcon?: Component\n passwordVisibleIcon?: Component\n passwordHiddenIcon?: Component\n clearable?: boolean\n showPassword?: boolean\n showWordLimit?: boolean\n wordLimitPosition?: 'inside' | 'outside'\n countCharacters?: TextCountFunction\n maxlength?: number\n formatter?: (value: string) => string\n parser?: (value: string) => string\n class?: string\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, useId, watch } from 'vue'\nimport { Eye, EyeOff, X } from '@lucide/vue'\nimport { countTextCharacters, limitTextByCount } from '@ug666/ui-core'\nimport { isControlComposing } from '@ug666/ui-web'\nimport { cn } from '../internal/cn'\nimport { isAriaInvalid, resolveControlSize, resolveDisabled, useUIConfig } from './config-provider.vue'\n\ndefineOptions({ name: 'UInput', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<InputProps>(), {\n label: undefined,\n error: undefined,\n helperText: undefined,\n id: undefined,\n type: 'text',\n disabled: undefined,\n readonly: false,\n size: undefined,\n placeholder: undefined,\n prefix: undefined,\n suffix: undefined,\n prefixIcon: undefined,\n suffixIcon: undefined,\n clearIcon: undefined,\n passwordVisibleIcon: undefined,\n passwordHiddenIcon: undefined,\n clearable: false,\n showPassword: false,\n showWordLimit: false,\n wordLimitPosition: 'inside',\n countCharacters: undefined,\n maxlength: undefined,\n formatter: undefined,\n parser: undefined,\n class: undefined,\n})\n\nconst emit = defineEmits<{\n blur: [event: FocusEvent]\n focus: [event: FocusEvent]\n input: [event: Event]\n change: [event: Event]\n clear: []\n compositionend: [event: CompositionEvent]\n compositionstart: [event: CompositionEvent]\n}>()\n\nconst modelValue = defineModel<string | number | undefined>()\nconst instance = getCurrentInstance()\nconst localValue = ref<string | number | undefined>()\nconst hasModelValue = () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'modelValue') || Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'model-value')\nfunction commitValue(value: string) {\n if (hasModelValue()) modelValue.value = value\n else { localValue.value = value; instance?.emit('update:modelValue', value) }\n}\nconst attrs = useAttrs()\nconst config = useUIConfig()\nconst generatedId = useId()\nconst inputRef = ref<HTMLInputElement | null>(null)\nconst focused = ref(false)\nconst composing = ref(false)\nconst compositionValue = ref<string | undefined>()\nlet lastCompositionValue: string | undefined\nconst passwordVisible = ref(false)\nlet resetForm: HTMLFormElement | null = null\nlet resetActive = true\nconst resetTasks = new Set<ReturnType<typeof setTimeout>>()\n\nconst inputId = computed(() => props.id ?? generatedId)\nconst messageId = computed(() => `${inputId.value}-message`)\nconst resolvedDisabled = computed(() => resolveDisabled(props.disabled, config.value.disabled))\nconst resolvedSize = computed(() => resolveControlSize(props.size, config.value.size))\nconst rawValue = computed(() => {\n const boundValue = instance?.props.modelValue as string | number | undefined\n const value = hasModelValue() ? boundValue : localValue.value\n return value === undefined || value === null ? '' : String(value)\n})\nconst displayValue = computed(() =>\n composing.value ? compositionValue.value ?? rawValue.value : props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value,\n)\nconst canClear = computed(\n () => props.clearable && rawValue.value.length > 0 && !resolvedDisabled.value && !props.readonly,\n)\nconst canTogglePassword = computed(() => props.showPassword && props.type === 'password' && !resolvedDisabled.value)\nconst resolvedType = computed(() =>\n props.showPassword && props.type === 'password' && passwordVisible.value ? 'text' : props.type,\n)\nconst hasMessage = computed(() => Boolean(props.error || props.helperText || (props.showWordLimit && props.maxlength)))\nconst characterCount = computed(() => countTextCharacters(rawValue.value, props.countCharacters))\nconst hasInsideCount = computed(() => props.showWordLimit && props.maxlength && props.wordLimitPosition === 'inside')\nconst usesCanonicalSubmitValue = computed(() => Boolean(props.formatter && attrs.name))\nconst state = computed(\n () =>\n [\n resolvedDisabled.value && 'disabled',\n resolvedInvalid.value && 'invalid',\n props.readonly && 'readonly',\n focused.value && 'focused',\n ]\n .filter(Boolean)\n .join(' ') || 'default',\n)\n\nconst sizeClass = computed(() => ({\n 'h-[var(--control-height-sm)]': resolvedSize.value === 'sm',\n 'h-[var(--control-height-md)]': resolvedSize.value === 'default',\n 'h-[var(--control-height-lg)]': resolvedSize.value === 'lg',\n}))\nconst paddingClass = computed(() => ({\n 'px-[var(--control-padding-x-sm)]': resolvedSize.value === 'sm',\n 'px-[var(--control-padding-x-md)]': resolvedSize.value === 'default',\n 'px-[var(--control-padding-x-lg)]': resolvedSize.value === 'lg',\n}))\nconst wrapperClasses = computed(() =>\n cn(\n 'flex min-w-0 flex-1 items-center',\n sizeClass.value,\n\n ),\n)\nconst inputClasses = computed(() =>\n cn(\n 'h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none',\n paddingClass.value,\n (slots.prefix || props.prefix !== undefined || props.prefixIcon) && 'pl-2',\n (slots.suffix || props.suffix !== undefined || props.suffixIcon || canClear.value || canTogglePassword.value || hasInsideCount.value) && 'pr-2',\n resolvedDisabled.value && 'cursor-not-allowed',\n props.class,\n ),\n)\nconst ariaDescribedBy = computed(() =>\n typeof attrs['aria-describedby'] === 'string'\n ? attrs['aria-describedby']\n : hasMessage.value\n ? messageId.value\n : undefined,\n)\ntype AriaInvalidValue = boolean | 'true' | 'false' | 'grammar' | 'spelling'\nconst ariaInvalid = computed<AriaInvalidValue | undefined>(() => {\n const value = attrs['aria-invalid']\n if (\n typeof value === 'boolean' ||\n value === 'true' ||\n value === 'false' ||\n value === 'grammar' ||\n value === 'spelling'\n )\n return value\n return props.error ? true : undefined\n})\nconst resolvedInvalid = computed(() => Boolean(props.error) || isAriaInvalid(ariaInvalid.value))\nconst inputAttrs = computed(() => {\n const nextAttrs = { ...attrs }\n delete nextAttrs.class\n delete nextAttrs.onKeydown\n delete nextAttrs['aria-describedby']\n delete nextAttrs['aria-invalid']\n if (usesCanonicalSubmitValue.value) delete nextAttrs.name\n return nextAttrs\n})\nconst slots = defineSlots<{\n default?: () => unknown\n prefix?: () => unknown\n suffix?: () => unknown\n prepend?: () => unknown\n append?: () => unknown\n clearIcon?: () => unknown\n passwordVisibleIcon?: () => unknown\n passwordHiddenIcon?: () => unknown\n}>()\n\n// 组合草稿/末次提交去重改写自 Arco React Input/useComposition.ts (MIT),\n// 同时核对 Arco Vue 2.58.0 input.tsx 的原生 composition 事务。\n// Copyright (c) 2021 Bytedance, Inc. and its affiliates.\n// https://github.com/arco-design/arco-design/blob/fbf2ec0a8cc28a5d20f1f82de6c2c4196ef66950/components/Input/useComposition.ts\n// https://github.com/arco-design/arco-design-vue/blob/5a707cc60c1130d8dae3aefb2e93616541952a66/packages/web-vue/components/input/input.tsx\n// 完整许可保留于 ui-web/src/control-behavior.ts;UG 保留原生 input,只延迟 modelValue。\nfunction handleInput(event: Event) {\n const target = event.target as HTMLInputElement\n if (isControlComposing(event as InputEvent, composing.value)) {\n compositionValue.value = target.value\n emit('input', event)\n return\n }\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n if (lastCompositionValue !== nextValue) commitValue(nextValue)\n lastCompositionValue = undefined\n emit('input', event)\n}\n\nfunction handleCompositionStart(event: CompositionEvent) {\n composing.value = true\n compositionValue.value = (event.target as HTMLInputElement).value\n lastCompositionValue = undefined\n emit('compositionstart', event)\n}\n\nfunction handleCompositionEnd(event: CompositionEvent) {\n composing.value = false\n compositionValue.value = undefined\n const target = event.target as HTMLInputElement\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n lastCompositionValue = nextValue\n if (nextValue !== rawValue.value) commitValue(nextValue)\n emit('compositionend', event)\n}\n\nfunction handleKeyDown(event: KeyboardEvent) {\n if (isControlComposing(event, composing.value)) return\n const handlers = attrs.onKeydown\n for (const handler of Array.isArray(handlers) ? handlers : [handlers]) {\n if (typeof handler === 'function') handler(event)\n }\n}\n\nfunction handleChange(event: Event) {\n emit('change', event)\n}\n\nfunction handleBlur(event: FocusEvent) {\n focused.value = false\n emit('blur', event)\n}\n\nfunction handleFocus(event: FocusEvent) {\n focused.value = true\n emit('focus', event)\n}\n\nfunction clear() {\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n commitValue('')\n emit('clear')\n inputRef.value?.focus()\n}\n\nfunction focus() {\n inputRef.value?.focus()\n}\n\nfunction blur() {\n inputRef.value?.blur()\n}\n\nfunction select() {\n inputRef.value?.select()\n}\n\nfunction handleFormReset(event: Event) {\n const owner = resetForm\n const task = setTimeout(() => {\n resetTasks.delete(task)\n if (!resetActive || event.defaultPrevented || inputRef.value?.form !== owner) return\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n passwordVisible.value = false\n if (!hasModelValue()) localValue.value = undefined\n inputRef.value.value = props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value\n }, 0)\n resetTasks.add(task)\n}\n\nfunction bindFormReset() {\n const nextForm = inputRef.value?.form ?? null\n if (resetForm === nextForm) return\n resetForm?.removeEventListener('reset', handleFormReset)\n resetForm = nextForm\n resetForm?.addEventListener('reset', handleFormReset)\n}\n\nonMounted(() => void nextTick(bindFormReset))\nwatch(\n () => attrs.form,\n () => void nextTick(bindFormReset),\n)\nonBeforeUnmount(() => {\n resetActive = false\n resetForm?.removeEventListener('reset', handleFormReset)\n for (const task of resetTasks) clearTimeout(task)\n})\n\ndefineExpose({ focus, blur, select, clear, el: inputRef })\n</script>\n\n<template>\n <div\n class=\"flex min-w-0 flex-col gap-1\"\n :data-size=\"resolvedSize\"\n :data-state=\"state\"\n data-ug=\"input\"\n data-ug-slot=\"root\"\n data-variant=\"default\"\n >\n <label\n v-if=\"label\"\n :for=\"inputId\"\n class=\"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]\"\n data-ug-slot=\"label\"\n >\n {{ label }}\n </label>\n\n <div class=\"flex w-full min-w-0\" data-ug-slot=\"group\">\n <span\n v-if=\"$slots.prepend\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"prepend\"\n >\n <slot name=\"prepend\" />\n </span>\n\n <div\n :class=\"wrapperClasses\"\n :data-has-append=\"$slots.append ? 'true' : undefined\"\n :data-has-prepend=\"$slots.prepend ? 'true' : undefined\"\n data-ug-slot=\"wrapper\"\n :data-focus-ring-width=\"focusRingWidth\"\n >\n <span\n v-if=\"$slots.prefix || prefix !== undefined || prefixIcon\"\n aria-hidden=\"true\"\n :class=\"cn('inline-flex shrink-0 items-center pr-0', paddingClass)\"\n data-ug-slot=\"prefix\"\n >\n <slot name=\"prefix\"><component :is=\"prefixIcon\" v-if=\"prefixIcon\" />{{ prefix }}</slot>\n </span>\n\n <input\n v-bind=\"inputAttrs\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :class=\"inputClasses\"\n data-ug-slot=\"control\"\n :disabled=\"resolvedDisabled\"\n :maxlength=\"countCharacters ? undefined : maxlength\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :type=\"resolvedType\"\n :value=\"displayValue\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @compositionend=\"handleCompositionEnd\"\n @compositionstart=\"handleCompositionStart\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @keydown=\"handleKeyDown\"\n />\n\n <span\n v-if=\"hasInsideCount\"\n aria-hidden=\"true\"\n class=\"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n <button\n v-if=\"canClear\"\n aria-label=\"清空输入\"\n :aria-controls=\"inputId\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"clear\"\n type=\"button\"\n @click=\"clear\"\n >\n <slot name=\"clearIcon\">\n <component :is=\"clearIcon || X\" aria-hidden=\"true\" :size=\"14\" />\n </slot>\n </button>\n <button\n v-if=\"canTogglePassword\"\n :aria-label=\"passwordVisible ? '隐藏密码' : '显示密码'\"\n :aria-controls=\"inputId\"\n :aria-pressed=\"passwordVisible\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"password-toggle\"\n type=\"button\"\n @click=\"passwordVisible = !passwordVisible\"\n >\n <slot v-if=\"passwordVisible\" name=\"passwordVisibleIcon\">\n <component :is=\"passwordVisibleIcon || EyeOff\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n <slot v-else name=\"passwordHiddenIcon\">\n <component :is=\"passwordHiddenIcon || Eye\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n </button>\n\n <span\n v-if=\"$slots.suffix || suffix !== undefined || suffixIcon\"\n :class=\"cn('inline-flex shrink-0 items-center pl-0', paddingClass)\"\n data-ug-slot=\"suffix\"\n >\n <slot name=\"suffix\"><component :is=\"suffixIcon\" v-if=\"suffixIcon\" />{{ suffix }}</slot>\n </span>\n </div>\n\n <span\n v-if=\"$slots.append\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"append\"\n >\n <slot name=\"append\" />\n </span>\n </div>\n\n <input\n v-if=\"usesCanonicalSubmitValue\"\n :disabled=\"resolvedDisabled\"\n :form=\"typeof attrs.form === 'string' ? attrs.form : undefined\"\n :name=\"typeof attrs.name === 'string' ? attrs.name : undefined\"\n type=\"hidden\"\n :value=\"rawValue\"\n />\n <span\n v-if=\"showWordLimit && maxlength && wordLimitPosition === 'outside'\"\n aria-hidden=\"true\"\n class=\"self-end text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n\n <p v-if=\"error\" :id=\"messageId\" class=\"min-w-0 text-xs text-danger [overflow-wrap:anywhere]\" data-ug-slot=\"message\">\n {{ error }}\n </p>\n <p\n v-else-if=\"helperText\"\n :id=\"messageId\"\n class=\"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]\"\n data-ug-slot=\"message\"\n >\n {{ helperText }}\n </p>\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { TextCountFunction } from '@ug666/ui-core'\nimport type { Component } from 'vue'\nimport type { ControlSize } from './config-provider.vue'\n\nexport interface InputProps {\n label?: string\n error?: string\n helperText?: string\n id?: string\n type?: string\n disabled?: boolean\n readonly?: boolean\n size?: ControlSize\n /** 焦点外环宽度,单位为 CSS 像素;默认 1px。 */\n focusRingWidth?: 0 | 1 | 2 | 3\n placeholder?: string\n prefix?: string | number\n suffix?: string | number\n prefixIcon?: Component\n suffixIcon?: Component\n clearIcon?: Component\n passwordVisibleIcon?: Component\n passwordHiddenIcon?: Component\n clearable?: boolean\n showPassword?: boolean\n showWordLimit?: boolean\n wordLimitPosition?: 'inside' | 'outside'\n countCharacters?: TextCountFunction\n maxlength?: number\n formatter?: (value: string) => string\n parser?: (value: string) => string\n class?: string\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, getCurrentInstance, nextTick, onBeforeUnmount, onMounted, ref, useAttrs, useId, watch } from 'vue'\nimport { Eye, EyeOff, X } from '@lucide/vue'\nimport { countTextCharacters, limitTextByCount } from '@ug666/ui-core'\nimport { isControlComposing } from '@ug666/ui-web'\nimport { cn } from '../internal/cn'\nimport { isAriaInvalid, resolveControlSize, resolveDisabled, useUIConfig } from './config-provider.vue'\n\ndefineOptions({ name: 'UInput', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<InputProps>(), {\n label: undefined,\n error: undefined,\n helperText: undefined,\n id: undefined,\n type: 'text',\n disabled: undefined,\n readonly: false,\n size: undefined,\n placeholder: undefined,\n prefix: undefined,\n suffix: undefined,\n prefixIcon: undefined,\n suffixIcon: undefined,\n clearIcon: undefined,\n passwordVisibleIcon: undefined,\n passwordHiddenIcon: undefined,\n clearable: false,\n showPassword: false,\n showWordLimit: false,\n wordLimitPosition: 'inside',\n countCharacters: undefined,\n maxlength: undefined,\n formatter: undefined,\n parser: undefined,\n class: undefined,\n})\n\nconst emit = defineEmits<{\n blur: [event: FocusEvent]\n focus: [event: FocusEvent]\n input: [event: Event]\n change: [event: Event]\n clear: []\n compositionend: [event: CompositionEvent]\n compositionstart: [event: CompositionEvent]\n}>()\n\nconst modelValue = defineModel<string | number | undefined>()\nconst instance = getCurrentInstance()\nconst localValue = ref<string | number | undefined>()\nconst hasModelValue = () => Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'modelValue') || Object.prototype.hasOwnProperty.call(instance?.vnode.props ?? {}, 'model-value')\nfunction commitValue(value: string) {\n if (hasModelValue()) modelValue.value = value\n else { localValue.value = value; instance?.emit('update:modelValue', value) }\n}\nconst attrs = useAttrs()\nconst config = useUIConfig()\nconst generatedId = useId()\nconst inputRef = ref<HTMLInputElement | null>(null)\nconst focused = ref(false)\nconst composing = ref(false)\nconst compositionValue = ref<string | undefined>()\nlet lastCompositionValue: string | undefined\nconst passwordVisible = ref(false)\nlet resetForm: HTMLFormElement | null = null\nlet resetActive = true\nconst resetTasks = new Set<ReturnType<typeof setTimeout>>()\n\nconst inputId = computed(() => props.id ?? generatedId)\nconst messageId = computed(() => `${inputId.value}-message`)\nconst resolvedDisabled = computed(() => resolveDisabled(props.disabled, config.value.disabled))\nconst resolvedSize = computed(() => resolveControlSize(props.size, config.value.size))\nconst rawValue = computed(() => {\n const boundValue = instance?.props.modelValue as string | number | undefined\n const value = hasModelValue() ? boundValue : localValue.value\n return value === undefined || value === null ? '' : String(value)\n})\nconst displayValue = computed(() =>\n composing.value ? compositionValue.value ?? rawValue.value : props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value,\n)\nconst canClear = computed(\n () => props.clearable && rawValue.value.length > 0 && !resolvedDisabled.value && !props.readonly,\n)\nconst canTogglePassword = computed(() => props.showPassword && props.type === 'password' && !resolvedDisabled.value)\nconst resolvedType = computed(() =>\n props.showPassword && props.type === 'password' && passwordVisible.value ? 'text' : props.type,\n)\nconst hasMessage = computed(() => Boolean(props.error || props.helperText || (props.showWordLimit && props.maxlength)))\nconst characterCount = computed(() => countTextCharacters(rawValue.value, props.countCharacters))\nconst hasInsideCount = computed(() => props.showWordLimit && props.maxlength && props.wordLimitPosition === 'inside')\nconst usesCanonicalSubmitValue = computed(() => Boolean(props.formatter && attrs.name))\nconst state = computed(\n () =>\n [\n resolvedDisabled.value && 'disabled',\n resolvedInvalid.value && 'invalid',\n props.readonly && 'readonly',\n focused.value && 'focused',\n ]\n .filter(Boolean)\n .join(' ') || 'default',\n)\n\nconst sizeClass = computed(() => ({\n 'h-[var(--control-height-sm)]': resolvedSize.value === 'sm',\n 'h-[var(--control-height-md)]': resolvedSize.value === 'default',\n 'h-[var(--control-height-lg)]': resolvedSize.value === 'lg',\n}))\nconst paddingClass = computed(() => ({\n 'px-[var(--control-padding-x-sm)]': resolvedSize.value === 'sm',\n 'px-[var(--control-padding-x-md)]': resolvedSize.value === 'default',\n 'px-[var(--control-padding-x-lg)]': resolvedSize.value === 'lg',\n}))\nconst wrapperClasses = computed(() =>\n cn(\n 'flex min-w-0 flex-1 items-center',\n sizeClass.value,\n\n ),\n)\nconst inputClasses = computed(() =>\n cn(\n 'h-full min-w-0 flex-1 border-0 bg-transparent py-0 outline-none',\n paddingClass.value,\n (slots.prefix || props.prefix !== undefined || props.prefixIcon) && 'pl-2',\n (slots.suffix || props.suffix !== undefined || props.suffixIcon || canClear.value || canTogglePassword.value || hasInsideCount.value) && 'pr-2',\n resolvedDisabled.value && 'cursor-not-allowed',\n props.class,\n ),\n)\nconst ariaDescribedBy = computed(() =>\n typeof attrs['aria-describedby'] === 'string'\n ? attrs['aria-describedby']\n : hasMessage.value\n ? messageId.value\n : undefined,\n)\ntype AriaInvalidValue = boolean | 'true' | 'false' | 'grammar' | 'spelling'\nconst ariaInvalid = computed<AriaInvalidValue | undefined>(() => {\n const value = attrs['aria-invalid']\n if (\n typeof value === 'boolean' ||\n value === 'true' ||\n value === 'false' ||\n value === 'grammar' ||\n value === 'spelling'\n )\n return value\n return props.error ? true : undefined\n})\nconst resolvedInvalid = computed(() => Boolean(props.error) || isAriaInvalid(ariaInvalid.value))\nconst inputAttrs = computed(() => {\n const nextAttrs = { ...attrs }\n delete nextAttrs.class\n delete nextAttrs.onKeydown\n delete nextAttrs['aria-describedby']\n delete nextAttrs['aria-invalid']\n if (usesCanonicalSubmitValue.value) delete nextAttrs.name\n return nextAttrs\n})\nconst slots = defineSlots<{\n default?: () => unknown\n prefix?: () => unknown\n suffix?: () => unknown\n prepend?: () => unknown\n append?: () => unknown\n clearIcon?: () => unknown\n passwordVisibleIcon?: () => unknown\n passwordHiddenIcon?: () => unknown\n}>()\n\n// 组合草稿/末次提交去重改写自 Arco React Input/useComposition.ts (MIT),\n// 同时核对 Arco Vue 2.58.0 input.tsx 的原生 composition 事务。\n// Copyright (c) 2021 Bytedance, Inc. and its affiliates.\n// https://github.com/arco-design/arco-design/blob/fbf2ec0a8cc28a5d20f1f82de6c2c4196ef66950/components/Input/useComposition.ts\n// https://github.com/arco-design/arco-design-vue/blob/5a707cc60c1130d8dae3aefb2e93616541952a66/packages/web-vue/components/input/input.tsx\n// 完整许可保留于 ui-web/src/control-behavior.ts;UG 保留原生 input,只延迟 modelValue。\nfunction handleInput(event: Event) {\n const target = event.target as HTMLInputElement\n if (isControlComposing(event as InputEvent, composing.value)) {\n compositionValue.value = target.value\n emit('input', event)\n return\n }\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n if (lastCompositionValue !== nextValue) commitValue(nextValue)\n lastCompositionValue = undefined\n emit('input', event)\n}\n\nfunction handleCompositionStart(event: CompositionEvent) {\n composing.value = true\n compositionValue.value = (event.target as HTMLInputElement).value\n lastCompositionValue = undefined\n emit('compositionstart', event)\n}\n\nfunction handleCompositionEnd(event: CompositionEvent) {\n composing.value = false\n compositionValue.value = undefined\n const target = event.target as HTMLInputElement\n const parsedValue = props.parser ? props.parser(target.value) : target.value\n const nextValue = limitTextByCount(parsedValue, props.maxlength, props.countCharacters)\n if (nextValue !== target.value) target.value = nextValue\n lastCompositionValue = nextValue\n if (nextValue !== rawValue.value) commitValue(nextValue)\n emit('compositionend', event)\n}\n\nfunction handleKeyDown(event: KeyboardEvent) {\n if (isControlComposing(event, composing.value)) return\n const handlers = attrs.onKeydown\n for (const handler of Array.isArray(handlers) ? handlers : [handlers]) {\n if (typeof handler === 'function') handler(event)\n }\n}\n\nfunction handleChange(event: Event) {\n emit('change', event)\n}\n\nfunction handleBlur(event: FocusEvent) {\n focused.value = false\n emit('blur', event)\n}\n\nfunction handleFocus(event: FocusEvent) {\n focused.value = true\n emit('focus', event)\n}\n\nfunction clear() {\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n commitValue('')\n emit('clear')\n inputRef.value?.focus()\n}\n\nfunction focus() {\n inputRef.value?.focus()\n}\n\nfunction blur() {\n inputRef.value?.blur()\n}\n\nfunction select() {\n inputRef.value?.select()\n}\n\nfunction handleFormReset(event: Event) {\n const owner = resetForm\n const task = setTimeout(() => {\n resetTasks.delete(task)\n if (!resetActive || event.defaultPrevented || inputRef.value?.form !== owner) return\n composing.value = false\n compositionValue.value = undefined\n lastCompositionValue = undefined\n passwordVisible.value = false\n if (!hasModelValue()) localValue.value = undefined\n inputRef.value.value = props.formatter && rawValue.value !== '' ? props.formatter(rawValue.value) : rawValue.value\n }, 0)\n resetTasks.add(task)\n}\n\nfunction bindFormReset() {\n const nextForm = inputRef.value?.form ?? null\n if (resetForm === nextForm) return\n resetForm?.removeEventListener('reset', handleFormReset)\n resetForm = nextForm\n resetForm?.addEventListener('reset', handleFormReset)\n}\n\nonMounted(() => void nextTick(bindFormReset))\nwatch(\n () => attrs.form,\n () => void nextTick(bindFormReset),\n)\nonBeforeUnmount(() => {\n resetActive = false\n resetForm?.removeEventListener('reset', handleFormReset)\n for (const task of resetTasks) clearTimeout(task)\n})\n\ndefineExpose({ focus, blur, select, clear, el: inputRef })\n</script>\n\n<template>\n <div\n class=\"flex min-w-0 flex-col gap-1\"\n :data-size=\"resolvedSize\"\n :data-state=\"state\"\n data-ug=\"input\"\n data-ug-slot=\"root\"\n data-variant=\"default\"\n >\n <label\n v-if=\"label\"\n :for=\"inputId\"\n class=\"min-w-0 text-sm font-medium text-text-primary [overflow-wrap:anywhere]\"\n data-ug-slot=\"label\"\n >\n {{ label }}\n </label>\n\n <div class=\"flex w-full min-w-0\" data-ug-slot=\"group\">\n <span\n v-if=\"$slots.prepend\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-r-0 border-border-base bg-surface-2 text-text-secondary [border-end-start-radius:var(--radius-control)] [border-start-start-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"prepend\"\n >\n <slot name=\"prepend\" />\n </span>\n\n <div\n :class=\"wrapperClasses\"\n :data-has-append=\"$slots.append ? 'true' : undefined\"\n :data-has-prepend=\"$slots.prepend ? 'true' : undefined\"\n data-ug-slot=\"wrapper\"\n :data-focus-ring-width=\"focusRingWidth\"\n >\n <span\n v-if=\"$slots.prefix || prefix !== undefined || prefixIcon\"\n aria-hidden=\"true\"\n :class=\"cn('inline-flex shrink-0 items-center pr-0', paddingClass)\"\n data-ug-slot=\"prefix\"\n >\n <slot name=\"prefix\"><component :is=\"prefixIcon\" v-if=\"prefixIcon\" />{{ prefix }}</slot>\n </span>\n\n <input\n v-bind=\"inputAttrs\"\n :id=\"inputId\"\n ref=\"inputRef\"\n :aria-describedby=\"ariaDescribedBy\"\n :aria-invalid=\"ariaInvalid\"\n :class=\"inputClasses\"\n data-ug-slot=\"control\"\n :disabled=\"resolvedDisabled\"\n :maxlength=\"countCharacters ? undefined : maxlength\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :type=\"resolvedType\"\n :value=\"displayValue\"\n @blur=\"handleBlur\"\n @change=\"handleChange\"\n @compositionend=\"handleCompositionEnd\"\n @compositionstart=\"handleCompositionStart\"\n @focus=\"handleFocus\"\n @input=\"handleInput\"\n @keydown=\"handleKeyDown\"\n />\n\n <span\n v-if=\"hasInsideCount\"\n aria-hidden=\"true\"\n class=\"shrink-0 whitespace-nowrap text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n <button\n v-if=\"canClear\"\n aria-label=\"清空输入\"\n :aria-controls=\"inputId\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"clear\"\n type=\"button\"\n @click=\"clear\"\n >\n <slot name=\"clearIcon\">\n <component :is=\"clearIcon || X\" aria-hidden=\"true\" :size=\"14\" />\n </slot>\n </button>\n <button\n v-if=\"canTogglePassword\"\n :aria-label=\"passwordVisible ? '隐藏密码' : '显示密码'\"\n :aria-controls=\"inputId\"\n :aria-pressed=\"passwordVisible\"\n class=\"inline-flex h-full shrink-0 items-center justify-center px-[calc(var(--control-padding-x-sm)*0.5)] text-text-secondary hover:text-text-primary\"\n data-ug-slot=\"password-toggle\"\n type=\"button\"\n @click=\"passwordVisible = !passwordVisible\"\n >\n <slot v-if=\"passwordVisible\" name=\"passwordVisibleIcon\">\n <component :is=\"passwordVisibleIcon || EyeOff\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n <slot v-else name=\"passwordHiddenIcon\">\n <component :is=\"passwordHiddenIcon || Eye\" aria-hidden=\"true\" :size=\"15\" />\n </slot>\n </button>\n\n <span\n v-if=\"$slots.suffix || suffix !== undefined || suffixIcon\"\n :class=\"cn('inline-flex shrink-0 items-center pl-0', paddingClass)\"\n data-ug-slot=\"suffix\"\n >\n <slot name=\"suffix\"><component :is=\"suffixIcon\" v-if=\"suffixIcon\" />{{ suffix }}</slot>\n </span>\n </div>\n\n <span\n v-if=\"$slots.append\"\n :class=\"\n cn(\n 'inline-flex max-w-[45%] min-w-0 shrink items-center overflow-hidden text-ellipsis whitespace-nowrap border border-l-0 border-border-base bg-surface-2 text-text-secondary [border-end-end-radius:var(--radius-control)] [border-start-end-radius:var(--radius-control)]',\n sizeClass,\n paddingClass,\n )\n \"\n data-ug-slot=\"append\"\n >\n <slot name=\"append\" />\n </span>\n </div>\n\n <input\n v-if=\"usesCanonicalSubmitValue\"\n :disabled=\"resolvedDisabled\"\n :form=\"typeof attrs.form === 'string' ? attrs.form : undefined\"\n :name=\"typeof attrs.name === 'string' ? attrs.name : undefined\"\n type=\"hidden\"\n :value=\"rawValue\"\n />\n <span\n v-if=\"showWordLimit && maxlength && wordLimitPosition === 'outside'\"\n aria-hidden=\"true\"\n class=\"self-end text-xs tabular-nums text-text-tertiary\"\n data-ug-slot=\"count\"\n >\n {{ characterCount }}/{{ maxlength }}\n </span>\n\n <p v-if=\"error\" :id=\"messageId\" class=\"min-w-0 text-xs text-danger [overflow-wrap:anywhere]\" data-ug-slot=\"message\">\n {{ error }}\n </p>\n <p\n v-else-if=\"helperText\"\n :id=\"messageId\"\n class=\"min-w-0 text-xs text-text-secondary [overflow-wrap:anywhere]\"\n data-ug-slot=\"message\"\n >\n {{ helperText }}\n </p>\n </div>\n</template>\n"],"mappings":"A,0yDA8CA,MAAM0D,EAAQkC,EA4BRG,EAAOC,EAUPR,GAAA,EAAavF,EAAAA,UAAwC2F,EAAA,cACrDM,GAAA,EAAWhG,EAAAA,sBACXkG,GAAA,EAAajG,EAAAA,OACbmG,cAAA,IAAsBC,OAAOC,UAAUC,eAAeC,KAAKR,GAAUS,MAAMjD,OAAS,CAAC,EAAG,eAAiB6C,OAAOC,UAAUC,eAAeC,KAAKR,GAAUS,MAAMjD,OAAS,CAAC,EAAG,eACjL,SAASkD,YAAYC,GACfP,gBAAiBd,EAAWqB,MAAQA,GACjCT,EAAWS,MAAQA,EAAOX,GAAUH,KAAK,oBAAqBc,GACvE,CACA,MAAMC,GAAA,EAAQ1G,EAAAA,YACR4G,EAAS3G,EAAAA,cACT6G,GAAA,EAAc5G,EAAAA,SACd8G,GAAA,EAAWjH,EAAAA,KAA6B,MACxCkH,GAAA,EAAUl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AA,EAOO/B,EAAAA,iBADF2H,EAAAjC,OAAiB,KAAA,EAAC1F,EAAAA,iBAAGyE,EAAAR,WAAS,KAAA,E,6BAG1BQ,EAAA9B,QAAA,EAAT7C,EAAAA,cAAA,EAAAC,EAAAA,oBAEI,IAAA,C,MAFa8C,GAAIgE,EAAAnB,MAAWnE,MAAM,uDAAuD,eAAa,YACrG,EAAAvB,EAAAA,iBAAAyE,EAAA9B,OAAK,EAAAX,IAGGyC,EAAA7B,aAAA,EADb9C,EAAAA,cAAA,EAAAC,EAAAA,oBAOI,IAAA,C,MALD8C,GAAIgE,EAAAnB,MACLnE,MAAM,+DACN,eAAa,YAEV,EAAAvB,EAAAA,iBAAAyE,EAAA7B,YAAU,EAAAX,KAAA,E"}
|
|
@@ -29,6 +29,8 @@ export interface DataTableProps<TRecord extends object = DataTableSourceRecord>
|
|
|
29
29
|
errorTitle?: string;
|
|
30
30
|
emptyTitle?: string;
|
|
31
31
|
emptyDescription?: string;
|
|
32
|
+
/** 空状态下的引导操作,例如「新建」按钮 */
|
|
33
|
+
emptyAction?: string | number | boolean | Record<string, unknown> | Array<unknown> | null;
|
|
32
34
|
selectedIds?: string[];
|
|
33
35
|
selectable?: boolean;
|
|
34
36
|
sort?: string;
|
|
@@ -42,12 +44,15 @@ export interface DataTableProps<TRecord extends object = DataTableSourceRecord>
|
|
|
42
44
|
retryLabel?: string;
|
|
43
45
|
scrollRegionLabel?: string;
|
|
44
46
|
size?: TableSize;
|
|
47
|
+
/** 是否画单元格竖线;后台列表默认不画,只保留行分隔。 */
|
|
45
48
|
bordered?: boolean;
|
|
46
49
|
striped?: boolean;
|
|
47
50
|
class?: string;
|
|
48
51
|
tableClass?: string;
|
|
49
52
|
/** 填满有确定高度的父容器,表格内部滚动,分页保持底部。默认 false。 */
|
|
50
53
|
fill?: boolean;
|
|
54
|
+
/** 窄屏提示文案;传 null 关闭。 */
|
|
55
|
+
overflowHint?: string | null;
|
|
51
56
|
pagination?: boolean;
|
|
52
57
|
spanMethod?: (context: {
|
|
53
58
|
row: TRecord;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table.vue.d.ts","sourceRoot":"","sources":["../../src/patterns/data-table.vue"],"names":[],"mappings":"AAKA;
|
|
1
|
+
{"version":3,"file":"data-table.vue.d.ts","sourceRoot":"","sources":["../../src/patterns/data-table.vue"],"names":[],"mappings":"AAKA;AAyYA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAEnD,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAA;IAClC,QAAQ,CAAC,EAAE,SAAS,eAAe,EAAE,CAAA;CACtC;AAED,MAAM,WAAW,cAAc,CAAC,OAAO,SAAS,MAAM,GAAG,qBAAqB;IAC5E,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;IACxB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,MAAM,GAAG,MAAM,CAAA;IAC/C,OAA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