first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:10:55 +08:00
commit 1c24452b6c
1735 changed files with 150474 additions and 0 deletions

View File

@@ -0,0 +1 @@
{"version":3,"file":"AbortablePromise.js","sources":["uni_modules/wot-design-uni/components/common/AbortablePromise.ts"],"sourcesContent":["export class AbortablePromise<T> {\n promise: Promise<T>\n private _reject: ((res?: any) => void) | null = null\n\n constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) {\n this.promise = new Promise<T>((resolve, reject) => {\n executor(resolve, reject)\n this._reject = reject // 保存reject方法的引用以便在abort时调用\n })\n }\n // 提供abort方法来中止Promise\n abort(error?: any) {\n if (this._reject) {\n this._reject(error) // 调用reject方法来中止Promise\n }\n }\n\n then<TResult1 = T, TResult2 = never>(\n onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,\n onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null\n ): Promise<TResult1 | TResult2> {\n return this.promise.then(onfulfilled, onrejected)\n }\n\n catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult> {\n return this.promise.catch(onrejected)\n }\n}\n"],"names":[],"mappings":";AAAO,MAAM,iBAAoB;AAAA,EAI/B,YAAY,UAAkG;AAF9G,SAAQ,UAAwC;AAG9C,SAAK,UAAU,IAAI,QAAW,CAAC,SAAS,WAAW;AACjD,eAAS,SAAS,MAAM;AACxB,WAAK,UAAU;AAAA,IAAA,CAChB;AAAA,EACH;AAAA;AAAA,EAEA,MAAM,OAAa;AACjB,QAAI,KAAK,SAAS;AAChB,WAAK,QAAQ,KAAK;AAAA,IACpB;AAAA,EACF;AAAA,EAEA,KACE,aACA,YAC8B;AAC9B,WAAO,KAAK,QAAQ,KAAK,aAAa,UAAU;AAAA,EAClD;AAAA,EAEA,MAAuB,YAAyG;AACvH,WAAA,KAAK,QAAQ,MAAM,UAAU;AAAA,EACtC;AACF;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"base64.js","sources":["uni_modules/wot-design-uni/components/common/base64.ts"],"sourcesContent":["const _b64chars: string[] = [...'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/']\nconst _mkUriSafe = (src: string): string => src.replace(/[+/]/g, (m0: string) => (m0 === '+' ? '-' : '_')).replace(/=+\\$/m, '')\nconst fromUint8Array = (src: Uint8Array, rfc4648 = false): string => {\n let b64 = ''\n for (let i = 0, l = src.length; i < l; i += 3) {\n const [a0, a1, a2] = [src[i], src[i + 1], src[i + 2]]\n const ord = (a0 << 16) | (a1 << 8) | a2\n b64 += _b64chars[ord >>> 18]\n b64 += _b64chars[(ord >>> 12) & 63]\n b64 += typeof a1 !== 'undefined' ? _b64chars[(ord >>> 6) & 63] : '='\n b64 += typeof a2 !== 'undefined' ? _b64chars[ord & 63] : '='\n }\n return rfc4648 ? _mkUriSafe(b64) : b64\n}\nconst _btoa: (s: string) => string =\n typeof btoa === 'function'\n ? (s: string) => btoa(s)\n : (s: string) => {\n if (s.charCodeAt(0) > 255) {\n throw new RangeError('The string contains invalid characters.')\n }\n return fromUint8Array(Uint8Array.from(s, (c: string) => c.charCodeAt(0)))\n }\nconst utob = (src: string): string => unescape(encodeURIComponent(src))\n\nexport default function encode(src: string, rfc4648 = false): string {\n const b64 = _btoa(utob(src))\n return rfc4648 ? _mkUriSafe(b64) : b64\n}\n"],"names":[],"mappings":";AAAA,MAAM,YAAsB,CAAC,GAAG,kEAAkE;AAClG,MAAM,aAAa,CAAC,QAAwB,IAAI,QAAQ,SAAS,CAAC,OAAgB,OAAO,MAAM,MAAM,GAAI,EAAE,QAAQ,SAAS,EAAE;AAC9H,MAAM,iBAAiB,CAAC,KAAiB,UAAU,UAAkB;AACnE,MAAI,MAAM;AACD,WAAA,IAAI,GAAG,IAAI,IAAI,QAAQ,IAAI,GAAG,KAAK,GAAG;AAC7C,UAAM,CAAC,IAAI,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;AACpD,UAAM,MAAO,MAAM,KAAO,MAAM,IAAK;AAC9B,WAAA,UAAU,QAAQ,EAAE;AACpB,WAAA,UAAW,QAAQ,KAAM,EAAE;AAClC,WAAO,OAAO,OAAO,cAAc,UAAW,QAAQ,IAAK,EAAE,IAAI;AACjE,WAAO,OAAO,OAAO,cAAc,UAAU,MAAM,EAAE,IAAI;AAAA,EAC3D;AACO,SAAA,UAAU,WAAW,GAAG,IAAI;AACrC;AACA,MAAM,QACJ,OAAO,SAAS,aACZ,CAAC,MAAc,KAAK,CAAC,IACrB,CAAC,MAAc;AACb,MAAI,EAAE,WAAW,CAAC,IAAI,KAAK;AACnB,UAAA,IAAI,WAAW,yCAAyC;AAAA,EAChE;AACO,SAAA,eAAe,WAAW,KAAK,GAAG,CAAC,MAAc,EAAE,WAAW,CAAC,CAAC,CAAC;AAC1E;AACN,MAAM,OAAO,CAAC,QAAwB,SAAS,mBAAmB,GAAG,CAAC;AAE9C,SAAA,OAAO,KAAa,UAAU,OAAe;AACnE,QAAM,MAAM,MAAM,KAAK,GAAG,CAAC;AACpB,SAAA,UAAU,WAAW,GAAG,IAAI;AACrC;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"clickoutside.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1 @@
{"version":3,"file":"interceptor.js","sources":["uni_modules/wot-design-uni/components/common/interceptor.ts"],"sourcesContent":["import { isPromise } from './util'\n\nfunction noop() {}\n\nexport type Interceptor = (...args: any[]) => Promise<boolean> | boolean | undefined | void\n\nexport function callInterceptor(\n interceptor: Interceptor | undefined,\n {\n args = [],\n done,\n canceled,\n error\n }: {\n args?: unknown[]\n done: () => void\n canceled?: () => void\n error?: () => void\n }\n) {\n if (interceptor) {\n // eslint-disable-next-line prefer-spread\n const returnVal = interceptor.apply(null, args)\n\n if (isPromise(returnVal)) {\n returnVal\n .then((value) => {\n if (value) {\n done()\n } else if (canceled) {\n canceled()\n }\n })\n .catch(error || noop)\n } else if (returnVal) {\n done()\n } else if (canceled) {\n canceled()\n }\n } else {\n done()\n }\n}\n"],"names":["isPromise"],"mappings":";;AAEA,SAAS,OAAO;AAAC;AAIV,SAAS,gBACd,aACA;AAAA,EACE,OAAO,CAAC;AAAA,EACR;AAAA,EACA;AAAA,EACA;AACF,GAMA;AACA,MAAI,aAAa;AAEf,UAAM,YAAY,YAAY,MAAM,MAAM,IAAI;AAE1C,QAAAA,gDAAAA,UAAU,SAAS,GAAG;AAErB,gBAAA,KAAK,CAAC,UAAU;AACf,YAAI,OAAO;AACJ;mBACI,UAAU;AACV;QACX;AAAA,MACD,CAAA,EACA,MAAM,SAAS,IAAI;AAAA,eACb,WAAW;AACf;eACI,UAAU;AACV;IACX;AAAA,EAAA,OACK;AACA;EACP;AACF;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"props.js","sources":["uni_modules/wot-design-uni/components/common/props.ts"],"sourcesContent":["import type { PropType } from 'vue'\n\nexport const unknownProp = null as unknown as PropType<unknown>\n\nexport const numericProp = [Number, String]\n\nexport const truthProp = {\n type: Boolean,\n default: true as const\n}\n\nexport const makeRequiredProp = <T>(type: T) => ({\n type,\n required: true as const\n})\n\nexport const makeArrayProp = <T>() => ({\n type: Array as PropType<T[]>,\n default: () => []\n})\n\nexport const makeBooleanProp = <T>(defaultVal: T) => ({\n type: Boolean,\n default: defaultVal\n})\n\nexport const makeNumberProp = <T>(defaultVal: T) => ({\n type: Number,\n default: defaultVal\n})\n\nexport const makeNumericProp = <T>(defaultVal: T) => ({\n type: numericProp,\n default: defaultVal\n})\n\nexport const makeStringProp = <T>(defaultVal: T) => ({\n type: String as unknown as PropType<T>,\n default: defaultVal\n})\n\nexport const baseProps = {\n /**\n * 自定义根节点样式\n */\n customStyle: makeStringProp(''),\n /**\n * 自定义根节点样式类\n */\n customClass: makeStringProp('')\n}\n"],"names":[],"mappings":";AAIa,MAAA,cAAc,CAAC,QAAQ,MAAM;AAO7B,MAAA,mBAAmB,CAAI,UAAa;AAAA,EAC/C;AAAA,EACA,UAAU;AACZ;AAEO,MAAM,gBAAgB,OAAU;AAAA,EACrC,MAAM;AAAA,EACN,SAAS,MAAM,CAAC;AAClB;AAEa,MAAA,kBAAkB,CAAI,gBAAmB;AAAA,EACpD,MAAM;AAAA,EACN,SAAS;AACX;AAEa,MAAA,iBAAiB,CAAI,gBAAmB;AAAA,EACnD,MAAM;AAAA,EACN,SAAS;AACX;AAEa,MAAA,kBAAkB,CAAI,gBAAmB;AAAA,EACpD,MAAM;AAAA,EACN,SAAS;AACX;AAEa,MAAA,iBAAiB,CAAI,gBAAmB;AAAA,EACnD,MAAM;AAAA,EACN,SAAS;AACX;AAEO,MAAM,YAAY;AAAA;AAAA;AAAA;AAAA,EAIvB,aAAa,eAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAI9B,aAAa,eAAe,EAAE;AAChC;;;;;;;;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useCell.js","sources":["uni_modules/wot-design-uni/components/composables/useCell.ts"],"sourcesContent":["import { computed } from 'vue'\nimport { useParent } from './useParent'\nimport { CELL_GROUP_KEY } from '../wd-cell-group/types'\n\nexport function useCell() {\n const { parent: cellGroup, index } = useParent(CELL_GROUP_KEY)\n\n const border = computed(() => {\n return cellGroup && cellGroup.props.border && index.value\n })\n\n return { border }\n}\n"],"names":["useParent","CELL_GROUP_KEY","computed"],"mappings":";;;;AAIO,SAAS,UAAU;AACxB,QAAM,EAAE,QAAQ,WAAW,MAAM,IAAIA,0DAAAA,UAAUC,sDAAAA,cAAc;AAEvD,QAAA,SAASC,cAAAA,SAAS,MAAM;AAC5B,WAAO,aAAa,UAAU,MAAM,UAAU,MAAM;AAAA,EAAA,CACrD;AAED,SAAO,EAAE,OAAO;AAClB;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useChildren.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"useLockScroll.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useParent.js","sources":["uni_modules/wot-design-uni/components/composables/useParent.ts"],"sourcesContent":["import {\n ref,\n inject,\n computed,\n onUnmounted,\n type InjectionKey,\n getCurrentInstance,\n type ComponentPublicInstance,\n type ComponentInternalInstance\n} from 'vue'\n\ntype ParentProvide<T> = T & {\n link(child: ComponentInternalInstance): void\n unlink(child: ComponentInternalInstance): void\n children: ComponentPublicInstance[]\n internalChildren: ComponentInternalInstance[]\n}\n\nexport function useParent<T>(key: InjectionKey<ParentProvide<T>>) {\n const parent = inject(key, null)\n\n if (parent) {\n const instance = getCurrentInstance()!\n const { link, unlink, internalChildren } = parent\n\n link(instance)\n onUnmounted(() => unlink(instance))\n\n const index = computed(() => internalChildren.indexOf(instance))\n\n return {\n parent,\n index\n }\n }\n\n return {\n parent: null,\n index: ref(-1)\n }\n}\n"],"names":["inject","getCurrentInstance","onUnmounted","computed","ref"],"mappings":";;AAkBO,SAAS,UAAa,KAAqC;AAC1D,QAAA,SAASA,cAAAA,OAAO,KAAK,IAAI;AAE/B,MAAI,QAAQ;AACV,UAAM,WAAWC,cAAAA;AACjB,UAAM,EAAE,MAAM,QAAQ,iBAAA,IAAqB;AAE3C,SAAK,QAAQ;AACDC,kBAAAA,YAAA,MAAM,OAAO,QAAQ,CAAC;AAElC,UAAM,QAAQC,cAAAA,SAAS,MAAM,iBAAiB,QAAQ,QAAQ,CAAC;AAExD,WAAA;AAAA,MACL;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ;AAEO,SAAA;AAAA,IACL,QAAQ;AAAA,IACR,OAAOC,cAAAA,IAAI,EAAE;AAAA,EAAA;AAEjB;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"usePopover.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useQueue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useRaf.js","sources":["uni_modules/wot-design-uni/components/composables/useRaf.ts"],"sourcesContent":["import { ref, onUnmounted } from 'vue'\nimport { isDef, isH5, isNumber } from '../common/util'\n\n// 定义回调函数类型\ntype RafCallback = (time: number) => void\n\nexport function useRaf(callback: RafCallback) {\n const requestRef = ref<number | null | ReturnType<typeof setTimeout>>(null)\n\n // 启动动画帧\n const start = () => {\n const handle = (time: number) => {\n callback(time)\n }\n\n if (isH5) {\n requestRef.value = requestAnimationFrame(handle)\n } else {\n requestRef.value = setTimeout(() => handle(Date.now()), 1000 / 30)\n }\n }\n\n // 取消动画帧\n const cancel = () => {\n if (isH5 && isNumber(requestRef.value)) {\n cancelAnimationFrame(requestRef.value!)\n } else if (isDef(requestRef.value)) {\n clearTimeout(requestRef.value)\n }\n }\n\n onUnmounted(() => {\n cancel()\n })\n\n return { start, cancel }\n}\n"],"names":["ref","isH5","isNumber","isDef","onUnmounted"],"mappings":";;;AAMO,SAAS,OAAO,UAAuB;AACtC,QAAA,aAAaA,kBAAmD,IAAI;AAG1E,QAAM,QAAQ,MAAM;AACZ,UAAA,SAAS,CAAC,SAAiB;AAC/B,eAAS,IAAI;AAAA,IAAA;AAGf,QAAIC,sDAAM;AACG,iBAAA,QAAQ,sBAAsB,MAAM;AAAA,IAAA,OAC1C;AACM,iBAAA,QAAQ,WAAW,MAAM,OAAO,KAAK,KAAK,GAAG,MAAO,EAAE;AAAA,IACnE;AAAA,EAAA;AAIF,QAAM,SAAS,MAAM;AACnB,QAAIA,wDAAQC,gDAAAA,SAAS,WAAW,KAAK,GAAG;AACtC,2BAAqB,WAAW,KAAM;AAAA,IAC7B,WAAAC,gDAAA,MAAM,WAAW,KAAK,GAAG;AAClC,mBAAa,WAAW,KAAK;AAAA,IAC/B;AAAA,EAAA;AAGFC,gBAAAA,YAAY,MAAM;AACT;EAAA,CACR;AAEM,SAAA,EAAE,OAAO;AAClB;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useTouch.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useTranslate.js","sources":["uni_modules/wot-design-uni/components/composables/useTranslate.ts"],"sourcesContent":["import { camelCase, getPropByPath, isDef, isFunction } from '../common/util'\nimport Locale from '../../locale'\n\nexport const useTranslate = (name?: string) => {\n const prefix = name ? camelCase(name) + '.' : ''\n const translate = (key: string, ...args: unknown[]) => {\n const currentMessages = Locale.messages()\n const message = getPropByPath(currentMessages, prefix + key)\n return isFunction(message) ? message(...args) : isDef(message) ? message : `${prefix}${key}`\n }\n return { translate }\n}\n"],"names":["camelCase","Locale","getPropByPath","isFunction","isDef"],"mappings":";;;AAGa,MAAA,eAAe,CAAC,SAAkB;AAC7C,QAAM,SAAS,OAAOA,gDAAAA,UAAU,IAAI,IAAI,MAAM;AACxC,QAAA,YAAY,CAAC,QAAgB,SAAoB;AAC/C,UAAA,kBAAkBC,6CAAO;AAC/B,UAAM,UAAUC,gDAAA,cAAc,iBAAiB,SAAS,GAAG;AAC3D,WAAOC,gDAAW,WAAA,OAAO,IAAI,QAAQ,GAAG,IAAI,IAAIC,gDAAAA,MAAM,OAAO,IAAI,UAAU,GAAG,MAAM,GAAG,GAAG;AAAA,EAAA;AAE5F,SAAO,EAAE,UAAU;AACrB;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"useUpload.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-button/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-03-15 11:36:12\n * @LastEditTime: 2024-11-04 21:33:52\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: \\wot-design-uni\\src\\uni_modules\\wot-design-uni\\components\\wd-button\\types.ts\n * 记得注释\n */\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeStringProp } from '../common/props'\n\nexport type ButtonType = 'primary' | 'success' | 'info' | 'warning' | 'error' | 'default' | 'text' | 'icon'\nexport type ButtonSize = 'small' | 'medium' | 'large'\nexport type ButtonLang = 'zh_CN' | 'zh_TW' | 'en'\n\nexport type ButtonOpenType =\n | 'feedback'\n | 'share'\n | 'getUserInfo'\n | 'contact'\n | 'getPhoneNumber'\n | 'getRealtimePhoneNumber'\n | 'launchApp'\n | 'openSetting'\n | 'chooseAvatar'\n | 'getAuthorize'\n | 'lifestyle'\n | 'contactShare'\n | 'openGroupProfile'\n | 'openGuildProfile'\n | 'openPublicProfile'\n | 'shareMessageToFriend'\n | 'addFriend'\n | 'addColorSign'\n | 'addGroupApp'\n | 'addToFavorites'\n | 'chooseAddress'\n | 'chooseInvoiceTitle'\n | 'login'\n | 'subscribe'\n | 'favorite'\n | 'watchLater'\n | 'openProfile'\n | 'agreePrivacyAuthorization'\n\nexport type ButtonScope = 'phoneNumber' | 'userInfo'\n\nexport const buttonProps = {\n ...baseProps,\n /**\n * 幽灵按钮\n */\n plain: makeBooleanProp(false),\n /**\n * 圆角按钮\n */\n round: makeBooleanProp(true),\n /**\n * 禁用按钮\n */\n disabled: makeBooleanProp(false),\n /**\n * 是否细边框\n */\n hairline: makeBooleanProp(false),\n /**\n * 块状按钮\n */\n block: makeBooleanProp(false),\n /**\n * 按钮类型可选值primary / success / info / warning / error / text / icon\n */\n type: makeStringProp<ButtonType>('primary'),\n /**\n * 按钮尺寸可选值small / medium / large\n */\n size: makeStringProp<ButtonSize>('medium'),\n /**\n * 图标类名\n */\n icon: String,\n /**\n * 类名前缀用于使用自定义图标用法参考Icon组件\n */\n classPrefix: makeStringProp('wd-icon'),\n /**\n * 加载中按钮\n */\n loading: makeBooleanProp(false),\n /**\n * 加载图标颜色\n */\n loadingColor: String,\n /**\n * 开放能力\n */\n openType: String as PropType<ButtonOpenType>,\n /**\n * 指定是否阻止本节点的祖先节点出现点击态\n */\n hoverStopPropagation: Boolean,\n /**\n * 指定返回用户信息的语言zh_CN 简体中文zh_TW 繁体中文en 英文\n */\n lang: String as PropType<ButtonLang>,\n /**\n * 会话来源open-type=\"contact\"时有效\n */\n sessionFrom: String,\n /**\n * 会话内消息卡片标题open-type=\"contact\"时有效\n */\n sendMessageTitle: String,\n /**\n * 会话内消息卡片点击跳转小程序路径open-type=\"contact\"时有效\n */\n sendMessagePath: String,\n /**\n * 会话内消息卡片图片open-type=\"contact\"时有效\n */\n sendMessageImg: String,\n /**\n * 打开 APP 时,向 APP 传递的参数open-type=launchApp时有效\n */\n appParameter: String,\n /**\n * 是否显示会话内消息卡片,设置此参数为 true用户进入客服会话会在右下角显示\"可能要发送的小程序\"提示用户点击后可以快速发送小程序消息open-type=\"contact\"时有效\n */\n showMessageCard: Boolean,\n /**\n * 按钮的唯一标识可用于设置隐私同意授权按钮的id\n */\n buttonId: String,\n /**\n * 支付宝小程序,当 open-type 为 getAuthorize 时有效。\n * 可选值:'phoneNumber' | 'userInfo'\n */\n scope: String as PropType<ButtonScope>\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\n"],"names":["baseProps","makeBooleanProp","makeStringProp"],"mappings":";;AAgDO,MAAM,cAAc;AAAA,EACzB,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAOC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI5B,OAAOA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA,EAI3B,UAAUA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,UAAUA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,OAAOA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI5B,MAAMC,gEAA2B,SAAS;AAAA;AAAA;AAAA;AAAA,EAI1C,MAAMA,gEAA2B,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIzC,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,aAAaA,gEAAe,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,SAASD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI9B,cAAc;AAAA;AAAA;AAAA;AAAA,EAId,UAAU;AAAA;AAAA;AAAA;AAAA,EAIV,sBAAsB;AAAA;AAAA;AAAA;AAAA,EAItB,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,aAAa;AAAA;AAAA;AAAA;AAAA,EAIb,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIlB,iBAAiB;AAAA;AAAA;AAAA;AAAA,EAIjB,gBAAgB;AAAA;AAAA;AAAA;AAAA,EAIhB,cAAc;AAAA;AAAA;AAAA;AAAA,EAId,iBAAiB;AAAA;AAAA;AAAA;AAAA,EAIjB,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,EAKV,OAAO;AACT;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-cell-group/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2023-12-14 11:21:58\n * @LastEditTime: 2024-03-18 13:57:14\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: \\wot-design-uni\\src\\uni_modules\\wot-design-uni\\components\\wd-cell-group\\types.ts\n * 记得注释\n */\nimport { type ExtractPropTypes, type InjectionKey } from 'vue'\nimport { baseProps, makeBooleanProp } from '../common/props'\n\nexport type CelllGroupProvide = {\n props: {\n border?: boolean\n }\n}\n\nexport const CELL_GROUP_KEY: InjectionKey<CelllGroupProvide> = Symbol('wd-cell-group')\n\nexport const cellGroupProps = {\n ...baseProps,\n /**\n * 分组标题\n */\n title: String,\n /**\n * 分组右侧内容\n */\n value: String,\n /**\n * 分组启用插槽\n */\n useSlot: makeBooleanProp(false),\n /**\n * 是否展示边框线\n */\n border: makeBooleanProp(false)\n}\n\nexport type CellGroupProps = ExtractPropTypes<typeof cellGroupProps>\n"],"names":[],"mappings":";AAkBa,MAAA,iBAAkD,OAAO,eAAe;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-cell-group.js","sources":["uni_modules/wot-design-uni/components/wd-cell-group/wd-cell-group.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2QtY2VsbC1ncm91cC93ZC1jZWxsLWdyb3VwLnZ1ZQ"],"sourcesContent":["<template>\n <view :class=\"['wd-cell-group', border ? 'is-border' : '', customClass]\" :style=\"customStyle\">\n <view v-if=\"title || value || useSlot\" class=\"wd-cell-group__title\">\n <!--左侧标题-->\n <view class=\"wd-cell-group__left\">\n <text v-if=\"!$slots.title\">{{ title }}</text>\n <slot v-else name=\"title\"></slot>\n </view>\n <!--右侧标题-->\n <view class=\"wd-cell-group__right\">\n <text v-if=\"!$slots.value\">{{ value }}</text>\n <slot v-else name=\"value\"></slot>\n </view>\n </view>\n <view class=\"wd-cell-group__body\">\n <slot></slot>\n </view>\n </view>\n</template>\n\n<script lang=\"ts\">\nexport default {\n name: 'wd-cell-group',\n options: {\n addGlobalClass: true,\n virtualHost: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport { useChildren } from '../composables/useChildren'\nimport { CELL_GROUP_KEY, cellGroupProps } from './types'\n\nconst props = defineProps(cellGroupProps)\n\nconst { linkChildren } = useChildren(CELL_GROUP_KEY)\n\nlinkChildren({ props })\n</script>\n\n<style lang=\"scss\" scoped>\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-cell-group/wd-cell-group.vue'\nwx.createComponent(Component)"],"names":["useChildren","CELL_GROUP_KEY"],"mappings":";;;;AAqBA,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,gBAAgB;AAAA,EAClB;AACF;;;;;AAOA,UAAM,QAAQ;AAEd,UAAM,EAAE,aAAA,IAAiBA,4DAAA,YAAYC,sDAAc,cAAA;AAEtC,iBAAA,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;ACtCtB,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-cell/types.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { baseProps, makeArrayProp, makeBooleanProp, makeStringProp, makeNumericProp, numericProp } from '../common/props'\n\nimport { type FormItemRule } from '../wd-form/types'\n\nexport const cellProps = {\n ...baseProps,\n /**\n * 标题\n */\n title: String,\n /**\n * 右侧内容\n */\n value: makeNumericProp(''),\n /**\n * 图标类名\n */\n icon: String,\n /**\n * 图标大小\n */\n iconSize: numericProp,\n /**\n * 描述信息\n */\n label: String,\n /**\n * 是否为跳转链接\n */\n isLink: makeBooleanProp(false),\n /**\n * 跳转地址\n */\n to: String,\n /**\n * 跳转时是否替换栈顶页面\n */\n replace: makeBooleanProp(false),\n /**\n * 开启点击反馈is-link 默认开启\n */\n clickable: makeBooleanProp(false),\n /**\n * 设置单元格大小可选值large\n */\n size: String,\n /**\n * 是否展示边框线\n */\n border: makeBooleanProp(void 0),\n /**\n * 设置左侧标题宽度\n */\n titleWidth: String,\n /**\n * 是否垂直居中,默认顶部居中\n */\n center: makeBooleanProp(false),\n /**\n * 是否必填\n */\n required: makeBooleanProp(false),\n /**\n * 表单属性,上下结构\n */\n vertical: makeBooleanProp(false),\n /**\n * 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的\n */\n prop: String,\n /**\n * 表单验证规则结合wd-form组件使用\n */\n rules: makeArrayProp<FormItemRule>(),\n /**\n * icon 使用 slot 时的自定义样式\n */\n customIconClass: makeStringProp(''),\n /**\n * label 使用 slot 时的自定义样式\n */\n customLabelClass: makeStringProp(''),\n /**\n * value 使用 slot 时的自定义样式\n */\n customValueClass: makeStringProp(''),\n /**\n * title 使用 slot 时的自定义样式\n */\n customTitleClass: makeStringProp(''),\n /**\n * value 文字对齐方式可选值left、right、center\n */\n valueAlign: makeStringProp<'left' | 'right'>('right'),\n /**\n * 是否超出隐藏,显示省略号\n */\n ellipsis: makeBooleanProp(false),\n /**\n * 是否启用title插槽默认启用用来解决插槽传递时v-slot和v-if冲突问题。\n * 问题见https://github.com/dcloudio/uni-app/issues/4847\n */\n useTitleSlot: makeBooleanProp(true),\n /**\n * 必填标记位置可选值before标签前、after标签后\n */\n markerSide: makeStringProp<'before' | 'after'>('before')\n}\n\nexport type CellProps = ExtractPropTypes<typeof cellProps>\n"],"names":["baseProps","makeNumericProp","numericProp","makeBooleanProp","makeArrayProp","makeStringProp"],"mappings":";;AAKO,MAAM,YAAY;AAAA,EACvB,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,OAAOC,iEAAgB,EAAE;AAAA;AAAA;AAAA;AAAA,EAIzB,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,UAAUC,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIV,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,QAAQC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI7B,IAAI;AAAA;AAAA;AAAA;AAAA,EAIJ,SAASA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI9B,WAAWA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIhC,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,QAAQA,iDAAAA,gBAAgB,MAAM;AAAA;AAAA;AAAA;AAAA,EAI9B,YAAY;AAAA;AAAA;AAAA;AAAA,EAIZ,QAAQA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI7B,UAAUA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,UAAUA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,MAAM;AAAA;AAAA;AAAA;AAAA,EAIN,OAAOC,iDAAAA,cAA4B;AAAA;AAAA;AAAA;AAAA,EAInC,iBAAiBC,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAIlC,kBAAkBA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAInC,kBAAkBA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAInC,kBAAkBA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAInC,YAAYA,gEAAiC,OAAO;AAAA;AAAA;AAAA;AAAA,EAIpD,UAAUF,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/B,cAAcA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA,EAIlC,YAAYE,gEAAmC,QAAQ;AACzD;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"util.js","sources":["uni_modules/wot-design-uni/components/wd-datetime-picker-view/util.ts"],"sourcesContent":["import { type DateTimeType } from './types'\n\n/**\n * @description 根据传入的值和类型,获取当前的选项数组,便于传入 pickerView\n * @param value\n * @param type picker类型\n * @param useSecond 是否使用秒,仅在 time 和 datetime 类型下生效\n */\nexport function getPickerValue(value: string | number, type: DateTimeType, useSecond: boolean = false) {\n const values: number[] = []\n const date = new Date(value)\n if (type === 'time') {\n const pair = String(value).split(':')\n values.push(parseInt(pair[0]), parseInt(pair[1]))\n if (useSecond && pair[2]) {\n values.push(parseInt(pair[2]))\n }\n } else {\n values.push(date.getFullYear(), date.getMonth() + 1)\n if (type === 'date') {\n values.push(date.getDate())\n } else if (type === 'datetime') {\n values.push(date.getDate(), date.getHours(), date.getMinutes())\n if (useSecond) {\n values.push(date.getSeconds())\n }\n }\n }\n return values\n}\n"],"names":[],"mappings":";AAQO,SAAS,eAAe,OAAwB,MAAoB,YAAqB,OAAO;AACrG,QAAM,SAAmB,CAAA;AACnB,QAAA,OAAO,IAAI,KAAK,KAAK;AAC3B,MAAI,SAAS,QAAQ;AACnB,UAAM,OAAO,OAAO,KAAK,EAAE,MAAM,GAAG;AAC7B,WAAA,KAAK,SAAS,KAAK,CAAC,CAAC,GAAG,SAAS,KAAK,CAAC,CAAC,CAAC;AAC5C,QAAA,aAAa,KAAK,CAAC,GAAG;AACxB,aAAO,KAAK,SAAS,KAAK,CAAC,CAAC,CAAC;AAAA,IAC/B;AAAA,EAAA,OACK;AACL,WAAO,KAAK,KAAK,YAAA,GAAe,KAAK,SAAA,IAAa,CAAC;AACnD,QAAI,SAAS,QAAQ;AACZ,aAAA,KAAK,KAAK,QAAS,CAAA;AAAA,IAAA,WACjB,SAAS,YAAY;AACvB,aAAA,KAAK,KAAK,QAAQ,GAAG,KAAK,YAAY,KAAK,WAAA,CAAY;AAC9D,UAAI,WAAW;AACN,eAAA,KAAK,KAAK,WAAY,CAAA;AAAA,MAC/B;AAAA,IACF;AAAA,EACF;AACO,SAAA;AACT;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-form/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2023-12-14 11:21:58\n * @LastEditTime: 2025-01-11 13:31:20\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-form/types.ts\n * 记得注释\n */\nimport { type ComponentPublicInstance, type ExtractPropTypes, type InjectionKey, type PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeRequiredProp } from '../common/props'\n\nexport type FormProvide = {\n props: {\n model: Record<string, any>\n rules?: FormRules\n border?: boolean\n }\n errorMessages?: Record<string, string>\n}\n\nexport const FORM_KEY: InjectionKey<FormProvide> = Symbol('wd-form')\n\nexport type FormRules = {\n [key: string]: FormItemRule[]\n}\n\nexport type ErrorMessage = {\n prop: string\n message: string\n}\n\nexport interface FormItemRule {\n [key: string]: any\n required: boolean\n message: string\n pattern?: RegExp\n validator?: (value: any, rule: FormItemRuleWithoutValidator) => boolean | Promise<string> | Promise<boolean> | Promise<void> | Promise<unknown>\n}\n\nexport type FormItemRuleWithoutValidator = Omit<FormItemRule, 'validator'>\n\nexport const formProps = {\n ...baseProps,\n /**\n * 表单数据对象\n */\n model: makeRequiredProp(Object as PropType<Record<string, any>>),\n /**\n * 表单验证规则\n */\n rules: {\n type: Object as PropType<FormRules>,\n default: () => ({})\n },\n /**\n * 是否在输入时重置表单校验信息\n */\n resetOnChange: makeBooleanProp(true),\n /**\n * 错误提示类型\n */\n errorType: {\n type: String as PropType<'toast' | 'message' | 'none'>,\n default: 'message'\n }\n}\nexport type FormProps = ExtractPropTypes<typeof formProps>\n\nexport type FormExpose = {\n /**\n * 表单校验\n * @param prop 指定校验字段\n */\n validate: (prop?: string | Array<string>) => Promise<{\n valid: boolean\n errors: ErrorMessage[]\n }>\n /**\n * 重置表单项的验证提示\n */\n reset: () => void\n}\n\nexport type FormInstance = ComponentPublicInstance<FormProps, FormExpose>\n"],"names":[],"mappings":";AAqBa,MAAA,WAAsC,OAAO,SAAS;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-icon/types.ts"],"sourcesContent":["import { baseProps, makeRequiredProp, makeStringProp, numericProp } from '../common/props'\n\nexport const iconProps = {\n ...baseProps,\n /**\n * 使用的图标名字,可以使用链接图片\n */\n name: makeRequiredProp(String),\n /**\n * 图标的颜色\n */\n color: String,\n /**\n * 图标的字体大小\n */\n size: numericProp,\n /**\n * 类名前缀,用于使用自定义图标\n */\n classPrefix: makeStringProp('wd-icon')\n}\n"],"names":["baseProps","makeRequiredProp","numericProp","makeStringProp"],"mappings":";;AAEO,MAAM,YAAY;AAAA,EACvB,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,MAAMC,kEAAiB,MAAM;AAAA;AAAA;AAAA;AAAA,EAI7B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,MAAMC,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIN,aAAaC,gEAAe,SAAS;AACvC;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-icon.js","sources":["uni_modules/wot-design-uni/components/wd-icon/wd-icon.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2QtaWNvbi93ZC1pY29uLnZ1ZQ"],"sourcesContent":["<template>\n <view @click=\"handleClick\" :class=\"rootClass\" :style=\"rootStyle\">\n <image v-if=\"isImage\" class=\"wd-icon__image\" :src=\"name\"></image>\n </view>\n</template>\n\n<script lang=\"ts\">\nexport default {\n name: 'wd-icon',\n options: {\n virtualHost: true,\n addGlobalClass: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport { computed, type CSSProperties } from 'vue'\nimport { addUnit, isDef, objToStyle } from '../common/util'\nimport { iconProps } from './types'\n\nconst props = defineProps(iconProps)\nconst emit = defineEmits(['click', 'touch'])\n\nconst isImage = computed(() => {\n return isDef(props.name) && props.name.includes('/')\n})\n\nconst rootClass = computed(() => {\n const prefix = props.classPrefix\n return `${prefix} ${props.customClass} ${isImage.value ? 'wd-icon--image' : prefix + '-' + props.name}`\n})\n\nconst rootStyle = computed(() => {\n const style: CSSProperties = {}\n if (props.color) {\n style['color'] = props.color\n }\n if (props.size) {\n style['font-size'] = addUnit(props.size)\n }\n return `${objToStyle(style)} ${props.customStyle}`\n})\n\nfunction handleClick(event: any) {\n emit('click', event)\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-icon/wd-icon.vue'\nwx.createComponent(Component)"],"names":["computed","isDef","addUnit","objToStyle"],"mappings":";;;;AAOA,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AACF;;;;;;AAQA,UAAM,QAAQ;AACd,UAAM,OAAO;AAEP,UAAA,UAAUA,cAAAA,SAAS,MAAM;AAC7B,aAAOC,sDAAM,MAAM,IAAI,KAAK,MAAM,KAAK,SAAS,GAAG;AAAA,IAAA,CACpD;AAEK,UAAA,YAAYD,cAAAA,SAAS,MAAM;AAC/B,YAAM,SAAS,MAAM;AACrB,aAAO,GAAG,MAAM,IAAI,MAAM,WAAW,IAAI,QAAQ,QAAQ,mBAAmB,SAAS,MAAM,MAAM,IAAI;AAAA,IAAA,CACtG;AAEK,UAAA,YAAYA,cAAAA,SAAS,MAAM;AAC/B,YAAM,QAAuB,CAAA;AAC7B,UAAI,MAAM,OAAO;AACT,cAAA,OAAO,IAAI,MAAM;AAAA,MACzB;AACA,UAAI,MAAM,MAAM;AACd,cAAM,WAAW,IAAIE,gDAAQ,QAAA,MAAM,IAAI;AAAA,MACzC;AACA,aAAO,GAAGC,gDAAAA,WAAW,KAAK,CAAC,IAAI,MAAM,WAAW;AAAA,IAAA,CACjD;AAED,aAAS,YAAY,OAAY;AAC/B,WAAK,SAAS,KAAK;AAAA,IACrB;;;;;;;;;;;;;;;AC9CA,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-input-number/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-03-15 20:40:34\n * @LastEditTime: 2025-06-21 18:23:35\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-input-number/types.ts\n * 记得注释\n */\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, makeRequiredProp, makeStringProp, numericProp } from '../common/props'\n\n/**\n * 输入框值变化前的回调函数类型定义\n * @param value 输入框的新值\n * @returns 返回布尔值或Promise<boolean>,用于控制是否允许值的变化\n */\nexport type InputNumberBeforeChange = (value: number | string) => boolean | Promise<boolean>\n\nexport type OperationType = 'add' | 'sub'\n\nexport const inputNumberProps = {\n ...baseProps,\n /**\n * 绑定值\n */\n modelValue: makeRequiredProp(numericProp),\n /**\n * 最小值\n */\n min: makeNumberProp(1),\n /**\n * 最大值\n */\n max: makeNumberProp(Number.MAX_SAFE_INTEGER),\n /**\n * 步进值\n */\n step: makeNumberProp(1),\n /**\n * 是否严格按照步进值递增或递减\n */\n stepStrictly: makeBooleanProp(false),\n /**\n * 数值精度\n */\n precision: makeNumericProp(0),\n /**\n * 是否禁用\n */\n disabled: makeBooleanProp(false),\n /**\n * 是否禁用输入框\n */\n disableInput: makeBooleanProp(false),\n /**\n * 是否禁用减号按钮\n */\n disableMinus: makeBooleanProp(false),\n /**\n * 是否禁用加号按钮\n */\n disablePlus: makeBooleanProp(false),\n /**\n * 是否不显示输入框\n */\n withoutInput: makeBooleanProp(false),\n /**\n * 输入框宽度\n */\n inputWidth: makeNumericProp(36),\n /**\n * 是否允许为空\n */\n allowNull: makeBooleanProp(false),\n /**\n * 输入框占位符\n */\n placeholder: makeStringProp(''),\n /**\n * 原生属性,键盘弹起时,是否自动上推页面\n */\n adjustPosition: makeBooleanProp(true),\n /**\n * 输入值变化前的回调函数,返回 `false` 可阻止输入,支持返回 `Promise`\n */\n beforeChange: Function as PropType<InputNumberBeforeChange>,\n /**\n * 是否开启长按加减手势\n */\n longPress: makeBooleanProp(false),\n /**\n * 是否立即响应输入变化false 时仅在失焦和按钮点击时更新\n */\n immediateChange: makeBooleanProp(true),\n /**\n * 是否在初始化时更新 v-model 为修正后的值\n * true: 自动修正并更新 v-model\n * false: 保持原始值不修正,但仍会进行显示格式化\n */\n updateOnInit: makeBooleanProp(true),\n /**\n * 输入框类型\n * number: 数字输入\n * digit: 整数输入\n */\n inputType: makeStringProp<'number' | 'digit'>('digit')\n}\n\nexport type InputNumberProps = ExtractPropTypes<typeof inputNumberProps>\n"],"names":["baseProps","makeRequiredProp","numericProp","makeNumberProp","makeBooleanProp","makeNumericProp","makeStringProp"],"mappings":";;AAqBO,MAAM,mBAAmB;AAAA,EAC9B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,YAAYC,kEAAiBC,4DAAW;AAAA;AAAA;AAAA;AAAA,EAIxC,KAAKC,gEAAe,CAAC;AAAA;AAAA;AAAA;AAAA,EAIrB,KAAKA,iDAAAA,eAAe,OAAO,gBAAgB;AAAA;AAAA;AAAA;AAAA,EAI3C,MAAMA,gEAAe,CAAC;AAAA;AAAA;AAAA;AAAA,EAItB,cAAcC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAInC,WAAWC,iEAAgB,CAAC;AAAA;AAAA;AAAA;AAAA,EAI5B,UAAUD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,cAAcA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAInC,cAAcA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAInC,aAAaA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIlC,cAAcA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAInC,YAAYC,iEAAgB,EAAE;AAAA;AAAA;AAAA;AAAA,EAI9B,WAAWD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIhC,aAAaE,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAI9B,gBAAgBF,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA,EAIpC,cAAc;AAAA;AAAA;AAAA;AAAA,EAId,WAAWA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIhC,iBAAiBA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMrC,cAAcA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMlC,WAAWE,gEAAmC,OAAO;AACvD;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-loading/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-03-15 20:40:34\n * @LastEditTime: 2024-07-18 22:09:12\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-loading/types.ts\n * 记得注释\n */\nimport type { ExtractPropTypes } from 'vue'\nimport { baseProps, makeNumericProp, makeStringProp } from '../common/props'\n\nexport type LoadingType = 'outline' | 'ring' // 提示信息加载状态类型\n\nexport const loadingProps = {\n ...baseProps,\n /**\n * 加载指示器类型,可选值:'outline' | 'ring'\n */\n type: makeStringProp<LoadingType>('ring'),\n /**\n * 设置加载指示器颜色\n */\n color: makeStringProp('#4D80F0'),\n /**\n * 设置加载指示器大小\n */\n size: makeNumericProp('')\n}\n\nexport type LoadingProps = ExtractPropTypes<typeof loadingProps>\n"],"names":["baseProps","makeStringProp","makeNumericProp"],"mappings":";;AAcO,MAAM,eAAe;AAAA,EAC1B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,MAAMC,gEAA4B,MAAM;AAAA;AAAA;AAAA;AAAA,EAIxC,OAAOA,gEAAe,SAAS;AAAA;AAAA;AAAA;AAAA,EAI/B,MAAMC,iEAAgB,EAAE;AAC1B;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["uni_modules/wot-design-uni/components/wd-message-box/index.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2022-12-14 17:33:21\n * @LastEditTime: 2024-12-05 13:23:17\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: \\wot-design-uni\\src\\uni_modules\\wot-design-uni\\components\\wd-message-box\\index.ts\n * 记得注释\n */\nimport { inject, provide, ref } from 'vue'\nimport type { Message, MessageOptions, MessageOptionsWithCallBack, MessageResult, MessageType } from './types'\nimport { deepMerge } from '../common/util'\n\nconst messageDefaultOptionKey = '__MESSAGE_OPTION__'\n\nconst None = Symbol('None')\n\n// 默认模板\nexport const defaultOptions: MessageOptionsWithCallBack = {\n title: '',\n showCancelButton: false,\n show: false,\n closeOnClickModal: true,\n msg: '',\n type: 'alert',\n inputType: 'text',\n inputValue: '',\n showErr: false,\n zIndex: 99,\n lazyRender: true,\n inputError: ''\n}\n\nexport function useMessage(selector: string = ''): Message {\n const messageOptionKey = selector ? messageDefaultOptionKey + selector : messageDefaultOptionKey\n const messageOption = inject(messageOptionKey, ref<MessageOptionsWithCallBack | typeof None>(None)) // Message选项\n if (messageOption.value === None) {\n messageOption.value = defaultOptions\n provide(messageOptionKey, messageOption)\n }\n\n const createMethod = (type: MessageType) => {\n // 优先级options->MessageOptions->defaultOptions\n return (options: MessageOptions | string) => {\n const messageOptions = deepMerge({ type: type }, typeof options === 'string' ? { title: options } : options) as MessageOptions\n if (messageOptions.type === 'confirm' || messageOptions.type === 'prompt') {\n messageOptions.showCancelButton = true\n } else {\n messageOptions.showCancelButton = false\n }\n return show(messageOptions)\n }\n }\n\n const show = (option: MessageOptions | string) => {\n // 返回一个promise\n return new Promise<MessageResult>((resolve, reject) => {\n const options = deepMerge(defaultOptions, typeof option === 'string' ? { title: option } : option)\n messageOption.value = deepMerge(options, {\n show: true,\n success: (res: MessageResult) => {\n close()\n resolve(res)\n },\n fail: (res: MessageResult) => {\n close()\n reject(res)\n }\n })\n })\n }\n\n // 打开Alert 弹框\n const alert = createMethod('alert')\n // 打开Confirm 弹框\n const confirm = createMethod('confirm')\n // 打开Prompt 弹框\n const prompt = createMethod('prompt')\n\n const close = () => {\n if (messageOption.value !== None) {\n messageOption.value.show = false\n }\n }\n return {\n show,\n alert,\n confirm,\n prompt,\n close\n }\n}\n\nexport const getMessageDefaultOptionKey = (selector: string) => {\n return selector ? `${messageDefaultOptionKey}${selector}` : messageDefaultOptionKey\n}\n"],"names":["inject","ref","provide","deepMerge"],"mappings":";;;AAaA,MAAM,0BAA0B;AAEhC,MAAM,OAAO,OAAO,MAAM;AAGnB,MAAM,iBAA6C;AAAA,EACxD,OAAO;AAAA,EACP,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,mBAAmB;AAAA,EACnB,KAAK;AAAA,EACL,MAAM;AAAA,EACN,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,YAAY;AACd;AAEgB,SAAA,WAAW,WAAmB,IAAa;AACnD,QAAA,mBAAmB,WAAW,0BAA0B,WAAW;AACzE,QAAM,gBAAgBA,cAAAA,OAAO,kBAAkBC,cAAAA,IAA8C,IAAI,CAAC;AAC9F,MAAA,cAAc,UAAU,MAAM;AAChC,kBAAc,QAAQ;AACtBC,0BAAQ,kBAAkB,aAAa;AAAA,EACzC;AAEM,QAAA,eAAe,CAAC,SAAsB;AAE1C,WAAO,CAAC,YAAqC;AAC3C,YAAM,iBAAiBC,gDAAAA,UAAU,EAAE,KAAc,GAAA,OAAO,YAAY,WAAW,EAAE,OAAO,QAAQ,IAAI,OAAO;AAC3G,UAAI,eAAe,SAAS,aAAa,eAAe,SAAS,UAAU;AACzE,uBAAe,mBAAmB;AAAA,MAAA,OAC7B;AACL,uBAAe,mBAAmB;AAAA,MACpC;AACA,aAAO,KAAK,cAAc;AAAA,IAAA;AAAA,EAC5B;AAGI,QAAA,OAAO,CAAC,WAAoC;AAEhD,WAAO,IAAI,QAAuB,CAAC,SAAS,WAAW;AAC/C,YAAA,UAAUA,gDAAAA,UAAU,gBAAgB,OAAO,WAAW,WAAW,EAAE,OAAO,WAAW,MAAM;AACnF,oBAAA,QAAQA,0DAAU,SAAS;AAAA,QACvC,MAAM;AAAA,QACN,SAAS,CAAC,QAAuB;AACzB;AACN,kBAAQ,GAAG;AAAA,QACb;AAAA,QACA,MAAM,CAAC,QAAuB;AACtB;AACN,iBAAO,GAAG;AAAA,QACZ;AAAA,MAAA,CACD;AAAA,IAAA,CACF;AAAA,EAAA;AAIG,QAAA,QAAQ,aAAa,OAAO;AAE5B,QAAA,UAAU,aAAa,SAAS;AAEhC,QAAA,SAAS,aAAa,QAAQ;AAEpC,QAAM,QAAQ,MAAM;AACd,QAAA,cAAc,UAAU,MAAM;AAChC,oBAAc,MAAM,OAAO;AAAA,IAC7B;AAAA,EAAA;AAEK,SAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;AAEa,MAAA,6BAA6B,CAAC,aAAqB;AAC9D,SAAO,WAAW,GAAG,uBAAuB,GAAG,QAAQ,KAAK;AAC9D;;;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-message-box/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-04-08 22:34:01\n * @LastEditTime: 2024-12-05 13:26:50\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: \\wot-design-uni\\src\\uni_modules\\wot-design-uni\\components\\wd-message-box\\types.ts\n * 记得注释\n */\nimport { baseProps, makeStringProp, makeBooleanProp } from '../common/props'\nimport type { ButtonProps } from '../wd-button/types'\nimport { type InputSize, type InputType } from '../wd-input/types'\n\nexport type MessageType = 'alert' | 'confirm' | 'prompt'\n\nexport type MessageBeforeConfirmOption = {\n resolve: (isPass: boolean) => void\n}\n\nexport type MessageOptions = {\n /**\n * 标题\n */\n title?: string\n /**\n * 是否展示取消按钮\n */\n showCancelButton?: boolean\n /**\n * 是否支持点击蒙层进行关闭点击蒙层回调传入的action为'modal'\n */\n closeOnClickModal?: boolean\n /**\n * 确定按钮文案\n */\n confirmButtonText?: string\n /**\n * 取消按钮文案\n */\n cancelButtonText?: string\n /**\n * 消息文案\n */\n msg?: string\n /**\n * 弹框类型\n */\n type?: MessageType\n /**\n * 当type为prompt时输入框类型\n */\n inputType?: InputType\n /**\n * 设置输入框大小可选值large\n */\n inputSize?: InputSize\n /**\n * 当type为prompt时输入框初始值\n */\n inputValue?: string | number\n /**\n * 当type为prompt时输入框placeholder\n */\n inputPlaceholder?: string\n /**\n * 当type为prompt时输入框正则校验点击确定按钮时进行校验\n */\n inputPattern?: RegExp\n /**\n * 当type为prompt时输入框校验函数点击确定按钮时进行校验\n */\n inputValidate?: InputValidate\n /**\n * 当type为prompt时输入框检验不通过时的错误提示文案\n */\n inputError?: string\n /**\n * 是否展示错误信息\n */\n showErr?: boolean\n /**\n * 弹窗层级\n */\n zIndex?: number\n /**\n * 弹层内容懒渲染,触发展示时才渲染内容\n */\n lazyRender?: boolean\n /**\n * 确认前钩子\n */\n beforeConfirm?: (options: MessageBeforeConfirmOption) => void\n /**\n * 取消按钮Props\n */\n cancelButtonProps?: Partial<ButtonProps>\n /**\n * 确认按钮Props\n */\n confirmButtonProps?: Partial<ButtonProps>\n}\n\nexport type MessageOptionsWithCallBack = MessageOptions & {\n show?: boolean\n success?: (res: MessageResult) => void\n fail?: (res: MessageResult) => void\n}\n\nexport type ActionType = 'confirm' | 'cancel' | 'modal'\n\nexport type InputValidate = (inputValue: string | number) => boolean\n\nexport interface MessageResult {\n action: ActionType\n value?: string | number\n}\n\nexport interface Message {\n // 打开Message\n show(toastOptions: MessageOptions | string): Promise<MessageResult>\n // 打开Alert 弹框\n alert(toastOptions: MessageOptions | string): Promise<MessageResult>\n // 打开Confirm 弹框\n confirm(toastOptions: MessageOptions | string): Promise<MessageResult>\n // 打开Prompt 弹框\n prompt(toastOptions: MessageOptions | string): Promise<MessageResult>\n // 关闭Message\n close(): void\n}\n\nexport const messageBoxProps = {\n ...baseProps,\n /**\n * 指定唯一标识\n */\n selector: makeStringProp(''),\n /**\n * 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)\n */\n rootPortal: makeBooleanProp(false)\n}\n"],"names":["baseProps","makeStringProp","makeBooleanProp"],"mappings":";;AAkIO,MAAM,kBAAkB;AAAA,EAC7B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,UAAUC,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAI3B,YAAYC,iEAAgB,KAAK;AACnC;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-navbar-capsule/types.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { baseProps } from '../common/props'\n\nexport const navbarCapsuleProps = {\n ...baseProps\n}\n\nexport type NavbarCapsuleProps = ExtractPropTypes<typeof navbarCapsuleProps>\n"],"names":["baseProps"],"mappings":";;AAGO,MAAM,qBAAqB;AAAA,EAChC,GAAGA,iDAAA;AACL;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-navbar-capsule.js","sources":["uni_modules/wot-design-uni/components/wd-navbar-capsule/wd-navbar-capsule.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2QtbmF2YmFyLWNhcHN1bGUvd2QtbmF2YmFyLWNhcHN1bGUudnVl"],"sourcesContent":["<template>\n <view :class=\"`wd-navbar-capsule ${customClass}`\" :style=\"customStyle\">\n <wd-icon @click=\"handleBack\" name=\"chevron-left\" custom-class=\"wd-navbar-capsule__icon\" />\n <wd-icon @click=\"handleBackHome\" name=\"home\" custom-class=\"wd-navbar-capsule__icon\" />\n </view>\n</template>\n<script lang=\"ts\">\nexport default {\n name: 'wd-navbar-capsule',\n options: {\n virtualHost: true,\n addGlobalClass: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport wdIcon from '../wd-icon/wd-icon.vue'\nimport { navbarCapsuleProps } from './types'\n\nconst emit = defineEmits(['back', 'back-home'])\ndefineProps(navbarCapsuleProps)\n\nfunction handleBack() {\n emit('back')\n}\nfunction handleBackHome() {\n emit('back-home')\n}\n</script>\n\n<style lang=\"scss\">\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-navbar-capsule/wd-navbar-capsule.vue'\nwx.createComponent(Component)"],"names":["Component"],"mappings":";;;;;;AAkBA,MAAA,SAAmB,MAAA;AAXnB,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AACF;;;;;;AAOA,UAAM,OAAO;AAGb,aAAS,aAAa;AACpB,WAAK,MAAM;AAAA,IACb;AACA,aAAS,iBAAiB;AACxB,WAAK,WAAW;AAAA,IAClB;;;;;;;;;;;;;;;;;;;AC5BA,GAAG,gBAAgBA,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-navbar/types.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp } from '../common/props'\n\nexport const navbarProps = {\n ...baseProps,\n /**\n * 标题文字\n */\n title: String,\n /**\n * 左侧文案\n */\n leftText: String,\n /**\n * 右侧文案\n */\n rightText: String,\n /**\n * 是否显示左侧箭头\n */\n leftArrow: makeBooleanProp(false),\n /**\n * 是否显示下边框\n */\n bordered: makeBooleanProp(true),\n /**\n * 是否固定到顶部\n */\n fixed: makeBooleanProp(false),\n /**\n * 固定在顶部时,是否在标签位置生成一个等高的占位元素\n */\n placeholder: makeBooleanProp(false),\n /**\n * 导航栏 z-index\n */\n zIndex: makeNumberProp(500),\n /**\n * 是否开启顶部安全区适配\n */\n safeAreaInsetTop: makeBooleanProp(false),\n /**\n * 是否禁用左侧按钮,禁用时透明度降低,且无法点击\n */\n leftDisabled: makeBooleanProp(false),\n /**\n * 是否禁用右侧按钮,禁用时透明度降低,且无法点击\n */\n rightDisabled: makeBooleanProp(false)\n}\n\nexport type NavbarProps = ExtractPropTypes<typeof navbarProps>\n"],"names":["baseProps","makeBooleanProp","makeNumberProp"],"mappings":";;AAGO,MAAM,cAAc;AAAA,EACzB,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,UAAU;AAAA;AAAA;AAAA;AAAA,EAIV,WAAW;AAAA;AAAA;AAAA;AAAA,EAIX,WAAWC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIhC,UAAUA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA,EAI9B,OAAOA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI5B,aAAaA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIlC,QAAQC,gEAAe,GAAG;AAAA;AAAA;AAAA;AAAA,EAI1B,kBAAkBD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAIvC,cAAcA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAInC,eAAeA,iEAAgB,KAAK;AACtC;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-notice-bar/types.ts"],"sourcesContent":["import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp, makeStringProp } from '../common/props'\n\nexport type NoticeBarType = 'warning' | 'info' | 'danger' | ''\nexport type NoticeBarScrollDirection = 'horizontal' | 'vertical'\n\nexport const noticeBarProps = {\n ...baseProps,\n /**\n * 设置通知栏文案\n */\n text: {\n type: [String, Array] as PropType<string | string[]>,\n default: ''\n },\n /**\n * 设置通知栏类型,可选值为:'warning' | 'info' | 'danger'\n */\n type: makeStringProp<NoticeBarType>('warning'),\n /**\n * 是否可滚动\n */\n scrollable: makeBooleanProp(true),\n /**\n * 滚动延迟时间(秒)\n */\n delay: makeNumberProp(1),\n /**\n * 滚动速度px/s\n */\n speed: makeNumberProp(50),\n /**\n * 是否可关闭\n */\n closable: makeBooleanProp(false),\n /**\n * 是否换行显示\n */\n wrapable: makeBooleanProp(false),\n /**\n * 设置左侧图标,使用 icon 章节中的图标名\n */\n prefix: String,\n /**\n * 文字、图标颜色\n */\n color: String,\n /**\n * 背景颜色\n */\n backgroundColor: String,\n /**\n * 滚动方向\n */\n direction: makeStringProp<NoticeBarScrollDirection>('horizontal')\n}\n\nexport type NoticeBarProps = ExtractPropTypes<typeof noticeBarProps>\n\nexport type NoticeBarExpose = {\n /**\n * 重置NoticeBar动画\n */\n reset: () => void\n}\n\nexport type NoticeBarInstance = ComponentPublicInstance<NoticeBarProps, NoticeBarExpose>\n"],"names":["baseProps","makeStringProp","makeBooleanProp","makeNumberProp"],"mappings":";;AAMO,MAAM,iBAAiB;AAAA,EAC5B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,MAAM;AAAA,IACJ,MAAM,CAAC,QAAQ,KAAK;AAAA,IACpB,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAMC,gEAA8B,SAAS;AAAA;AAAA;AAAA;AAAA,EAI7C,YAAYC,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA,EAIhC,OAAOC,gEAAe,CAAC;AAAA;AAAA;AAAA;AAAA,EAIvB,OAAOA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA,EAIxB,UAAUD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,UAAUA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIR,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,iBAAiB;AAAA;AAAA;AAAA;AAAA,EAIjB,WAAWD,gEAAyC,YAAY;AAClE;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-overlay/types.ts"],"sourcesContent":["import type { PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp } from '../common/props'\n\nexport const overlayProps = {\n ...baseProps,\n /**\n * 是否展示遮罩层\n */\n show: makeBooleanProp(false),\n /**\n * 动画时长,单位毫秒\n */\n duration: {\n type: [Object, Number, Boolean] as PropType<Record<string, number> | number | boolean>,\n default: 300\n },\n /**\n * 是否锁定滚动\n */\n lockScroll: makeBooleanProp(true),\n /**\n * 层级\n */\n zIndex: makeNumberProp(10)\n}\n"],"names":["baseProps","makeBooleanProp","makeNumberProp"],"mappings":";;AAGO,MAAM,eAAe;AAAA,EAC1B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,MAAMC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI3B,UAAU;AAAA,IACR,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAYA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA,EAIhC,QAAQC,gEAAe,EAAE;AAC3B;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-overlay.js","sources":["uni_modules/wot-design-uni/components/wd-overlay/wd-overlay.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2Qtb3ZlcmxheS93ZC1vdmVybGF5LnZ1ZQ"],"sourcesContent":["<template>\n <wd-transition\n :show=\"show\"\n name=\"fade\"\n custom-class=\"wd-overlay\"\n :duration=\"duration\"\n :custom-style=\"`z-index: ${zIndex}; ${customStyle}`\"\n :disable-touch-move=\"lockScroll\"\n @click=\"handleClick\"\n >\n <slot></slot>\n </wd-transition>\n</template>\n<script lang=\"ts\">\nexport default {\n name: 'wd-overlay',\n options: {\n virtualHost: true,\n addGlobalClass: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport wdTransition from '../wd-transition/wd-transition.vue'\nimport { overlayProps } from './types'\n\n\n\n\nconst props = defineProps(overlayProps)\n\nconst emit = defineEmits(['click'])\n\nfunction handleClick() {\n emit('click')\n}\n\n\n\n\n</script>\n\n<style lang=\"scss\">\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-overlay/wd-overlay.vue'\nwx.createComponent(Component)"],"names":["Component"],"mappings":";;;;;;AAyBA,MAAA,eAAyB,MAAA;AAXzB,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AACF;;;;;;AAYA,UAAM,OAAO;AAEb,aAAS,cAAc;AACrB,WAAK,OAAO;AAAA,IACd;;;;;;;;;;;;;;;;ACpCA,GAAG,gBAAgBA,SAAS;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-popup/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-03-18 11:22:03\n * @LastEditTime: 2025-07-06 21:00:04\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-popup/types.ts\n * 记得注释\n */\nimport type { PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp, makeStringProp } from '../common/props'\nimport type { TransitionName } from '../wd-transition/types'\n\nexport type PopupType = 'center' | 'top' | 'right' | 'bottom' | 'left'\n\nexport const popupProps = {\n ...baseProps,\n /**\n * 动画类型,参见 wd-transition 组件的name\n * 类型string\n * 可选值fade / fade-up / fade-down / fade-left / fade-right / slide-up / slide-down / slide-left / slide-right / zoom-in\n */\n transition: String as PropType<TransitionName>,\n /**\n * 关闭按钮\n * 类型boolean\n * 默认值false\n */\n closable: makeBooleanProp(false),\n /**\n * 弹出框的位置\n * 类型string\n * 默认值center\n * 可选值center / top / right / bottom / left\n */\n position: makeStringProp<PopupType>('center'),\n /**\n * 点击遮罩是否关闭\n * 类型boolean\n * 默认值true\n */\n closeOnClickModal: makeBooleanProp(true),\n /**\n * 动画持续时间\n * 类型number | boolean\n * 默认值300\n */\n duration: {\n type: [Number, Boolean],\n default: 300\n },\n /**\n * 是否显示遮罩\n * 类型boolean\n * 默认值true\n */\n modal: makeBooleanProp(true),\n /**\n * 设置层级\n * 类型number\n * 默认值10\n */\n zIndex: makeNumberProp(10),\n /**\n * 是否当关闭时将弹出层隐藏display: none)\n * 类型boolean\n * 默认值true\n */\n hideWhenClose: makeBooleanProp(true),\n /**\n * 遮罩样式\n * 类型string\n * 默认值:''\n */\n modalStyle: makeStringProp(''),\n /**\n * 弹出面板是否设置底部安全距离iphone X 类型的机型)\n * 类型boolean\n * 默认值false\n */\n safeAreaInsetBottom: makeBooleanProp(false),\n /**\n * 弹出层是否显示\n */\n modelValue: makeBooleanProp(false),\n /**\n * 弹层内容懒渲染,触发展示时才渲染内容\n * 类型boolean\n * 默认值true\n */\n lazyRender: makeBooleanProp(true),\n /**\n * 是否锁定滚动\n * 类型boolean\n * 默认值true\n */\n lockScroll: makeBooleanProp(true),\n /**\n * 是否从页面中脱离出来,用于解决各种 fixed 失效问题 (H5: teleport, APP: renderjs, 小程序: root-portal)\n * 类型boolean\n * 默认值false\n */\n rootPortal: makeBooleanProp(false)\n}\n"],"names":["baseProps","makeBooleanProp","makeStringProp","makeNumberProp"],"mappings":";;AAeO,MAAM,aAAa;AAAA,EACxB,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMH,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMZ,UAAUC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/B,UAAUC,gEAA0B,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM5C,mBAAmBD,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMvC,UAAU;AAAA,IACR,MAAM,CAAC,QAAQ,OAAO;AAAA,IACtB,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,OAAOA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM3B,QAAQE,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMzB,eAAeF,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnC,YAAYC,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7B,qBAAqBD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI1C,YAAYA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjC,YAAYA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhC,YAAYA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMhC,YAAYA,iEAAgB,KAAK;AACnC;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-radio-group/types.ts"],"sourcesContent":["import { type InjectionKey } from 'vue'\nimport type { RadioShape, RadioIconPlacement } from '../wd-radio/types'\nimport { baseProps, makeBooleanProp, makeStringProp } from '../common/props'\n\nexport type RadioGroupProvide = {\n props: {\n modelValue?: string | number | boolean\n shape?: RadioShape\n checkedColor?: string\n disabled?: boolean\n cell?: boolean\n size?: string\n inline?: boolean\n iconPlacement?: RadioIconPlacement\n }\n updateValue: (value: string | number | boolean) => void\n}\n\nexport const RADIO_GROUP_KEY: InjectionKey<RadioGroupProvide> = Symbol('wd-radio-group')\n\nexport const radioGroupProps = {\n ...baseProps,\n /** 会自动选中value对应的单选框 */\n modelValue: [String, Number, Boolean],\n /** 单选框形状,可选值为 dot / button / check默认为 check */\n shape: makeStringProp<RadioShape>('check'),\n /** 选中的颜色,默认为 #4D80F0 */\n checkedColor: String,\n /** 是否禁用,默认为 false */\n disabled: makeBooleanProp(false),\n /** 表单模式,默认为 false */\n cell: makeBooleanProp(false),\n /** 设置大小,默认为空 */\n size: makeStringProp(''),\n /** 同行展示,默认为 false */\n inline: makeBooleanProp(false),\n /** 图标位置,默认为 left */\n iconPlacement: makeStringProp<RadioIconPlacement>('auto')\n}\n"],"names":["baseProps","makeStringProp","makeBooleanProp"],"mappings":";;AAkBa,MAAA,kBAAmD,OAAO,gBAAgB;AAEhF,MAAM,kBAAkB;AAAA,EAC7B,GAAGA,iDAAA;AAAA;AAAA,EAEH,YAAY,CAAC,QAAQ,QAAQ,OAAO;AAAA;AAAA,EAEpC,OAAOC,gEAA2B,OAAO;AAAA;AAAA,EAEzC,cAAc;AAAA;AAAA,EAEd,UAAUC,iEAAgB,KAAK;AAAA;AAAA,EAE/B,MAAMA,iEAAgB,KAAK;AAAA;AAAA,EAE3B,MAAMD,gEAAe,EAAE;AAAA;AAAA,EAEvB,QAAQC,iEAAgB,KAAK;AAAA;AAAA,EAE7B,eAAeD,gEAAmC,MAAM;AAC1D;;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-radio-group.js","sources":["uni_modules/wot-design-uni/components/wd-radio-group/wd-radio-group.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2QtcmFkaW8tZ3JvdXAvd2QtcmFkaW8tZ3JvdXAudnVl"],"sourcesContent":["<template>\n <view :class=\"`wd-radio-group ${customClass} ${cell && shape === 'button' ? 'is-button' : ''}`\" :style=\"customStyle\">\n <slot />\n </view>\n</template>\n<script lang=\"ts\">\nexport default {\n name: 'wd-radio-group',\n options: {\n virtualHost: true,\n addGlobalClass: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport { watch } from 'vue'\nimport { useChildren } from '../composables/useChildren'\nimport { RADIO_GROUP_KEY, radioGroupProps } from './types'\n\nconst props = defineProps(radioGroupProps)\nconst emit = defineEmits(['change', 'update:modelValue'])\n\nconst { linkChildren, children } = useChildren(RADIO_GROUP_KEY)\n\nlinkChildren({ props, updateValue })\n\nwatch(\n () => props.shape,\n (newValue) => {\n // type: 'dot', 'button', 'check'\n const type = ['check', 'dot', 'button']\n if (type.indexOf(newValue) === -1) uni.__f__('error','at uni_modules/wot-design-uni/components/wd-radio-group/wd-radio-group.vue:34',`shape must be one of ${type.toString()}`)\n },\n { deep: true, immediate: true }\n)\n\n/**\n * @description 处理radio子节点通知\n */\nfunction updateValue(value: string | number | boolean) {\n emit('update:modelValue', value)\n emit('change', {\n value\n })\n}\n</script>\n<style lang=\"scss\" scoped>\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-radio-group/wd-radio-group.vue'\nwx.createComponent(Component)"],"names":["useChildren","RADIO_GROUP_KEY","watch","uni"],"mappings":";;;;AAMA,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AACF;;;;;;AAQA,UAAM,QAAQ;AACd,UAAM,OAAO;AAEb,UAAM,EAAE,cAAc,SAAS,IAAIA,wEAAYC,uDAAe,eAAA;AAEjD,iBAAA,EAAE,OAAO,YAAA,CAAa;AAEnCC,kBAAA;AAAA,MACE,MAAM,MAAM;AAAA,MACZ,CAAC,aAAa;AAEZ,cAAM,OAAO,CAAC,SAAS,OAAO,QAAQ;AAClC,YAAA,KAAK,QAAQ,QAAQ,MAAM;AAAIC,8BAAI,MAAM,SAAQ,iFAAgF,wBAAwB,KAAK,UAAU,EAAE;AAAA,MAChL;AAAA,MACA,EAAE,MAAM,MAAM,WAAW,KAAK;AAAA,IAAA;AAMhC,aAAS,YAAY,OAAkC;AACrD,WAAK,qBAAqB,KAAK;AAC/B,WAAK,UAAU;AAAA,QACb;AAAA,MAAA,CACD;AAAA,IACH;;;;;;;;;;AC7CA,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-radio/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-03-15 20:40:34\n * @LastEditTime: 2024-12-07 18:52:34\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-radio/types.ts\n * 记得注释\n */\nimport type { PropType } from 'vue'\nimport { baseProps, makeRequiredProp, makeStringProp } from '../common/props'\n\nexport type RadioShape = 'dot' | 'button' | 'check'\n\nexport type RadioIconPlacement = 'left' | 'right' | 'auto'\n\nexport const radioProps = {\n ...baseProps,\n /** 选中时的值 */\n value: makeRequiredProp([String, Number, Boolean]),\n /** 单选框的形状 */\n shape: String as PropType<RadioShape>,\n /** 选中的颜色 */\n checkedColor: String,\n /** 禁用 */\n disabled: {\n type: [Boolean, null] as PropType<boolean | null>,\n default: null\n },\n /** 单元格 */\n cell: {\n type: [Boolean, null] as PropType<boolean | null>,\n default: null\n },\n /** 大小 */\n size: String,\n /** 内联 */\n inline: {\n type: [Boolean, null] as PropType<boolean | null>,\n default: null\n },\n /** 最大宽度 */\n maxWidth: String,\n /**\n * 图标位置\n * 可选值: 'left' | 'right' | 'auto'\n */\n iconPlacement: {\n type: String as PropType<RadioIconPlacement>\n }\n}\n"],"names":["baseProps","makeRequiredProp"],"mappings":";;AAgBO,MAAM,aAAa;AAAA,EACxB,GAAGA,iDAAA;AAAA;AAAA,EAEH,OAAOC,iDAAAA,iBAAiB,CAAC,QAAQ,QAAQ,OAAO,CAAC;AAAA;AAAA,EAEjD,OAAO;AAAA;AAAA,EAEP,cAAc;AAAA;AAAA,EAEd,UAAU;AAAA,IACR,MAAM,CAAC,SAAS,IAAI;AAAA,IACpB,SAAS;AAAA,EACX;AAAA;AAAA,EAEA,MAAM;AAAA,IACJ,MAAM,CAAC,SAAS,IAAI;AAAA,IACpB,SAAS;AAAA,EACX;AAAA;AAAA,EAEA,MAAM;AAAA;AAAA,EAEN,QAAQ;AAAA,IACN,MAAM,CAAC,SAAS,IAAI;AAAA,IACpB,SAAS;AAAA,EACX;AAAA;AAAA,EAEA,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA,EAKV,eAAe;AAAA,IACb,MAAM;AAAA,EACR;AACF;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-root-portal.js","sources":["uni_modules/wot-design-uni/components/wd-root-portal/wd-root-portal.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2Qtcm9vdC1wb3J0YWwvd2Qtcm9vdC1wb3J0YWwudnVl"],"sourcesContent":["<template>\n <!-- #ifdef H5 -->\n <!-- H5端使用 teleport -->\n <teleport to=\"body\">\n <!-- #endif -->\n <!-- #ifdef MP-WEIXIN || MP-ALIPAY -->\n <!-- #ifndef MP-DINGTALK -->\n <!-- 小程序使用 root-portal -->\n <root-portal>\n <!-- #endif -->\n <!-- #endif -->\n <slot />\n <!-- #ifdef MP-WEIXIN || MP-ALIPAY -->\n <!-- #ifndef MP-DINGTALK -->\n </root-portal>\n <!-- #endif -->\n <!-- #endif -->\n <!-- #ifdef H5 -->\n </teleport>\n <!-- #endif -->\n</template>\n<script>\nexport default {\n name: 'wd-root-portal',\n options: {\n virtualHost: true,\n addGlobalClass: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n<script lang=\"ts\" setup></script>\n\n<!-- #ifdef APP-PLUS -->\n<script module=\"render\" lang=\"renderjs\">\nexport default {\n mounted() {\n if (this.$ownerInstance.$el) {\n (document.querySelector('uni-app') || document.body).appendChild(this.$ownerInstance.$el)\n }\n },\n beforeDestroy() {\n // 清理,将元素移回原位置\n if (this.$ownerInstance.$el) {\n (document.querySelector('uni-app') || document.body).removeChild(this.$ownerInstance.$el)\n }\n }\n}\n</script>\n<!-- #endif -->\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-root-portal/wd-root-portal.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;AAsBA,MAAK,YAAU;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,EAClB;AACF;;;;;AC5BA,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-search/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-09-01 15:42:04\n * @LastEditTime: 2024-09-21 15:36:09\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: \\wot-design-uni\\src\\uni_modules\\wot-design-uni\\components\\wd-search\\types.ts\n * 记得注释\n */\nimport { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, makeStringProp } from '../common/props'\n\nexport const searchProps = {\n ...baseProps,\n customInputClass: makeStringProp(''),\n /**\n * 输入框内容,双向绑定\n * 类型: string\n * 默认值: ''\n */\n modelValue: makeStringProp(''),\n\n /**\n * 是否使用输入框右侧插槽\n * 类型: boolean\n * 默认值: false\n * @deprecated 该属性已废弃将在下一个minor版本被移除直接使用插槽即可\n */\n useSuffixSlot: makeBooleanProp(false),\n\n /**\n * 搜索框占位文本\n * 类型: string\n */\n placeholder: String,\n\n /**\n * 搜索框右侧文本\n * 类型: string\n */\n cancelTxt: String,\n\n /**\n * 搜索框亮色(白色)\n * 类型: boolean\n * 默认值: false\n */\n light: makeBooleanProp(false),\n\n /**\n * 是否隐藏右侧文本\n * 类型: boolean\n * 默认值: false\n */\n hideCancel: makeBooleanProp(false),\n\n /**\n * 是否禁用搜索框\n * 类型: boolean\n * 默认值: false\n */\n disabled: makeBooleanProp(false),\n\n /**\n * 原生属性,设置最大长度。-1 表示无限制\n * 类型: string / number\n * 默认值: -1\n */\n maxlength: makeNumberProp(-1),\n\n /**\n * placeholder 居左边\n * 类型: boolean\n * 默认值: false\n */\n placeholderLeft: makeBooleanProp(false),\n\n /**\n * 是否自动聚焦\n * 类型: boolean\n * 默认值: false\n * 最低版本: 0.1.63\n */\n focus: makeBooleanProp(false),\n\n /**\n * 是否在点击清除按钮时聚焦输入框\n * 类型: boolean\n * 默认值: false\n * 最低版本: 0.1.63\n */\n focusWhenClear: makeBooleanProp(false),\n\n /**\n * 原生属性,指定 placeholder 的样式目前仅支持color,font-size和font-weight\n */\n placeholderStyle: String,\n\n /**\n * 原生属性,指定 placeholder 的样式类\n */\n placeholderClass: makeStringProp('')\n}\n"],"names":["baseProps","makeStringProp","makeBooleanProp","makeNumberProp"],"mappings":";;AAWO,MAAM,cAAc;AAAA,EACzB,GAAGA,iDAAA;AAAA,EACH,kBAAkBC,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnC,YAAYA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ7B,eAAeC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpC,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA,EAMb,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOX,OAAOA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5B,YAAYA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOjC,UAAUA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO/B,WAAWC,iDAAAA,eAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5B,iBAAiBD,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQtC,OAAOA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5B,gBAAgBA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAKrC,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAKlB,kBAAkBD,gEAAe,EAAE;AACrC;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-swiper-nav/types.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp, makeStringProp } from '../common/props'\nimport type { DirectionType, IndicatorPositionType } from '../wd-swiper/types'\n\n/**\n * 指示器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等\n */\nexport type SwiperIndicatorType = 'dots' | 'dots-bar' | 'fraction'\n\nexport const swiperNavprops = {\n ...baseProps,\n /**\n * 当前轮播在哪一项(下标)\n */\n current: makeNumberProp(0),\n /**\n * 轮播滑动方向,包括横向滑动和纵向滑动两个方向\n */\n direction: makeStringProp<DirectionType>('horizontal'),\n /**\n * 小于这个数字不会显示导航器\n */\n minShowNum: makeNumberProp(2),\n /**\n * 指示器位置\n */\n indicatorPosition: makeStringProp<IndicatorPositionType>('bottom'),\n /**\n * 是否显示两侧的控制按钮\n */\n showControls: makeBooleanProp(false),\n /**\n * 总共的项数\n */\n total: makeNumberProp(0),\n /**\n * 指示器类型,点状(dots)、点条状(dots-bar)、分式(fraction)等\n */\n type: makeStringProp<SwiperIndicatorType>('dots')\n}\n\nexport type SwiperNavProps = ExtractPropTypes<typeof swiperNavprops>\n"],"names":["baseProps","makeNumberProp","makeStringProp","makeBooleanProp"],"mappings":";;AASO,MAAM,iBAAiB;AAAA,EAC5B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,SAASC,gEAAe,CAAC;AAAA;AAAA;AAAA;AAAA,EAIzB,WAAWC,gEAA8B,YAAY;AAAA;AAAA;AAAA;AAAA,EAIrD,YAAYD,gEAAe,CAAC;AAAA;AAAA;AAAA;AAAA,EAI5B,mBAAmBC,gEAAsC,QAAQ;AAAA;AAAA;AAAA;AAAA,EAIjE,cAAcC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAInC,OAAOF,gEAAe,CAAC;AAAA;AAAA;AAAA;AAAA,EAIvB,MAAMC,gEAAoC,MAAM;AAClD;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-swiper-nav.js","sources":["uni_modules/wot-design-uni/components/wd-swiper-nav/wd-swiper-nav.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2Qtc3dpcGVyLW5hdi93ZC1zd2lwZXItbmF2LnZ1ZQ"],"sourcesContent":["<template>\n <view v-if=\"showControls\" class=\"wd-swiper-nav__btn\">\n <view class=\"wd-swiper-nav__btn--prev\" @click=\"handleNav('prev')\" />\n <view class=\"wd-swiper-nav__btn--next\" @click=\"handleNav('next')\" />\n </view>\n <view\n v-if=\"total >= minShowNum\"\n :style=\"customStyle\"\n :class=\"`wd-swiper-nav wd-swiper-nav--${direction} wd-swiper-nav--${type} wd-swiper-nav--${indicatorPosition} ${customClass}`\"\n >\n <template v-if=\"type === 'dots' || type === 'dots-bar'\">\n <view\n v-for=\"(_, index) in total\"\n :key=\"index\"\n :class=\"`wd-swiper-nav__item--${type} ${current === index ? 'is-active' : ''} is-${direction}`\"\n ></view>\n </template>\n <template v-if=\"type === 'fraction'\">{{ current + 1 }}/{{ total }}</template>\n </view>\n</template>\n\n<script lang=\"ts\" setup>\nimport { swiperNavprops } from './types'\n\ndefineProps(swiperNavprops)\n\nconst emit = defineEmits(['change'])\n\nfunction handleNav(dir: 'prev' | 'next') {\n const source: string = 'nav'\n emit('change', { dir, source })\n}\n</script>\n\n<style lang=\"scss\" scoped>\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-swiper-nav/wd-swiper-nav.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;AA0BA,UAAM,OAAO;AAEb,aAAS,UAAU,KAAsB;AACvC,YAAM,SAAiB;AACvB,WAAK,UAAU,EAAE,KAAK,OAAQ,CAAA;AAAA,IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC9BA,GAAG,gBAAgB,SAAS;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-switch/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, numericProp } from '../common/props'\n\nexport type SwitchBeforeChangeOption = {\n value: number | string | boolean\n resolve: (pass: boolean) => void\n}\n\nexport type SwitchBeforeChange = (option: SwitchBeforeChangeOption) => void\n\nexport const switchProps = {\n ...baseProps,\n /**\n * 绑定值\n */\n modelValue: {\n type: [Boolean, String, Number],\n required: true,\n default: false\n },\n /**\n * 是否禁用\n */\n disabled: makeBooleanProp(false),\n /**\n * 激活值\n */\n activeValue: {\n type: [Boolean, String, Number],\n default: true\n },\n /**\n * 非激活值\n */\n inactiveValue: {\n type: [Boolean, String, Number],\n default: false\n },\n /**\n * 激活颜色\n */\n activeColor: String,\n /**\n * 非激活颜色\n */\n inactiveColor: String,\n /**\n * 大小\n */\n size: {\n type: numericProp\n },\n /**\n * 在改变前执行的函数\n */\n beforeChange: Function as PropType<SwitchBeforeChange>\n}\nexport type SwitchProps = ExtractPropTypes<typeof switchProps>\n"],"names":["baseProps","makeBooleanProp","numericProp"],"mappings":";;AAUO,MAAM,cAAc;AAAA,EACzB,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA,EAIH,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,UAAU;AAAA,IACV,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,UAAUC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA,EAI/B,aAAa;AAAA,IACX,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,eAAe;AAAA,IACb,MAAM,CAAC,SAAS,QAAQ,MAAM;AAAA,IAC9B,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA,EAIA,aAAa;AAAA;AAAA;AAAA;AAAA,EAIb,eAAe;AAAA;AAAA;AAAA;AAAA,EAIf,MAAM;AAAA,IACJ,MAAMC,iDAAA;AAAA,EACR;AAAA;AAAA;AAAA;AAAA,EAIA,cAAc;AAChB;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"wd-switch.js","sources":["uni_modules/wot-design-uni/components/wd-switch/wd-switch.vue","../../../../program/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovQmFja3VwL0RvY3VtZW50cy9IQnVpbGRlclByb2plY3RzL2Rhamlhbmt1YW5nL3VuaV9tb2R1bGVzL3dvdC1kZXNpZ24tdW5pL2NvbXBvbmVudHMvd2Qtc3dpdGNoL3dkLXN3aXRjaC52dWU"],"sourcesContent":["<template>\n <view :class=\"rootClass\" :style=\"rootStyle\" @click=\"switchValue\">\n <view class=\"wd-switch__circle\" :style=\"circleStyle\"></view>\n </view>\n</template>\n<script lang=\"ts\">\nexport default {\n name: 'wd-switch',\n options: {\n addGlobalClass: true,\n virtualHost: true,\n styleIsolation: 'shared'\n }\n}\n</script>\n\n<script lang=\"ts\" setup>\nimport { computed, type CSSProperties, onBeforeMount } from 'vue'\nimport { addUnit, isFunction, objToStyle } from '../common/util'\nimport { switchProps } from './types'\n\nconst props = defineProps(switchProps)\nconst emit = defineEmits(['change', 'update:modelValue'])\n\nconst rootClass = computed(() => {\n return `wd-switch ${props.customClass} ${props.disabled ? 'is-disabled' : ''} ${props.modelValue === props.activeValue ? 'is-checked' : ''}`\n})\n\nconst rootStyle = computed(() => {\n const rootStyle: CSSProperties = {\n background: props.modelValue === props.activeValue ? props.activeColor : props.inactiveColor,\n 'border-color': props.modelValue === props.activeValue ? props.activeColor : props.inactiveColor\n }\n if (props.size) {\n rootStyle['font-size'] = addUnit(props.size)\n }\n return `${objToStyle(rootStyle)}${props.customStyle}`\n})\n\nconst circleStyle = computed(() => {\n const circleStyle: string =\n (props.modelValue === props.activeValue && props.activeColor) || (props.modelValue !== props.activeValue && props.inactiveColor)\n ? 'box-shadow: none;'\n : ''\n return circleStyle\n})\n\nfunction switchValue() {\n if (props.disabled) return\n const newVal = props.modelValue === props.activeValue ? props.inactiveValue : props.activeValue\n\n if (props.beforeChange && isFunction(props.beforeChange)) {\n props.beforeChange({\n value: newVal,\n resolve: (pass: boolean) => {\n if (pass) {\n emit('update:modelValue', newVal)\n emit('change', {\n value: newVal\n })\n }\n }\n })\n } else {\n emit('update:modelValue', newVal)\n emit('change', {\n value: newVal\n })\n }\n}\n\nonBeforeMount(() => {\n if ([props.activeValue, props.inactiveValue].indexOf(props.modelValue) === -1) {\n emit('update:modelValue', props.inactiveValue)\n emit('change', {\n value: props.inactiveValue\n })\n }\n})\n</script>\n<style lang=\"scss\" scoped>\n@import './index.scss';\n</style>\n","import Component from 'D:/Backup/Documents/HBuilderProjects/dajiankuang/uni_modules/wot-design-uni/components/wd-switch/wd-switch.vue'\nwx.createComponent(Component)"],"names":["computed","rootStyle","addUnit","objToStyle","circleStyle","isFunction","onBeforeMount"],"mappings":";;;;AAMA,MAAA,cAAe;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACP,gBAAgB;AAAA,IAChB,aAAa;AAAA,IACb,gBAAgB;AAAA,EAClB;AACF;;;;;;AAQA,UAAM,QAAQ;AACd,UAAM,OAAO;AAEP,UAAA,YAAYA,cAAAA,SAAS,MAAM;AAC/B,aAAO,aAAa,MAAM,WAAW,IAAI,MAAM,WAAW,gBAAgB,EAAE,IAAI,MAAM,eAAe,MAAM,cAAc,eAAe,EAAE;AAAA,IAAA,CAC3I;AAEK,UAAA,YAAYA,cAAAA,SAAS,MAAM;AAC/B,YAAMC,aAA2B;AAAA,QAC/B,YAAY,MAAM,eAAe,MAAM,cAAc,MAAM,cAAc,MAAM;AAAA,QAC/E,gBAAgB,MAAM,eAAe,MAAM,cAAc,MAAM,cAAc,MAAM;AAAA,MAAA;AAErF,UAAI,MAAM,MAAM;AACdA,mBAAU,WAAW,IAAIC,gDAAA,QAAQ,MAAM,IAAI;AAAA,MAC7C;AACA,aAAO,GAAGC,gDAAAA,WAAWF,UAAS,CAAC,GAAG,MAAM,WAAW;AAAA,IAAA,CACpD;AAEK,UAAA,cAAcD,cAAAA,SAAS,MAAM;AACjC,YAAMI,eACH,MAAM,eAAe,MAAM,eAAe,MAAM,eAAiB,MAAM,eAAe,MAAM,eAAe,MAAM,gBAC9G,sBACA;AACCA,aAAAA;AAAAA,IAAA,CACR;AAED,aAAS,cAAc;AACrB,UAAI,MAAM;AAAU;AACpB,YAAM,SAAS,MAAM,eAAe,MAAM,cAAc,MAAM,gBAAgB,MAAM;AAEpF,UAAI,MAAM,gBAAgBC,gDAAW,WAAA,MAAM,YAAY,GAAG;AACxD,cAAM,aAAa;AAAA,UACjB,OAAO;AAAA,UACP,SAAS,CAAC,SAAkB;AAC1B,gBAAI,MAAM;AACR,mBAAK,qBAAqB,MAAM;AAChC,mBAAK,UAAU;AAAA,gBACb,OAAO;AAAA,cAAA,CACR;AAAA,YACH;AAAA,UACF;AAAA,QAAA,CACD;AAAA,MAAA,OACI;AACL,aAAK,qBAAqB,MAAM;AAChC,aAAK,UAAU;AAAA,UACb,OAAO;AAAA,QAAA,CACR;AAAA,MACH;AAAA,IACF;AAEAC,kBAAAA,cAAc,MAAM;AACd,UAAA,CAAC,MAAM,aAAa,MAAM,aAAa,EAAE,QAAQ,MAAM,UAAU,MAAM,IAAI;AACxE,aAAA,qBAAqB,MAAM,aAAa;AAC7C,aAAK,UAAU;AAAA,UACb,OAAO,MAAM;AAAA,QAAA,CACd;AAAA,MACH;AAAA,IAAA,CACD;;;;;;;;;;;;AC7ED,GAAG,gBAAgB,SAAS;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/wot-design-uni/components/wd-transition/types.ts"],"sourcesContent":["/*\n * @Author: weisheng\n * @Date: 2024-09-01 15:42:04\n * @LastEditTime: 2025-07-04 18:33:43\n * @LastEditors: weisheng\n * @Description:\n * @FilePath: /wot-design-uni/src/uni_modules/wot-design-uni/components/wd-transition/types.ts\n * 记得注释\n */\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport { baseProps, makeBooleanProp, makeStringProp } from '../common/props'\n\nexport type TransitionName =\n | 'fade'\n | 'fade-down'\n | 'fade-left'\n | 'fade-right'\n | 'fade-up'\n | 'slide-down'\n | 'slide-left'\n | 'slide-right'\n | 'slide-up'\n | 'zoom-in'\n | 'zoom-out'\n\nexport const transitionProps = {\n ...baseProps,\n\n /**\n * 是否展示组件\n * 类型boolean\n * 默认值false\n */\n show: makeBooleanProp(false),\n\n /**\n * 动画执行时间\n * 类型number | boolean | Record<string, number>\n * 默认值300 (毫秒)\n */\n duration: {\n type: [Object, Number, Boolean] as PropType<Record<string, number> | number | boolean>,\n default: 300\n },\n /**\n * 弹层内容懒渲染,触发展示时才渲染内容\n * 类型boolean\n * 默认值false\n */\n lazyRender: makeBooleanProp(false),\n /**\n * 动画类型\n * 类型string\n * 可选值fade / fade-up / fade-down / fade-left / fade-right / slide-up / slide-down / slide-left / slide-right / zoom-in\n * 默认值:'fade'\n */\n name: [String, Array] as PropType<TransitionName | TransitionName[]>,\n /**\n * 是否在动画结束时销毁子节点display: none)\n * 类型boolean\n * 默认值false\n */\n destroy: makeBooleanProp(true),\n /**\n * 进入过渡的开始状态\n * 类型string\n */\n enterClass: makeStringProp(''),\n\n /**\n * 进入过渡的激活状态\n * 类型string\n */\n enterActiveClass: makeStringProp(''),\n\n /**\n * 进入过渡的结束状态\n * 类型string\n */\n enterToClass: makeStringProp(''),\n\n /**\n * 离开过渡的开始状态\n * 类型string\n */\n leaveClass: makeStringProp(''),\n\n /**\n * 离开过渡的激活状态\n * 类型string\n */\n leaveActiveClass: makeStringProp(''),\n\n /**\n * 离开过渡的结束状态\n * 类型string\n */\n leaveToClass: makeStringProp(''),\n /**\n * 是否阻止触摸滚动\n * 类型boolean\n * 默认值false\n */\n disableTouchMove: makeBooleanProp(false)\n}\n\nexport type TransitionProps = ExtractPropTypes<typeof transitionProps>\n"],"names":["baseProps","makeBooleanProp","makeStringProp"],"mappings":";;AAyBO,MAAM,kBAAkB;AAAA,EAC7B,GAAGA,iDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOH,MAAMC,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO3B,UAAU;AAAA,IACR,MAAM,CAAC,QAAQ,QAAQ,OAAO;AAAA,IAC9B,SAAS;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,YAAYA,iEAAgB,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOjC,MAAM,CAAC,QAAQ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpB,SAASA,iEAAgB,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7B,YAAYC,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7B,kBAAkBA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnC,cAAcA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/B,YAAYA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7B,kBAAkBA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA,EAMnC,cAAcA,gEAAe,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/B,kBAAkBD,iEAAgB,KAAK;AACzC;;"}

File diff suppressed because one or more lines are too long