fant-mini-plus
Advanced tools
+7
-0
@@ -5,2 +5,9 @@ # Changelog | ||
| ### [0.1.13](https://gitlab.hd123.com/vue/fant-mini-plus/compare/v0.1.12...v0.1.13) (2023-09-14) | ||
| ### Bug Fixes | ||
| * 🐛 修复类型声明错误导致的[vue warn] ([82fd4ca](https://gitlab.hd123.com/vue/fant-mini-plus/commit/82fd4cab73d2c950243cf9005463fae64404df4e)) | ||
| ### [0.1.12](https://gitlab.hd123.com/vue/fant-mini-plus/compare/v0.1.11...v0.1.12) (2023-08-04) | ||
@@ -7,0 +14,0 @@ |
@@ -32,19 +32,19 @@ <!-- | ||
| */ | ||
| color: string | ||
| color?: string | ||
| /** | ||
| * 是否垂直排列图标和文字内容 | ||
| */ | ||
| vertical: boolean | ||
| vertical?: boolean | ||
| /** | ||
| * 类型 | ||
| */ | ||
| type: LoadingType | ||
| type?: LoadingType | ||
| /** | ||
| * 加载图标大小,默认单位为 px | ||
| */ | ||
| size: number | string | ||
| size?: number | string | ||
| /** | ||
| * 文字大小,默认单位为为 px | ||
| */ | ||
| textSize: number | string | ||
| textSize?: number | string | ||
| } | ||
@@ -51,0 +51,0 @@ |
| <!-- | ||
| * @Author: weisheng | ||
| * @Date: 2022-07-26 14:03:50 | ||
| * @LastEditTime: 2023-05-19 15:26:21 | ||
| * @LastEditTime: 2023-09-14 21:27:45 | ||
| * @LastEditors: weisheng | ||
@@ -11,3 +11,3 @@ * @Description: | ||
| <template> | ||
| <hd-popup type="bottom" id="areapop" :maskClick="true" @onTap="doMaskClick"> | ||
| <hd-popup type="bottom" id="areapop" :maskClick="true" @click="doMaskClick"> | ||
| <view class="hd-area"> | ||
@@ -14,0 +14,0 @@ <view class="title"> |
@@ -1,3 +0,3 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { Area } from './types'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Area } from './types'; | ||
| /** | ||
@@ -4,0 +4,0 @@ * useArea 用到的key |
@@ -10,4 +10,4 @@ /* | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { Area } from './types' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import type { Area } from './types' | ||
@@ -14,0 +14,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Calendar } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
| /* | ||
| * @Author: weisheng | ||
| * @Date: 2022-12-14 17:33:21 | ||
| * @LastEditTime: 2023-05-19 16:02:53 | ||
| * @LastEditTime: 2023-09-14 21:33:45 | ||
| * @LastEditors: weisheng | ||
@@ -10,3 +10,3 @@ * @Description: | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import type { Calendar } from './types' | ||
@@ -13,0 +13,0 @@ |
@@ -39,7 +39,7 @@ <template> | ||
| // 左侧标题 | ||
| title: string | ||
| title?: string | ||
| // 右侧内容 | ||
| value: string | ||
| value?: string | ||
| // 标题下方的描述信息 | ||
| label: string | ||
| label?: string | ||
| // 右侧内容的对齐方式,可选值为 "left" | "right" | ||
@@ -46,0 +46,0 @@ align?: CellAlign |
@@ -51,3 +51,3 @@ <template> | ||
| // 唯一标识符 | ||
| name: number | string | ||
| name?: number | string | ||
| // 标识当前为第几个 | ||
@@ -54,0 +54,0 @@ index: string | number |
@@ -77,7 +77,7 @@ <template> | ||
| // 时 | ||
| hour: number | ||
| hour?: number | ||
| // 分 | ||
| minute: number | ||
| minute?: number | ||
| // 秒 | ||
| second: number | ||
| second?: number | ||
| } | ||
@@ -84,0 +84,0 @@ |
@@ -24,3 +24,3 @@ <template> | ||
| import { CommonUtil, RegUtil, datePickerDefaultKey, datePickerDefaultOptionKey, getDefaultOptions, usePopup } from '../..' | ||
| import { DatePickerType, DatePickerOptions } from './types' | ||
| import type { DatePickerType, DatePickerOptions } from './types' | ||
| import { DatePickerUtil } from '../../libs/utils/DatePicker' | ||
@@ -27,0 +27,0 @@ |
@@ -1,2 +0,2 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { DatePicker, DatePickerOptions } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -10,3 +10,3 @@ /* | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import { CommonUtil } from '../../index' | ||
@@ -13,0 +13,0 @@ import type { DatePicker, DatePickerOptions } from './types' |
@@ -21,3 +21,3 @@ <template> | ||
| <script lang="ts" setup> | ||
| import { computed, inject, onBeforeMount, ref, Ref } from 'vue' | ||
| import { computed, inject, onBeforeMount, ref, type Ref } from 'vue' | ||
| import { CommonUtil } from '../..' | ||
@@ -24,0 +24,0 @@ |
| <!-- | ||
| * @Author: weisheng | ||
| * @Date: 2023-04-10 18:27:41 | ||
| * @LastEditTime: 2023-05-13 18:47:46 | ||
| * @LastEditTime: 2023-09-14 21:22:13 | ||
| * @LastEditors: weisheng | ||
@@ -49,3 +49,3 @@ * @Description: | ||
| // 图片资源地址 | ||
| src: string | ||
| src?: string | ||
| // 图片裁剪、缩放的模式,参考https://uniapp.dcloud.net.cn/component/image.html#image | ||
@@ -52,0 +52,0 @@ mode?: string |
@@ -16,3 +16,3 @@ <template> | ||
| import { defaultLoadingOptions, loadingDefaultKey, loadingDefaultOptionKey, RegUtil } from '../../index' | ||
| import { LoadingOptions, LoadingType } from './types' | ||
| import type { LoadingOptions, LoadingType } from './types' | ||
| // Loading 加载 | ||
@@ -19,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Loading, LoadingOptions } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -10,3 +10,3 @@ /* | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import { CommonUtil } from '../../index' | ||
@@ -13,0 +13,0 @@ import type { Loading, LoadingOptions } from './types' |
@@ -36,3 +36,3 @@ <template> | ||
| import { RegUtil, CommonUtil, defaultModalOptions, modalDefaultKey, modalDefaultOptionKey } from '../../index' | ||
| import { ModalOptions } from './types' | ||
| import type { ModalOptions } from './types' | ||
@@ -39,0 +39,0 @@ interface Props { |
@@ -1,2 +0,2 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Modal, ModalOptions } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -10,3 +10,3 @@ /* | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import { CommonUtil } from '../../index' | ||
@@ -13,0 +13,0 @@ import type { Modal, ModalOptions } from './types' |
| <!-- | ||
| * @Author: weisheng | ||
| * @Date: 2022-02-22 19:27:37 | ||
| * @LastEditTime: 2023-05-19 15:05:12 | ||
| * @LastEditTime: 2023-09-14 21:42:17 | ||
| * @LastEditors: weisheng | ||
@@ -22,4 +22,6 @@ * @Description: Notify 消息提示 | ||
| import { computed, getCurrentInstance, inject, nextTick, ref, watch } from 'vue' | ||
| import { CommonUtil, defaultNotifyOptions, notifyDefaultKey, notifyDefaultOptionKey, RegUtil } from '../../index' | ||
| import { NotifyOptions } from './types' | ||
| import { CommonUtil, defaultNotifyOptions, RegUtil } from '../..' | ||
| import { notifyDefaultKey, notifyDefaultOptionKey } from './index' | ||
| import type { NotifyOptions } from './types' | ||
| /** | ||
@@ -32,7 +34,7 @@ * Notify 消息提示 | ||
| // 是否展示 | ||
| modelValue: boolean | ||
| modelValue?: boolean | ||
| /** | ||
| * 提示的内容 | ||
| */ | ||
| message: string | ||
| message?: string | ||
| /** | ||
@@ -115,4 +117,4 @@ * 自定义背景色 | ||
| const notifyOptionKey = props.id ? '__NOTIFY_OPTION__' + props.id : notifyDefaultOptionKey | ||
| const notifyShow = inject(notifyKey) || ref<boolean>(false) // 函数式调用是否展示notify组件 | ||
| const notifyOption = inject(notifyOptionKey) || ref<NotifyOptions>(defaultNotifyOptions) // notify选项 | ||
| const notifyShow = inject(notifyKey, null) || ref<boolean>(false) // 函数式调用是否展示notify组件 | ||
| const notifyOption = inject(notifyOptionKey, null) || ref<NotifyOptions>(defaultNotifyOptions) // notify选项 | ||
| const visiable = ref<boolean>(false) // 展示 | ||
@@ -119,0 +121,0 @@ |
@@ -1,2 +0,2 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Notify, NotifyOptions } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
| /* | ||
| * @Author: weisheng | ||
| * @Date: 2022-02-23 11:11:53 | ||
| * @LastEditTime: 2023-05-19 16:16:04 | ||
| * @LastEditTime: 2023-09-14 21:32:47 | ||
| * @LastEditors: weisheng | ||
@@ -10,3 +10,3 @@ * @Description: | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { type InjectionKey, type Ref, provide, ref } from 'vue' | ||
| import { CommonUtil } from '../../index' | ||
@@ -13,0 +13,0 @@ import type { Notify, NotifyOptions } from './types' |
@@ -1,3 +0,3 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { Popup } from './types'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Popup } from './types'; | ||
| /** | ||
@@ -4,0 +4,0 @@ * usePopup 用到的key |
@@ -10,4 +10,4 @@ /* | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { Popup } from './types' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import type { Popup } from './types' | ||
@@ -14,0 +14,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
| import { SwipeAction } from './types'; | ||
| import type { SwipeAction } from './types'; | ||
| export declare function useSwipeAction(): SwipeAction; |
| /* | ||
| * @Author: weisheng | ||
| * @Date: 2023-03-21 19:57:00 | ||
| * @LastEditTime: 2023-03-22 12:50:35 | ||
| * @LastEditTime: 2023-09-14 21:40:13 | ||
| * @LastEditors: weisheng | ||
| * @Description: | ||
| * @FilePath: \fant-mini-plus\src\uni_modules\fant-mini\components\hd-swipe-action\index.ts | ||
| * @FilePath: \fant-mini-plus\src\uni_modules\fant-mini-plus\components\hd-swipe-action\index.ts | ||
| * 记得注释 | ||
@@ -12,3 +12,3 @@ */ | ||
| import { ref } from 'vue' | ||
| import { SwipeAction } from './types' | ||
| import type { SwipeAction } from './types' | ||
@@ -15,0 +15,0 @@ export function useSwipeAction(): SwipeAction { |
@@ -1,2 +0,2 @@ | ||
| import { Ref } from 'vue'; | ||
| import type { Ref } from 'vue'; | ||
| export interface SwipeAction { | ||
@@ -3,0 +3,0 @@ moveIndex: Ref<number>; |
@@ -10,3 +10,3 @@ /* | ||
| */ | ||
| import { Ref } from 'vue' | ||
| import type { Ref } from 'vue' | ||
@@ -13,0 +13,0 @@ export interface SwipeAction { |
| <!-- | ||
| * @Author: weisheng | ||
| * @Date: 2020-10-31 11:27:05 | ||
| * @LastEditTime: 2023-05-22 22:42:42 | ||
| * @LastEditTime: 2023-09-14 21:26:07 | ||
| * @LastEditors: weisheng | ||
@@ -38,3 +38,3 @@ * @Description: 表格列 | ||
| // 列宽度 | ||
| width: string | ||
| width?: string | ||
| // 列是否固定,固定左或者右 取值 true, left, right | ||
@@ -41,0 +41,0 @@ fixed?: string | boolean |
| <!-- | ||
| * @Author: weisheng | ||
| * @Date: 2020-12-25 10:30:02 | ||
| * @LastEditTime: 2023-05-23 15:36:32 | ||
| * @LastEditTime: 2023-09-14 21:25:24 | ||
| * @LastEditors: weisheng | ||
@@ -37,3 +37,3 @@ * @Description: 标签组件 | ||
| // 标签内容 | ||
| value: string | ||
| value?: string | ||
| // 标签类型 | ||
@@ -40,0 +40,0 @@ type?: TagType |
@@ -27,3 +27,3 @@ <!-- | ||
| import { CommonUtil, defaultToastOptions, RegUtil, toastDefaultKey, toastDefaultOptionKey } from '../..' | ||
| import { ToastOptions } from './types' | ||
| import type { ToastOptions } from './types' | ||
@@ -30,0 +30,0 @@ interface Props { |
@@ -1,2 +0,2 @@ | ||
| import { InjectionKey, Ref } from 'vue'; | ||
| import { type InjectionKey, type Ref } from 'vue'; | ||
| import type { Toast, ToastOptions } from './types'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -6,7 +6,7 @@ /* | ||
| * @LastEditors: weisheng | ||
| * @Description: | ||
| * @Description:type | ||
| * @FilePath: \fant-mini-plus\src\uni_modules\fant-mini-plus\components\hd-toast\index.ts | ||
| * 记得注释 | ||
| */ | ||
| import { InjectionKey, Ref, nextTick, provide, ref } from 'vue' | ||
| import { type InjectionKey, type Ref, nextTick, provide, ref } from 'vue' | ||
| import { CommonUtil } from '../../index' | ||
@@ -13,0 +13,0 @@ import type { Toast, ToastOptions } from './types' |
@@ -40,3 +40,3 @@ <template> | ||
| // 动画类型 | ||
| name?: TransitionName | ||
| name?: TransitionName | TransitionName[] | ||
| // 动画时长,单位为毫秒 | ||
@@ -43,0 +43,0 @@ duration?: Record<string, number> | number |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"id":"fant-mini-plus","name":"fant-mini-plus","displayName":"fant-mini-plus基于Vue3和TypeScript的高效UI组件库","version":"0.1.12","description":"fant-mini-plus是一个基于Vue3和TypeScript的uni-app高效UI组件库,提供丰富的组件和样式,帮助开发者快速构建高质量的移动应用。","keywords":["vue3","typescript","组件库","微信小程序","支付宝小程序"],"repository":"https://gitee.com/fant-mini/uniapp-vue3-fant-ts","typings":"index.d.ts","engines":{"HBuilderX":"^3.5.2"},"dcloudext":{"sale":{"regular":{"price":"0.00"},"sourcecode":{"price":"0.00"}},"contact":{"qq":""},"declaration":{"ads":"无","data":"插件不采集任何数据","permissions":"无"},"npmurl":"https://github.com/Moonofweisheng/uniapp-vue3-fant-ts","type":"component-vue"},"uni_modules":{"dependencies":["mp-html"],"encrypt":[],"platforms":{"cloud":{"tcb":"y","aliyun":"y"},"client":{"Vue":{"vue2":"n","vue3":"y"},"App":{"app-vue":"y","app-nvue":"n"},"H5-mobile":{"Safari":"y","Android Browser":"y","微信浏览器(Android)":"y","QQ浏览器(Android)":"y"},"H5-pc":{"Chrome":"u","IE":"u","Edge":"u","Firefox":"u","Safari":"u"},"小程序":{"微信":"y","钉钉":"y","阿里":"y","百度":"u","字节跳动":"u","QQ":"u"},"快应用":{"华为":"u","联盟":"u"}}}}} | ||
| {"id":"fant-mini-plus","name":"fant-mini-plus","displayName":"fant-mini-plus基于Vue3和TypeScript的高效UI组件库","version":"0.1.13","description":"fant-mini-plus是一个基于Vue3和TypeScript的uni-app高效UI组件库,提供丰富的组件和样式,帮助开发者快速构建高质量的移动应用。","keywords":["vue3","typescript","组件库","微信小程序","支付宝小程序"],"repository":"https://gitee.com/fant-mini/uniapp-vue3-fant-ts","typings":"index.d.ts","engines":{"HBuilderX":"^3.5.2"},"dcloudext":{"sale":{"regular":{"price":"0.00"},"sourcecode":{"price":"0.00"}},"contact":{"qq":""},"declaration":{"ads":"无","data":"插件不采集任何数据","permissions":"无"},"npmurl":"https://github.com/Moonofweisheng/uniapp-vue3-fant-ts","type":"component-vue"},"uni_modules":{"dependencies":["mp-html"],"encrypt":[],"platforms":{"cloud":{"tcb":"y","aliyun":"y"},"client":{"Vue":{"vue2":"n","vue3":"y"},"App":{"app-vue":"y","app-nvue":"n"},"H5-mobile":{"Safari":"y","Android Browser":"y","微信浏览器(Android)":"y","QQ浏览器(Android)":"y"},"H5-pc":{"Chrome":"u","IE":"u","Edge":"u","Firefox":"u","Safari":"u"},"小程序":{"微信":"y","钉钉":"y","阿里":"y","百度":"u","字节跳动":"u","QQ":"u"},"快应用":{"华为":"u","联盟":"u"}}}}} |
419917
0.07%