nutui-uniapp
Advanced tools
Comparing version 1.7.16 to 1.7.17
@@ -0,3 +1,3 @@ | ||
export * from './event' | ||
export * from './prefix' | ||
export * from './types' | ||
export * from './event' |
@@ -1,11 +0,11 @@ | ||
export * from './useStyle' | ||
export * from './useExpose' | ||
export * from './useGlobalZIndex' | ||
export * from './useInject' | ||
export * from './useLockScroll' | ||
export * from './useProvide' | ||
export * from './useRect' | ||
export * from './useTouch' | ||
export * from './useProvide' | ||
export * from './useInject' | ||
export * from './useRelation' | ||
export * from './useRouter' | ||
export * from './useExpose' | ||
export * from './useRelation' | ||
export * from './useSelectorQuery' | ||
export * from './useGlobalZIndex' | ||
export * from './useStyle' | ||
export * from './useTouch' |
@@ -148,3 +148,3 @@ import { isArray, isDef, isObject } from './is' | ||
else | ||
// eslint-disable-next-line unicorn/new-for-builtins | ||
to[key] = deepAssign(Object(to[key]), val) | ||
@@ -151,0 +151,0 @@ } |
/** | ||
* 时间戳转换 或 获取当前时间的时间戳 | ||
* @param timeStr | ||
* @returns | ||
*/ | ||
@@ -82,3 +80,3 @@ export function getTimeStamp(timeStr?: string | number) { | ||
* 返回日期格式字符串 | ||
* @param {number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推 | ||
* @param i 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推 | ||
* @return {string} '2014-12-31' | ||
@@ -85,0 +83,0 @@ */ |
@@ -1,9 +0,9 @@ | ||
export * from './pxCheck' | ||
export * from './env' | ||
export * from './common' | ||
export * from './date' | ||
export * from './env' | ||
export * from './interceptor' | ||
export * from './is' | ||
export * from './props' | ||
export * from './pxCheck' | ||
export * from './raf' | ||
export * from './style' | ||
export * from './is' | ||
export * from './interceptor' | ||
export * from './raf' |
@@ -56,4 +56,4 @@ const toString = Object.prototype.toString | ||
|| ((isObject(val) || isFunction(val)) | ||
&& isFunction((val as any).then) | ||
&& isFunction((val as any).catch)) | ||
&& isFunction((val as any).then) | ||
&& isFunction((val as any).catch)) | ||
) | ||
@@ -60,0 +60,0 @@ } |
@@ -54,3 +54,2 @@ import type { CSSProperties } from 'vue' | ||
* @param {string} target 转换的目的,object-转为对象,string-转为字符串 | ||
* @returns {object|string} | ||
*/ | ||
@@ -97,4 +96,4 @@ export function addStyle(customStyle: string | object, target = 'object') { | ||
* @description 去除空格 | ||
* @param String str 需要去除空格的字符串 | ||
* @param String pos both(左右)|left|right|all 默认both | ||
* @param str 需要去除空格的字符串 | ||
* @param pos both(左右)|left|right|all 默认both | ||
*/ | ||
@@ -101,0 +100,0 @@ export function trim(str: string, pos = 'both') { |
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue' | ||
import { CANCEL_EVENT, CHOOSE_EVENT, CLOSE_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, makeArrayProp, makeStringProp, truthProp } from '../_utils' | ||
import { popupProps } from '../popup/popup' | ||
import { commonProps, isBoolean, isNumber, makeArrayProp, makeStringProp, truthProp } from '../_utils' | ||
import { CANCEL_EVENT, CHOOSE_EVENT, CLOSE_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -6,0 +6,0 @@ export interface ActionSheetOption { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, CLOSE_EVENT, SELECTED_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { popupProps } from '../popup' | ||
import { commonProps, isBoolean, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHANGE_EVENT, CLOSE_EVENT, SELECTED_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { AddressExistRegionData, AddressRegionData, AddressType } from './type' | ||
@@ -6,0 +6,0 @@ |
@@ -0,2 +1,2 @@ | ||
export * from './addresslist' | ||
export * from './type' | ||
export * from './addresslist' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
import type { AnimateAction, AnimateType } from './type' | ||
@@ -5,0 +5,0 @@ |
@@ -0,2 +1,2 @@ | ||
export * from './avatar' | ||
export * from './type' | ||
export * from './avatar' |
import type { ExtractPropTypes } from 'vue' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
import type { AvatarShape, AvatarSize } from '../avatar' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
@@ -5,0 +5,0 @@ export const AVATAR_GROUP_KEY = Symbol('avatarGroup') |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumberProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const backtopProps = { |
@@ -0,5 +1,5 @@ | ||
import type { ButtonLang, ButtonOnAddgroupappEvent, ButtonOnAgreeprivacyauthorizationEvent, ButtonOnChooseaddressEvent, ButtonOnChooseavatarEvent, ButtonOnChooseinvoicetitleEvent, ButtonOnErrorEvent, ButtonOnGetphonenumberEvent, ButtonOnLaunchappEvent, ButtonOnLoginEvent, ButtonOnOpensettingEvent, ButtonOnSubscribeEvent, ButtonOpenType } from '@uni-helper/uni-app-types' | ||
import type { ExtractPropTypes, PropType } from 'vue' | ||
import type { ButtonLang, ButtonOnAddgroupappEvent, ButtonOnAgreeprivacyauthorizationEvent, ButtonOnChooseaddressEvent, ButtonOnChooseavatarEvent, ButtonOnChooseinvoicetitleEvent, ButtonOnErrorEvent, ButtonOnGetphonenumberEvent, ButtonOnLaunchappEvent, ButtonOnLoginEvent, ButtonOnOpensettingEvent, ButtonOnSubscribeEvent, ButtonOpenType } from '@uni-helper/uni-app-types' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumberProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
import type { ButtonFormType, ButtonShape, ButtonSize, ButtonType } from './type' | ||
@@ -6,0 +6,0 @@ |
@@ -0,2 +1,2 @@ | ||
export * from './button' | ||
export * from './type' | ||
export * from './button' |
import type { ExtractPropTypes, PropType } from 'vue' | ||
import { CHOOSE_EVENT, CLOSE_EVENT, SELECT_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, getDay, isBoolean, isString, makeNumberProp, makeStringProp, truthProp } from '../_utils' | ||
import { popupProps } from '../popup/popup' | ||
import { CHOOSE_EVENT, CLOSE_EVENT, SELECT_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -6,0 +6,0 @@ export const calendarProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHOOSE_EVENT, SELECT_EVENT } from '../_constants' | ||
import { commonProps, getDay, isString, makeNumberProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHOOSE_EVENT, SELECT_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const calendaritemProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { popupProps } from '../popup/popup' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { CascaderOption, CascaderValue } from './types' | ||
@@ -6,0 +6,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { eachTree, formatTree } from './helper' | ||
import type { CascaderConfig, CascaderOption, CascaderValue } from './types' | ||
import { eachTree, formatTree } from './helper' | ||
@@ -4,0 +4,0 @@ class Tree { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import type { CascaderOption, CascaderValue } from '../cascader/types' | ||
import { commonProps, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -6,0 +6,0 @@ export const cascaderitemProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT } from '../_constants' | ||
import { commonProps, isNumber, makeArrayProp, makeStringProp } from '../_utils' | ||
import { CHANGE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export interface CategoryType { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -51,2 +51,6 @@ export const cellProps = { | ||
icon: String, | ||
/** | ||
* @description 标题宽度 | ||
*/ | ||
titleWidth: makeNumericProp(undefined), | ||
} | ||
@@ -53,0 +57,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, makeStringProp, nullableBooleanProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const checkboxProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, makeArrayProp, makeNumberProp, nullableBooleanProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const checkboxgroupProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './checkboxgroup' | ||
export * from './types' | ||
export * from './checkboxgroup' |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isNumber, isString, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHANGE_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const codeinputProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, isString, makeArrayProp, makeObjectProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
import type { FollowType, ImagesType, InfoType, VideosType } from './type' | ||
@@ -5,0 +5,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isNumber, isString, makeNumericProp, makeObjectProp, makeStringProp, truthProp } from '../_utils' | ||
import { INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const countdownProps = { |
@@ -1,1 +0,1 @@ | ||
export type { CountDownPropsProps, CountdownEmits, CountdownInst } from './countdown' | ||
export type { CountdownEmits, CountdownInst, CountDownPropsProps } from './countdown' |
import type { ExtractPropTypes, PropType } from 'vue' | ||
import { CANCEL_EVENT, CHANGE_EVENT, CONFIRM_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CANCEL_EVENT, CHANGE_EVENT, CONFIRM_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { | ||
@@ -5,0 +5,0 @@ DateLike, |
@@ -0,2 +1,2 @@ | ||
export * from './datepicker' | ||
export * from './type' | ||
export * from './datepicker' |
@@ -0,3 +1,3 @@ | ||
import type { PickerBaseEvent, PickerChangeEvent } from '../picker' | ||
import type { PickerOption } from '../pickercolumn' | ||
import type { PickerBaseEvent, PickerChangeEvent } from '../picker' | ||
@@ -4,0 +4,0 @@ export type DateLike = number | string | Date |
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue' | ||
import { CANCEL_EVENT, CLOSED_EVENT, OPENED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { Interceptor } from '../_utils' | ||
import { commonProps, isBoolean, makeStringProp, truthProp } from '../_utils' | ||
import { popupProps } from '../popup/popup' | ||
import { type Interceptor, commonProps, isBoolean, makeStringProp, truthProp } from '../_utils' | ||
import { CANCEL_EVENT, CLOSED_EVENT, OPENED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { FooterDirection, TextAlign } from './type' | ||
@@ -6,0 +7,0 @@ |
@@ -1,4 +0,5 @@ | ||
import { type CSSProperties, type SetupContext, computed, onMounted, ref, watch } from 'vue' | ||
import type { CSSProperties, SetupContext } from 'vue' | ||
import { computed, onMounted, ref, watch } from 'vue' | ||
import { CANCEL_EVENT, CLOSED_EVENT, OPENED_EVENT, PREFIX, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { funInterceptor, getMainClass } from '../_utils' | ||
import { CANCEL_EVENT, CLOSED_EVENT, OPENED_EVENT, PREFIX, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { DialogEmits, DialogProps } from './dialog' | ||
@@ -5,0 +6,0 @@ import type { DialogOptions } from './type' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeArrayProp, makeNumberProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const dollmachineProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { UPDATE_MODEL_EVENT } from '../_constants' | ||
import { | ||
@@ -12,3 +13,2 @@ commonProps, | ||
} from '../_utils' | ||
import { UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { EcardChangeEvent, EcardDataItem, EcardDataValue } from './type' | ||
@@ -15,0 +15,0 @@ |
@@ -0,2 +1,2 @@ | ||
export * from './ecard' | ||
export * from './type' | ||
export * from './ecard' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export interface EllipsisedValue { |
import type { ExtractPropTypes } from 'vue' | ||
import { SELECTED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeArrayProp, makeStringProp, truthProp } from '../_utils' | ||
import { SELECTED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const fixednavProps = { |
import { computed } from 'vue' | ||
import type { ExtractPropTypes, Ref } from 'vue' | ||
import { useInject } from '../_hooks' | ||
import { commonProps, makeObjectProp, makeStringProp } from '../_utils' | ||
import { useInject } from '../_hooks' | ||
import type { ErrorMessage, FormLabelPosition, FormRules, FormStarPosition } from './types' | ||
@@ -6,0 +6,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumberProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const hiteggsProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const iconProps = { |
import type { ExtractPropTypes, PropType } from 'vue' | ||
import { type Interceptor, commonProps, isNumber, makeArrayProp, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CLOSE_EVENT } from '../_constants' | ||
import type { Interceptor } from '../_utils' | ||
import { commonProps, isNumber, makeArrayProp, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import type { ImageInterface } from './types' | ||
@@ -5,0 +6,0 @@ |
export type * from './actionsheet' | ||
export type * from './address' | ||
export type * from './addresslist' | ||
export type * from './animate' | ||
export type * from './avatar' | ||
export type * from './avatargroup' | ||
export type * from './backtop' | ||
export type * from './badge' | ||
export type * from './barrage' | ||
export type * from './button' | ||
export type * from './calendar' | ||
export type * from './calendaritem' | ||
export type * from './card' | ||
export type * from './cascader' | ||
export type * from './cascaderitem' | ||
export type * from './category' | ||
export type * from './categorypane' | ||
export type * from './cell' | ||
export type * from './cellgroup' | ||
export type * from './checkbox' | ||
export type * from './checkboxgroup' | ||
export type * from './circleprogress' | ||
export type * from './codeinput' | ||
export type * from './col' | ||
export type * from './collapse' | ||
export type * from './collapseitem' | ||
export type * from './comment' | ||
export type * from './configprovider' | ||
export type * from './countdown' | ||
export type * from './countup' | ||
export type * from './datepicker' | ||
export type * from './dialog' | ||
export type * from './icon' | ||
export type * from './overlay' | ||
export type * from './toast' | ||
export type * from './transition' | ||
export type * from './popup' | ||
export type * from './notify' | ||
export type * from './divider' | ||
export type * from './dollmachine' | ||
export type * from './drag' | ||
export type * from './swipe' | ||
export type * from './swipegroup' | ||
export type * from './switch' | ||
export type * from './backtop' | ||
export type * from './infiniteloading' | ||
export type * from './divider' | ||
export type * from './ecard' | ||
export type * from './elevator' | ||
export type * from './ellipsis' | ||
export type * from './empty' | ||
export type * from './fixednav' | ||
export type * from './form' | ||
export type * from './formitem' | ||
export type * from './giftbox' | ||
export type * from './grid' | ||
export type * from './griditem' | ||
export type * from './row' | ||
export type * from './col' | ||
export type * from './sticky' | ||
export type * from './elevator' | ||
export type * from './fixednav' | ||
export type * from './hiteggs' | ||
export type * from './icon' | ||
export type * from './imagepreview' | ||
export type * from './indicator' | ||
export type * from './infiniteloading' | ||
export type * from './input' | ||
export type * from './inputnumber' | ||
export type * from './invoice' | ||
export type * from './list' | ||
export type * from './loadingpage' | ||
export type * from './marquee' | ||
export type * from './menu' | ||
export type * from './menuitem' | ||
export type * from './navbar' | ||
export type * from './noticebar' | ||
export type * from './notify' | ||
export type * from './numberkeyboard' | ||
export type * from './overlay' | ||
export type * from './pagination' | ||
export type * from './sidenavbar' | ||
export type * from './sidenavbaritem' | ||
export type * from './subsidenavbar' | ||
export type * from './tabbar' | ||
export type * from './tabbaritem' | ||
export type * from './badge' | ||
export type * from './avatar' | ||
export type * from './avatargroup' | ||
export type * from './tabs' | ||
export type * from './tabpane' | ||
export type * from './calendar' | ||
export type * from './calendaritem' | ||
export type * from './cascader' | ||
export type * from './cascaderitem' | ||
export type * from './checkbox' | ||
export type * from './checkboxgroup' | ||
export type * from './picker' | ||
export type * from './pickercolumn' | ||
export type * from './datepicker' | ||
export type * from './input' | ||
export type * from './textarea' | ||
export type * from './inputnumber' | ||
export type * from './numberkeyboard' | ||
export type * from './popover' | ||
export type * from './popup' | ||
export type * from './price' | ||
export type * from './progress' | ||
export type * from './radio' | ||
@@ -60,52 +75,37 @@ export type * from './radiogroup' | ||
export type * from './rate' | ||
export type * from './row' | ||
export type * from './safearea' | ||
export type * from './searchbar' | ||
export type * from './shakedice' | ||
export type * from './shortpassword' | ||
export type * from './uploader' | ||
export type * from './form' | ||
export type * from './formitem' | ||
export type * from './progress' | ||
export type * from './circleprogress' | ||
export type * from './collapse' | ||
export type * from './collapseitem' | ||
export type * from './animate' | ||
export type * from './countup' | ||
export type * from './ellipsis' | ||
export type * from './empty' | ||
export type * from './imagepreview' | ||
export type * from './list' | ||
export type * from './swiper' | ||
export type * from './swiperitem' | ||
export type * from './noticebar' | ||
export type * from './popover' | ||
export type * from './price' | ||
export type * from './sidenavbar' | ||
export type * from './sidenavbaritem' | ||
export type * from './signature' | ||
export type * from './skeleton' | ||
export type * from './sku' | ||
export type * from './step' | ||
export type * from './steps' | ||
export type * from './sticky' | ||
export type * from './subsidenavbar' | ||
export type * from './swipe' | ||
export type * from './swipegroup' | ||
export type * from './swiper' | ||
export type * from './swiperitem' | ||
export type * from './switch' | ||
export type * from './tabbar' | ||
export type * from './tabbaritem' | ||
export type * from './table' | ||
export type * from './tabpane' | ||
export type * from './tabs' | ||
export type * from './tag' | ||
export type * from './tour' | ||
export type * from './trendarrow' | ||
export type * from './watermark' | ||
export type * from './address' | ||
export type * from './addresslist' | ||
export type * from './barrage' | ||
export type * from './card' | ||
export type * from './category' | ||
export type * from './categorypane' | ||
export type * from './comment' | ||
export type * from './ecard' | ||
export type * from './invoice' | ||
export type * from './signature' | ||
export type * from './sku' | ||
export type * from './textarea' | ||
export type * from './timedetail' | ||
export type * from './timepannel' | ||
export type * from './timeselect' | ||
export type * from './dollmachine' | ||
export type * from './giftbox' | ||
export type * from './hiteggs' | ||
export type * from './marquee' | ||
export type * from './shakedice' | ||
export type * from './toast' | ||
export type * from './tour' | ||
export type * from './transition' | ||
export type * from './trendarrow' | ||
export type * from './turntable' | ||
export type * from './codeinput' | ||
export type * from './loadingpage' | ||
export type * from './safearea' | ||
export type * from './uploader' | ||
export type * from './watermark' |
@@ -0,2 +1,2 @@ | ||
export * from './input' | ||
export * from './type' | ||
export * from './input' |
@@ -1,2 +0,1 @@ | ||
import type { ExtractPropTypes, PropType, StyleValue } from 'vue' | ||
import type { | ||
@@ -9,2 +8,4 @@ BaseEvent, | ||
} from '@uni-helper/uni-app-types' | ||
import type { ExtractPropTypes, PropType, StyleValue } from 'vue' | ||
import { BLUR_EVENT, CLEAR_EVENT, CLICK_EVENT, CONFIRM_EVENT, FOCUS_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { ClassType } from '../_utils' | ||
@@ -21,3 +22,2 @@ import { | ||
} from '../_utils' | ||
import { BLUR_EVENT, CLEAR_EVENT, CLICK_EVENT, CONFIRM_EVENT, FOCUS_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { InputAlignType, InputConfirmType, InputFormatTrigger, InputMode, InputType } from './type' | ||
@@ -24,0 +24,0 @@ |
@@ -0,4 +1,5 @@ | ||
import type { BaseEvent, InputOnBlurEvent, InputOnFocusEvent } from '@uni-helper/uni-app-types' | ||
import type { ExtractPropTypes } from 'vue' | ||
import { commonProps, isNumber, isObject, makeNumericProp, nullableBooleanProp } from '../_utils' | ||
import { BLUR_EVENT, CHANGE_EVENT, FOCUS_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, nullableBooleanProp } from '../_utils' | ||
@@ -12,10 +13,2 @@ export const inputnumberProps = { | ||
/** | ||
* @description 输入框宽度 | ||
*/ | ||
inputWidth: makeNumericProp(''), | ||
/** | ||
* @description 操作加减按钮的尺寸 | ||
*/ | ||
buttonSize: makeNumericProp(''), | ||
/** | ||
* @description 最小值限制 | ||
@@ -33,2 +26,6 @@ */ | ||
/** | ||
* @description 是否只能输入 step 的倍数 | ||
*/ | ||
stepStrictly: Boolean, | ||
/** | ||
* @description 设置保留的小数位 | ||
@@ -45,15 +42,26 @@ */ | ||
readonly: Boolean, | ||
/** | ||
* @description 输入框宽度 | ||
*/ | ||
inputWidth: makeNumericProp(''), | ||
/** | ||
* @description 操作加减按钮的尺寸 | ||
*/ | ||
buttonSize: makeNumericProp(''), | ||
} | ||
export type InputNumberProps = ExtractPropTypes<typeof inputnumberProps> | ||
/* eslint-disable unused-imports/no-unused-vars */ | ||
export const inputnumberEmits = { | ||
[BLUR_EVENT]: (evt: Event) => evt instanceof Object, | ||
[FOCUS_EVENT]: (evt: Event) => evt instanceof Object, | ||
reduce: (evt: Event) => evt instanceof Object, | ||
add: (evt: Event) => evt instanceof Object, | ||
overlimit: (evt: Event, type: 'reduce' | 'add') => isObject(evt) && (type === 'reduce' || type === 'add'), | ||
[CHANGE_EVENT]: (_val1: string | number, _val2?: any) => true, | ||
[UPDATE_MODEL_EVENT]: (val1?: number | string, val2?: Event) => (isNumber(val1) || isObject(val2)) && val2 instanceof Object, | ||
[UPDATE_MODEL_EVENT]: (value: number) => true, | ||
[CHANGE_EVENT]: (value: number, event?: BaseEvent) => true, | ||
[FOCUS_EVENT]: (event: InputOnFocusEvent) => true, | ||
[BLUR_EVENT]: (event: InputOnBlurEvent) => true, | ||
reduce: (event: BaseEvent) => true, | ||
add: (event: BaseEvent) => true, | ||
overlimit: (event: BaseEvent, type: 'reduce' | 'add') => true, | ||
} | ||
/* eslint-enable unused-imports/no-unused-vars */ | ||
export type InputNumberEmits = typeof inputnumberEmits |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, CLOSE_EVENT, OPEN_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, makeArrayProp, makeNumberProp, makeStringProp } from '../_utils' | ||
import { CHANGE_EVENT, CLOSE_EVENT, OPEN_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export interface MenuItemOption { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT, CLOSE_EVENT } from '../_constants' | ||
import { commonProps, isString, makeArrayProp, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CLICK_EVENT, CLOSE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export interface stateProps { |
@@ -0,2 +1,2 @@ | ||
export * from './notify' | ||
export * from './types' | ||
export * from './notify' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT, CLOSE_EVENT, CLOSED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeNumberProp, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT, CLOSED_EVENT, CLOSE_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { NotifyOptions, NotifyPosition, NotifyType } from './types' | ||
@@ -5,0 +5,0 @@ |
import { provide, ref } from 'vue' | ||
import { cloneDeep } from '../_utils' | ||
import { notifyDefaultOptions, notifyDefaultOptionsKey } from './notify' | ||
import type { NotifyInst, NotifyOptions, NotifyType } from './types' | ||
import { notifyDefaultOptions, notifyDefaultOptionsKey } from './notify' | ||
@@ -6,0 +6,0 @@ export function useNotify(selector = ''): NotifyInst { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLOSE_EVENT, CONFIRM_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, isString, makeArrayProp, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLOSE_EVENT, CONFIRM_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const numberkeyboardProps = { |
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue' | ||
import { CLICK_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CLICK_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const overlayProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isNumber, makeNumberProp, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const paginationProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './picker' | ||
export * from './type' | ||
export * from './picker' |
import type { ExtractPropTypes } from 'vue' | ||
import { CANCEL_EVENT, CHANGE_EVENT, CONFIRM_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, makeArrayProp, makeNumericProp, makeObjectProp, makeStringProp, truthProp } from '../_utils' | ||
import type { PickerFieldNames, PickerOption } from '../pickercolumn' | ||
import { commonProps, makeArrayProp, makeNumericProp, makeObjectProp, makeStringProp, truthProp } from '../_utils' | ||
import { CANCEL_EVENT, CHANGE_EVENT, CONFIRM_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { PickerBaseEvent, PickerChangeEvent } from './type' | ||
@@ -6,0 +6,0 @@ |
import type { SetupContext } from 'vue' | ||
import { computed, nextTick, reactive, ref, toRefs, watch } from 'vue' | ||
import type { PickerOption } from '../pickercolumn' | ||
import { CANCEL_EVENT, CHANGE_EVENT, CONFIRM_EVENT, PREFIX, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { cloneDeep, getMainClass, isEqualValue } from '../_utils' | ||
import type { PickerOption } from '../pickercolumn' | ||
import type { PickerEmits, PickerProps } from './picker' | ||
import type { PickerColumnsType } from './type' | ||
import type { PickerEmits, PickerProps } from './picker' | ||
@@ -9,0 +9,0 @@ const DEFAULT_FILED_NAMES = { |
@@ -0,2 +1,2 @@ | ||
export * from './pickercolumn' | ||
export * from './type' | ||
export * from './pickercolumn' |
import type { CSSProperties, ExtractPropTypes, PropType } from 'vue' | ||
import { CHOOSE_EVENT, CLOSE_EVENT, OPEN_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isString, makeArrayProp, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHOOSE_EVENT, CLOSE_EVENT, OPEN_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { PopoverList, PopoverLocation, PopoverTheme } from './type' | ||
@@ -5,0 +5,0 @@ |
import type { ExtractPropTypes, PropType } from 'vue' | ||
import { CLOSE_EVENT, CLOSED_EVENT, OPEN_EVENT, OPENED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { Position } from '../_constants/types' | ||
import { commonProps, isBoolean, makeStringProp, truthProp } from '../_utils' | ||
import { overlayProps } from '../overlay/overlay' | ||
import { commonProps, isBoolean, makeStringProp, truthProp } from '../_utils' | ||
import type { Position } from '../_constants/types' | ||
import type { NutAnimationName } from '../transition/types' | ||
import { CLOSED_EVENT, CLOSE_EVENT, OPENED_EVENT, OPEN_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -8,0 +8,0 @@ export const popupProps = { |
import type { SetupContext } from 'vue' | ||
import { computed, reactive, toRefs, watch } from 'vue' | ||
import { CLOSED_EVENT, CLOSE_EVENT, OPENED_EVENT, OPEN_EVENT, PREFIX, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { CLOSE_EVENT, CLOSED_EVENT, OPEN_EVENT, OPENED_EVENT, PREFIX, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { animationName } from '../_constants/types' | ||
import { useGlobalZIndex } from '../_hooks' | ||
import { getMainClass, getMainStyle } from '../_utils' | ||
import type { NutAnimationName } from '../transition' | ||
import { useGlobalZIndex } from '../_hooks' | ||
import type { PopupEmits, PopupProps } from './popup' | ||
@@ -9,0 +9,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, isString, makeStringProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const radiogroupProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './range' | ||
export * from './types' | ||
export * from './range' |
import type { ExtractPropTypes, PropType } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isNumber, makeNumericProp, makeObjectProp, nullableBooleanProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { RangeValue } from './types' | ||
@@ -5,0 +5,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isNumber, makeNumericProp, makeStringProp, nullableBooleanProp } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const rateProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './searchbar' | ||
export * from './type' | ||
export * from './searchbar' |
@@ -0,3 +1,4 @@ | ||
import type { InputOnBlurEvent, InputOnFocusEvent, InputOnInputEvent } from '@uni-helper/uni-app-types' | ||
import type { CSSProperties, ExtractPropTypes } from 'vue' | ||
import type { InputOnBlurEvent, InputOnFocusEvent, InputOnInputEvent } from '@uni-helper/uni-app-types' | ||
import { BLUR_EVENT, CHANGE_EVENT, CLEAR_EVENT, FOCUS_EVENT, SEARCH_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { | ||
@@ -14,3 +15,2 @@ commonProps, | ||
} from '../_utils' | ||
import { BLUR_EVENT, CHANGE_EVENT, CLEAR_EVENT, FOCUS_EVENT, SEARCH_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { InputAlignType, InputConfirmType, InputType } from '../input' | ||
@@ -17,0 +17,0 @@ import type { SearchbarShape } from './type' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLOSE_EVENT, FOCUS_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, isString, makeNumericProp, truthProp } from '../_utils' | ||
import { CLOSE_EVENT, FOCUS_EVENT, UPDATE_MODEL_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const shortpasswordProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLEAR_EVENT, CONFIRM_EVENT } from '../_constants' | ||
import { commonProps, isString, makeNumberProp, makeStringProp } from '../_utils' | ||
import { CLEAR_EVENT, CONFIRM_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const signatureProps = { |
@@ -1,2 +0,3 @@ | ||
import { type ComponentInternalInstance, type SetupContext, computed, getCurrentInstance, onMounted, reactive, ref } from 'vue' | ||
import type { ComponentInternalInstance, SetupContext } from 'vue' | ||
import { computed, getCurrentInstance, onMounted, reactive, ref } from 'vue' | ||
import { CLEAR_EVENT, CONFIRM_EVENT, PREFIX } from '../_constants' | ||
@@ -3,0 +4,0 @@ import { useSelectorQuery } from '../_hooks' |
import type { ExtractPropTypes } from 'vue' | ||
import { commonProps, makeStringProp, truthProp } from '../_utils' | ||
import type { AvatarShape } from '../avatar/type' | ||
import { commonProps, makeStringProp, truthProp } from '../_utils' | ||
@@ -5,0 +5,0 @@ export const skeletonProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLOSE_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, isString, makeArrayProp, makeNumericProp } from '../_utils' | ||
import { CLOSE_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const skuProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './swipe' | ||
export * from './types' | ||
export * from './swipe' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, isString, makeArrayProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
import type { SwipePosition, SwipeToggleEvent } from './types' | ||
@@ -5,0 +5,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT } from '../_constants' | ||
import { commonProps, isNumber, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHANGE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const swiperProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, isString } from '../_utils' | ||
import { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const switchProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './tabbar' | ||
export * from './types' | ||
export * from './tabbar' |
import type { ExtractPropTypes, InjectionKey } from 'vue' | ||
import { UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isNumber, isString, makeNumericProp } from '../_utils' | ||
import { UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { TabbarContext } from './types' | ||
@@ -5,0 +5,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { commonProps } from '../_utils' | ||
import { badgeProps } from '../badge' | ||
import { commonProps } from '../_utils' | ||
@@ -5,0 +5,0 @@ export const tabbaritemProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const tabpaneProps = { |
@@ -1,2 +0,3 @@ | ||
import { type ComponentInternalInstance, onMounted, reactive, ref } from 'vue' | ||
import type { ComponentInternalInstance } from 'vue' | ||
import { onMounted, reactive, ref } from 'vue' | ||
import { useTouch } from '../_hooks' | ||
@@ -3,0 +4,0 @@ import { getRandomId } from '../_utils' |
import type { ExtractPropTypes, RendererElement, RendererNode, VNode } from 'vue' | ||
import { CHANGE_EVENT, CLICK_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isString, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHANGE_EVENT, CLICK_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const TAB_KEY = Symbol('tabs') |
@@ -0,2 +1,2 @@ | ||
export * from './tag' | ||
export * from './type' | ||
export * from './tag' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT, CLOSE_EVENT } from '../_constants' | ||
import { commonProps, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT, CLOSE_EVENT } from '../_constants' | ||
import type { TagType } from './type' | ||
@@ -5,0 +5,0 @@ |
@@ -0,2 +1,2 @@ | ||
export * from './textarea' | ||
export * from './type' | ||
export * from './textarea' |
@@ -0,6 +1,6 @@ | ||
import type { TextareaOnBlurEvent, TextareaOnConfirmEvent, TextareaOnFocusEvent, TextareaOnInputEvent } from '@uni-helper/uni-app-types' | ||
import type { ExtractPropTypes, PropType, StyleValue } from 'vue' | ||
import type { TextareaOnBlurEvent, TextareaOnConfirmEvent, TextareaOnFocusEvent, TextareaOnInputEvent } from '@uni-helper/uni-app-types' | ||
import { BLUR_EVENT, CHANGE_EVENT, CONFIRM_EVENT, FOCUS_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { ClassType } from '../_utils' | ||
import { commonProps, isString, makeNumberProp, makeStringProp, nullableBooleanProp, truthProp } from '../_utils' | ||
import { BLUR_EVENT, CHANGE_EVENT, CONFIRM_EVENT, FOCUS_EVENT, INPUT_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import type { InputAlignType } from '../input' | ||
@@ -7,0 +7,0 @@ import type { TextareaAdjustKeyboardTo, TextareaAutosizeObject, TextareaConfirmType } from './type' |
import type { ExtractPropTypes } from 'vue' | ||
import { SELECT_EVENT } from '../_constants' | ||
import { commonProps, isString, makeArrayProp } from '../_utils' | ||
import { SELECT_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const timedetailProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT } from '../_constants' | ||
import { commonProps, isNumber, isString, makeNumericProp } from '../_utils' | ||
import { CHANGE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const timepannelProps = { |
import type { ExtractPropTypes } from 'vue' | ||
import { SELECT_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeArrayProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { SELECT_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const timeselectProps = { |
@@ -0,2 +1,2 @@ | ||
export * from './toast' | ||
export * from './types' | ||
export * from './toast' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLOSE_EVENT, CLOSED_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, makeNumberProp, makeNumericProp, makeStringProp } from '../_utils' | ||
import { CLOSED_EVENT, CLOSE_EVENT, UPDATE_VISIBLE_EVENT } from '../_constants' | ||
import type { ToastOptions, ToastSize, ToastType } from './types' | ||
@@ -5,0 +5,0 @@ |
import { provide, ref } from 'vue' | ||
import { cloneDeep } from '../_utils' | ||
import { toastDefaultOptions, toastDefaultOptionsKey } from './toast' | ||
import type { ToastInst, ToastOptions, ToastType } from './types' | ||
import { toastDefaultOptions, toastDefaultOptionsKey } from './toast' | ||
@@ -6,0 +6,0 @@ export function useToast(selector = ''): ToastInst { |
import type { ExtractPropTypes } from 'vue' | ||
import { CHANGE_EVENT, CLOSE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
import { commonProps, isBoolean, isNumber, makeArrayProp, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import type { PopoverLocation, PopoverTheme } from '../popover/type' | ||
import { commonProps, isBoolean, isNumber, makeArrayProp, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CHANGE_EVENT, CLOSE_EVENT, UPDATE_MODEL_EVENT } from '../_constants' | ||
@@ -6,0 +6,0 @@ export interface StepOptions { |
export * from './transition' | ||
export type * from './types' | ||
export * from './use-transition' | ||
export type * from './types' |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumberProp, makeStringProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
import type { NutAnimationName, NutAnimationtimingFunction } from './types' | ||
@@ -5,0 +5,0 @@ |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumberProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const turntableProps = { |
@@ -0,3 +1,3 @@ | ||
export * from './type' | ||
export * from './uploader' | ||
export * from './type' | ||
export * from './use-uploader' |
import type { ExtractPropTypes, PropType } from 'vue' | ||
import type { Interceptor } from '../_utils' | ||
import { | ||
type Interceptor, | ||
commonProps, | ||
@@ -5,0 +5,0 @@ makeArrayProp, |
import type { ExtractPropTypes } from 'vue' | ||
import { CLICK_EVENT } from '../_constants' | ||
import { commonProps, makeNumberProp, makeNumericProp, makeStringProp, truthProp } from '../_utils' | ||
import { CLICK_EVENT } from '../_constants' | ||
@@ -5,0 +5,0 @@ export const watermarkProps = { |
import { reactive, ref } from 'vue' | ||
import { deepAssign } from '../components/_utils' | ||
import type { BaseLang } from './lang/baseLang' | ||
import { EnUSLang } from './lang/en-US' | ||
import { IdIDLang } from './lang/id-ID' | ||
import { ZhCNLang } from './lang/zh-CN' | ||
import { EnUSLang } from './lang/en-US' | ||
import { ZhTWLang } from './lang/zh-TW' | ||
import { IdIDLang } from './lang/id-ID' | ||
import type { BaseLang } from './lang/baseLang' | ||
@@ -17,3 +17,4 @@ // 组件默认语言设置 | ||
export { ZhCNLang, EnUSLang, IdIDLang, ZhTWLang } | ||
export { EnUSLang, IdIDLang, ZhCNLang, ZhTWLang } | ||
const currentLang = ref<keyof Lang>('zh-CN') | ||
@@ -24,2 +25,3 @@ const langs = reactive<Lang>({ | ||
}) | ||
export const useCurrentLang = () => currentLang | ||
@@ -26,0 +28,0 @@ |
@@ -10,8 +10,2 @@ import { getPropByPath, isFunction } from '../components/_utils' | ||
export function useTranslate(compName: string) { | ||
/** | ||
* @param keyPath | ||
* @param compName 组件名 | ||
* @param args | ||
* @returns | ||
*/ | ||
function translate(keyPath: string, ...args: unknown[]): string { | ||
@@ -18,0 +12,0 @@ // 依赖响应能力 |
{ | ||
"name": "nutui-uniapp", | ||
"displayName": "nutui-uniapp 京东风格的轻量级移动端 Uniapp、Vue3 组件库", | ||
"version": "1.7.16", | ||
"version": "1.7.17", | ||
"description": "京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)", | ||
@@ -60,5 +60,5 @@ "author": "yang1206 <y1149221897@outlook.com>", | ||
"peerDependencies": { | ||
"@uni-helper/uni-app-types": "^1.0.0-alpha.3", | ||
"@uni-helper/uni-app-types": "^1.0.0-alpha.4", | ||
"vue": ">=3.2.0" | ||
} | ||
} |
@@ -61,2 +61,3 @@ { | ||
"icon", | ||
"title-width", | ||
"click" | ||
@@ -604,16 +605,17 @@ ], | ||
"model-value", | ||
"input-width", | ||
"button-size", | ||
"min", | ||
"max", | ||
"step", | ||
"step-strictly", | ||
"decimal-places", | ||
"disabled", | ||
"readonly", | ||
"add", | ||
"reduce", | ||
"overlimit", | ||
"input-width", | ||
"button-size", | ||
"change", | ||
"focus", | ||
"blur", | ||
"focus" | ||
"reduce", | ||
"add", | ||
"overlimit" | ||
], | ||
@@ -620,0 +622,0 @@ "description": "[Docs](https://nutui-uniapp.pages.dev/components/dentry/inputnumber.html#inputnumber-数字输入框)" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2865461
264
38554
0