This commit is contained in:
2026-03-25 14:54:15 +08:00
commit ab4646b43a
827 changed files with 123812 additions and 0 deletions
@@ -0,0 +1 @@
{"version":3,"file":"props.js","sources":["uni_modules/uview-pro/components/common/props.ts"],"sourcesContent":["import type { PropType } from 'vue';\r\n\r\nexport const stringProp = <T>(defaultVal: T) => ({\r\n type: String as unknown as PropType<T>,\r\n default: defaultVal\r\n});\r\n\r\nexport const stringOrObjectProp = <T>(defaultVal: T) => ({\r\n type: [String, Object] as PropType<string | Record<string, any>>,\r\n default: defaultVal\r\n});\r\n\r\nexport const baseProps = {\r\n /**\r\n * 自定义根节点样式\r\n */\r\n customStyle: stringOrObjectProp(''),\r\n /**\r\n * 自定义根节点样式类\r\n */\r\n customClass: stringProp('')\r\n};\r\n"],"names":[],"mappings":";AAEa,MAAA,aAAa,CAAI,gBAAmB;AAAA,EAC7C,MAAM;AAAA,EACN,SAAS;AACb;AAEa,MAAA,qBAAqB,CAAI,gBAAmB;AAAA,EACrD,MAAM,CAAC,QAAQ,MAAM;AAAA,EACrB,SAAS;AACb;AAEO,MAAM,YAAY;AAAA;AAAA;AAAA;AAAA,EAIrB,aAAa,mBAAmB,EAAE;AAAA;AAAA;AAAA;AAAA,EAIlC,aAAa,WAAW,EAAE;AAC9B;;"}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-badge/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { BadgeSize, ThemeType } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * badge 角标类型定义\r\n * @description 供 u-badge 组件 props 使用\r\n */\r\n\r\nexport const BadgeProps = {\r\n ...baseProps,\r\n /** 使用预设的背景颜色 primary,warning,success,error,info */\r\n type: { type: String as PropType<ThemeType>, default: 'error' },\r\n /** Badge的尺寸,default, mini */\r\n size: { type: String as PropType<BadgeSize>, default: 'default' },\r\n /** 是否是圆点 */\r\n isDot: { type: Boolean, default: false },\r\n /** 显示的数值内容 */\r\n count: { type: [Number, String], default: undefined },\r\n /** 展示封顶的数字值 */\r\n overflowCount: { type: Number, default: 99 },\r\n /** 当数值为 0 时,是否展示 Badge */\r\n showZero: { type: Boolean, default: false },\r\n /** 位置偏移 [number, number] */\r\n offset: { type: Array as unknown as PropType<[number, number]>, default: () => [20, 20] },\r\n /** 是否开启绝对定位,开启了offset才会起作用 */\r\n absolute: { type: Boolean, default: true },\r\n /** 字体大小 */\r\n fontSize: { type: [String, Number], default: '24' },\r\n /** 字体颜色 */\r\n color: { type: String, default: 'var(--u-white-color)' },\r\n /** badge的背景颜色 */\r\n bgColor: { type: String, default: '' },\r\n /** 是否让badge组件的中心点和父组件右上角重合,配置的话,offset将会失效 */\r\n isCenter: { type: Boolean, default: false }\r\n};\r\n\r\nexport type BadgeProps = ExtractPropTypes<typeof BadgeProps>;\r\n"],"names":["baseProps"],"mappings":";;AASO,MAAM,aAAa;AAAA,EACtB,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM,EAAE,MAAM,QAA+B,SAAS,QAAQ;AAAA;AAAA,EAE9D,MAAM,EAAE,MAAM,QAA+B,SAAS,UAAU;AAAA;AAAA,EAEhE,OAAO,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAEvC,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,OAAU;AAAA;AAAA,EAEpD,eAAe,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAE3C,UAAU,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE1C,QAAQ,EAAE,MAAM,OAAgD,SAAS,MAAM,CAAC,IAAI,EAAE,EAAE;AAAA;AAAA,EAExF,UAAU,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEzC,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,KAAK;AAAA;AAAA,EAElD,OAAO,EAAE,MAAM,QAAQ,SAAS,uBAAuB;AAAA;AAAA,EAEvD,SAAS,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAErC,UAAU,EAAE,MAAM,SAAS,SAAS,MAAM;AAC9C;;"}
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
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-cell-group/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * cell-group 组件 props 类型定义\r\n * @description 供 u-cell-group 组件 props 使用\r\n */\r\n\r\nexport const CellGroupProps = {\r\n ...baseProps,\r\n /** 分组标题 */\r\n title: { type: String, default: '' },\r\n /** 是否显示分组list上下边框 */\r\n border: { type: Boolean, default: true },\r\n /** 分组标题的样式,对象形式,注意驼峰属性写法 */\r\n titleStyle: { type: Object as PropType<Record<string, any>>, default: () => ({}) }\r\n};\r\n\r\nexport type CellGroupProps = ExtractPropTypes<typeof CellGroupProps>;\r\n"],"names":["baseProps"],"mappings":";;AAQO,MAAM,iBAAiB;AAAA,EAC1B,GAAGA,6CAAA;AAAA;AAAA,EAEH,OAAO,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAEnC,QAAQ,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEvC,YAAY,EAAE,MAAM,QAAyC,SAAS,OAAO,CAAI,GAAA;AACrF;;"}
@@ -0,0 +1 @@
{"version":3,"file":"u-cell-group.js","sources":["uni_modules/uview-pro/components/u-cell-group/u-cell-group.vue","D:/Development Kit/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovQ09NUEFOWVBST0pFQ1QvQVBQL0NOQ0VDX0FQUC91bmlfbW9kdWxlcy91dmlldy1wcm8vY29tcG9uZW50cy91LWNlbGwtZ3JvdXAvdS1jZWxsLWdyb3VwLnZ1ZQ"],"sourcesContent":["<template>\r\n <view class=\"u-cell-box\" :class=\"customClass\" :style=\"$u.toStyle(customStyle)\">\r\n <view class=\"u-cell-title\" v-if=\"title\" :style=\"[titleStyle]\">\r\n {{ title }}\r\n </view>\r\n <view class=\"u-cell-item-box\" :class=\"{ 'u-border-bottom u-border-top': border }\">\r\n <slot />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nexport default {\r\n name: 'u-cell-group',\r\n options: {\r\n addGlobalClass: true,\r\n\r\n virtualHost: true,\r\n\r\n styleIsolation: 'shared'\r\n }\r\n};\r\n</script>\r\n\r\n<script setup lang=\"ts\">\r\nimport { CellGroupProps } from './types';\r\nimport { $u } from '../..';\r\n\r\n/**\r\n * cellGroup 单元格父组件Group\r\n * @description cell单元格一般用于一组列表的情况,比如个人中心页,设置页等。搭配u-cell-item\r\n * @tutorial https://uviewpro.cn/zh/components/cell.html\r\n * @property {String} title 分组标题\r\n * @property {Boolean} border 是否显示外边框(默认true\r\n * @property {Object} title-style 分组标题的的样式,对象形式,如{'font-size': '24rpx'} 或 {'fontSize': '24rpx'}\r\n * @example <u-cell-group title=\"设置喜好\">\r\n */\r\n\r\ndefineProps(CellGroupProps);\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n@import '../../libs/css/style.components.scss';\r\n\r\n.u-cell-box {\r\n width: 100%;\r\n}\r\n\r\n.u-cell-title {\r\n padding: 30rpx 32rpx 10rpx 32rpx;\r\n font-size: 30rpx;\r\n text-align: left;\r\n color: $u-tips-color;\r\n}\r\n\r\n.u-cell-item-box {\r\n background-color: var(--u-bg-white);\r\n flex-direction: row;\r\n}\r\n</style>\r\n","import Component from 'E:/COMPANYPROJECT/APP/CNCEC_APP/uni_modules/uview-pro/components/u-cell-group/u-cell-group.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;AAYA,MAAA,cAAe;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,IACL,gBAAgB;AAAA,IAEhB,aAAa;AAAA,IAEb,gBAAgB;AAAA,EACpB;AACJ;;;;;;;;;;;;;;;;;;;;ACpBA,GAAG,gBAAgB,SAAS;"}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-cell-item/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { CellItemArrowDirection } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * cell-item 组件 props 类型定义\r\n * @description 供 u-cell-item 组件 props 使用\r\n */\r\nexport type CellItemIndex = string | number;\r\nexport type CellItemStyle = Record<string, any>;\r\n\r\nexport const CellItemProps = {\r\n ...baseProps,\r\n /** 左侧图标名称(只能uView内置图标),或者图标src */\r\n icon: { type: String, default: '' },\r\n /** 左侧标题 */\r\n title: { type: [String, Number], default: '' },\r\n /** 右侧内容 */\r\n value: { type: [String, Number], default: '' },\r\n /** 标题下方的描述信息 */\r\n label: { type: [String, Number], default: '' },\r\n /** 是否显示下边框 */\r\n borderBottom: { type: Boolean, default: true },\r\n /** 是否显示上边框 */\r\n borderTop: { type: Boolean, default: false },\r\n /** 是否开启点击反馈,即点击时cell背景为灰色,none为无效果 */\r\n hoverClass: { type: String, default: 'u-cell-hover' },\r\n /** 是否显示右侧箭头 */\r\n arrow: { type: Boolean, default: true },\r\n /** 内容是否垂直居中 */\r\n center: { type: Boolean, default: false },\r\n /** 是否显示左边表示必填的星号 */\r\n required: { type: Boolean, default: false },\r\n /** 标题的宽度,单位rpx */\r\n titleWidth: { type: [Number, String], default: '' },\r\n /** 右侧箭头方向,可选值:right|up|down,默认为right */\r\n arrowDirection: { type: String as PropType<CellItemArrowDirection>, default: 'right' },\r\n /** 控制标题的样式 */\r\n titleStyle: { type: Object as PropType<CellItemStyle>, default: () => ({}) },\r\n /** 右侧显示内容的样式 */\r\n valueStyle: { type: Object as PropType<CellItemStyle>, default: () => ({}) },\r\n /** 描述信息的样式 */\r\n labelStyle: { type: Object as PropType<CellItemStyle>, default: () => ({}) },\r\n /** 背景颜色 */\r\n bgColor: { type: String, default: 'transparent' },\r\n /** 用于识别被点击的是第几个cell */\r\n index: { type: [String, Number] as PropType<CellItemIndex>, default: '' },\r\n /** 是否使用label插槽 */\r\n useLabelSlot: { type: Boolean, default: false },\r\n /** 左边图标的大小,单位rpx,只对传入icon字段时有效 */\r\n iconSize: { type: [Number, String], default: 34 },\r\n /** 左边图标的样式,对象形式 */\r\n iconStyle: { type: Object as PropType<CellItemStyle>, default: () => ({}) }\r\n};\r\n\r\nexport type CellItemProps = ExtractPropTypes<typeof CellItemProps>;\r\n"],"names":["baseProps"],"mappings":";;AAWO,MAAM,gBAAgB;AAAA,EACzB,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAElC,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,GAAG;AAAA;AAAA,EAE7C,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,GAAG;AAAA;AAAA,EAE7C,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,GAAG;AAAA;AAAA,EAE7C,cAAc,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE7C,WAAW,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE3C,YAAY,EAAE,MAAM,QAAQ,SAAS,eAAe;AAAA;AAAA,EAEpD,OAAO,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEtC,QAAQ,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAExC,UAAU,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE1C,YAAY,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,GAAG;AAAA;AAAA,EAElD,gBAAgB,EAAE,MAAM,QAA4C,SAAS,QAAQ;AAAA;AAAA,EAErF,YAAY,EAAE,MAAM,QAAmC,SAAS,OAAO,CAAI,GAAA;AAAA;AAAA,EAE3E,YAAY,EAAE,MAAM,QAAmC,SAAS,OAAO,CAAI,GAAA;AAAA;AAAA,EAE3E,YAAY,EAAE,MAAM,QAAmC,SAAS,OAAO,CAAI,GAAA;AAAA;AAAA,EAE3E,SAAS,EAAE,MAAM,QAAQ,SAAS,cAAc;AAAA;AAAA,EAEhD,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAA8B,SAAS,GAAG;AAAA;AAAA,EAExE,cAAc,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE9C,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,GAAG;AAAA;AAAA,EAEhD,WAAW,EAAE,MAAM,QAAmC,SAAS,OAAO,CAAI,GAAA;AAC9E;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-col/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { AlignType, JustifyType } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * u-col 布局单元格 Props\r\n * @description 通过基础的 12 分栏,迅速简便地创建布局(搭配<u-row>使用)\r\n * @property {String|Number} span 栅格占据的列数,总12等分(默认12\r\n * @property {String|Number} offset 分栏左边偏移,计算方式与span相同(默认0\r\n * @property {JustifyType} justify 水平排列方式,可选值为start、end、center、around、between(默认start\r\n * @property {AlignType} align 垂直对齐方式,可选值为top、center、bottom(默认center\r\n * @property {String} textAlign 文字对齐方式(默认left\r\n * @property {Boolean} stop 是否阻止事件传播(默认true\r\n */\r\n\r\nexport const ColProps = {\r\n ...baseProps,\r\n /** 占父容器宽度的多少等分,总分为12份 */\r\n span: { type: [Number, String] as PropType<number | string>, default: 12 },\r\n /** 指定栅格左侧的间隔数(总12栏) */\r\n offset: { type: [Number, String] as PropType<number | string>, default: 0 },\r\n /** 水平排列方式 */\r\n justify: { type: String as PropType<JustifyType>, default: 'start' },\r\n /** 垂直对齐方式 */\r\n align: { type: String as PropType<AlignType>, default: 'center' },\r\n /** 文字对齐方式 */\r\n textAlign: { type: String, default: 'left' },\r\n /** 是否阻止事件传播 */\r\n stop: { type: Boolean, default: true }\r\n};\r\n\r\nexport type ColProps = ExtractPropTypes<typeof ColProps>;\r\n"],"names":["baseProps"],"mappings":";;AAeO,MAAM,WAAW;AAAA,EACpB,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAEzE,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,EAAE;AAAA;AAAA,EAE1E,SAAS,EAAE,MAAM,QAAiC,SAAS,QAAQ;AAAA;AAAA,EAEnE,OAAO,EAAE,MAAM,QAA+B,SAAS,SAAS;AAAA;AAAA,EAEhE,WAAW,EAAE,MAAM,QAAQ,SAAS,OAAO;AAAA;AAAA,EAE3C,MAAM,EAAE,MAAM,SAAS,SAAS,KAAK;AACzC;;"}
@@ -0,0 +1 @@
{"version":3,"file":"u-col.js","sources":["uni_modules/uview-pro/components/u-col/u-col.vue","D:/Development Kit/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovQ09NUEFOWVBST0pFQ1QvQVBQL0NOQ0VDX0FQUC91bmlfbW9kdWxlcy91dmlldy1wcm8vY29tcG9uZW50cy91LWNvbC91LWNvbC52dWU"],"sourcesContent":["<template>\r\n <view\r\n class=\"u-col\"\r\n :class=\"['u-col-' + span, customClass]\"\r\n :style=\"$u.toStyle(colStyle, customStyle)\"\r\n @tap=\"onClick\"\r\n >\r\n <slot></slot>\r\n </view>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nexport default {\r\n name: 'u-col',\r\n options: {\r\n addGlobalClass: true,\r\n\r\n virtualHost: true,\r\n\r\n styleIsolation: 'shared'\r\n }\r\n};\r\n</script>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed } from 'vue';\r\nimport { ColProps } from './types';\r\nimport { $u, useChildren } from '../../';\r\n\r\n/**\r\n * col 布局单元格\r\n * @description 通过基础的 12 分栏,迅速简便地创建布局(搭配<u-row>使用)\r\n * @tutorial https://uviewpro.cn/zh/components/layout.html\r\n * @property {String|Number} span 栅格占据的列数,总12等分(默认0\r\n * @property {String} text-align 文字水平对齐方式(默认left\r\n * @property {String|Number} offset 分栏左边偏移,计算方式与span相同(默认0\r\n * @example <u-col span=\"3\"><view class=\"demo-layout bg-purple\"></view></u-col>\r\n */\r\n\r\nconst emit = defineEmits<{ (e: 'click'): void }>();\r\n\r\nconst props = defineProps(ColProps);\r\n\r\nconst { parentExposed } = useChildren('u-col', 'u-row');\r\n\r\n/**\r\n * gutter 给col添加间距,左右边距各占一半,从父组件u-row获取\r\n */\r\nconst gutter = computed(() => {\r\n return parentExposed?.value?.props?.gutter ?? 20;\r\n});\r\n\r\n/**\r\n * 计算水平排列方式\r\n * @returns {string}\r\n */\r\nconst uJustify = computed(() => {\r\n if (props.justify === 'end' || props.justify === 'start') return 'flex-' + props.justify;\r\n else if (props.justify === 'around' || props.justify === 'between') return 'space-' + props.justify;\r\n else return props.justify;\r\n});\r\n\r\n/**\r\n * 计算垂直对齐方式\r\n * @returns {string}\r\n */\r\nconst uAlignItem = computed(() => {\r\n if (props.align === 'top') return 'flex-start';\r\n if (props.align === 'bottom') return 'flex-end';\r\n else return props.align;\r\n});\r\n\r\n/**\r\n * 计算样式对象\r\n */\r\nconst colStyle = computed<any>(() => ({\r\n padding: `0 ${Number(gutter.value) / 2}px`,\r\n marginLeft: `${(100 / 12) * Number(props.offset)}%`,\r\n flex: `0 0 ${(100 / 12) * Number(props.span)}%`,\r\n alignItems: uAlignItem.value,\r\n justifyContent: uJustify.value,\r\n textAlign: props.textAlign\r\n}));\r\n\r\n/**\r\n * 点击事件\r\n * @param e 事件对象\r\n */\r\nfunction onClick(e: Event) {\r\n emit('click');\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n@import '../../libs/css/style.components.scss';\r\n\r\n.u-col {\r\n\r\n float: left;\r\n\r\n}\r\n\r\n.u-col-0 {\r\n width: 0;\r\n}\r\n.u-col-1 {\r\n width: calc(100% / 12);\r\n}\r\n.u-col-2 {\r\n width: calc(100% / 12 * 2);\r\n}\r\n.u-col-3 {\r\n width: calc(100% / 12 * 3);\r\n}\r\n.u-col-4 {\r\n width: calc(100% / 12 * 4);\r\n}\r\n.u-col-5 {\r\n width: calc(100% / 12 * 5);\r\n}\r\n.u-col-6 {\r\n width: calc(100% / 12 * 6);\r\n}\r\n.u-col-7 {\r\n width: calc(100% / 12 * 7);\r\n}\r\n.u-col-8 {\r\n width: calc(100% / 12 * 8);\r\n}\r\n.u-col-9 {\r\n width: calc(100% / 12 * 9);\r\n}\r\n.u-col-10 {\r\n width: calc(100% / 12 * 10);\r\n}\r\n.u-col-11 {\r\n width: calc(100% / 12 * 11);\r\n}\r\n.u-col-12 {\r\n width: calc(100% / 12 * 12);\r\n}\r\n</style>\r\n","import Component from 'E:/COMPANYPROJECT/APP/CNCEC_APP/uni_modules/uview-pro/components/u-col/u-col.vue'\nwx.createComponent(Component)"],"names":["useChildren","computed","Component"],"mappings":";;;;;;;AAYA,MAAA,cAAe;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,IACL,gBAAgB;AAAA,IAEhB,aAAa;AAAA,IAEb,gBAAgB;AAAA,EACpB;AACJ;;;;;;AAkBA,UAAM,OAAO;AAEb,UAAM,QAAQ;AAEd,UAAM,EAAE,cAAkB,IAAAA,gDAAA,YAAY,SAAS,OAAO;AAKhD,UAAA,SAASC,cAAAA,SAAS,MAAM;;AACnB,eAAA,0DAAe,UAAf,mBAAsB,UAAtB,mBAA6B,WAAU;AAAA,IAAA,CACjD;AAMK,UAAA,WAAWA,cAAAA,SAAS,MAAM;AAC5B,UAAI,MAAM,YAAY,SAAS,MAAM,YAAY;AAAS,eAAO,UAAU,MAAM;AAAA,eACxE,MAAM,YAAY,YAAY,MAAM,YAAY;AAAW,eAAO,WAAW,MAAM;AAAA;AACvF,eAAO,MAAM;AAAA,IAAA,CACrB;AAMK,UAAA,aAAaA,cAAAA,SAAS,MAAM;AAC9B,UAAI,MAAM,UAAU;AAAc,eAAA;AAClC,UAAI,MAAM,UAAU;AAAiB,eAAA;AAAA;AAChC,eAAO,MAAM;AAAA,IAAA,CACrB;AAKK,UAAA,WAAWA,cAAAA,SAAc,OAAO;AAAA,MAClC,SAAS,KAAK,OAAO,OAAO,KAAK,IAAI,CAAC;AAAA,MACtC,YAAY,GAAI,MAAM,KAAM,OAAO,MAAM,MAAM,CAAC;AAAA,MAChD,MAAM,OAAQ,MAAM,KAAM,OAAO,MAAM,IAAI,CAAC;AAAA,MAC5C,YAAY,WAAW;AAAA,MACvB,gBAAgB,SAAS;AAAA,MACzB,WAAW,MAAM;AAAA,IACnB,EAAA;AAMF,aAAS,QAAQ,GAAU;AACvB,WAAK,OAAO;AAAA,IAChB;;;;;;;;;;;ACzFA,GAAG,gBAAgBC,SAAS;"}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-fab/types.ts"],"sourcesContent":["import type { CSSProperties, ExtractPropTypes, PropType } from 'vue';\r\nimport type { FabDirection, FabGap, FabPosition, ThemeType } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * fab 悬浮按钮类型定义\r\n * @description 供 u-fab 组件 props 使用\r\n */\r\n\r\nexport const FabProps = {\r\n ...baseProps,\r\n /** 按钮的预置样式,primaryinfoerrorwarningsuccess */\r\n type: { type: String as PropType<ThemeType>, default: 'primary' },\r\n /** 是否禁止状态 */\r\n disabled: { type: Boolean, default: false },\r\n /** 按钮能否可以拖动 */\r\n draggable: { type: Boolean, default: false },\r\n /** 按钮与边缘的间距,单位 px。支持 number 或对象 {top,left,right,bottom},优先级按键存在顺序 */\r\n gap: {\r\n type: Object as PropType<FabGap>,\r\n default: () => ({\r\n top: 16,\r\n left: 16,\r\n right: 16,\r\n bottom: 16\r\n })\r\n },\r\n /** 拖动结束时是否自动吸边(仅当 draggable 为 true 时生效) */\r\n autoStick: { type: Boolean, default: true },\r\n /** 预设定位:控制组件默认停靠位置 */\r\n position: {\r\n type: String as PropType<FabPosition>,\r\n default: 'right-bottom'\r\n },\r\n /** 菜单出现的方向 */\r\n direction: { type: String as PropType<FabDirection>, default: 'top' },\r\n /** 按钮自定义层级 */\r\n zIndex: { type: Number, default: 99 }\r\n};\r\n\r\nexport type FabProps = ExtractPropTypes<typeof FabProps>;\r\n\r\ninterface DirectionConfig {\r\n opposite: keyof CSSProperties;\r\n sizeKey: 'width' | 'height';\r\n positionKey: 'left' | 'top';\r\n flexBase: 'row' | 'row-reverse' | 'column' | 'column-reverse';\r\n}\r\n\r\nexport const directionConfig: Record<FabDirection, DirectionConfig> = {\r\n top: {\r\n opposite: 'bottom',\r\n sizeKey: 'width',\r\n positionKey: 'left',\r\n flexBase: 'column'\r\n },\r\n bottom: {\r\n opposite: 'top',\r\n sizeKey: 'width',\r\n positionKey: 'left',\r\n flexBase: 'column-reverse'\r\n },\r\n left: {\r\n opposite: 'right',\r\n sizeKey: 'height',\r\n positionKey: 'top',\r\n flexBase: 'row'\r\n },\r\n right: {\r\n opposite: 'left',\r\n sizeKey: 'height',\r\n positionKey: 'top',\r\n flexBase: 'row-reverse'\r\n }\r\n};\r\n"],"names":["baseProps"],"mappings":";;AASO,MAAM,WAAW;AAAA,EACpB,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM,EAAE,MAAM,QAA+B,SAAS,UAAU;AAAA;AAAA,EAEhE,UAAU,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE1C,WAAW,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE3C,KAAK;AAAA,IACD,MAAM;AAAA,IACN,SAAS,OAAO;AAAA,MACZ,KAAK;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,MACP,QAAQ;AAAA,IAAA;AAAA,EAEhB;AAAA;AAAA,EAEA,WAAW,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE1C,UAAU;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,WAAW,EAAE,MAAM,QAAkC,SAAS,MAAM;AAAA;AAAA,EAEpE,QAAQ,EAAE,MAAM,QAAQ,SAAS,GAAG;AACxC;AAWO,MAAM,kBAAyD;AAAA,EAClE,KAAK;AAAA,IACD,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa;AAAA,IACb,UAAU;AAAA,EACd;AAAA,EACA,QAAQ;AAAA,IACJ,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa;AAAA,IACb,UAAU;AAAA,EACd;AAAA,EACA,MAAM;AAAA,IACF,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa;AAAA,IACb,UAAU;AAAA,EACd;AAAA,EACA,OAAO;AAAA,IACH,UAAU;AAAA,IACV,SAAS;AAAA,IACT,aAAa;AAAA,IACb,UAAU;AAAA,EACd;AACJ;;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-grid-item/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * u-grid-item 组件 Props 类型定义\r\n * @description 宫格项组件属性\r\n */\r\nexport const GridItemProps = {\r\n ...baseProps,\r\n /** 背景颜色 */\r\n bgColor: { type: String, default: 'var(--u-bg-white)' },\r\n /** 点击时返回的index */\r\n index: { type: [Number, String] as PropType<string | number>, default: '' }\r\n};\r\n\r\nexport type GridItemProps = ExtractPropTypes<typeof GridItemProps>;\r\n"],"names":["baseProps"],"mappings":";;AAOO,MAAM,gBAAgB;AAAA,EACzB,GAAGA,6CAAA;AAAA;AAAA,EAEH,SAAS,EAAE,MAAM,QAAQ,SAAS,oBAAoB;AAAA;AAAA,EAEtD,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAC9E;;"}
@@ -0,0 +1 @@
{"version":3,"file":"u-grid-item.js","sources":["uni_modules/uview-pro/components/u-grid-item/u-grid-item.vue","D:/Development Kit/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovQ09NUEFOWVBST0pFQ1QvQVBQL0NOQ0VDX0FQUC91bmlfbW9kdWxlcy91dmlldy1wcm8vY29tcG9uZW50cy91LWdyaWQtaXRlbS91LWdyaWQtaXRlbS52dWU"],"sourcesContent":["<template>\r\n <view\r\n class=\"u-grid-item\"\r\n :class=\"customClass\"\r\n :hover-class=\"hoverClass\"\r\n :hover-stay-time=\"200\"\r\n @tap=\"click\"\r\n :style=\"\r\n $u.toStyle(\r\n {\r\n background: bgColor,\r\n width: width\r\n },\r\n customStyle\r\n )\r\n \"\r\n >\r\n <view class=\"u-grid-item-box\" :style=\"[customStyle]\" :class=\"[border ? 'u-border-right u-border-bottom' : '']\">\r\n <slot />\r\n </view>\r\n </view>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nexport default {\r\n name: 'u-grid-item',\r\n options: {\r\n addGlobalClass: true,\r\n\r\n virtualHost: true,\r\n\r\n styleIsolation: 'shared'\r\n }\r\n};\r\n</script>\r\n\r\n<script setup lang=\"ts\">\r\nimport { GridItemProps } from './types';\r\nimport { computed } from 'vue';\r\nimport { $u, useChildren } from '../..';\r\n\r\n/**\r\n * gridItem 宫格项\r\n * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。搭配u-grid使用\r\n * @tutorial https://uviewpro.cn/zh/components/grid.html\r\n * @property {String} bg-color 宫格的背景颜色(默认var(--u-bg-white)\r\n * @property {String|Number} index 点击宫格时,返回的值\r\n * @property {Object} custom-style 自定义样式,对象形式\r\n * @event {Function} click 点击宫格触发\r\n * @example <u-grid-item></u-grid-item>\r\n */\r\n\r\nconst props = defineProps(GridItemProps);\r\nconst { parentExposed } = useChildren('u-grid-item', 'u-grid');\r\nconst emit = defineEmits(['click']);\r\n\r\n// 宫格按压时的样式类,\"none\"为无效果\r\nconst hoverClass = computed(() => {\r\n return parentExposed?.value?.props?.hoverClass ?? '';\r\n});\r\n\r\n// 是否显示边框\r\nconst border = computed(() => {\r\n return parentExposed?.value?.props?.border ?? true;\r\n});\r\n\r\n// 分成几列\r\nconst col = computed(() => {\r\n return parentExposed?.value?.props?.col ?? 3;\r\n});\r\n\r\n// 计算每个grid-item的宽度\r\nconst width = computed(() => 100 / Number(col.value) + '%');\r\n\r\n/**\r\n * 点击宫格\r\n */\r\nfunction click() {\r\n emit('click', props.index);\r\n parentExposed?.value?.click(props.index);\r\n}\r\n\r\ndefineExpose({ click });\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n@import '../../libs/css/style.components.scss';\r\n\r\n.u-grid-item {\r\n box-sizing: border-box;\r\n background-color: var(--u-bg-white);\r\n @include vue-flex;\r\n align-items: center;\r\n justify-content: center;\r\n position: relative;\r\n flex-direction: column;\r\n\r\n\r\n position: relative;\r\n float: left;\r\n\r\n}\r\n\r\n.u-grid-item-hover {\r\n background: var(--u-bg-gray-light) !important;\r\n}\r\n\r\n.u-grid-marker-box {\r\n position: absolute;\r\n\r\n display: inline-flex;\r\n\r\n line-height: 0;\r\n}\r\n\r\n.u-grid-marker-wrap {\r\n position: absolute;\r\n}\r\n\r\n.u-grid-item-box {\r\n padding: 30rpx 0;\r\n @include vue-flex;\r\n align-items: center;\r\n justify-content: center;\r\n flex-direction: column;\r\n flex: 1;\r\n width: 100%;\r\n height: 100%;\r\n}\r\n</style>\r\n","import Component from 'E:/COMPANYPROJECT/APP/CNCEC_APP/uni_modules/uview-pro/components/u-grid-item/u-grid-item.vue'\nwx.createComponent(Component)"],"names":["useChildren","computed"],"mappings":";;;;;;;AAwBA,MAAA,cAAe;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,IACL,gBAAgB;AAAA,IAEhB,aAAa;AAAA,IAEb,gBAAgB;AAAA,EACpB;AACJ;;;;;;AAmBA,UAAM,QAAQ;AACd,UAAM,EAAE,cAAkB,IAAAA,gDAAA,YAAY,eAAe,QAAQ;AAC7D,UAAM,OAAO;AAGP,UAAA,aAAaC,cAAAA,SAAS,MAAM;;AACvB,eAAA,0DAAe,UAAf,mBAAsB,UAAtB,mBAA6B,eAAc;AAAA,IAAA,CACrD;AAGK,UAAA,SAASA,cAAAA,SAAS,MAAM;;AACnB,eAAA,0DAAe,UAAf,mBAAsB,UAAtB,mBAA6B,WAAU;AAAA,IAAA,CACjD;AAGK,UAAA,MAAMA,cAAAA,SAAS,MAAM;;AAChB,eAAA,0DAAe,UAAf,mBAAsB,UAAtB,mBAA6B,QAAO;AAAA,IAAA,CAC9C;AAGK,UAAA,QAAQA,uBAAS,MAAM,MAAM,OAAO,IAAI,KAAK,IAAI,GAAG;AAK1D,aAAS,QAAQ;;AACR,WAAA,SAAS,MAAM,KAAK;AACV,2DAAA,UAAA,mBAAO,MAAM,MAAM;AAAA,IACtC;AAEa,aAAA,EAAE,OAAO;;;;;;;;;;;;;;;;;ACjFtB,GAAG,gBAAgB,SAAS;"}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-grid/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { InputAlign } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * u-grid 组件 Props 类型定义\r\n * @description 宫格组件属性\r\n */\r\nexport const GridProps = {\r\n ...baseProps,\r\n /** 分成几列 */\r\n col: { type: [Number, String] as PropType<string | number>, default: 3 },\r\n /** 是否显示边框 */\r\n border: { type: Boolean, default: true },\r\n /** 宫格对齐方式,表现为数量少的时候,靠左,居中,还是靠右 */\r\n align: { type: String as PropType<InputAlign>, default: 'left' },\r\n /** 宫格按压时的样式类,\"none\"为无效果 */\r\n hoverClass: { type: String, default: 'u-hover-class' }\r\n};\r\n\r\nexport type GridProps = ExtractPropTypes<typeof GridProps>;\r\n"],"names":["baseProps"],"mappings":";;AAQO,MAAM,YAAY;AAAA,EACrB,GAAGA,6CAAA;AAAA;AAAA,EAEH,KAAK,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,EAAE;AAAA;AAAA,EAEvE,QAAQ,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEvC,OAAO,EAAE,MAAM,QAAgC,SAAS,OAAO;AAAA;AAAA,EAE/D,YAAY,EAAE,MAAM,QAAQ,SAAS,gBAAgB;AACzD;;"}
@@ -0,0 +1 @@
{"version":3,"file":"u-grid.js","sources":["uni_modules/uview-pro/components/u-grid/u-grid.vue","D:/Development Kit/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovQ09NUEFOWVBST0pFQ1QvQVBQL0NOQ0VDX0FQUC91bmlfbW9kdWxlcy91dmlldy1wcm8vY29tcG9uZW50cy91LWdyaWQvdS1ncmlkLnZ1ZQ"],"sourcesContent":["<template>\r\n <view\r\n class=\"u-grid\"\r\n :class=\"{ 'u-border-top u-border-left': border, customClass }\"\r\n :style=\"$u.toStyle(gridStyle, customStyle)\"\r\n >\r\n <slot />\r\n </view>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nexport default {\r\n name: 'u-grid',\r\n options: {\r\n addGlobalClass: true,\r\n\r\n virtualHost: true,\r\n\r\n styleIsolation: 'shared'\r\n }\r\n};\r\n</script>\r\n\r\n<script setup lang=\"ts\">\r\nimport { useParent, $u } from '../../';\r\nimport { GridProps } from './types';\r\nimport { computed } from 'vue';\r\n\r\n/**\r\n * grid 宫格布局\r\n * @description 宫格组件一般用于同时展示多个同类项目的场景,可以给宫格的项目设置徽标组件(badge),或者图标等,也可以扩展为左右滑动的轮播形式。\r\n * @tutorial https://uviewpro.cn/zh/components/grid.html\r\n * @property {String|Number} col 宫格的列数(默认3\r\n * @property {Boolean} border 是否显示宫格的边框(默认true\r\n * @property {Boolean} hover-class 点击宫格的时候,是否显示按下的灰色背景(默认false\r\n * @event {Function} click 点击宫格触发\r\n * @example <u-grid :col=\"3\" @click=\"click\"></u-grid>\r\n */\r\n\r\nconst props = defineProps(GridProps);\r\nconst emit = defineEmits(['click']);\r\nuseParent('u-grid');\r\n\r\n// 宫格对齐方式\r\nconst gridStyle = computed(() => {\r\n const style: Record<string, string> = {};\r\n switch (props.align) {\r\n case 'left':\r\n style.justifyContent = 'flex-start';\r\n break;\r\n case 'center':\r\n style.justifyContent = 'center';\r\n break;\r\n case 'right':\r\n style.justifyContent = 'flex-end';\r\n break;\r\n default:\r\n style.justifyContent = 'flex-start';\r\n }\r\n return style;\r\n});\r\n\r\n/**\r\n * 点击宫格\r\n * @param index 子项索引\r\n */\r\nfunction click(index: number) {\r\n emit('click', index);\r\n}\r\n\r\ndefineExpose({ click, props });\r\n</script>\r\n\r\n<style scoped lang=\"scss\">\r\n@import '../../libs/css/style.components.scss';\r\n\r\n.u-grid {\r\n width: 100%;\r\n\tbackground-color: #ffffff;\r\n\r\n position: relative;\r\n box-sizing: border-box;\r\n overflow: hidden;\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n}\r\n</style>\r\n","import Component from 'E:/COMPANYPROJECT/APP/CNCEC_APP/uni_modules/uview-pro/components/u-grid/u-grid.vue'\nwx.createComponent(Component)"],"names":["useParent","computed"],"mappings":";;;;;;;AAWA,MAAA,cAAe;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,IACL,gBAAgB;AAAA,IAEhB,aAAa;AAAA,IAEb,gBAAgB;AAAA,EACpB;AACJ;;;;;;AAmBA,UAAM,QAAQ;AACd,UAAM,OAAO;AACbA,oDAAA,UAAU,QAAQ;AAGZ,UAAA,YAAYC,cAAAA,SAAS,MAAM;AAC7B,YAAM,QAAgC,CAAA;AACtC,cAAQ,MAAM,OAAO;AAAA,QACjB,KAAK;AACD,gBAAM,iBAAiB;AACvB;AAAA,QACJ,KAAK;AACD,gBAAM,iBAAiB;AACvB;AAAA,QACJ,KAAK;AACD,gBAAM,iBAAiB;AACvB;AAAA,QACJ;AACI,gBAAM,iBAAiB;AAAA,MAC/B;AACO,aAAA;AAAA,IAAA,CACV;AAMD,aAAS,MAAM,OAAe;AAC1B,WAAK,SAAS,KAAK;AAAA,IACvB;AAEa,aAAA,EAAE,OAAO,MAAA,CAAO;;;;;;;;;;;ACrE7B,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
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-image/types.ts"],"sourcesContent":["import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';\r\nimport type { ImgMode, Shape } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n// 定义 ImageProps 的类型\r\nexport const ImageProps = {\r\n ...baseProps,\r\n /** 图片地址 */\r\n src: { type: String, default: '' },\r\n /** 裁剪模式 */\r\n mode: { type: String as PropType<ImgMode>, default: 'aspectFill' },\r\n /** 宽度,单位任意,如果为数值,则为rpx单位(默认100% */\r\n width: { type: [String, Number], default: '100%' },\r\n /** 高度,单位任意,如果为数值,则为rpx单位(默认 auto */\r\n height: { type: [String, Number], default: 'auto' },\r\n /** 图片形状,circle-圆形,square-方形(默认square */\r\n shape: { type: String as PropType<Shape>, default: 'square' },\r\n /** 圆角值,单位任意,如果为数值,则为rpx单位(默认 0 */\r\n borderRadius: { type: [String, Number], default: 0 },\r\n /** 是否懒加载,仅微信小程序、App、百度小程序、字节跳动小程序有效(默认 true */\r\n lazyLoad: { type: Boolean, default: true },\r\n /** 是否开启长按图片显示识别小程序码菜单,仅微信小程序有效(默认 true */\r\n showMenuByLongpress: { type: Boolean, default: true },\r\n /** 加载中的图标,或者小图片(默认 photo */\r\n loadingIcon: { type: String, default: 'photo' },\r\n /** 加载失败的图标,或者小图片(默认 error-circle */\r\n errorIcon: { type: String, default: 'error-circle' },\r\n /** 是否显示加载中的图标或者自定义的slot(默认 true */\r\n showLoading: { type: Boolean, default: true },\r\n /** 是否显示加载错误的图标或者自定义的slot(默认 true */\r\n showError: { type: Boolean, default: true },\r\n /** 是否需要淡入效果(默认 true */\r\n fade: { type: Boolean, default: true },\r\n /** 只支持网络资源,只对微信小程序有效(默认 false */\r\n webp: { type: Boolean, default: false },\r\n /** 搭配fade参数的过渡时间,单位ms(默认 500 */\r\n duration: { type: [String, Number], default: 500 },\r\n /** 背景颜色,用于深色页面加载图片时,为了和背景色融合(默认 var(--u-bg-color) */\r\n bgColor: { type: String, default: 'var(--u-bg-color)' },\r\n /** 使用插槽名称对象,用于自定义插槽,默认 undefined,当动态切换slot隐藏时,需要使用useSlots使用,兼容头条小程序 */\r\n useSlots: { type: Object as PropType<Record<string, boolean>>, default: undefined }\r\n};\r\n\r\n// 将 ImageProps 转换为类型\r\nexport type ImageProps = ExtractPropTypes<typeof ImageProps>;\r\n\r\n// 暴露的组件实例方法\r\nexport type ImageExpose = {\r\n changeStatus: (status: 'loading' | 'error' | 'normal') => void;\r\n};\r\n\r\n// 组件实例类型\r\nexport type ImageInstance = ComponentPublicInstance<ImageProps, ImageExpose>;\r\n"],"names":["baseProps"],"mappings":";;AAKO,MAAM,aAAa;AAAA,EACtB,GAAGA,6CAAA;AAAA;AAAA,EAEH,KAAK,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAEjC,MAAM,EAAE,MAAM,QAA6B,SAAS,aAAa;AAAA;AAAA,EAEjE,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,OAAO;AAAA;AAAA,EAEjD,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,OAAO;AAAA;AAAA,EAElD,OAAO,EAAE,MAAM,QAA2B,SAAS,SAAS;AAAA;AAAA,EAE5D,cAAc,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,EAAE;AAAA;AAAA,EAEnD,UAAU,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEzC,qBAAqB,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEpD,aAAa,EAAE,MAAM,QAAQ,SAAS,QAAQ;AAAA;AAAA,EAE9C,WAAW,EAAE,MAAM,QAAQ,SAAS,eAAe;AAAA;AAAA,EAEnD,aAAa,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE5C,WAAW,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE1C,MAAM,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAErC,MAAM,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAEtC,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAG,SAAS,IAAI;AAAA;AAAA,EAEjD,SAAS,EAAE,MAAM,QAAQ,SAAS,oBAAoB;AAAA;AAAA,EAEtD,UAAU,EAAE,MAAM,QAA6C,SAAS,OAAU;AACtF;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-link/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { getColor, useLocale } from '../../';\r\n\r\nconst { t } = useLocale();\r\n\r\n/**\r\n * u-link 组件 props 类型定义\r\n * @description 超链接组件,支持多端跳转/复制/提示\r\n */\r\nexport const LinkProps = {\r\n /** 文字颜色 */\r\n color: {\r\n type: String,\r\n default: () => getColor('primary')\r\n },\r\n /** 字体大小,单位rpx */\r\n fontSize: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: 28\r\n },\r\n /** 是否显示下划线 */\r\n underLine: {\r\n type: Boolean,\r\n default: false\r\n },\r\n /** 要跳转的链接 */\r\n href: {\r\n type: String,\r\n default: ''\r\n },\r\n /** 小程序中复制到粘贴板的提示语 */\r\n mpTips: {\r\n type: String,\r\n default: () => t('uLink.mpTips')\r\n },\r\n /** 下划线颜色 */\r\n lineColor: {\r\n type: String,\r\n default: ''\r\n },\r\n /** 是否默认点击跳转 */\r\n defaultClick: {\r\n type: Boolean,\r\n default: true\r\n }\r\n};\r\n\r\n/**\r\n * u-link 组件 props 类型\r\n */\r\nexport type LinkProps = ExtractPropTypes<typeof LinkProps>;\r\n"],"names":["useLocale","getColor"],"mappings":";;;;;;;AAGA,MAAM,EAAE,EAAE,IAAIA,0CAAAA;AAMP,MAAM,YAAY;AAAA;AAAA,EAErB,OAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS,MAAMC,yCAAA,SAAS,SAAS;AAAA,EACrC;AAAA;AAAA,EAEA,UAAU;AAAA,IACN,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,WAAW;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,QAAQ;AAAA,IACJ,MAAM;AAAA,IACN,SAAS,MAAM,EAAE,cAAc;AAAA,EACnC;AAAA;AAAA,EAEA,WAAW;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AACJ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"u-link.js","sources":["uni_modules/uview-pro/components/u-link/u-link.vue","D:/Development Kit/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovQ09NUEFOWVBST0pFQ1QvQVBQL0NOQ0VDX0FQUC91bmlfbW9kdWxlcy91dmlldy1wcm8vY29tcG9uZW50cy91LWxpbmsvdS1saW5rLnZ1ZQ"],"sourcesContent":["<template>\r\n <text\r\n class=\"u-link\"\r\n @tap.stop=\"openLink\"\r\n :style=\"{\r\n color: color,\r\n fontSize: fontSize + 'rpx',\r\n borderBottom: underLine ? `1px solid ${lineColor ? lineColor : color}` : 'none',\r\n paddingBottom: underLine ? '0rpx' : '0'\r\n }\"\r\n >\r\n <slot></slot>\r\n </text>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nexport default {\r\n name: 'u-link',\r\n options: {\r\n addGlobalClass: true,\r\n\r\n virtualHost: true,\r\n\r\n styleIsolation: 'shared'\r\n }\r\n};\r\n</script>\r\n\r\n<script setup lang=\"ts\">\r\nimport { $u } from '../..';\r\nimport { LinkProps } from './types';\r\n\r\n/**\r\n * link 超链接\r\n * @description 该组件为超链接组件,在不同平台有不同表现形式:在APP平台会通过plus环境打开内置浏览器,在小程序中把链接复制到粘贴板,同时提示信息,在H5中通过window.open打开链接。\r\n * @tutorial https://uviewpro.cn/zh/components/link.html\r\n * @property {String} color 文字颜色(默认var(--u-content-color)\r\n * @property {String Number} font-size 字体大小,单位rpx(默认28\r\n * @property {Boolean} under-line 是否显示下划线(默认false\r\n * @property {String} href 跳转的链接,要带上http(s)\r\n * @property {String} line-color 下划线颜色,默认同color参数颜色\r\n * @property {String} mp-tips 各个小程序平台把链接复制到粘贴板后的提示语(默认“链接已复制,请在浏览器打开”)\r\n * @example <u-link href=\"https://uviewpro.cn\">蜀道难,难于上青天</u-link>\r\n */\r\nconst props = defineProps(LinkProps);\r\nconst emit = defineEmits(['click']);\r\n\r\n/**\r\n * 打开链接方法\r\n * 不同平台有不同表现形式\r\n */\r\nfunction openLink() {\r\n if (!props.defaultClick) {\r\n emit('click', props.href);\r\n return;\r\n }\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n if (typeof uni !== 'undefined' && uni.setClipboardData) {\r\n uni.setClipboardData({\r\n data: props.href,\r\n success: () => {\r\n uni.hideToast();\r\n if (typeof $u !== 'undefined' && $u.toast && props.mpTips) {\r\n $u.toast(props.mpTips);\r\n }\r\n }\r\n });\r\n }\r\n\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n@import '../../libs/css/style.components.scss';\r\n\r\n.u-link {\r\n line-height: 1;\r\n}\r\n</style>\r\n","import Component from 'E:/COMPANYPROJECT/APP/CNCEC_APP/uni_modules/uview-pro/components/u-link/u-link.vue'\nwx.createComponent(Component)"],"names":["uni","$u"],"mappings":";;;;;;AAgBA,MAAA,cAAe;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,IACL,gBAAgB;AAAA,IAEhB,aAAa;AAAA,IAEb,gBAAgB;AAAA,EACpB;AACJ;;;;;;AAmBA,UAAM,QAAQ;AACd,UAAM,OAAO;AAMb,aAAS,WAAW;AACZ,UAAA,CAAC,MAAM,cAAc;AAChB,aAAA,SAAS,MAAM,IAAI;AACxB;AAAA,MACJ;AAYA,UAAI,OAAOA,cAAA,UAAQ,eAAeA,cAAAA,MAAI,kBAAkB;AACpDA,sBAAAA,MAAI,iBAAiB;AAAA,UACjB,MAAM,MAAM;AAAA,UACZ,SAAS,MAAM;AACXA,0BAAA,MAAI,UAAU;AACd,gBAAI,OAAOC,gCAAO,OAAA,eAAeA,gCAAG,GAAA,SAAS,MAAM,QAAQ;AACpDA,8CAAAA,GAAA,MAAM,MAAM,MAAM;AAAA,YACzB;AAAA,UACJ;AAAA,QAAA,CACH;AAAA,MACL;AAAA,IAEJ;;;;;;;;;;;;;AC9EA,GAAG,gBAAgB,SAAS;"}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-loading/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\n\r\ntype LoadingMode = 'circle' | 'flower';\r\n\r\n/**\r\n * u-loading 组件 props 类型定义\r\n * @description 加载动画,支持多种模式\r\n */\r\nexport const LoadingProps = {\r\n ...baseProps,\r\n /** 动画的类型 */\r\n mode: {\r\n type: String as PropType<LoadingMode>,\r\n default: 'circle'\r\n },\r\n /** 动画的颜色 */\r\n color: {\r\n type: String,\r\n default: 'var(--u-light-color)'\r\n },\r\n /** 加载图标的大小,单位rpx */\r\n size: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: '34'\r\n },\r\n /** 是否显示动画 */\r\n show: {\r\n type: Boolean,\r\n default: true\r\n }\r\n};\r\n\r\n/**\r\n * u-loading 组件 props 类型\r\n */\r\nexport type LoadingProps = ExtractPropTypes<typeof LoadingProps>;\r\n"],"names":["baseProps"],"mappings":";;AASO,MAAM,eAAe;AAAA,EACxB,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM;AAAA,IACF,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,OAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,MAAM;AAAA,IACF,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AACJ;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"service.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-navbar/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport zIndex from '../../libs/config/zIndex';\r\n\r\n/**\r\n * u-navbar 组件 props 类型定义\r\n * @description 自定义导航栏,支持多种样式\r\n */\r\nexport const NavbarProps = {\r\n /** 导航栏高度,单位px,非rpx */\r\n height: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: ''\r\n },\r\n /** 返回箭头的颜色 */\r\n backIconColor: {\r\n type: String,\r\n default: 'var(--u-content-color)'\r\n },\r\n /** 左边返回的图标 */\r\n backIconName: {\r\n type: String,\r\n default: 'nav-back'\r\n },\r\n /** 左边返回图标的大小,rpx */\r\n backIconSize: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: '44'\r\n },\r\n /** 返回的文字提示 */\r\n backText: {\r\n type: String,\r\n default: ''\r\n },\r\n /** 返回的文字的 样式 */\r\n backTextStyle: {\r\n type: Object as PropType<Record<string, any>>,\r\n default: () => ({ color: 'var(--u-content-color)' })\r\n },\r\n /** 导航栏标题 */\r\n title: {\r\n type: String,\r\n default: ''\r\n },\r\n /** 标题的宽度,单位rpx */\r\n titleWidth: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: '250'\r\n },\r\n /** 标题的颜色 */\r\n titleColor: {\r\n type: String,\r\n default: 'var(--u-content-color)'\r\n },\r\n /** 标题字体是否加粗 */\r\n titleBold: {\r\n type: Boolean,\r\n default: false\r\n },\r\n /** 标题的字体大小 */\r\n titleSize: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: 32\r\n },\r\n /** 是否显示导航栏左边返回图标和辅助文字 */\r\n isBack: {\r\n type: [Boolean, String] as PropType<boolean | string>,\r\n default: true\r\n },\r\n /** 导航栏背景设置 */\r\n background: {\r\n type: Object as PropType<Record<string, any>>,\r\n default: () => ({ background: 'var(--u-bg-white)' })\r\n },\r\n /** 导航栏是否固定在顶部 */\r\n isFixed: {\r\n type: Boolean,\r\n default: true\r\n },\r\n /** 是否沉浸式,允许fixed定位后导航栏塌陷,仅fixed定位下生效 */\r\n immersive: {\r\n type: Boolean,\r\n default: false\r\n },\r\n /** 是否显示导航栏的下边框 */\r\n borderBottom: {\r\n type: Boolean,\r\n default: true\r\n },\r\n /** 固定在顶部时的z-index值 */\r\n zIndex: {\r\n type: [String, Number] as PropType<string | number>,\r\n default: zIndex.navbar\r\n },\r\n /** 自定义返回逻辑方法 */\r\n customBack: {\r\n type: Function as PropType<() => void>,\r\n default: null\r\n }\r\n};\r\n\r\n/**\r\n * u-navbar 组件 props 类型\r\n */\r\nexport type NavbarProps = ExtractPropTypes<typeof NavbarProps>;\r\n"],"names":["zIndex"],"mappings":";;AAOO,MAAM,cAAc;AAAA;AAAA,EAEvB,QAAQ;AAAA,IACJ,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,eAAe;AAAA,IACX,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,cAAc;AAAA,IACV,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,UAAU;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,eAAe;AAAA,IACX,MAAM;AAAA,IACN,SAAS,OAAO,EAAE,OAAO;EAC7B;AAAA;AAAA,EAEA,OAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,YAAY;AAAA,IACR,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,YAAY;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,WAAW;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,WAAW;AAAA,IACP,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,QAAQ;AAAA,IACJ,MAAM,CAAC,SAAS,MAAM;AAAA,IACtB,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,YAAY;AAAA,IACR,MAAM;AAAA,IACN,SAAS,OAAO,EAAE,YAAY;EAClC;AAAA;AAAA,EAEA,SAAS;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,WAAW;AAAA,IACP,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,cAAc;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,QAAQ;AAAA,IACJ,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAASA,wCAAO,OAAA;AAAA,EACpB;AAAA;AAAA,EAEA,YAAY;AAAA,IACR,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AACJ;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-row/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { RowAlign, RowJustify } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * RowProps 行布局 props 类型定义\r\n * @description 12分栏布局,快速创建布局\r\n */\r\n\r\nexport const RowProps = {\r\n ...baseProps,\r\n /** 给col添加间距,左右边距各占一半 */\r\n gutter: { type: [String, Number] as PropType<number | string>, default: 20 },\r\n /** 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`) */\r\n justify: { type: String as PropType<RowJustify>, default: 'start' },\r\n /** 垂直对齐方式,可选值为top、center、bottom */\r\n align: { type: String as PropType<RowAlign>, default: 'center' },\r\n /** 是否阻止事件传播 */\r\n stop: { type: Boolean, default: true }\r\n};\r\n\r\nexport type RowProps = ExtractPropTypes<typeof RowProps>;\r\n"],"names":["baseProps"],"mappings":";;AASO,MAAM,WAAW;AAAA,EACpB,GAAGA,6CAAA;AAAA;AAAA,EAEH,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE3E,SAAS,EAAE,MAAM,QAAgC,SAAS,QAAQ;AAAA;AAAA,EAElE,OAAO,EAAE,MAAM,QAA8B,SAAS,SAAS;AAAA;AAAA,EAE/D,MAAM,EAAE,MAAM,SAAS,SAAS,KAAK;AACzC;;"}
@@ -0,0 +1 @@
{"version":3,"file":"u-row.js","sources":["uni_modules/uview-pro/components/u-row/u-row.vue","D:/Development Kit/HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RTovQ09NUEFOWVBST0pFQ1QvQVBQL0NOQ0VDX0FQUC91bmlfbW9kdWxlcy91dmlldy1wcm8vY29tcG9uZW50cy91LXJvdy91LXJvdy52dWU"],"sourcesContent":["<template>\r\n <view\r\n class=\"u-row\"\r\n :style=\"\r\n $u.toStyle(\r\n {\r\n alignItems: uAlignItem,\r\n justifyContent: uJustify\r\n },\r\n customStyle\r\n )\r\n \"\r\n @tap=\"onClick\"\r\n >\r\n <slot />\r\n </view>\r\n</template>\r\n\r\n<script lang=\"ts\">\r\nexport default {\r\n name: 'u-row',\r\n options: {\r\n addGlobalClass: true,\r\n\r\n virtualHost: true,\r\n\r\n styleIsolation: 'shared'\r\n }\r\n};\r\n</script>\r\n\r\n<script setup lang=\"ts\">\r\nimport { computed } from 'vue';\r\nimport { RowProps } from './types';\r\nimport { $u, useParent } from '../../';\r\n\r\n/**\r\n * row 行布局\r\n * @description 通过基础的 12 分栏,迅速简便地创建布局。\r\n * @tutorial https://uviewpro.cn/zh/components/layout.html#row-props\r\n * @property {String|Number} gutter 栅格间隔,左右各为此值的一半,单位rpx(默认0\r\n * @property {String} justify 水平排列方式(微信小程序暂不支持)默认(start(或flex-start)\r\n * @property {String} align 垂直排列方式(默认center\r\n * @example <u-row gutter=\"16\"></u-row>\r\n */\r\n\r\nconst emit = defineEmits<{ (e: 'click'): void }>();\r\n\r\nconst props = defineProps(RowProps);\r\n\r\nuseParent('u-row');\r\n\r\n/**\r\n * 计算水平排列方式\r\n * @returns {string}\r\n */\r\nconst uJustify = computed(() => {\r\n if (props.justify === 'end' || props.justify === 'start') return 'flex-' + props.justify;\r\n else if (props.justify === 'around' || props.justify === 'between') return 'space-' + props.justify;\r\n else return props.justify;\r\n});\r\n\r\n/**\r\n * 计算垂直对齐方式\r\n * @returns {string}\r\n */\r\nconst uAlignItem = computed(() => {\r\n if (props.align === 'top') return 'flex-start';\r\n if (props.align === 'bottom') return 'flex-end';\r\n else return props.align;\r\n});\r\n\r\n/**\r\n * 点击事件\r\n * @param e 事件对象\r\n */\r\nfunction onClick(e: Event) {\r\n // 触发 click 事件\r\n emit('click');\r\n}\r\n\r\ndefineExpose({\r\n props\r\n});\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n@import '../../libs/css/style.components.scss';\r\n\r\n.u-row {\r\n // 由于微信小程序编译后奇怪的页面结构,只能使用float布局实现,flex无法实现\r\n\r\n\r\n\r\n flex-wrap: wrap;\r\n}\r\n\r\n.u-row:after {\r\n\r\n display: table;\r\n clear: both;\r\n content: '';\r\n\r\n}\r\n</style>\r\n","import Component from 'E:/COMPANYPROJECT/APP/CNCEC_APP/uni_modules/uview-pro/components/u-row/u-row.vue'\nwx.createComponent(Component)"],"names":["useParent","computed","Component"],"mappings":";;;;;;;AAmBA,MAAA,cAAe;AAAA,EACX,MAAM;AAAA,EACN,SAAS;AAAA,IACL,gBAAgB;AAAA,IAEhB,aAAa;AAAA,IAEb,gBAAgB;AAAA,EACpB;AACJ;;;;;;AAkBA,UAAM,OAAO;AAEb,UAAM,QAAQ;AAEdA,oDAAA,UAAU,OAAO;AAMX,UAAA,WAAWC,cAAAA,SAAS,MAAM;AAC5B,UAAI,MAAM,YAAY,SAAS,MAAM,YAAY;AAAS,eAAO,UAAU,MAAM;AAAA,eACxE,MAAM,YAAY,YAAY,MAAM,YAAY;AAAW,eAAO,WAAW,MAAM;AAAA;AACvF,eAAO,MAAM;AAAA,IAAA,CACrB;AAMK,UAAA,aAAaA,cAAAA,SAAS,MAAM;AAC9B,UAAI,MAAM,UAAU;AAAc,eAAA;AAClC,UAAI,MAAM,UAAU;AAAiB,eAAA;AAAA;AAChC,eAAO,MAAM;AAAA,IAAA,CACrB;AAMD,aAAS,QAAQ,GAAU;AAEvB,WAAK,OAAO;AAAA,IAChB;AAEa,aAAA;AAAA,MACT;AAAA,IAAA,CACH;;;;;;;;;;;;AClFD,GAAG,gBAAgBC,SAAS;"}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-search/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { InputAlign, SearchShape } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\nimport { useLocale } from '../../';\r\n\r\nconst { t } = useLocale();\r\n\r\n/**\r\n * SearchProps 搜索框 props 类型定义\r\n * @description 集成常见搜索框功能,开箱即用\r\n */\r\nexport const SearchProps = {\r\n ...baseProps,\r\n /** 搜索框形状,round-圆形,square-方形 */\r\n shape: { type: String as PropType<SearchShape>, default: 'round' },\r\n /** 搜索框背景色,默认值var(--u-bg-gray-light) */\r\n bgColor: { type: String, default: 'var(--u-bg-gray-light)' },\r\n /** 占位提示文字 */\r\n placeholder: { type: String, default: () => t('uSearch.placeholder') },\r\n /** 是否启用清除控件 */\r\n clearabled: { type: Boolean, default: true },\r\n /** 是否自动聚焦 */\r\n focus: { type: Boolean, default: false },\r\n /** 是否在搜索框右侧显示取消按钮 */\r\n showAction: { type: Boolean, default: true },\r\n /** 右边控件的样式 */\r\n actionStyle: { type: Object as PropType<Record<string, any>>, default: () => ({}) },\r\n /** 取消按钮文字 */\r\n actionText: { type: String, default: () => t('uSearch.actionText') },\r\n /** 输入框内容对齐方式,可选值为 left|center|right */\r\n inputAlign: { type: String as PropType<InputAlign>, default: 'left' },\r\n /** 是否启用输入框 */\r\n disabled: { type: Boolean, default: false },\r\n /** 开启showAction时,是否在input获取焦点时才显示 */\r\n animation: { type: Boolean, default: false },\r\n /** 边框颜色,只要配置了颜色,才会有边框 */\r\n borderColor: { type: String, default: 'none' },\r\n /** 输入框的初始化内容 */\r\n modelValue: { type: String, default: '' },\r\n /** 搜索框高度,单位rpx */\r\n height: { type: [Number, String] as PropType<number | string>, default: 64 },\r\n /** input输入框的样式,可以定义文字颜色,大小等,对象形式 */\r\n inputStyle: { type: Object as PropType<Record<string, any>>, default: () => ({}) },\r\n /** 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档) */\r\n maxlength: { type: [Number, String] as PropType<number | string>, default: '-1' },\r\n /** 搜索图标的颜色,默认同输入框字体颜色 */\r\n searchIconColor: { type: String, default: '' },\r\n /** 输入框字体颜色 */\r\n color: { type: String, default: 'var(--u-content-color)' },\r\n /** placeholder的颜色 */\r\n placeholderColor: { type: String, default: 'var(--u-tips-color)' },\r\n /** 组件与其他上下左右元素之间的距离,带单位的字符串形式,如\"30rpx\"、\"30rpx 20rpx\"等写法 */\r\n margin: { type: String, default: '0' },\r\n /** 左边输入框的图标,可以为uView图标名称或图片路径 */\r\n searchIcon: { type: String, default: 'search' },\r\n /** 弹出键盘时是否自动调节高度,uni-app默认值是true */\r\n adjustPosition: { type: Boolean, default: true }\r\n};\r\n\r\nexport type SearchProps = ExtractPropTypes<typeof SearchProps>;\r\n"],"names":["useLocale","baseProps"],"mappings":";;;;;;;AAKA,MAAM,EAAE,EAAE,IAAIA,0CAAAA;AAMP,MAAM,cAAc;AAAA,EACvB,GAAGC,6CAAA;AAAA;AAAA,EAEH,OAAO,EAAE,MAAM,QAAiC,SAAS,QAAQ;AAAA;AAAA,EAEjE,SAAS,EAAE,MAAM,QAAQ,SAAS,yBAAyB;AAAA;AAAA,EAE3D,aAAa,EAAE,MAAM,QAAQ,SAAS,MAAM,EAAE,qBAAqB,EAAE;AAAA;AAAA,EAErE,YAAY,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE3C,OAAO,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAEvC,YAAY,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE3C,aAAa,EAAE,MAAM,QAAyC,SAAS,OAAO,CAAI,GAAA;AAAA;AAAA,EAElF,YAAY,EAAE,MAAM,QAAQ,SAAS,MAAM,EAAE,oBAAoB,EAAE;AAAA;AAAA,EAEnE,YAAY,EAAE,MAAM,QAAgC,SAAS,OAAO;AAAA;AAAA,EAEpE,UAAU,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE1C,WAAW,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE3C,aAAa,EAAE,MAAM,QAAQ,SAAS,OAAO;AAAA;AAAA,EAE7C,YAAY,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAExC,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE3E,YAAY,EAAE,MAAM,QAAyC,SAAS,OAAO,CAAI,GAAA;AAAA;AAAA,EAEjF,WAAW,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,KAAK;AAAA;AAAA,EAEhF,iBAAiB,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAE7C,OAAO,EAAE,MAAM,QAAQ,SAAS,yBAAyB;AAAA;AAAA,EAEzD,kBAAkB,EAAE,MAAM,QAAQ,SAAS,sBAAsB;AAAA;AAAA,EAEjE,QAAQ,EAAE,MAAM,QAAQ,SAAS,IAAI;AAAA;AAAA,EAErC,YAAY,EAAE,MAAM,QAAQ,SAAS,SAAS;AAAA;AAAA,EAE9C,gBAAgB,EAAE,MAAM,SAAS,SAAS,KAAK;AACnD;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-section/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\nimport { useLocale } from '../../';\r\n\r\nconst { t } = useLocale();\r\n\r\n/**\r\n * section 组件 props 类型定义\r\n * @description 供 u-section 组件 props 使用\r\n */\r\nexport type FontSize = string | number;\r\n\r\nexport const SectionProps = {\r\n ...baseProps,\r\n /** 标题信息 */\r\n title: { type: String, default: '' },\r\n /** 右边副标题内容 */\r\n subTitle: { type: String, default: () => t('uSection.subTitle') },\r\n /** 是否显示右边的内容 */\r\n right: { type: Boolean, default: true },\r\n /** 主标题的字体大小 */\r\n fontSize: { type: [Number, String] as PropType<FontSize>, default: 28 },\r\n /** 主标题是否加粗 */\r\n bold: { type: Boolean, default: true },\r\n /** 主标题的颜色 */\r\n color: { type: String, default: 'var(--u-main-color)' },\r\n /** 右边副标题的颜色 */\r\n subColor: { type: String, default: 'var(--u-tips-color)' },\r\n /** 是否显示左边的竖条 */\r\n showLine: { type: Boolean, default: true },\r\n /** 左边竖线的颜色 */\r\n lineColor: { type: String, default: '' },\r\n /** 是否显示右边箭头 */\r\n arrow: { type: Boolean, default: true }\r\n};\r\n\r\nexport type SectionProps = ExtractPropTypes<typeof SectionProps>;\r\n"],"names":["useLocale","baseProps"],"mappings":";;;;;;;AAIA,MAAM,EAAE,EAAE,IAAIA,0CAAAA;AAQP,MAAM,eAAe;AAAA,EACxB,GAAGC,6CAAA;AAAA;AAAA,EAEH,OAAO,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAEnC,UAAU,EAAE,MAAM,QAAQ,SAAS,MAAM,EAAE,mBAAmB,EAAE;AAAA;AAAA,EAEhE,OAAO,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEtC,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAyB,SAAS,GAAG;AAAA;AAAA,EAEtE,MAAM,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAErC,OAAO,EAAE,MAAM,QAAQ,SAAS,sBAAsB;AAAA;AAAA,EAEtD,UAAU,EAAE,MAAM,QAAQ,SAAS,sBAAsB;AAAA;AAAA,EAEzD,UAAU,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEzC,WAAW,EAAE,MAAM,QAAQ,SAAS,GAAG;AAAA;AAAA,EAEvC,OAAO,EAAE,MAAM,SAAS,SAAS,KAAK;AAC1C;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-sticky/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\nimport zIndex from '../../libs/config/zIndex';\r\n\r\n/**\r\n * StickyProps 吸顶组件 props 类型定义\r\n * @description 吸顶组件,支持自定义吸顶距离、z-index、背景色等\r\n */\r\nexport const StickyProps = {\r\n ...baseProps,\r\n /** 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px */\r\n offsetTop: { type: [Number, String] as PropType<number | string>, default: 0 },\r\n /** 列表中的索引值 */\r\n index: { type: [Number, String] as PropType<number | string>, default: '' },\r\n /** 是否开启吸顶功能 */\r\n enable: { type: Boolean, default: true },\r\n /** h5顶部导航栏的高度 */\r\n h5NavHeight: { type: [Number, String] as PropType<number | string>, default: 44 },\r\n /** 吸顶区域的背景颜色 */\r\n bgColor: { type: String, default: 'var(--u-bg-white)' },\r\n /** z-index值 */\r\n zIndex: { type: [Number, String] as PropType<number | string>, default: zIndex.sticky }\r\n};\r\n\r\nexport type StickyProps = ExtractPropTypes<typeof StickyProps>;\r\n"],"names":["baseProps","zIndex"],"mappings":";;;AAQO,MAAM,cAAc;AAAA,EACvB,GAAGA,6CAAA;AAAA;AAAA,EAEH,WAAW,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,EAAE;AAAA;AAAA,EAE7E,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE1E,QAAQ,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAEvC,aAAa,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAEhF,SAAS,EAAE,MAAM,QAAQ,SAAS,oBAAoB;AAAA;AAAA,EAEtD,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAASC,wCAAA,OAAO,OAAO;AAC1F;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-subsection/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport type { SubsectionListItem, SubsectionMode } from '../../types/global';\r\nimport { baseProps } from '../common/props';\r\n\r\n/**\r\n * SubsectionProps 分段器 props 类型定义\r\n * @description 分段器,支持按钮/分段模式、动画、颜色等\r\n */\r\n\r\nexport const SubsectionProps = {\r\n ...baseProps,\r\n /** tab的数据 */\r\n list: { type: Array as PropType<Array<string | SubsectionListItem>>, default: () => [] },\r\n /** 当前活动的tab的index */\r\n current: { type: [Number, String] as PropType<number | string>, default: 0 },\r\n /** 激活的颜色 */\r\n activeColor: { type: String, default: 'var(--u-main-color)' },\r\n /** 未激活的颜色 */\r\n inactiveColor: { type: String, default: 'var(--u-content-color)' },\r\n /** 模式选择,mode=button为按钮形式,mode=subsection时为分段模式 */\r\n mode: { type: String as PropType<SubsectionMode>, default: 'button' },\r\n /** 字体大小,单位rpx */\r\n fontSize: { type: [Number, String] as PropType<number | string>, default: 28 },\r\n /** 是否开启动画效果 */\r\n animation: { type: Boolean, default: true },\r\n /** 组件的高度,单位rpx */\r\n height: { type: [Number, String] as PropType<number | string>, default: 70 },\r\n /** 激活tab的字体是否加粗 */\r\n bold: { type: Boolean, default: true },\r\n /** mode=button时,组件背景颜色 */\r\n bgColor: { type: String, default: 'var(--u-divider-color)' },\r\n /** mode = button时,滑块背景颜色 */\r\n buttonColor: { type: String, default: 'var(--u-bg-white)' },\r\n /** 在切换分段器的时候,是否让设备震一下 */\r\n vibrateShort: { type: Boolean, default: false }\r\n};\r\n\r\nexport type SubsectionProps = ExtractPropTypes<typeof SubsectionProps>;\r\n"],"names":["baseProps"],"mappings":";;AASO,MAAM,kBAAkB;AAAA,EAC3B,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM,EAAE,MAAM,OAAuD,SAAS,MAAM,CAAA,EAAG;AAAA;AAAA,EAEvF,SAAS,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,EAAE;AAAA;AAAA,EAE3E,aAAa,EAAE,MAAM,QAAQ,SAAS,sBAAsB;AAAA;AAAA,EAE5D,eAAe,EAAE,MAAM,QAAQ,SAAS,yBAAyB;AAAA;AAAA,EAEjE,MAAM,EAAE,MAAM,QAAoC,SAAS,SAAS;AAAA;AAAA,EAEpE,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE7E,WAAW,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE1C,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE3E,MAAM,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAErC,SAAS,EAAE,MAAM,QAAQ,SAAS,yBAAyB;AAAA;AAAA,EAE3D,aAAa,EAAE,MAAM,QAAQ,SAAS,oBAAoB;AAAA;AAAA,EAE1D,cAAc,EAAE,MAAM,SAAS,SAAS,MAAM;AAClD;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-tabbar/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\nimport type { TabbarItem } from '../../types/global';\r\nimport zIndex from '../../libs/config/zIndex';\r\n\r\n/**\r\n * TabbarProps 底部导航栏 props 类型定义\r\n * @description 底部导航栏,支持凸起按钮、徽标、切换前回调等\r\n */\r\nexport const TabbarProps = {\r\n ...baseProps,\r\n /** 是否显示tabbar */\r\n show: { type: Boolean, default: true },\r\n /** v-model绑定当前激活项的值 */\r\n modelValue: { type: [String, Number] as PropType<string | number>, default: 0 },\r\n /** tabbar背景色 */\r\n bgColor: { type: String, default: 'var(--u-bg-white)' },\r\n /** tabbar高度,单位任意,数值默认rpx */\r\n height: { type: [String, Number] as PropType<string | number>, default: '50px' },\r\n /** 非凸起图标的大小,单位任意,数值默认rpx */\r\n iconSize: { type: [String, Number] as PropType<string | number>, default: 40 },\r\n /** 凸起图标的大小,单位任意,数值默认rpx */\r\n midButtonSize: { type: [String, Number] as PropType<string | number>, default: 100 },\r\n /** 文本大小,单位任意,数值默认rpx */\r\n textSize: { type: [String, Number] as PropType<string | number>, default: 26 },\r\n /** 激活时的颜色 */\r\n activeColor: { type: String, default: 'var(--u-type-primary)' },\r\n /** 未激活时的颜色 */\r\n inactiveColor: { type: String, default: 'var(--u-content-color)' },\r\n /** 是否显示中部凸起按钮 */\r\n midButton: { type: Boolean, default: false },\r\n /** tabbar配置项数组 */\r\n list: { type: Array as PropType<TabbarItem[]>, default: () => [] },\r\n /** 切换前回调,返回true或Promise */\r\n beforeSwitch: {\r\n type: Function as unknown as PropType<((index: number) => boolean | Promise<any>) | null>,\r\n default: null\r\n },\r\n /** 是否显示顶部横线 */\r\n borderTop: { type: Boolean, default: true },\r\n /** 是否隐藏原生tabbar */\r\n hideTabBar: { type: Boolean, default: true },\r\n /** z-index层级 */\r\n zIndex: { type: [String, Number] as PropType<string | number>, default: zIndex.tabbar },\r\n /** icon和text的间距,单位任意,数值默认rpx */\r\n gap: { type: [String, Number] as PropType<string | number>, default: 8 }\r\n};\r\n\r\nexport type TabbarProps = ExtractPropTypes<typeof TabbarProps>;\r\n"],"names":["baseProps","zIndex"],"mappings":";;;AASO,MAAM,cAAc;AAAA,EACvB,GAAGA,6CAAA;AAAA;AAAA,EAEH,MAAM,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAErC,YAAY,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,EAAE;AAAA;AAAA,EAE9E,SAAS,EAAE,MAAM,QAAQ,SAAS,oBAAoB;AAAA;AAAA,EAEtD,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,OAAO;AAAA;AAAA,EAE/E,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE7E,eAAe,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,IAAI;AAAA;AAAA,EAEnF,UAAU,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,GAAG;AAAA;AAAA,EAE7E,aAAa,EAAE,MAAM,QAAQ,SAAS,wBAAwB;AAAA;AAAA,EAE9D,eAAe,EAAE,MAAM,QAAQ,SAAS,yBAAyB;AAAA;AAAA,EAEjE,WAAW,EAAE,MAAM,SAAS,SAAS,MAAM;AAAA;AAAA,EAE3C,MAAM,EAAE,MAAM,OAAiC,SAAS,MAAM,CAAA,EAAG;AAAA;AAAA,EAEjE,cAAc;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA;AAAA,EAEA,WAAW,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE1C,YAAY,EAAE,MAAM,SAAS,SAAS,KAAK;AAAA;AAAA,EAE3C,QAAQ,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAASC,wCAAA,OAAO,OAAO;AAAA;AAAA,EAEtF,KAAK,EAAE,MAAM,CAAC,QAAQ,MAAM,GAAgC,SAAS,EAAE;AAC3E;;"}
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
@@ -0,0 +1 @@
{"version":3,"file":"service.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"types.js","sources":["uni_modules/uview-pro/components/u-transition/types.ts"],"sourcesContent":["import type { PropType } from 'vue';\r\nimport { baseProps } from '../common/props';\r\nimport type { TransitionDuration, TransitionPreset } from '../../types/global';\r\n\r\nexport const TransitionProps = {\r\n ...baseProps,\r\n show: {\r\n type: Boolean,\r\n default: true\r\n },\r\n name: {\r\n type: String as PropType<TransitionPreset>,\r\n default: 'fade'\r\n },\r\n mode: {\r\n type: String as PropType<'out-in' | 'in-out' | ''>,\r\n default: ''\r\n },\r\n duration: {\r\n type: [Number, Object] as PropType<number | TransitionDuration>,\r\n default: 300\r\n },\r\n timingFunction: {\r\n type: String,\r\n default: 'cubic-bezier(0.2, 0.8, 0.2, 1)'\r\n },\r\n delay: {\r\n type: Number,\r\n default: 0\r\n },\r\n appear: {\r\n type: Boolean,\r\n default: false\r\n }\r\n};\r\n"],"names":["baseProps"],"mappings":";;AAIO,MAAM,kBAAkB;AAAA,EAC3B,GAAGA,6CAAA;AAAA,EACH,MAAM;AAAA,IACF,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA,MAAM;AAAA,IACF,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACN,MAAM,CAAC,QAAQ,MAAM;AAAA,IACrB,SAAS;AAAA,EACb;AAAA,EACA,gBAAgB;AAAA,IACZ,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA,OAAO;AAAA,IACH,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AAAA,EACA,QAAQ;AAAA,IACJ,MAAM;AAAA,IACN,SAAS;AAAA,EACb;AACJ;;"}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"color.js","sources":["uni_modules/uview-pro/libs/config/color.ts"],"sourcesContent":["import { reactive } from 'vue';\r\nimport { lightPalette } from './theme-tokens';\r\nimport type { ThemeColor } from '../../types/global';\r\n\r\n// 使用 reactive 包装颜色对象,使其在运行时可被响应式读取与更新\r\n// 这个对象会被 configProvider 在主题切换时更新\r\nexport const color = reactive<ThemeColor>({ ...lightPalette });\r\n\r\nexport default color;\r\n"],"names":["reactive","lightPalette"],"mappings":";;;AAMO,MAAM,QAAQA,cAAAA,SAAqB,EAAE,GAAGC,0DAAc,CAAA;;"}
@@ -0,0 +1 @@
{"version":3,"file":"config.js","sources":["uni_modules/uview-pro/libs/config/config.ts"],"sourcesContent":["/**\r\n * 组件库配置项类型定义\r\n */\r\nimport { reactive } from 'vue';\r\nimport { version } from '../../package.json';\r\nimport type { DarkMode } from '../../types/global';\r\n\r\nexport interface AppConfig {\r\n /** 版本号 */\r\n v: string;\r\n /** 版本号(冗余字段) */\r\n version: string;\r\n /** 主题名称列表 */\r\n type: string[];\r\n /** 默认主题名称 */\r\n defaultTheme: string;\r\n /** 默认暗黑主题 */\r\n defaultDarkMode: DarkMode;\r\n /** 默认语言 */\r\n defaultLocale: string;\r\n}\r\n\r\nexport const config = reactive<AppConfig>({\r\n v: version,\r\n version: version,\r\n // 主题名称\r\n type: ['primary', 'success', 'info', 'error', 'warning'],\r\n // 默认为官方主题名称\r\n defaultTheme: 'uviewpro',\r\n // 默认为亮色模式\r\n defaultDarkMode: 'light',\r\n // 默认为中文\r\n defaultLocale: 'zh-CN'\r\n});\r\n\r\nexport default config;\r\n"],"names":["reactive"],"mappings":";;;AAsBO,MAAM,SAASA,cAAAA,SAAoB;AAAA,EACtC,GAAG;AAAA,EACH;AAAA;AAAA,EAEA,MAAM,CAAC,WAAW,WAAW,QAAQ,SAAS,SAAS;AAAA;AAAA,EAEvD,cAAc;AAAA;AAAA,EAEd,iBAAiB;AAAA;AAAA,EAEjB,eAAe;AACnB,CAAC;;"}
@@ -0,0 +1 @@
{"version":3,"file":"theme-tokens.js","sources":["uni_modules/uview-pro/libs/config/theme-tokens.ts"],"sourcesContent":["import type { Theme, ThemeColor } from '../../types/global';\r\nimport config from './config';\r\n\r\nexport const lightPalette: ThemeColor = {\r\n primary: '#2979ff',\r\n primaryDark: '#2b85e4',\r\n primaryDisabled: '#a0cfff',\r\n primaryLight: '#ecf5ff',\r\n success: '#19be6b',\r\n successDark: '#18b566',\r\n successDisabled: '#71d5a1',\r\n successLight: '#dbf1e1',\r\n warning: '#ff9900',\r\n warningDark: '#f29100',\r\n warningDisabled: '#fcbd71',\r\n warningLight: '#fdf6ec',\r\n error: '#fa3534',\r\n errorDark: '#dd6161',\r\n errorDisabled: '#fab6b6',\r\n errorLight: '#fef0f0',\r\n info: '#909399',\r\n infoDark: '#82848a',\r\n infoDisabled: '#c8c9cc',\r\n infoLight: '#f4f4f5',\r\n whiteColor: '#ffffff',\r\n blackColor: '#000000',\r\n mainColor: '#303133',\r\n contentColor: '#606266',\r\n tipsColor: '#909399',\r\n lightColor: '#c0c4cc',\r\n borderColor: '#dcdfe6',\r\n dividerColor: '#e4e7ed',\r\n maskColor: 'rgba(0, 0, 0, 0.4)',\r\n shadowColor: 'rgba(0, 0, 0, 0.1)',\r\n bgColor: '#f3f4f6',\r\n bgWhite: '#ffffff',\r\n bgGrayLight: '#f1f1f1',\r\n bgGrayDark: '#2f343c',\r\n bgBlack: '#000000'\r\n};\r\n\r\nexport const darkPalette: ThemeColor = {\r\n primary: '#8ab4ff',\r\n primaryDark: '#5f8dff',\r\n primaryDisabled: '#3d4f74',\r\n primaryLight: '#1d273f',\r\n success: '#4ade80',\r\n successDark: '#1f9d57',\r\n successDisabled: '#2f4d3d',\r\n successLight: '#10291f',\r\n warning: '#fbbf24',\r\n warningDark: '#c88f00',\r\n warningDisabled: '#4a3b17',\r\n warningLight: '#2b1f05',\r\n error: '#ff6b6b',\r\n errorDark: '#d83a3a',\r\n errorDisabled: '#4f2323',\r\n errorLight: '#2d1414',\r\n info: '#a0a7b8',\r\n infoDark: '#7c8394',\r\n infoDisabled: '#3b3f4c',\r\n infoLight: '#1d2029',\r\n whiteColor: '#f5f6f7',\r\n blackColor: '#f5f6f7',\r\n mainColor: '#f5f6f7',\r\n contentColor: '#cfd3dc',\r\n tipsColor: '#9aa1af',\r\n lightColor: '#6b7082',\r\n borderColor: '#3a4251',\r\n dividerColor: '#3a4251',\r\n maskColor: 'rgba(0, 0, 0, 0.6)',\r\n shadowColor: 'rgba(0, 0, 0, 0.3)',\r\n bgColor: '#111827',\r\n bgWhite: '#000000',\r\n bgGrayLight: '#1a1a1a',\r\n bgGrayDark: '#f5f7fa',\r\n bgBlack: '#ffffff'\r\n};\r\n\r\nconst lightCss: Record<string, string> = {\r\n '--u-background': '#ffffff',\r\n '--u-surface': '#f7f8fa',\r\n '--u-text': '#303133'\r\n};\r\n\r\nconst darkCss: Record<string, string> = {\r\n '--u-background': '#0f1115',\r\n '--u-surface': '#1c2233',\r\n '--u-text': '#f5f6f7'\r\n};\r\n\r\nexport const defaultThemes: Theme[] = [\r\n {\r\n name: config.defaultTheme,\r\n label: '默认蓝',\r\n description: 'uView Pro 默认主题,支持亮色与暗黑模式',\r\n color: lightPalette,\r\n darkColor: darkPalette,\r\n css: lightCss,\r\n darkCss: darkCss\r\n }\r\n];\r\n"],"names":["config"],"mappings":";;AAGO,MAAM,eAA2B;AAAA,EACpC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,OAAO;AAAA,EACP,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,cAAc;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,SAAS;AACb;AAEO,MAAM,cAA0B;AAAA,EACnC,SAAS;AAAA,EACT,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,SAAS;AAAA,EACT,aAAa;AAAA,EACb,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,OAAO;AAAA,EACP,WAAW;AAAA,EACX,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,UAAU;AAAA,EACV,cAAc;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,cAAc;AAAA,EACd,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,cAAc;AAAA,EACd,WAAW;AAAA,EACX,aAAa;AAAA,EACb,SAAS;AAAA,EACT,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,SAAS;AACb;AAEA,MAAM,WAAmC;AAAA,EACrC,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,YAAY;AAChB;AAEA,MAAM,UAAkC;AAAA,EACpC,kBAAkB;AAAA,EAClB,eAAe;AAAA,EACf,YAAY;AAChB;AAEO,MAAM,gBAAyB;AAAA,EAClC;AAAA,IACI,MAAMA,wCAAO,OAAA;AAAA,IACb,OAAO;AAAA,IACP,aAAa;AAAA,IACb,OAAO;AAAA,IACP,WAAW;AAAA,IACX,KAAK;AAAA,IACL;AAAA,EACJ;AACJ;;;"}
@@ -0,0 +1 @@
{"version":3,"file":"zIndex.js","sources":["uni_modules/uview-pro/libs/config/zIndex.ts"],"sourcesContent":["/**\r\n * 组件库 z-index 配置项类型定义\r\n */\r\nexport interface ZIndexConfig {\r\n toast: number;\r\n noNetwork: number;\r\n /** popup包含popupactionSheetkeyboardpicker的值 */\r\n popup: number;\r\n mask: number;\r\n navbar: number;\r\n topTips: number;\r\n sticky: number;\r\n indexListSticky: number;\r\n tabbar: number;\r\n}\r\n\r\nconst zIndex: ZIndexConfig = {\r\n toast: 10090,\r\n noNetwork: 10080,\r\n // popup包含popupactionSheetkeyboardpicker的值\r\n popup: 10075,\r\n mask: 10070,\r\n navbar: 980,\r\n topTips: 975,\r\n sticky: 970,\r\n indexListSticky: 965,\r\n tabbar: 998\r\n};\r\n\r\nexport default zIndex;\r\n"],"names":[],"mappings":";AAgBA,MAAM,SAAuB;AAAA,EACzB,OAAO;AAAA,EACP,WAAW;AAAA;AAAA,EAEX,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,QAAQ;AACZ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"_parent.js","sources":["uni_modules/uview-pro/libs/function/$parent.ts"],"sourcesContent":["// 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法\r\n// this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx\r\n// 这里默认值等于undefined有它的含义,因为最顶层元素(组件)的$parent就是undefined,意味着不传name\r\n// 值(默认为undefined),就是查找最顶层的$parent\r\nimport { type ComponentInternalInstance, getCurrentInstance } from 'vue';\r\n\r\nexport default function $parent(\r\n componentName?: string,\r\n _instance: ComponentInternalInstance | null | undefined = null\r\n) {\r\n const instance: ComponentInternalInstance | null | undefined = _instance || getCurrentInstance();\r\n let parent = instance && (instance.parent as ComponentInternalInstance | null | undefined);\r\n\r\n if (!componentName) return parent;\r\n\r\n while (parent) {\r\n const name = (parent.type as any)?.name as string | undefined;\r\n if (name === componentName) {\r\n return parent;\r\n }\r\n parent = parent.parent;\r\n }\r\n return null;\r\n}\r\n"],"names":["getCurrentInstance"],"mappings":";;AAMwB,SAAA,QACpB,eACA,YAA0D,MAC5D;;AACQ,QAAA,WAAyD,aAAaA,cAAAA;AACxE,MAAA,SAAS,YAAa,SAAS;AAEnC,MAAI,CAAC;AAAsB,WAAA;AAE3B,SAAO,QAAQ;AACL,UAAA,QAAQ,YAAO,SAAP,mBAAqB;AACnC,QAAI,SAAS,eAAe;AACjB,aAAA;AAAA,IACX;AACA,aAAS,OAAO;AAAA,EACpB;AACO,SAAA;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"addUnit.js","sources":["uni_modules/uview-pro/libs/function/addUnit.ts"],"sourcesContent":["import validation from './test';\r\n\r\n/**\r\n * 添加单位,支持以下场景:\r\n * 1. 单值:如果有rpx、%、px等单位结尾或者值为auto,直接返回,否则加上rpx单位结尾\r\n * 2. 多值(空格分隔):分别处理每个值,如 \"10 20\" => \"10rpx 20rpx\"\r\n *\r\n * @example\r\n * ```ts\r\n * addUnit(10) => \"10rpx\"\r\n * addUnit('10px') => \"10px\"\r\n * addUnit('auto') => \"auto\"\r\n * addUnit('10 20') => \"10rpx 20rpx\"\r\n * addUnit('10rpx 20') => \"10rpx 20rpx\"\r\n * ```\r\n *\r\n * @param value 输入值,可以为字符串或数字,默认'auto'。支持空格分隔的多值(用于 padding、margin 等)\r\n * @param unit 单位,默认'rpx'\r\n * @returns 添加单位后的字符串\r\n */\r\nexport default function addUnit(value: string | number = 'auto', unit: string = 'rpx'): string {\r\n // 若传入 number 类型,转为 string\r\n const strValue = String(value);\r\n\r\n // 如果是空值,直接返回\r\n if (!strValue) return '';\r\n\r\n // auto 直接返回\r\n if (strValue === 'auto') return strValue;\r\n\r\n // 检查是否包含空格(多值场景)\r\n if (strValue.includes(' ')) {\r\n // 分割每个值并单独处理\r\n return strValue\r\n .split(' ')\r\n .map(s => {\r\n // 如果当前值已有单位或为 auto,直接返回\r\n if (s === 'auto' || /^-?\\d*\\.?\\d+(%|px|rpx|em|rem|vh|vw)$/.test(s)) return s;\r\n // 数字类型的值添加单位\r\n return validation.number(s) ? `${s}${unit}` : s;\r\n })\r\n .join(' ');\r\n }\r\n\r\n // 单值场景:如果已有单位或为 auto,直接返回\r\n if (/^-?\\d*\\.?\\d+(%|px|rpx|em|rem|vh|vw)$/.test(strValue)) return strValue;\r\n\r\n // 用 uView 内置验证规则判断是否为数值,是则加上单位\r\n return validation.number(strValue) ? `${strValue}${unit}` : strValue;\r\n}\r\n"],"names":["validation"],"mappings":";;AAoBA,SAAwB,QAAQ,QAAyB,QAAQ,OAAe,OAAe;AAErF,QAAA,WAAW,OAAO,KAAK;AAG7B,MAAI,CAAC;AAAiB,WAAA;AAGtB,MAAI,aAAa;AAAe,WAAA;AAG5B,MAAA,SAAS,SAAS,GAAG,GAAG;AAExB,WAAO,SACF,MAAM,GAAG,EACT,IAAI,CAAK,MAAA;AAEN,UAAI,MAAM,UAAU,uCAAuC,KAAK,CAAC;AAAU,eAAA;AAEpE,aAAAA,wCAAA,KAAW,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,KAAK;AAAA,IAAA,CACjD,EACA,KAAK,GAAG;AAAA,EACjB;AAGI,MAAA,uCAAuC,KAAK,QAAQ;AAAU,WAAA;AAG3D,SAAAA,wCAAA,KAAW,OAAO,QAAQ,IAAI,GAAG,QAAQ,GAAG,IAAI,KAAK;AAChE;;"}
@@ -0,0 +1 @@
{"version":3,"file":"clipboard.js","sources":["uni_modules/uview-pro/libs/function/clipboard.ts"],"sourcesContent":["function H5Copy(text: string, config: TClipboardOptions) {\r\n const success = (result: string) => {\r\n if (config.showToast) {\r\n uni.showToast({\r\n title: '复制成功',\r\n icon: 'none'\r\n });\r\n }\r\n config.success?.(result);\r\n config.complete?.(result);\r\n };\r\n const fail = (err: string) => {\r\n if (config.showToast) {\r\n uni.showToast({\r\n title: '复制失败',\r\n icon: 'none'\r\n });\r\n }\r\n config.fail?.(err);\r\n config.complete?.(err);\r\n };\r\n\r\n const textarea = document.createElement('textarea');\r\n textarea.value = text;\r\n textarea.readOnly = true;\r\n textarea.style.position = 'absolute';\r\n textarea.style.left = '-9999px';\r\n document.body.appendChild(textarea);\r\n\r\n textarea.select();\r\n textarea.setSelectionRange(0, text.length);\r\n\r\n try {\r\n const result = document.execCommand('copy');\r\n if (result) {\r\n success('复制成功');\r\n } else {\r\n // console.error(`复制失败,可能不是用户主动触发点击的方式调用,因web安全性,不能js直接调用!`);\r\n fail('复制失败,可能不是用户主动触发点击的方式调用,因browser安全性,不能js直接调用!');\r\n }\r\n } catch (err) {\r\n // console.error('【Clipboard Error】:', err);\r\n fail(String(err));\r\n } finally {\r\n document.body.removeChild(textarea);\r\n }\r\n}\r\n\r\nfunction UniCopy(text: string, config: TClipboardOptions) {\r\n const opt = Object.assign({ data: text }, config);\r\n uni.setClipboardData(opt);\r\n}\r\n\r\ntype TClipboardOptions = Omit<UniNamespace.SetClipboardDataOptions, 'data'>;\r\n\r\nexport function clipboard(content: string, options?: TClipboardOptions) {\r\n const text = String(content);\r\n const defaultOpt = {\r\n showToast: true,\r\n success: () => {},\r\n fail: () => {},\r\n complete: () => {}\r\n };\r\n const config = Object.assign(defaultOpt, options);\r\n\r\n // #ifdef H5\r\n H5Copy(text, config);\r\n // #endif\r\n\r\n // #ifndef H5\r\n UniCopy(text, config);\r\n // #endif\r\n}\r\n"],"names":["uni"],"mappings":";;AAgDA,SAAS,QAAQ,MAAc,QAA2B;AACtD,QAAM,MAAM,OAAO,OAAO,EAAE,MAAM,KAAA,GAAQ,MAAM;AAChDA,sBAAI,iBAAiB,GAAG;AAC5B;AAIgB,SAAA,UAAU,SAAiB,SAA6B;AAC9D,QAAA,OAAO,OAAO,OAAO;AAC3B,QAAM,aAAa;AAAA,IACf,WAAW;AAAA,IACX,SAAS,MAAM;AAAA,IAAC;AAAA,IAChB,MAAM,MAAM;AAAA,IAAC;AAAA,IACb,UAAU,MAAM;AAAA,IAAC;AAAA,EAAA;AAErB,QAAM,SAAS,OAAO,OAAO,YAAY,OAAO;AAOhD,UAAQ,MAAM,MAAM;AAExB;;"}
@@ -0,0 +1 @@
{"version":3,"file":"color.js","sources":["uni_modules/uview-pro/libs/function/color.ts"],"sourcesContent":["import type { ColorType, ThemeColor } from '../../types/global';\r\nimport { color } from '../config/color';\r\nimport { lightPalette } from '../config/theme-tokens';\r\nimport configProvider from '../util/config-provider';\r\n\r\n/**\r\n * 获取颜色值(响应式)\r\n * 优先从 configProvider 获取当前主题颜色,否则返回默认值\r\n * @param name 颜色名称\r\n * @returns 颜色值\r\n */\r\nexport function getColor(name: ColorType): string {\r\n // 从响应式 color 对象获取(会被 configProvider 更新)\r\n if (color[name]) {\r\n return color[name] as string;\r\n }\r\n\r\n // 兜底返回默认值\r\n return lightPalette[name] || '';\r\n}\r\n\r\nexport function setColor(theme: Partial<ThemeColor> | undefined) {\r\n if (theme) {\r\n configProvider.setThemeColor(theme);\r\n }\r\n}\r\n\r\nexport default color;\r\n"],"names":["color","lightPalette","configProvider"],"mappings":";;;;AAWO,SAAS,SAAS,MAAyB;AAE1C,MAAAA,uCAAAA,MAAM,IAAI,GAAG;AACb,WAAOA,uCAAAA,MAAM,IAAI;AAAA,EACrB;AAGO,SAAAC,6CAAA,aAAa,IAAI,KAAK;AACjC;AAEO,SAAS,SAAS,OAAwC;AAC7D,MAAI,OAAO;AACPC,iEAAe,cAAc,KAAK;AAAA,EACtC;AACJ;;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"debounce.js","sources":["uni_modules/uview-pro/libs/function/debounce.ts"],"sourcesContent":["let timeout: ReturnType<typeof setTimeout> | null = null;\r\n\r\n/**\r\n * 防抖原理:一定时间内,只有最后一次操作,再过wait毫秒后才执行函数\r\n * @param func 要执行的回调函数\r\n * @param wait 延时的时间,单位ms,默认500\r\n * @param immediate 是否立即执行,默认false\r\n * @returns void\r\n */\r\nfunction debounce(func: () => void, wait: number = 500, immediate: boolean = false): void {\r\n // 清除定时器\r\n if (timeout !== null) clearTimeout(timeout);\r\n // 立即执行,此类情况一般用不到\r\n if (immediate) {\r\n const callNow = !timeout;\r\n timeout = setTimeout(() => {\r\n timeout = null;\r\n }, wait);\r\n if (callNow) typeof func === 'function' && func();\r\n } else {\r\n // 设置定时器,当最后一次操作后,timeout不会再被清除,所以在延时wait毫秒后执行func回调方法\r\n timeout = setTimeout(() => {\r\n typeof func === 'function' && func();\r\n }, wait);\r\n }\r\n}\r\n\r\nexport default debounce;\r\n"],"names":[],"mappings":";AAAA,IAAI,UAAgD;AASpD,SAAS,SAAS,MAAkB,OAAe,KAAK,YAAqB,OAAa;AAEtF,MAAI,YAAY;AAAM,iBAAa,OAAO;AAE1C,MAAI,WAAW;AACX,UAAM,UAAU,CAAC;AACjB,cAAU,WAAW,MAAM;AACb,gBAAA;AAAA,OACX,IAAI;AACH,QAAA;AAAgB,aAAA,SAAS,cAAc;EAAK,OAC7C;AAEH,cAAU,WAAW,MAAM;AAChB,aAAA,SAAS,cAAc;OAC/B,IAAI;AAAA,EACX;AACJ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"deepClone.js","sources":["uni_modules/uview-pro/libs/function/deepClone.ts"],"sourcesContent":["// 判断arr是否为一个数组,返回一个bool值\r\nfunction isArray(arr: any): arr is any[] {\r\n return Object.prototype.toString.call(arr) === '[object Array]';\r\n}\r\n\r\n/**\r\n * 深度克隆\r\n * @param obj 需要克隆的对象\r\n * @param cache 用于处理循环引用的 WeakMap\r\n * @returns 克隆后的对象\r\n */\r\nfunction deepClone<T>(obj: T, cache: WeakMap<any, any> = new WeakMap()): T {\r\n if (obj === null || typeof obj !== 'object') return obj;\r\n if (cache.has(obj)) return cache.get(obj);\r\n let clone: any;\r\n if (obj instanceof Date) {\r\n clone = new Date(obj.getTime());\r\n } else if (obj instanceof RegExp) {\r\n clone = new RegExp(obj);\r\n } else if (obj instanceof Map) {\r\n clone = new Map(Array.from(obj, ([key, value]) => [key, deepClone(value, cache)]));\r\n } else if (obj instanceof Set) {\r\n clone = new Set(Array.from(obj, value => deepClone(value, cache)));\r\n } else if (Array.isArray(obj)) {\r\n clone = obj.map(value => deepClone(value, cache));\r\n } else if (Object.prototype.toString.call(obj) === '[object Object]') {\r\n clone = Object.create(Object.getPrototypeOf(obj));\r\n cache.set(obj, clone);\r\n for (const [key, value] of Object.entries(obj)) {\r\n clone[key] = deepClone(value, cache);\r\n }\r\n } else {\r\n clone = Object.assign({}, obj);\r\n }\r\n cache.set(obj, clone);\r\n return clone;\r\n}\r\n\r\nexport default deepClone;\r\n"],"names":[],"mappings":";AAWA,SAAS,UAAa,KAAQ,QAA2B,oBAAI,WAAc;AACnE,MAAA,QAAQ,QAAQ,OAAO,QAAQ;AAAiB,WAAA;AAChD,MAAA,MAAM,IAAI,GAAG;AAAU,WAAA,MAAM,IAAI,GAAG;AACpC,MAAA;AACJ,MAAI,eAAe,MAAM;AACrB,YAAQ,IAAI,KAAK,IAAI,QAAS,CAAA;AAAA,EAAA,WACvB,eAAe,QAAQ;AACtB,YAAA,IAAI,OAAO,GAAG;AAAA,EAAA,WACf,eAAe,KAAK;AAC3B,YAAQ,IAAI,IAAI,MAAM,KAAK,KAAK,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,KAAK,CAAC,CAAC,CAAC;AAAA,EAAA,WAC1E,eAAe,KAAK;AACnB,YAAA,IAAI,IAAI,MAAM,KAAK,KAAK,WAAS,UAAU,OAAO,KAAK,CAAC,CAAC;AAAA,EAC1D,WAAA,MAAM,QAAQ,GAAG,GAAG;AAC3B,YAAQ,IAAI,IAAI,CAAA,UAAS,UAAU,OAAO,KAAK,CAAC;AAAA,EAAA,WACzC,OAAO,UAAU,SAAS,KAAK,GAAG,MAAM,mBAAmB;AAClE,YAAQ,OAAO,OAAO,OAAO,eAAe,GAAG,CAAC;AAC1C,UAAA,IAAI,KAAK,KAAK;AACpB,eAAW,CAAC,KAAK,KAAK,KAAK,OAAO,QAAQ,GAAG,GAAG;AAC5C,YAAM,GAAG,IAAI,UAAU,OAAO,KAAK;AAAA,IACvC;AAAA,EAAA,OACG;AACH,YAAQ,OAAO,OAAO,CAAC,GAAG,GAAG;AAAA,EACjC;AACM,QAAA,IAAI,KAAK,KAAK;AACb,SAAA;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"deepMerge.js","sources":["uni_modules/uview-pro/libs/function/deepMerge.ts"],"sourcesContent":["import deepClone from './deepClone';\r\n\r\n/**\r\n * JS对象深度合并\r\n * @param target 目标对象\r\n * @param source 源对象\r\n * @returns 合并后的对象\r\n */\r\nfunction deepMerge<T extends object, S extends object>(target: T = {} as T, source: S = {} as S): T & S {\r\n target = deepClone(target);\r\n if (typeof target !== 'object' || target === null || typeof source !== 'object' || source === null)\r\n return target as T & S;\r\n const merged: any = Array.isArray(target) ? target.slice() : Object.assign({}, target);\r\n for (const prop in source) {\r\n if (!Object.prototype.hasOwnProperty.call(source, prop)) continue;\r\n const sourceValue = (source as any)[prop];\r\n const targetValue = merged[prop];\r\n if (sourceValue instanceof Date) {\r\n merged[prop] = new Date(sourceValue);\r\n } else if (sourceValue instanceof RegExp) {\r\n merged[prop] = new RegExp(sourceValue);\r\n } else if (sourceValue instanceof Map) {\r\n merged[prop] = new Map(sourceValue);\r\n } else if (sourceValue instanceof Set) {\r\n merged[prop] = new Set(sourceValue);\r\n } else if (typeof sourceValue === 'object' && sourceValue !== null) {\r\n merged[prop] = deepMerge(targetValue, sourceValue);\r\n } else {\r\n merged[prop] = sourceValue;\r\n }\r\n }\r\n return merged as T & S;\r\n}\r\n\r\nexport default deepMerge;\r\n"],"names":["deepClone"],"mappings":";;AAQA,SAAS,UAA8C,SAAY,IAAS,SAAY,CAAA,GAAgB;AACpG,WAASA,6CAAAA,UAAU,MAAM;AACrB,MAAA,OAAO,WAAW,YAAY,WAAW,QAAQ,OAAO,WAAW,YAAY,WAAW;AACnF,WAAA;AACX,QAAM,SAAc,MAAM,QAAQ,MAAM,IAAI,OAAO,MAAM,IAAI,OAAO,OAAO,CAAC,GAAG,MAAM;AACrF,aAAW,QAAQ,QAAQ;AACvB,QAAI,CAAC,OAAO,UAAU,eAAe,KAAK,QAAQ,IAAI;AAAG;AACnD,UAAA,cAAe,OAAe,IAAI;AAClC,UAAA,cAAc,OAAO,IAAI;AAC/B,QAAI,uBAAuB,MAAM;AAC7B,aAAO,IAAI,IAAI,IAAI,KAAK,WAAW;AAAA,IAAA,WAC5B,uBAAuB,QAAQ;AACtC,aAAO,IAAI,IAAI,IAAI,OAAO,WAAW;AAAA,IAAA,WAC9B,uBAAuB,KAAK;AACnC,aAAO,IAAI,IAAI,IAAI,IAAI,WAAW;AAAA,IAAA,WAC3B,uBAAuB,KAAK;AACnC,aAAO,IAAI,IAAI,IAAI,IAAI,WAAW;AAAA,IAC3B,WAAA,OAAO,gBAAgB,YAAY,gBAAgB,MAAM;AAChE,aAAO,IAAI,IAAI,UAAU,aAAa,WAAW;AAAA,IAAA,OAC9C;AACH,aAAO,IAAI,IAAI;AAAA,IACnB;AAAA,EACJ;AACO,SAAA;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"getParent.js","sources":["uni_modules/uview-pro/libs/function/getParent.ts"],"sourcesContent":["// 获取父组件的参数,因为支付宝小程序不支持provide/inject的写法\r\n// this.$parent在非H5中,可以准确获取到父组件,但是在H5中,需要多次this.$parent.$parent.xxx\r\ninterface VueInstance {\r\n $parent?: VueInstance;\r\n $options?: { name?: string };\r\n [key: string]: any;\r\n}\r\n\r\n/**\r\n * 获取父组件参数\r\n * @param this 当前组件实例\r\n * @param name 父组件name\r\n * @param keys 需要获取的参数名数组或对象\r\n * @returns 父组件参数对象\r\n */\r\nexport default function getParent(\r\n this: VueInstance,\r\n name: string,\r\n keys: string[] | Record<string, any>\r\n): Record<string, any> {\r\n let parent = this.$parent;\r\n // 通过while历遍,这里主要是为了H5需要多层解析的问题\r\n while (parent) {\r\n // 父组件\r\n if (parent.$options?.name !== name) {\r\n // 如果组件的name不相等,继续上一级寻找\r\n parent = parent.$parent;\r\n } else {\r\n const data: Record<string, any> = {};\r\n // 判断keys是否数组,如果传过来的是一个数组,那么直接使用数组元素值当做键值去父组件寻找\r\n if (Array.isArray(keys)) {\r\n keys.forEach(val => {\r\n data[val] = parent?.[val] ? parent[val] : '';\r\n });\r\n } else {\r\n // 历遍传过来的对象参数\r\n for (const i in keys) {\r\n // 如果子组件有此值则用,无此值则用父组件的值\r\n // 判断是否空数组,如果是,则用父组件的值,否则用子组件的值\r\n if (Array.isArray(keys[i])) {\r\n if (keys[i].length) {\r\n data[i] = keys[i];\r\n } else {\r\n data[i] = parent[i];\r\n }\r\n } else if (keys[i] && keys[i].constructor === Object) {\r\n // 判断是否对象,如果是对象,且有属性,那么使用子组件的值,否则使用父组件的值\r\n if (Object.keys(keys[i]).length) {\r\n data[i] = keys[i];\r\n } else {\r\n data[i] = parent[i];\r\n }\r\n } else {\r\n // 只要子组件有传值,即使是false值,也是“传值”了,也需要覆盖父组件的同名参数\r\n data[i] = keys[i] || keys[i] === false ? keys[i] : parent[i];\r\n }\r\n }\r\n }\r\n return data;\r\n }\r\n }\r\n return {};\r\n}\r\n"],"names":[],"mappings":";AAewB,SAAA,UAEpB,MACA,MACmB;;AACnB,MAAI,SAAS,KAAK;AAElB,SAAO,QAAQ;AAEP,UAAA,YAAO,aAAP,mBAAiB,UAAS,MAAM;AAEhC,eAAS,OAAO;AAAA,IAAA,OACb;AACH,YAAM,OAA4B,CAAA;AAE9B,UAAA,MAAM,QAAQ,IAAI,GAAG;AACrB,aAAK,QAAQ,CAAO,QAAA;AAChB,eAAK,GAAG,KAAI,iCAAS,QAAO,OAAO,GAAG,IAAI;AAAA,QAAA,CAC7C;AAAA,MAAA,OACE;AAEH,mBAAW,KAAK,MAAM;AAGlB,cAAI,MAAM,QAAQ,KAAK,CAAC,CAAC,GAAG;AACpB,gBAAA,KAAK,CAAC,EAAE,QAAQ;AACX,mBAAA,CAAC,IAAI,KAAK,CAAC;AAAA,YAAA,OACb;AACE,mBAAA,CAAC,IAAI,OAAO,CAAC;AAAA,YACtB;AAAA,UAAA,WACO,KAAK,CAAC,KAAK,KAAK,CAAC,EAAE,gBAAgB,QAAQ;AAElD,gBAAI,OAAO,KAAK,KAAK,CAAC,CAAC,EAAE,QAAQ;AACxB,mBAAA,CAAC,IAAI,KAAK,CAAC;AAAA,YAAA,OACb;AACE,mBAAA,CAAC,IAAI,OAAO,CAAC;AAAA,YACtB;AAAA,UAAA,OACG;AAEH,iBAAK,CAAC,IAAI,KAAK,CAAC,KAAK,KAAK,CAAC,MAAM,QAAQ,KAAK,CAAC,IAAI,OAAO,CAAC;AAAA,UAC/D;AAAA,QACJ;AAAA,MACJ;AACO,aAAA;AAAA,IACX;AAAA,EACJ;AACA,SAAO;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"getRect.js","sources":["uni_modules/uview-pro/libs/function/getRect.ts"],"sourcesContent":["/**\r\n * 获取元素的位置信息\r\n * @param {any} selector 选择器\r\n * @param {boolean} all 是否获取所有匹配元素\r\n * @returns {Promise<any>} 返回一个 Promise,解析为元素的位置信息\r\n */\r\n\r\nimport { getCurrentInstance } from 'vue';\r\n\r\nexport default function (selector: any, _instance: any = null, all: boolean = false): Promise<any> {\r\n const instance = _instance || getCurrentInstance();\r\n return new Promise(resolve => {\r\n uni.createSelectorQuery()\r\n .in(instance?.proxy)\r\n [all ? 'selectAll' : 'select'](selector)\r\n .boundingClientRect((rect: any) => {\r\n if (all && Array.isArray(rect) && rect.length) {\r\n resolve(rect);\r\n }\r\n if (!all && rect) {\r\n resolve(rect);\r\n }\r\n })\r\n .exec();\r\n });\r\n}\r\n"],"names":["getCurrentInstance","uni"],"mappings":";;AASA,SAAA,QAAyB,UAAe,YAAiB,MAAM,MAAe,OAAqB;AACzF,QAAA,WAAW,aAAaA,cAAAA;AACvB,SAAA,IAAI,QAAQ,CAAW,YAAA;AAC1BC,kBAAAA,MAAI,oBAAoB,EACnB,GAAG,qCAAU,KAAK,EAClB,MAAM,cAAc,QAAQ,EAAE,QAAQ,EACtC,mBAAmB,CAAC,SAAc;AAC/B,UAAI,OAAO,MAAM,QAAQ,IAAI,KAAK,KAAK,QAAQ;AAC3C,gBAAQ,IAAI;AAAA,MAChB;AACI,UAAA,CAAC,OAAO,MAAM;AACd,gBAAQ,IAAI;AAAA,MAChB;AAAA,IAAA,CACH,EACA,KAAK;AAAA,EAAA,CACb;AACL;;"}
@@ -0,0 +1 @@
{"version":3,"file":"guid.js","sources":["uni_modules/uview-pro/libs/function/guid.ts"],"sourcesContent":["/**\r\n * 本算法来源于简书开源代码,详见:https://www.jianshu.com/p/fdbf293d0a85\r\n * 全局唯一标识符(uuidGlobally Unique Identifier,也称作 uuid(Universally Unique IDentifier)\r\n * 一般用于多个组件之间,给它一个唯一的标识符,或者v-for循环的时候,如果使用数组的index可能会导致更新列表出现问题\r\n * 最可能的情况是左滑删除item或者对某条信息流\"不喜欢\"并去掉它的时候,会导致组件内的数据可能出现错乱\r\n * v-for的时候,推荐使用后端返回的id而不是循环的index\r\n * @param len uuid的长度,默认32\r\n * @param firstU 将返回的首字母置为\"u\",默认true\r\n * @param radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制\r\n * @returns 生成的uuid字符串\r\n */\r\nfunction guid(len: number = 32, firstU: boolean = true, radix?: number): string {\r\n const chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');\r\n const uuid: string[] = [];\r\n const base = radix || chars.length;\r\n\r\n if (len) {\r\n // 如果指定uuid长度,只是取随机的字符,0|x为位运算,能去掉x的小数位,返回整数位\r\n for (let i = 0; i < len; i++) uuid[i] = chars[0 | (Math.random() * base)];\r\n } else {\r\n let r: number;\r\n // rfc4122标准要求返回的uuid中,某些位为固定的字符\r\n uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';\r\n uuid[14] = '4';\r\n\r\n for (let i = 0; i < 36; i++) {\r\n if (!uuid[i]) {\r\n r = 0 | (Math.random() * 16);\r\n uuid[i] = chars[i == 19 ? (r & 0x3) | 0x8 : r];\r\n }\r\n }\r\n }\r\n // 移除第一个字符,并用u替代,因为第一个字符为数值时,该guid不能用作id或者class\r\n if (firstU) {\r\n uuid.shift();\r\n return 'u' + uuid.join('');\r\n } else {\r\n return uuid.join('');\r\n }\r\n}\r\n\r\nexport default guid;\r\n"],"names":[],"mappings":";AAWA,SAAS,KAAK,MAAc,IAAI,SAAkB,MAAM,OAAwB;AACtE,QAAA,QAAQ,iEAAiE,MAAM,EAAE;AACvF,QAAM,OAAiB,CAAA;AACjB,QAAA,OAAO,SAAS,MAAM;AAE5B,MAAI,KAAK;AAEI,aAAA,IAAI,GAAG,IAAI,KAAK;AAAK,WAAK,CAAC,IAAI,MAAM,IAAK,KAAK,OAAA,IAAW,IAAK;AAAA,EAAA,OACrE;AACC,QAAA;AAEC,SAAA,CAAC,IAAI,KAAK,EAAE,IAAI,KAAK,EAAE,IAAI,KAAK,EAAE,IAAI;AAC3C,SAAK,EAAE,IAAI;AAEX,aAAS,IAAI,GAAG,IAAI,IAAI,KAAK;AACrB,UAAA,CAAC,KAAK,CAAC,GAAG;AACN,YAAA,IAAK,KAAK,OAAA,IAAW;AACpB,aAAA,CAAC,IAAI,MAAM,KAAK,KAAM,IAAI,IAAO,IAAM,CAAC;AAAA,MACjD;AAAA,IACJ;AAAA,EACJ;AAEA,MAAI,QAAQ;AACR,SAAK,MAAM;AACJ,WAAA,MAAM,KAAK,KAAK,EAAE;AAAA,EAAA,OACtB;AACI,WAAA,KAAK,KAAK,EAAE;AAAA,EACvB;AACJ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"queryParams.js","sources":["uni_modules/uview-pro/libs/function/queryParams.ts"],"sourcesContent":["/**\r\n * 对象转url参数\r\n * @param data 对象参数\r\n * @param isPrefix 是否自动加上\"?\",默认true\r\n * @param arrayFormat 数组参数格式,indices/brackets/repeat/comma,默认brackets\r\n * @returns url参数字符串\r\n */\r\nfunction queryParams(\r\n data: Record<string, any> = {},\r\n isPrefix: boolean = true,\r\n arrayFormat: 'indices' | 'brackets' | 'repeat' | 'comma' = 'brackets'\r\n): string {\r\n const prefix = isPrefix ? '?' : '';\r\n const _result: string[] = [];\r\n if (!['indices', 'brackets', 'repeat', 'comma'].includes(arrayFormat)) arrayFormat = 'brackets';\r\n for (const key in data) {\r\n const value = data[key];\r\n // 去掉为空的参数\r\n if (['', undefined, null].includes(value)) {\r\n continue;\r\n }\r\n // 如果值为数组,另行处理\r\n if (Array.isArray(value)) {\r\n // e.g. {ids: [1, 2, 3]}\r\n switch (arrayFormat) {\r\n case 'indices':\r\n // 结果: ids[0]=1&ids[1]=2&ids[2]=3\r\n for (let i = 0; i < value.length; i++) {\r\n _result.push(`${key}[${i}]=${value[i]}`);\r\n }\r\n break;\r\n case 'brackets':\r\n // 结果: ids[]=1&ids[]=2&ids[]=3\r\n value.forEach((_value: any) => {\r\n _result.push(`${key}[]=${_value}`);\r\n });\r\n break;\r\n case 'repeat':\r\n // 结果: ids=1&ids=2&ids=3\r\n value.forEach((_value: any) => {\r\n _result.push(`${key}=${_value}`);\r\n });\r\n break;\r\n case 'comma':\r\n // 结果: ids=1,2,3\r\n let commaStr = '';\r\n value.forEach((_value: any) => {\r\n commaStr += (commaStr ? ',' : '') + _value;\r\n });\r\n _result.push(`${key}=${commaStr}`);\r\n break;\r\n default:\r\n value.forEach((_value: any) => {\r\n _result.push(`${key}[]=${_value}`);\r\n });\r\n }\r\n } else {\r\n _result.push(`${key}=${value}`);\r\n }\r\n }\r\n return _result.length ? prefix + _result.join('&') : '';\r\n}\r\n\r\nexport default queryParams;\r\n"],"names":[],"mappings":";AAOA,SAAS,YACL,OAA4B,IAC5B,WAAoB,MACpB,cAA2D,YACrD;AACA,QAAA,SAAS,WAAW,MAAM;AAChC,QAAM,UAAoB,CAAA;AACtB,MAAA,CAAC,CAAC,WAAW,YAAY,UAAU,OAAO,EAAE,SAAS,WAAW;AAAiB,kBAAA;AACrF,aAAW,OAAO,MAAM;AACd,UAAA,QAAQ,KAAK,GAAG;AAEtB,QAAI,CAAC,IAAI,QAAW,IAAI,EAAE,SAAS,KAAK,GAAG;AACvC;AAAA,IACJ;AAEI,QAAA,MAAM,QAAQ,KAAK,GAAG;AAEtB,cAAQ,aAAa;AAAA,QACjB,KAAK;AAED,mBAAS,IAAI,GAAG,IAAI,MAAM,QAAQ,KAAK;AAC3B,oBAAA,KAAK,GAAG,GAAG,IAAI,CAAC,KAAK,MAAM,CAAC,CAAC,EAAE;AAAA,UAC3C;AACA;AAAA,QACJ,KAAK;AAEK,gBAAA,QAAQ,CAAC,WAAgB;AAC3B,oBAAQ,KAAK,GAAG,GAAG,MAAM,MAAM,EAAE;AAAA,UAAA,CACpC;AACD;AAAA,QACJ,KAAK;AAEK,gBAAA,QAAQ,CAAC,WAAgB;AAC3B,oBAAQ,KAAK,GAAG,GAAG,IAAI,MAAM,EAAE;AAAA,UAAA,CAClC;AACD;AAAA,QACJ,KAAK;AAED,cAAI,WAAW;AACT,gBAAA,QAAQ,CAAC,WAAgB;AACd,yBAAA,WAAW,MAAM,MAAM;AAAA,UAAA,CACvC;AACD,kBAAQ,KAAK,GAAG,GAAG,IAAI,QAAQ,EAAE;AACjC;AAAA,QACJ;AACU,gBAAA,QAAQ,CAAC,WAAgB;AAC3B,oBAAQ,KAAK,GAAG,GAAG,MAAM,MAAM,EAAE;AAAA,UAAA,CACpC;AAAA,MACT;AAAA,IAAA,OACG;AACH,cAAQ,KAAK,GAAG,GAAG,IAAI,KAAK,EAAE;AAAA,IAClC;AAAA,EACJ;AACA,SAAO,QAAQ,SAAS,SAAS,QAAQ,KAAK,GAAG,IAAI;AACzD;;"}
@@ -0,0 +1 @@
{"version":3,"file":"random.js","sources":["uni_modules/uview-pro/libs/function/random.ts"],"sourcesContent":["/**\r\n * 生成指定范围的随机整数\r\n * @param min 最小值(包含)\r\n * @param max 最大值(包含)\r\n * @returns 随机整数\r\n */\r\nfunction random(min: number, max: number): number {\r\n if (min >= 0 && max > 0 && max >= min) {\r\n const gab = max - min + 1;\r\n return Math.floor(Math.random() * gab + min);\r\n } else {\r\n return 0;\r\n }\r\n}\r\n\r\nexport default random;\r\n"],"names":[],"mappings":";AAMA,SAAS,OAAO,KAAa,KAAqB;AAC9C,MAAI,OAAO,KAAK,MAAM,KAAK,OAAO,KAAK;AAC7B,UAAA,MAAM,MAAM,MAAM;AACxB,WAAO,KAAK,MAAM,KAAK,OAAO,IAAI,MAAM,GAAG;AAAA,EAAA,OACxC;AACI,WAAA;AAAA,EACX;AACJ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"randomArray.js","sources":["uni_modules/uview-pro/libs/function/randomArray.ts"],"sourcesContent":["/**\r\n * 打乱数组顺序\r\n * @param array 需要打乱的数组\r\n * @returns 打乱后的新数组\r\n */\r\nfunction randomArray<T>(array: T[] = []): T[] {\r\n // 原理是sort排序,Math.random()产生0<= x < 1之间的数,会导致x-0.5大于或者小于0\r\n return array.sort(() => Math.random() - 0.5);\r\n}\r\n\r\nexport default randomArray;\r\n"],"names":[],"mappings":";AAKA,SAAS,YAAe,QAAa,IAAS;AAE1C,SAAO,MAAM,KAAK,MAAM,KAAK,OAAA,IAAW,GAAG;AAC/C;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"sys.js","sources":["uni_modules/uview-pro/libs/function/sys.ts"],"sourcesContent":["/**\r\n * 获取当前操作系统平台\r\n * @returns 平台字符串,如 'ios'、'android'、'windows' 等\r\n */\r\nexport function os(): string {\r\n return uni.getSystemInfoSync().platform;\r\n}\r\n\r\n/**\r\n * 获取系统信息\r\n * @returns uniapp 系统信息对象\r\n */\r\nexport function sys(): UniApp.GetSystemInfoResult {\r\n return uni.getSystemInfoSync();\r\n}\r\n"],"names":["uni"],"mappings":";;AAIO,SAAS,KAAa;AAClB,SAAAA,cAAA,MAAI,kBAAoB,EAAA;AACnC;AAMO,SAAS,MAAkC;AAC9C,SAAOA,cAAAA,MAAI;AACf;;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"throttle.js","sources":["uni_modules/uview-pro/libs/function/throttle.ts"],"sourcesContent":["let timer: ReturnType<typeof setTimeout> | undefined;\r\nlet flag: boolean | undefined;\r\n/**\r\n * 节流原理:在一定时间内,只能触发一次\r\n * @param func 要执行的回调函数\r\n * @param wait 延时的时间,单位ms,默认500\r\n * @param immediate 是否立即执行,默认true\r\n * @returns void\r\n */\r\nfunction throttle(func: () => void, wait: number = 500, immediate: boolean = true): void {\r\n if (immediate) {\r\n if (!flag) {\r\n flag = true;\r\n // 如果是立即执行,则在wait毫秒内开始时执行\r\n typeof func === 'function' && func();\r\n timer = setTimeout(() => {\r\n flag = false;\r\n }, wait);\r\n }\r\n } else {\r\n if (!flag) {\r\n flag = true;\r\n // 如果是非立即执行,则在wait毫秒内的结束处执行\r\n timer = setTimeout(() => {\r\n flag = false;\r\n typeof func === 'function' && func();\r\n }, wait);\r\n }\r\n }\r\n}\r\nexport default throttle;\r\n"],"names":[],"mappings":";AACA,IAAI;AAQJ,SAAS,SAAS,MAAkB,OAAe,KAAK,YAAqB,MAAY;AACrF,MAAI,WAAW;AACX,QAAI,CAAC,MAAM;AACA,aAAA;AAEA,aAAA,SAAS,cAAc;AACtB,iBAAW,MAAM;AACd,eAAA;AAAA,SACR,IAAI;AAAA,IACX;AAAA,EAAA,OACG;AACH,QAAI,CAAC,MAAM;AACA,aAAA;AAEC,iBAAW,MAAM;AACd,eAAA;AACA,eAAA,SAAS,cAAc;SAC/B,IAAI;AAAA,IACX;AAAA,EACJ;AACJ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"timeFormat.js","sources":["uni_modules/uview-pro/libs/function/timeFormat.ts"],"sourcesContent":["// padStart 的 polyfill,因为某些机型或情况,还无法支持es7的padStart,比如电脑版的微信小程序\r\n// 所以这里做一个兼容polyfill的兼容处理\r\nif (!String.prototype.padStart) {\r\n // 为了方便表示这里 fillString 用了ES6 的默认参数,不影响理解\r\n String.prototype.padStart = function (this: string, maxLength: number, fillString: string = ' '): string {\r\n if (Object.prototype.toString.call(fillString) !== '[object String]')\r\n throw new TypeError('fillString must be String');\r\n let str = this;\r\n if (str.length >= maxLength) return String(str);\r\n let fillLength = maxLength - str.length,\r\n times = Math.ceil(fillLength / fillString.length);\r\n while ((times >>= 1)) {\r\n fillString += fillString;\r\n if (times === 1) {\r\n fillString += fillString;\r\n }\r\n }\r\n return fillString.slice(0, fillLength) + str;\r\n };\r\n}\r\n\r\n/**\r\n * 时间格式化\r\n * @param dateTime 时间戳、Date对象或null,默认当前时间\r\n * @param fmt 格式化字符串,默认 'yyyy-mm-dd'\r\n * @returns 格式化后的时间字符串\r\n */\r\nfunction timeFormat(dateTime: number | string | Date | null = null, fmt: string = 'yyyy-mm-dd'): string {\r\n // 如果为null,则格式化当前时间\r\n if (!dateTime) dateTime = Number(new Date());\r\n // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式\r\n if (typeof dateTime === 'number' || typeof dateTime === 'string') {\r\n if (dateTime.toString().length == 10) dateTime = Number(dateTime) * 1000;\r\n }\r\n const date = new Date(dateTime);\r\n let ret: RegExpExecArray | null;\r\n const opt: Record<string, string> = {\r\n 'y+': date.getFullYear().toString(), // 年\r\n 'm+': (date.getMonth() + 1).toString(), // 月\r\n 'd+': date.getDate().toString(), // 日\r\n 'h+': date.getHours().toString(), // 时\r\n 'M+': date.getMinutes().toString(), // 分\r\n 's+': date.getSeconds().toString() // 秒\r\n // 有其他格式化字符需求可以继续添加,必须转化成字符串\r\n };\r\n for (const k in opt) {\r\n ret = new RegExp('(' + k + ')').exec(fmt);\r\n if (ret) {\r\n fmt = fmt.replace(ret[1], ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0'));\r\n }\r\n }\r\n return fmt;\r\n}\r\n\r\nexport default timeFormat;\r\n"],"names":[],"mappings":";AAEA,IAAI,CAAC,OAAO,UAAU,UAAU;AAE5B,SAAO,UAAU,WAAW,SAAwB,WAAmB,aAAqB,KAAa;AACrG,QAAI,OAAO,UAAU,SAAS,KAAK,UAAU,MAAM;AACzC,YAAA,IAAI,UAAU,2BAA2B;AACnD,QAAI,MAAM;AACV,QAAI,IAAI,UAAU;AAAW,aAAO,OAAO,GAAG;AAC1C,QAAA,aAAa,YAAY,IAAI,QAC7B,QAAQ,KAAK,KAAK,aAAa,WAAW,MAAM;AACpD,WAAQ,UAAU,GAAI;AACJ,oBAAA;AACd,UAAI,UAAU,GAAG;AACC,sBAAA;AAAA,MAClB;AAAA,IACJ;AACA,WAAO,WAAW,MAAM,GAAG,UAAU,IAAI;AAAA,EAAA;AAEjD;AAQA,SAAS,WAAW,WAA0C,MAAM,MAAc,cAAsB;AAEpG,MAAI,CAAC;AAAqB,eAAA,OAAW,oBAAA,KAAA,CAAM;AAE3C,MAAI,OAAO,aAAa,YAAY,OAAO,aAAa,UAAU;AAC1D,QAAA,SAAS,WAAW,UAAU;AAAe,iBAAA,OAAO,QAAQ,IAAI;AAAA,EACxE;AACM,QAAA,OAAO,IAAI,KAAK,QAAQ;AAC1B,MAAA;AACJ,QAAM,MAA8B;AAAA,IAChC,MAAM,KAAK,YAAY,EAAE,SAAS;AAAA;AAAA,IAClC,OAAO,KAAK,SAAS,IAAI,GAAG,SAAS;AAAA;AAAA,IACrC,MAAM,KAAK,QAAQ,EAAE,SAAS;AAAA;AAAA,IAC9B,MAAM,KAAK,SAAS,EAAE,SAAS;AAAA;AAAA,IAC/B,MAAM,KAAK,WAAW,EAAE,SAAS;AAAA;AAAA,IACjC,MAAM,KAAK,WAAW,EAAE,SAAS;AAAA;AAAA;AAAA,EAAA;AAGrC,aAAW,KAAK,KAAK;AACjB,UAAM,IAAI,OAAO,MAAM,IAAI,GAAG,EAAE,KAAK,GAAG;AACxC,QAAI,KAAK;AACC,YAAA,IAAI,QAAQ,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,UAAU,IAAI,IAAI,CAAC,IAAI,IAAI,CAAC,EAAE,SAAS,IAAI,CAAC,EAAE,QAAQ,GAAG,CAAC;AAAA,IAC/F;AAAA,EACJ;AACO,SAAA;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"timeFrom.js","sources":["uni_modules/uview-pro/libs/function/timeFrom.ts"],"sourcesContent":["import timeFormat from './timeFormat';\r\n\r\n/**\r\n * 时间戳转为多久之前\r\n * @param dateTime 时间戳、Date对象或null,默认当前时间\r\n * @param format 时间格式字符串或false,超出范围时返回指定格式,否则返回多久以前\r\n * @returns 格式化后的时间字符串\r\n */\r\nfunction timeFrom(dateTime: number | string | Date | null = null, format: string | false = 'yyyy-mm-dd'): string {\r\n // 如果为null,则格式化当前时间\r\n if (!dateTime) dateTime = Number(new Date());\r\n // 如果dateTime长度为10或者13,则为秒和毫秒的时间戳,如果超过13位,则为其他的时间格式\r\n if (typeof dateTime === 'number' || typeof dateTime === 'string') {\r\n if (dateTime.toString().length == 10) dateTime = Number(dateTime) * 1000;\r\n }\r\n const timestamp = +new Date(Number(dateTime));\r\n const timer = (Number(new Date()) - timestamp) / 1000;\r\n // 如果小于5分钟,则返回\"刚刚\",其他以此类推\r\n let tips = '';\r\n switch (true) {\r\n case timer < 300:\r\n tips = '刚刚';\r\n break;\r\n case timer >= 300 && timer < 3600:\r\n tips = parseInt(String(timer / 60)) + '分钟前';\r\n break;\r\n case timer >= 3600 && timer < 86400:\r\n tips = parseInt(String(timer / 3600)) + '小时前';\r\n break;\r\n case timer >= 86400 && timer < 2592000:\r\n tips = parseInt(String(timer / 86400)) + '天前';\r\n break;\r\n default:\r\n // 如果format为false,则无论什么时间戳,都显示xx之前\r\n if (format === false) {\r\n if (timer >= 2592000 && timer < 365 * 86400) {\r\n tips = parseInt(String(timer / (86400 * 30))) + '个月前';\r\n } else {\r\n tips = parseInt(String(timer / (86400 * 365))) + '年前';\r\n }\r\n } else {\r\n tips = timeFormat(timestamp, format as string);\r\n }\r\n }\r\n return tips;\r\n}\r\n\r\nexport default timeFrom;\r\n"],"names":["timeFormat"],"mappings":";;AAQA,SAAS,SAAS,WAA0C,MAAM,SAAyB,cAAsB;AAE7G,MAAI,CAAC;AAAqB,eAAA,OAAW,oBAAA,KAAA,CAAM;AAE3C,MAAI,OAAO,aAAa,YAAY,OAAO,aAAa,UAAU;AAC1D,QAAA,SAAS,WAAW,UAAU;AAAe,iBAAA,OAAO,QAAQ,IAAI;AAAA,EACxE;AACA,QAAM,YAAY,CAAC,IAAI,KAAK,OAAO,QAAQ,CAAC;AAC5C,QAAM,SAAS,OAAO,oBAAI,KAAK,CAAC,IAAI,aAAa;AAEjD,MAAI,OAAO;AACX,UAAQ,MAAM;AAAA,IACV,KAAK,QAAQ;AACF,aAAA;AACP;AAAA,IACJ,MAAK,SAAS,OAAO,QAAQ;AACzB,aAAO,SAAS,OAAO,QAAQ,EAAE,CAAC,IAAI;AACtC;AAAA,IACJ,MAAK,SAAS,QAAQ,QAAQ;AAC1B,aAAO,SAAS,OAAO,QAAQ,IAAI,CAAC,IAAI;AACxC;AAAA,IACJ,MAAK,SAAS,SAAS,QAAQ;AAC3B,aAAO,SAAS,OAAO,QAAQ,KAAK,CAAC,IAAI;AACzC;AAAA,IACJ;AAEI,UAAI,WAAW,OAAO;AAClB,YAAI,SAAS,UAAW,QAAQ,MAAM,OAAO;AACzC,iBAAO,SAAS,OAAO,SAAS,QAAQ,GAAG,CAAC,IAAI;AAAA,QAAA,OAC7C;AACH,iBAAO,SAAS,OAAO,SAAS,QAAQ,IAAI,CAAC,IAAI;AAAA,QACrD;AAAA,MAAA,OACG;AACI,eAAAA,8CAAA,WAAW,WAAW,MAAgB;AAAA,MACjD;AAAA,EACR;AACO,SAAA;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"toast.js","sources":["uni_modules/uview-pro/libs/function/toast.ts"],"sourcesContent":["/**\r\n * 显示无图标的 Toast 提示\r\n * @param title 提示文本\r\n * @param option 显示时长(毫秒)默认1500 /显示图标,默认为none\r\n */\r\nfunction toast(title: string, option: number | string | Record<string, any> = 1500): void {\r\n uni.showToast({\r\n title: title,\r\n icon: typeof option === 'string' ? option : typeof option === 'object' ? option.icon || 'none' : 'none',\r\n duration: typeof option === 'number' ? option : typeof option === 'object' ? option.duration || '1500' : 1500\r\n });\r\n}\r\n\r\nexport default toast;\r\n"],"names":["uni"],"mappings":";;AAKA,SAAS,MAAM,OAAe,SAAgD,MAAY;AACtFA,gBAAAA,MAAI,UAAU;AAAA,IACV;AAAA,IACA,MAAM,OAAO,WAAW,WAAW,SAAS,OAAO,WAAW,WAAW,OAAO,QAAQ,SAAS;AAAA,IACjG,UAAU,OAAO,WAAW,WAAW,SAAS,OAAO,WAAW,WAAW,OAAO,YAAY,SAAS;AAAA,EAAA,CAC5G;AACL;;"}
@@ -0,0 +1 @@
{"version":3,"file":"trim.js","sources":["uni_modules/uview-pro/libs/function/trim.ts"],"sourcesContent":["/**\r\n * 去除字符串空格\r\n * @param str 输入字符串\r\n * @param pos 去除位置,'both' | 'left' | 'right' | 'all',默认'both'\r\n * @returns 去除空格后的字符串\r\n */\r\nfunction trim(str: string, pos: 'both' | 'left' | 'right' | 'all' = 'both'): string {\r\n if (pos === 'both') {\r\n return str.replace(/^\\s+|\\s+$/g, '');\r\n } else if (pos === 'left') {\r\n return str.replace(/^\\s*/, '');\r\n } else if (pos === 'right') {\r\n return str.replace(/(\\s*$)/g, '');\r\n } else if (pos === 'all') {\r\n return str.replace(/\\s+/g, '');\r\n } else {\r\n return str;\r\n }\r\n}\r\n\r\nexport default trim;\r\n"],"names":[],"mappings":";AAMA,SAAS,KAAK,KAAa,MAAyC,QAAgB;AAChF,MAAI,QAAQ,QAAQ;AACT,WAAA,IAAI,QAAQ,cAAc,EAAE;AAAA,EAAA,WAC5B,QAAQ,QAAQ;AAChB,WAAA,IAAI,QAAQ,QAAQ,EAAE;AAAA,EAAA,WACtB,QAAQ,SAAS;AACjB,WAAA,IAAI,QAAQ,WAAW,EAAE;AAAA,EAAA,WACzB,QAAQ,OAAO;AACf,WAAA,IAAI,QAAQ,QAAQ,EAAE;AAAA,EAAA,OAC1B;AACI,WAAA;AAAA,EACX;AACJ;;"}
@@ -0,0 +1 @@
{"version":3,"file":"type2icon.js","sources":["uni_modules/uview-pro/libs/function/type2icon.ts"],"sourcesContent":["import type { ThemeType } from '../../types/global';\r\n\r\n/**\r\n * 根据主题type值,获取对应的图标\r\n * @param type 主题名称, primary|info|error|warning|success,默认success\r\n * @param fill 是否使用fill填充实体的图标,默认false\r\n * @returns 图标名称字符串\r\n */\r\nfunction type2icon(type: ThemeType = 'success', fill: boolean = false): string {\r\n // 如果非预置值,默认为success\r\n if (!['primary', 'info', 'error', 'warning', 'success'].includes(type)) type = 'success';\r\n let iconName = '';\r\n // 目前(2019-12-12),info和primary使用同一个图标\r\n switch (type) {\r\n case 'primary':\r\n iconName = 'info-circle';\r\n break;\r\n case 'info':\r\n iconName = 'info-circle';\r\n break;\r\n case 'error':\r\n iconName = 'close-circle';\r\n break;\r\n case 'warning':\r\n iconName = 'error-circle';\r\n break;\r\n case 'success':\r\n iconName = 'checkmark-circle';\r\n break;\r\n default:\r\n iconName = 'checkmark-circle';\r\n }\r\n // 是否是实体类型,加上-fill,在icon组件库中,实体的类名是后面加-fill的\r\n if (fill) iconName += '-fill';\r\n return iconName;\r\n}\r\n\r\nexport default type2icon;\r\n"],"names":[],"mappings":";AAQA,SAAS,UAAU,OAAkB,WAAW,OAAgB,OAAe;AAEvE,MAAA,CAAC,CAAC,WAAW,QAAQ,SAAS,WAAW,SAAS,EAAE,SAAS,IAAI;AAAU,WAAA;AAC/E,MAAI,WAAW;AAEf,UAAQ,MAAM;AAAA,IACV,KAAK;AACU,iBAAA;AACX;AAAA,IACJ,KAAK;AACU,iBAAA;AACX;AAAA,IACJ,KAAK;AACU,iBAAA;AACX;AAAA,IACJ,KAAK;AACU,iBAAA;AACX;AAAA,IACJ,KAAK;AACU,iBAAA;AACX;AAAA,IACJ;AACe,iBAAA;AAAA,EACnB;AAEI,MAAA;AAAkB,gBAAA;AACf,SAAA;AACX;;"}
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
@@ -0,0 +1 @@
{"version":3,"file":"useColor.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"useDebounce.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"useEmitter.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1 @@
{"version":3,"file":"useLocale.js","sources":["uni_modules/uview-pro/libs/hooks/useLocale.ts"],"sourcesContent":["import configProvider from '../util/config-provider';\r\n\r\n/**\r\n * 国际化 composable\r\n * 提供:\r\n * - currentLocale / locales 响应式引用\r\n * - t(key, replacements) 翻译方法\r\n * - setLocale(name) 切换语言\r\n * - initLocales(locales?, defaultName?) 初始化语言包\r\n */\r\nexport function useLocale(namespace?: string) {\r\n // 创建翻译函数,支持命名空间\r\n const createTranslateFunction = (ns?: string) => {\r\n return (key: string, replacements?: any, localeName?: string): string => {\r\n // 如果有命名空间,自动添加前缀\r\n const fullKey = ns ? `${ns}.${key}` : key;\r\n return configProvider.t(fullKey, replacements, localeName);\r\n };\r\n };\r\n\r\n return {\r\n // 响应式引用\r\n currentLocale: configProvider.currentLocaleRef,\r\n locales: configProvider.localesRef,\r\n\r\n // 方法\r\n t: createTranslateFunction(namespace),\r\n setLocale: (name: string) => configProvider.setLocale(name),\r\n getLocales: () => configProvider.getLocales(),\r\n getCurrentLocale: () => configProvider.getCurrentLocale(),\r\n initLocales: (locales?: any[], defaultLocaleName?: string, isForce?: boolean) =>\r\n configProvider.initLocales(locales, defaultLocaleName, isForce)\r\n };\r\n}\r\n"],"names":["configProvider"],"mappings":";;AAUO,SAAS,UAAU,WAAoB;AAEpC,QAAA,0BAA0B,CAAC,OAAgB;AACtC,WAAA,CAAC,KAAa,cAAoB,eAAgC;AAErE,YAAM,UAAU,KAAK,GAAG,EAAE,IAAI,GAAG,KAAK;AACtC,aAAOA,8CAAe,eAAA,EAAE,SAAS,cAAc,UAAU;AAAA,IAAA;AAAA,EAC7D;AAGG,SAAA;AAAA;AAAA,IAEH,eAAeA,8CAAe,eAAA;AAAA,IAC9B,SAASA,8CAAe,eAAA;AAAA;AAAA,IAGxB,GAAG,wBAAwB,SAAS;AAAA,IACpC,WAAW,CAAC,SAAiBA,6DAAe,UAAU,IAAI;AAAA,IAC1D,YAAY,MAAMA,8CAAA,eAAe,WAAW;AAAA,IAC5C,kBAAkB,MAAMA,8CAAA,eAAe,iBAAiB;AAAA,IACxD,aAAa,CAAC,SAAiB,mBAA4B,YACvDA,8CAAe,eAAA,YAAY,SAAS,mBAAmB,OAAO;AAAA,EAAA;AAE1E;;"}
@@ -0,0 +1 @@
{"version":3,"file":"useModal.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1 @@
{"version":3,"file":"useRect.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
{"version":3,"file":"useThrottle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
{"version":3,"file":"useToast.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
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
@@ -0,0 +1 @@
{"version":3,"file":"system-theme.js","sources":["uni_modules/uview-pro/libs/util/system-theme.ts"],"sourcesContent":["declare const uni: any;\r\n\r\ntype SystemTheme = 'light' | 'dark';\r\n\r\n/**\r\n * 非 H5 平台获取当前系统主题\r\n */\r\nexport function getSystemDarkMode(): SystemTheme {\r\n try {\r\n if (typeof uni !== 'undefined' && typeof uni.getSystemInfoSync === 'function') {\r\n const systemInfo = uni.getSystemInfoSync();\r\n const theme = systemInfo.osTheme || systemInfo.theme || 'light';\r\n if (theme === 'dark') {\r\n return 'dark';\r\n }\r\n if (theme === 'light') {\r\n return 'light';\r\n }\r\n }\r\n } catch (e) {\r\n // 获取失败时默认返回亮色\r\n console.warn('[system-theme] getSystemDarkMode failed', e);\r\n }\r\n return 'light';\r\n}\r\n"],"names":["uni"],"mappings":";;AAOO,SAAS,oBAAiC;AACzC,MAAA;AACA,QAAI,OAAOA,cAAQ,UAAA,eAAe,OAAOA,cAAAA,MAAI,sBAAsB,YAAY;AACrE,YAAA,aAAaA,oBAAI;AACvB,YAAM,QAAQ,WAAW,WAAW,WAAW,SAAS;AACxD,UAAI,UAAU,QAAQ;AACX,eAAA;AAAA,MACX;AACA,UAAI,UAAU,SAAS;AACZ,eAAA;AAAA,MACX;AAAA,IACJ;AAAA,WACK,GAAG;AAERA,kBAAA,MAAA,MAAA,QAAA,yDAAa,2CAA2C,CAAC;AAAA,EAC7D;AACO,SAAA;AACX;;"}
@@ -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