@polyv/vue-components 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/styles/root/basic.scss +14 -7
- package/styles/root/border.scss +6 -0
- package/styles/skin-color.scss +37 -11
- package/styles/variables.scss +15 -1
- package/vue2/index.es.js +16155 -21494
- package/vue2/src/components/alert/index.d.ts +2 -0
- package/vue2/src/components/alert/src/alert.vue.d.ts +2 -0
- package/vue2/src/components/alert/src/props-define.d.ts +8 -0
- package/vue2/src/components/business/channel-cover/index.d.ts +38 -0
- package/vue2/src/components/business/channel-cover/src/channel-cover.vue.d.ts +38 -0
- package/vue2/src/components/business/channel-cover/src/cover-list.d.ts +7 -0
- package/vue2/src/components/business/channel-cover/src/props-define.d.ts +47 -0
- package/vue2/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +8 -4
- package/vue2/src/components/business/external-links/external-links.vue.d.ts +1 -2
- package/vue2/src/components/business/external-links/use-external-links.d.ts +111 -3
- package/vue2/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +22 -0
- package/vue2/src/components/collapse-transition/index.d.ts +36 -0
- package/vue2/src/components/collapse-transition/src/collapse-transition.vue.d.ts +27 -0
- package/vue2/src/components/collapse-transition/src/props-define.d.ts +9 -0
- package/vue2/src/components/example/example.vue.d.ts +16 -1
- package/vue2/src/components/example/index.d.ts +75 -4
- package/vue2/src/components/exports.d.ts +22 -1
- package/vue2/src/components/form/file-upload/index.d.ts +467 -0
- package/vue2/src/components/form/file-upload/src/file-upload.vue.d.ts +185 -0
- package/vue2/src/components/form/file-upload/src/hooks/props-define.d.ts +296 -0
- package/vue2/src/components/form/file-upload/src/hooks/types.d.ts +52 -0
- package/vue2/src/components/form/file-upload/src/hooks/use-file-input.d.ts +7 -0
- package/vue2/src/components/form/file-upload/src/hooks/use-file-upload-slots.d.ts +10 -0
- package/vue2/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +113 -0
- package/vue2/src/components/form/file-upload/src/hooks/use-upload-controller.d.ts +7 -0
- package/vue2/src/components/form/file-upload/src/upload-add/button-add.vue.d.ts +4 -0
- package/vue2/src/components/form/file-upload/src/upload-add/drag-add.vue.d.ts +5 -0
- package/vue2/src/components/form/file-upload/src/upload-add/picture-card-add.vue.d.ts +4 -0
- package/vue2/src/components/form/file-upload/src/upload-item/file-upload-item.vue.d.ts +23 -0
- package/vue2/src/components/form/file-upload/src/upload-item/picture-card-item.vue.d.ts +14 -0
- package/vue2/src/components/form/file-upload/src/upload-item/text-item.vue.d.ts +16 -0
- package/vue2/src/components/form/file-upload/src/upload-item/use-upload-item.d.ts +10 -0
- package/vue2/src/components/form/form-item/index.d.ts +2 -2
- package/vue2/src/components/form/form-item/src/form-item.vue.d.ts +1 -1
- package/vue2/src/components/form/form-submit-button/index.d.ts +1 -1
- package/vue2/src/components/form/form-submit-button/src/form-submit-button.vue.d.ts +1 -1
- package/vue2/src/components/form/form-wrap/index.d.ts +8 -2
- package/vue2/src/components/form/form-wrap/src/form-wrap.vue.d.ts +3 -1
- package/vue2/src/components/form/form-wrap/src/use-form-wrap.d.ts +4 -0
- package/vue2/src/components/form/hooks/use-form-entrance.d.ts +3 -3
- package/vue2/src/components/form/input-number/index.d.ts +2 -2
- package/vue2/src/components/form/input-number/src/input-number.vue.d.ts +1 -1
- package/vue2/src/components/form/select/index.d.ts +40 -40
- package/vue2/src/components/form/timezone-picker/index.d.ts +70 -70
- package/vue2/src/components/form/timezone-picker/src/hooks/props-define.d.ts +18 -18
- package/vue2/src/components/form/timezone-picker/src/timezone-picker.vue.d.ts +42 -42
- package/vue2/src/components/form/transfer/hooks/props-define.d.ts +0 -1
- package/vue2/src/components/form/transfer/transfer.vue.d.ts +0 -1
- package/vue2/src/components/icons/icons/effect/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/file/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/id-card/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/id-card-filled/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/lang/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/link/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/menu-expand/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/menu-fold-up/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/platform/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/platform-filled/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/statistics-filled/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/upload-three/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/user/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/user-filled/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/video/index.d.ts +6 -0
- package/vue2/src/components/icons/icons/video-filled/index.d.ts +6 -0
- package/vue2/src/components/icons/map.d.ts +16 -0
- package/vue2/src/components/info-card/index.d.ts +181 -2
- package/{vue3/src/components/info-card → vue2/src/components/info-card/src}/info-card.vue.d.ts +11 -1
- package/vue2/src/components/info-card/{props-define.d.ts → src/props-define.d.ts} +18 -1
- package/vue2/src/components/menu/index.d.ts +156 -0
- package/vue2/src/components/menu/src/hooks/use-menu-item.d.ts +29 -0
- package/vue2/src/components/menu/src/hooks/use-menu.d.ts +14 -0
- package/vue2/src/components/menu/src/hooks/use-sub-menu.d.ts +23 -0
- package/vue2/src/components/menu/src/menu-divider.vue.d.ts +2 -0
- package/vue2/src/components/menu/src/menu-item-content.vue.d.ts +2 -0
- package/vue2/src/components/menu/src/menu-item.vue.d.ts +14 -0
- package/vue2/src/components/menu/src/menu.vue.d.ts +52 -0
- package/vue2/src/components/menu/src/props-define.d.ts +114 -0
- package/vue2/src/components/menu/src/sub-menu-popper.vue.d.ts +19 -0
- package/vue2/src/components/menu/src/sub-menu.vue.d.ts +32 -0
- package/vue2/src/components/message-box/_component/message-box-element.vue.d.ts +1 -1
- package/vue2/src/components/message-box/_component/use-message-box-element.d.ts +13 -9
- package/vue2/src/components/pagination/use-pagination.d.ts +3 -3
- package/vue2/src/components/popconfirm/index.d.ts +20 -0
- package/vue2/src/components/popconfirm/src/popconfirm.vue.d.ts +20 -0
- package/vue2/src/components/popconfirm/src/props-define.d.ts +3 -0
- package/vue2/src/components/popover/index.d.ts +20 -0
- package/vue2/src/components/popover/src/popover.vue.d.ts +7 -0
- package/vue2/src/components/popover/src/props-define.d.ts +3 -0
- package/vue2/src/components/popup/index.d.ts +13 -6
- package/vue2/src/components/popup/src/hooks/popup-props.d.ts +6 -4
- package/vue2/src/components/popup/src/hooks/use-popup-provide.d.ts +9 -0
- package/vue2/src/components/popup/src/popup.vue.d.ts +4 -2
- package/vue2/src/components/popup/src/types.d.ts +3 -0
- package/vue2/src/components/slider/index.d.ts +8 -1
- package/vue2/src/components/slider/src/props-define.d.ts +7 -0
- package/vue2/src/components/slider/src/slider.vue.d.ts +8 -1
- package/vue2/src/components/table/index.d.ts +84 -12
- package/vue2/src/components/table/src/components/table-body-cell/body-cell-expand.vue.d.ts +2 -0
- package/vue2/src/components/table/src/components/table-body-row/table-body-row-expand.vue.d.ts +33 -0
- package/vue2/src/components/table/src/components/table-body-row/table-body-row.vue.d.ts +11 -0
- package/vue2/src/components/table/src/components/table-body-row/use-table-body-row.d.ts +8 -0
- package/vue2/src/components/table/src/hooks/props-define.d.ts +58 -2
- package/vue2/src/components/table/src/hooks/use-table/use-column-computed.d.ts +14 -2
- package/vue2/src/components/table/src/hooks/use-table/use-column-list.d.ts +28 -4
- package/vue2/src/components/table/src/hooks/use-table/use-table-footer.d.ts +7 -0
- package/vue2/src/components/table/src/hooks/use-table/use-table-render-data.d.ts +2 -0
- package/vue2/src/components/table/src/hooks/use-table/use-table.d.ts +44 -7
- package/vue2/src/components/table/src/hooks/use-table-column/use-column-children.d.ts +14 -2
- package/vue2/src/components/table/src/hooks/use-table-column/use-column-expand.d.ts +19 -0
- package/vue2/src/components/table/src/hooks/use-table-column/use-table-column.d.ts +2 -1
- package/vue2/src/components/table/src/table-column.vue.d.ts +13 -4
- package/vue2/src/components/table/src/table.vue.d.ts +16 -0
- package/vue2/src/components/table/src/types/index.d.ts +1 -1
- package/vue2/src/components/tooltip/index.d.ts +20 -0
- package/vue2/src/components/tooltip/src/props-define.d.ts +7 -0
- package/vue2/src/components/tooltip/src/tooltip.vue.d.ts +7 -0
- package/vue2/src/hooks/business/use-skin-color/utils.d.ts +1 -1
- package/vue2/src/hooks/exports.d.ts +1 -0
- package/vue2/src/hooks/vue/use-render-slots/index.d.ts +5 -3
- package/vue2/src/lang/internal/en.json.d.ts +28 -6
- package/vue2/src/lang/internal/index.d.ts +22 -0
- package/vue2/src/lang/internal/ja.json.d.ts +29 -7
- package/vue2/src/lang/internal/ko.json.d.ts +29 -7
- package/vue2/src/lang/internal/ru.json.d.ts +29 -7
- package/vue2/src/lang/internal/zh-CN.json.d.ts +27 -5
- package/vue2/src/lang/internal/zh-TW.json.d.ts +28 -6
- package/vue2/src/vue-utils/index.d.ts +1 -0
- package/vue3/index.es.js +16162 -21506
- package/vue3/src/components/alert/index.d.ts +2 -0
- package/vue3/src/components/alert/src/alert.vue.d.ts +2 -0
- package/vue3/src/components/alert/src/props-define.d.ts +8 -0
- package/vue3/src/components/business/channel-cover/index.d.ts +38 -0
- package/vue3/src/components/business/channel-cover/src/channel-cover.vue.d.ts +38 -0
- package/vue3/src/components/business/channel-cover/src/cover-list.d.ts +7 -0
- package/vue3/src/components/business/channel-cover/src/props-define.d.ts +47 -0
- package/vue3/src/components/business/data-export/data-export-record/use-data-export-record.d.ts +8 -4
- package/vue3/src/components/business/external-links/external-links.vue.d.ts +1 -2
- package/vue3/src/components/business/external-links/use-external-links.d.ts +111 -3
- package/vue3/src/components/business/reward-receive/hooks/use-reward-receive.d.ts +22 -0
- package/vue3/src/components/collapse-transition/index.d.ts +36 -0
- package/vue3/src/components/collapse-transition/src/collapse-transition.vue.d.ts +27 -0
- package/vue3/src/components/collapse-transition/src/props-define.d.ts +9 -0
- package/vue3/src/components/example/example.vue.d.ts +16 -1
- package/vue3/src/components/example/index.d.ts +75 -4
- package/vue3/src/components/exports.d.ts +22 -1
- package/vue3/src/components/form/file-upload/index.d.ts +467 -0
- package/vue3/src/components/form/file-upload/src/file-upload.vue.d.ts +185 -0
- package/vue3/src/components/form/file-upload/src/hooks/props-define.d.ts +296 -0
- package/vue3/src/components/form/file-upload/src/hooks/types.d.ts +52 -0
- package/vue3/src/components/form/file-upload/src/hooks/use-file-input.d.ts +7 -0
- package/vue3/src/components/form/file-upload/src/hooks/use-file-upload-slots.d.ts +10 -0
- package/vue3/src/components/form/file-upload/src/hooks/use-file-upload.d.ts +113 -0
- package/vue3/src/components/form/file-upload/src/hooks/use-upload-controller.d.ts +7 -0
- package/vue3/src/components/form/file-upload/src/upload-add/button-add.vue.d.ts +4 -0
- package/vue3/src/components/form/file-upload/src/upload-add/drag-add.vue.d.ts +5 -0
- package/vue3/src/components/form/file-upload/src/upload-add/picture-card-add.vue.d.ts +4 -0
- package/vue3/src/components/form/file-upload/src/upload-item/file-upload-item.vue.d.ts +23 -0
- package/vue3/src/components/form/file-upload/src/upload-item/picture-card-item.vue.d.ts +14 -0
- package/vue3/src/components/form/file-upload/src/upload-item/text-item.vue.d.ts +16 -0
- package/vue3/src/components/form/file-upload/src/upload-item/use-upload-item.d.ts +10 -0
- package/vue3/src/components/form/form-item/index.d.ts +2 -2
- package/vue3/src/components/form/form-item/src/form-item.vue.d.ts +1 -1
- package/vue3/src/components/form/form-submit-button/index.d.ts +1 -1
- package/vue3/src/components/form/form-submit-button/src/form-submit-button.vue.d.ts +1 -1
- package/vue3/src/components/form/form-wrap/index.d.ts +8 -2
- package/vue3/src/components/form/form-wrap/src/form-wrap.vue.d.ts +3 -1
- package/vue3/src/components/form/form-wrap/src/use-form-wrap.d.ts +4 -0
- package/vue3/src/components/form/hooks/use-form-entrance.d.ts +3 -3
- package/vue3/src/components/form/input-number/index.d.ts +2 -2
- package/vue3/src/components/form/input-number/src/input-number.vue.d.ts +1 -1
- package/vue3/src/components/form/select/index.d.ts +40 -40
- package/vue3/src/components/form/timezone-picker/index.d.ts +70 -70
- package/vue3/src/components/form/timezone-picker/src/hooks/props-define.d.ts +18 -18
- package/vue3/src/components/form/timezone-picker/src/timezone-picker.vue.d.ts +42 -42
- package/vue3/src/components/form/transfer/hooks/props-define.d.ts +0 -1
- package/vue3/src/components/form/transfer/transfer.vue.d.ts +0 -1
- package/vue3/src/components/icons/icons/effect/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/file/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/id-card/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/id-card-filled/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/lang/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/link/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/menu-expand/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/menu-fold-up/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/platform/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/platform-filled/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/statistics-filled/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/upload-three/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/user/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/user-filled/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/video/index.d.ts +6 -0
- package/vue3/src/components/icons/icons/video-filled/index.d.ts +6 -0
- package/vue3/src/components/icons/map.d.ts +16 -0
- package/vue3/src/components/info-card/index.d.ts +181 -2
- package/{vue2/src/components/info-card → vue3/src/components/info-card/src}/info-card.vue.d.ts +11 -1
- package/vue3/src/components/info-card/{props-define.d.ts → src/props-define.d.ts} +18 -1
- package/vue3/src/components/menu/index.d.ts +156 -0
- package/vue3/src/components/menu/src/hooks/use-menu-item.d.ts +29 -0
- package/vue3/src/components/menu/src/hooks/use-menu.d.ts +14 -0
- package/vue3/src/components/menu/src/hooks/use-sub-menu.d.ts +23 -0
- package/vue3/src/components/menu/src/menu-divider.vue.d.ts +2 -0
- package/vue3/src/components/menu/src/menu-item-content.vue.d.ts +2 -0
- package/vue3/src/components/menu/src/menu-item.vue.d.ts +14 -0
- package/vue3/src/components/menu/src/menu.vue.d.ts +52 -0
- package/vue3/src/components/menu/src/props-define.d.ts +114 -0
- package/vue3/src/components/menu/src/sub-menu-popper.vue.d.ts +19 -0
- package/vue3/src/components/menu/src/sub-menu.vue.d.ts +32 -0
- package/vue3/src/components/message-box/_component/message-box-element.vue.d.ts +1 -1
- package/vue3/src/components/message-box/_component/use-message-box-element.d.ts +13 -9
- package/vue3/src/components/pagination/use-pagination.d.ts +3 -3
- package/vue3/src/components/popconfirm/index.d.ts +20 -0
- package/vue3/src/components/popconfirm/src/popconfirm.vue.d.ts +20 -0
- package/vue3/src/components/popconfirm/src/props-define.d.ts +3 -0
- package/vue3/src/components/popover/index.d.ts +20 -0
- package/vue3/src/components/popover/src/popover.vue.d.ts +7 -0
- package/vue3/src/components/popover/src/props-define.d.ts +3 -0
- package/vue3/src/components/popup/index.d.ts +13 -6
- package/vue3/src/components/popup/src/hooks/popup-props.d.ts +6 -4
- package/vue3/src/components/popup/src/hooks/use-popup-provide.d.ts +9 -0
- package/vue3/src/components/popup/src/popup.vue.d.ts +4 -2
- package/vue3/src/components/popup/src/types.d.ts +3 -0
- package/vue3/src/components/slider/index.d.ts +8 -1
- package/vue3/src/components/slider/src/props-define.d.ts +7 -0
- package/vue3/src/components/slider/src/slider.vue.d.ts +8 -1
- package/vue3/src/components/table/index.d.ts +84 -12
- package/vue3/src/components/table/src/components/table-body-cell/body-cell-expand.vue.d.ts +2 -0
- package/vue3/src/components/table/src/components/table-body-row/table-body-row-expand.vue.d.ts +33 -0
- package/vue3/src/components/table/src/components/table-body-row/table-body-row.vue.d.ts +11 -0
- package/vue3/src/components/table/src/components/table-body-row/use-table-body-row.d.ts +8 -0
- package/vue3/src/components/table/src/hooks/props-define.d.ts +58 -2
- package/vue3/src/components/table/src/hooks/use-table/use-column-computed.d.ts +14 -2
- package/vue3/src/components/table/src/hooks/use-table/use-column-list.d.ts +28 -4
- package/vue3/src/components/table/src/hooks/use-table/use-table-footer.d.ts +7 -0
- package/vue3/src/components/table/src/hooks/use-table/use-table-render-data.d.ts +2 -0
- package/vue3/src/components/table/src/hooks/use-table/use-table.d.ts +44 -7
- package/vue3/src/components/table/src/hooks/use-table-column/use-column-children.d.ts +14 -2
- package/vue3/src/components/table/src/hooks/use-table-column/use-column-expand.d.ts +19 -0
- package/vue3/src/components/table/src/hooks/use-table-column/use-table-column.d.ts +2 -1
- package/vue3/src/components/table/src/table-column.vue.d.ts +13 -4
- package/vue3/src/components/table/src/table.vue.d.ts +16 -0
- package/vue3/src/components/table/src/types/index.d.ts +1 -1
- package/vue3/src/components/tooltip/index.d.ts +20 -0
- package/vue3/src/components/tooltip/src/props-define.d.ts +7 -0
- package/vue3/src/components/tooltip/src/tooltip.vue.d.ts +7 -0
- package/vue3/src/hooks/business/use-skin-color/utils.d.ts +1 -1
- package/vue3/src/hooks/exports.d.ts +1 -0
- package/vue3/src/hooks/vue/use-render-slots/index.d.ts +5 -3
- package/vue3/src/lang/internal/en.json.d.ts +28 -6
- package/vue3/src/lang/internal/index.d.ts +22 -0
- package/vue3/src/lang/internal/ja.json.d.ts +29 -7
- package/vue3/src/lang/internal/ko.json.d.ts +29 -7
- package/vue3/src/lang/internal/ru.json.d.ts +29 -7
- package/vue3/src/lang/internal/zh-CN.json.d.ts +27 -5
- package/vue3/src/lang/internal/zh-TW.json.d.ts +28 -6
- package/vue3/src/vue-utils/index.d.ts +1 -0
- package/vue2/src/components/form/index.d.ts +0 -18
- package/vue3/src/components/form/index.d.ts +0 -18
|
@@ -1,2 +1,181 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export declare const PwcInfoCard: import('../../vue-utils/install-utils').SFCInstall<import('vue/types/v3-component-public-instance').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
|
|
2
|
+
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
3
|
+
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
imageHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
7
|
+
default: number;
|
|
8
|
+
};
|
|
9
|
+
imageRadius: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
name: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
13
|
+
description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
14
|
+
tags: import('vue-types').VueTypeValidableDef<import('./src/props-define').InfoCardTagItem[], import('vue-types/dist/types').ValidatorFunction<import('./src/props-define').InfoCardTagItem[]>> & {
|
|
15
|
+
default: () => import('./src/props-define').InfoCardTagItem[];
|
|
16
|
+
};
|
|
17
|
+
idValue: import('vue-types').VueTypeDef<string | number | boolean> & {
|
|
18
|
+
default: string | number | boolean;
|
|
19
|
+
};
|
|
20
|
+
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}>>, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
28
|
+
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
imageHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
32
|
+
default: number;
|
|
33
|
+
};
|
|
34
|
+
imageRadius: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
name: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
38
|
+
description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
39
|
+
tags: import('vue-types').VueTypeValidableDef<import('./src/props-define').InfoCardTagItem[], import('vue-types/dist/types').ValidatorFunction<import('./src/props-define').InfoCardTagItem[]>> & {
|
|
40
|
+
default: () => import('./src/props-define').InfoCardTagItem[];
|
|
41
|
+
};
|
|
42
|
+
idValue: import('vue-types').VueTypeDef<string | number | boolean> & {
|
|
43
|
+
default: string | number | boolean;
|
|
44
|
+
};
|
|
45
|
+
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
}>>, {
|
|
52
|
+
"click-info": (arg?: void | undefined) => void;
|
|
53
|
+
}, {
|
|
54
|
+
tags: import('./src/props-define').InfoCardTagItem[];
|
|
55
|
+
imageWidth: number;
|
|
56
|
+
imageHeight: number;
|
|
57
|
+
imageRadius: string;
|
|
58
|
+
idValue: string | number | boolean;
|
|
59
|
+
idLabel: string;
|
|
60
|
+
triggerClick: boolean;
|
|
61
|
+
}, true, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
62
|
+
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
63
|
+
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
imageHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
69
|
+
imageRadius: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
name: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
73
|
+
description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
74
|
+
tags: import('vue-types').VueTypeValidableDef<import('./src/props-define').InfoCardTagItem[], import('vue-types/dist/types').ValidatorFunction<import('./src/props-define').InfoCardTagItem[]>> & {
|
|
75
|
+
default: () => import('./src/props-define').InfoCardTagItem[];
|
|
76
|
+
};
|
|
77
|
+
idValue: import('vue-types').VueTypeDef<string | number | boolean> & {
|
|
78
|
+
default: string | number | boolean;
|
|
79
|
+
};
|
|
80
|
+
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
}>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
|
|
87
|
+
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
88
|
+
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
89
|
+
default: number;
|
|
90
|
+
};
|
|
91
|
+
imageHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
imageRadius: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
name: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
98
|
+
description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
99
|
+
tags: import('vue-types').VueTypeValidableDef<import('./src/props-define').InfoCardTagItem[], import('vue-types/dist/types').ValidatorFunction<import('./src/props-define').InfoCardTagItem[]>> & {
|
|
100
|
+
default: () => import('./src/props-define').InfoCardTagItem[];
|
|
101
|
+
};
|
|
102
|
+
idValue: import('vue-types').VueTypeDef<string | number | boolean> & {
|
|
103
|
+
default: string | number | boolean;
|
|
104
|
+
};
|
|
105
|
+
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
}>>> & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
112
|
+
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
113
|
+
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
imageHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
117
|
+
default: number;
|
|
118
|
+
};
|
|
119
|
+
imageRadius: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
name: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
123
|
+
description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
124
|
+
tags: import('vue-types').VueTypeValidableDef<import('./src/props-define').InfoCardTagItem[], import('vue-types/dist/types').ValidatorFunction<import('./src/props-define').InfoCardTagItem[]>> & {
|
|
125
|
+
default: () => import('./src/props-define').InfoCardTagItem[];
|
|
126
|
+
};
|
|
127
|
+
idValue: import('vue-types').VueTypeDef<string | number | boolean> & {
|
|
128
|
+
default: string | number | boolean;
|
|
129
|
+
};
|
|
130
|
+
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
134
|
+
default: boolean;
|
|
135
|
+
};
|
|
136
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
137
|
+
"click-info": (arg?: void | undefined) => void;
|
|
138
|
+
}, string, {
|
|
139
|
+
tags: import('./src/props-define').InfoCardTagItem[];
|
|
140
|
+
imageWidth: number;
|
|
141
|
+
imageHeight: number;
|
|
142
|
+
imageRadius: string;
|
|
143
|
+
idValue: string | number | boolean;
|
|
144
|
+
idLabel: string;
|
|
145
|
+
triggerClick: boolean;
|
|
146
|
+
}> & {
|
|
147
|
+
props: {
|
|
148
|
+
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
149
|
+
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
imageHeight: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
153
|
+
default: number;
|
|
154
|
+
};
|
|
155
|
+
imageRadius: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
name: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
159
|
+
description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
160
|
+
tags: import('vue-types').VueTypeValidableDef<import('./src/props-define').InfoCardTagItem[], import('vue-types/dist/types').ValidatorFunction<import('./src/props-define').InfoCardTagItem[]>> & {
|
|
161
|
+
default: () => import('./src/props-define').InfoCardTagItem[];
|
|
162
|
+
};
|
|
163
|
+
idValue: import('vue-types').VueTypeDef<string | number | boolean> & {
|
|
164
|
+
default: string | number | boolean;
|
|
165
|
+
};
|
|
166
|
+
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
170
|
+
default: boolean;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
} & (new () => {
|
|
174
|
+
$scopedSlots: {
|
|
175
|
+
image?(_: {}): any;
|
|
176
|
+
'image-overlay'?(_: {}): any;
|
|
177
|
+
name?(_: {}): any;
|
|
178
|
+
description?(_: {}): any;
|
|
179
|
+
};
|
|
180
|
+
}), import('../../vue-utils/install-utils').InstallOptions>;
|
|
181
|
+
export * from './src/props-define';
|
package/{vue3/src/components/info-card → vue2/src/components/info-card/src}/info-card.vue.d.ts
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
attrs: Partial<{}>;
|
|
3
3
|
slots: {
|
|
4
|
+
image?(_: {}): any;
|
|
4
5
|
'image-overlay'?(_: {}): any;
|
|
5
6
|
name?(_: {}): any;
|
|
6
7
|
description?(_: {}): any;
|
|
@@ -31,7 +32,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
31
32
|
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
32
33
|
default: string;
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
|
+
"click-info": (arg?: void | undefined) => void;
|
|
40
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
35
41
|
image: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
36
42
|
imageWidth: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>> & {
|
|
37
43
|
default: number;
|
|
@@ -53,6 +59,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
53
59
|
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
54
60
|
default: string;
|
|
55
61
|
};
|
|
62
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
56
65
|
}>>, {
|
|
57
66
|
tags: import('./props-define').InfoCardTagItem[];
|
|
58
67
|
imageWidth: number;
|
|
@@ -60,6 +69,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
60
69
|
imageRadius: string;
|
|
61
70
|
idValue: string | number | boolean;
|
|
62
71
|
idLabel: string;
|
|
72
|
+
triggerClick: boolean;
|
|
63
73
|
}>;
|
|
64
74
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
65
75
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TagType } from '
|
|
1
|
+
import { TagType } from '../../tag';
|
|
2
2
|
export interface InfoCardTagItem {
|
|
3
3
|
/**
|
|
4
4
|
* 标签类型
|
|
@@ -63,8 +63,25 @@ export declare const infoCardProps: () => {
|
|
|
63
63
|
idLabel: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
|
|
64
64
|
default: string;
|
|
65
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* 触发点击
|
|
68
|
+
* @default false
|
|
69
|
+
*/
|
|
70
|
+
triggerClick: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const infoCardEmits: () => {
|
|
75
|
+
/**
|
|
76
|
+
* 点击信息,仅传入 `triggerClick` 时才触发
|
|
77
|
+
*/
|
|
78
|
+
'click-info': import('../../../vue-utils').EmitFuncType<void>;
|
|
66
79
|
};
|
|
67
80
|
export interface InfoCardSlots {
|
|
81
|
+
/**
|
|
82
|
+
* 图片插槽
|
|
83
|
+
*/
|
|
84
|
+
'image': void;
|
|
68
85
|
/**
|
|
69
86
|
* 图片覆盖层插槽
|
|
70
87
|
*/
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export declare const PwcMenu: import('../../vue-utils/install-utils').SFCInstall<import('vue/types/v3-component-public-instance').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
|
|
2
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
3
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
4
|
+
default: "vertical" | "horizontal";
|
|
5
|
+
};
|
|
6
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
10
|
+
default: "light" | "dark";
|
|
11
|
+
};
|
|
12
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>>, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
17
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
18
|
+
default: "vertical" | "horizontal";
|
|
19
|
+
};
|
|
20
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
24
|
+
default: "light" | "dark";
|
|
25
|
+
};
|
|
26
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
[x: string]: (...args: any[]) => void;
|
|
31
|
+
}, {
|
|
32
|
+
effect: "light" | "dark";
|
|
33
|
+
mode: "vertical" | "horizontal";
|
|
34
|
+
collapsed: boolean;
|
|
35
|
+
forceExpand: boolean;
|
|
36
|
+
}, true, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
37
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
38
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
39
|
+
default: "vertical" | "horizontal";
|
|
40
|
+
};
|
|
41
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
45
|
+
default: "light" | "dark";
|
|
46
|
+
};
|
|
47
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
|
|
51
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
52
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
53
|
+
default: "vertical" | "horizontal";
|
|
54
|
+
};
|
|
55
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
59
|
+
default: "light" | "dark";
|
|
60
|
+
};
|
|
61
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
}>>> & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
65
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
66
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
67
|
+
default: "vertical" | "horizontal";
|
|
68
|
+
};
|
|
69
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
73
|
+
default: "light" | "dark";
|
|
74
|
+
};
|
|
75
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
79
|
+
[x: string]: (...args: any[]) => void;
|
|
80
|
+
}, string, {
|
|
81
|
+
effect: "light" | "dark";
|
|
82
|
+
mode: "vertical" | "horizontal";
|
|
83
|
+
collapsed: boolean;
|
|
84
|
+
forceExpand: boolean;
|
|
85
|
+
}> & {
|
|
86
|
+
props: {
|
|
87
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
88
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
89
|
+
default: "vertical" | "horizontal";
|
|
90
|
+
};
|
|
91
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
95
|
+
default: "light" | "dark";
|
|
96
|
+
};
|
|
97
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
} & (new () => {
|
|
102
|
+
$scopedSlots: {
|
|
103
|
+
default?(_: {}): any;
|
|
104
|
+
};
|
|
105
|
+
}), import('../../vue-utils/install-utils').InstallOptions>;
|
|
106
|
+
export declare const PwcSubMenu: import('../../vue-utils/install-utils').SFCInstall<import('vue/types/v3-component-public-instance').ComponentPublicInstanceConstructor<import('vue/types/v3-component-public-instance').Vue3Instance<{}, Readonly<import('vue').ExtractPropTypes<{
|
|
107
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
108
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
109
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
110
|
+
}>>, Readonly<import('vue').ExtractPropTypes<{
|
|
111
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
112
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
113
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
114
|
+
}>>, {}, {}, true, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import('vue').ExtractPropTypes<{
|
|
115
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
116
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
117
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
118
|
+
}>>> & import('vue').ShallowUnwrapRef<{}> & import('vue/types/v3-component-options').ExtractComputedReturns<{}> & import('vue').ComponentCustomProperties & Readonly<import('vue').ExtractPropTypes<{
|
|
119
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
120
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
121
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
122
|
+
}>>> & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
123
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
124
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
125
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
126
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}> & {
|
|
127
|
+
props: {
|
|
128
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
129
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
130
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
131
|
+
};
|
|
132
|
+
} & (new () => {
|
|
133
|
+
$scopedSlots: {
|
|
134
|
+
icon?(_: {
|
|
135
|
+
isActive: boolean;
|
|
136
|
+
}): any;
|
|
137
|
+
title?(_: {}): any;
|
|
138
|
+
default?(_: {}): any;
|
|
139
|
+
default?(_: {}): any;
|
|
140
|
+
};
|
|
141
|
+
}), import('../../vue-utils/install-utils').InstallOptions>;
|
|
142
|
+
export declare const PwcMenuItem: import('../../vue-utils/install-utils').SFCInstall<import('vue').DefineComponent<{
|
|
143
|
+
index: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
144
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
145
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
146
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
147
|
+
to: import('vue-types').VueTypeDef<string | import('./src/props-define').MenuRouterLocation>;
|
|
148
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
149
|
+
index: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
150
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
151
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
152
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
153
|
+
to: import('vue-types').VueTypeDef<string | import('./src/props-define').MenuRouterLocation>;
|
|
154
|
+
}>>, {}>, import('../../vue-utils/install-utils').InstallOptions>;
|
|
155
|
+
export declare const PwcMenuDivider: import('../../vue-utils/install-utils').SFCInstall<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{}>>, {}>, import('../../vue-utils/install-utils').InstallOptions>;
|
|
156
|
+
export * from './src/props-define';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { UseRenderSlotsReturn } from '../../../../hooks/vue/use-render-slots';
|
|
2
|
+
import { VueProps } from '../../../../vue-utils';
|
|
3
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
4
|
+
import { menuItemProps, MenuItemSlots } from '../props-define';
|
|
5
|
+
export interface MenuItemInstance {
|
|
6
|
+
/**
|
|
7
|
+
* 获取是否激活
|
|
8
|
+
*/
|
|
9
|
+
getIsActive: () => boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface MenuItemInjectData {
|
|
12
|
+
menuItemProps: VueProps<typeof menuItemProps>;
|
|
13
|
+
/** 是否激活 */
|
|
14
|
+
isActive: ComputedRef<boolean>;
|
|
15
|
+
onClickItem: () => void;
|
|
16
|
+
menuItemSlotRes: UseRenderSlotsReturn<MenuItemSlots>;
|
|
17
|
+
}
|
|
18
|
+
export declare const MENU_ITEM_INJECT_KEY: InjectionKey<MenuItemInjectData>;
|
|
19
|
+
interface RouterLinkSlotData {
|
|
20
|
+
href: string;
|
|
21
|
+
isActive: boolean;
|
|
22
|
+
isExactActive: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const useMenuItem: (options: {
|
|
25
|
+
props: VueProps<typeof menuItemProps>;
|
|
26
|
+
}) => {
|
|
27
|
+
receiveRouterSlotData: (slotData: RouterLinkSlotData) => {};
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VueProps } from '../../../../vue-utils';
|
|
2
|
+
import { menuProps } from '../props-define';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
export interface MenuInjectData {
|
|
5
|
+
menuProps: VueProps<typeof menuProps>;
|
|
6
|
+
modelValue: ComputedRef<string | undefined>;
|
|
7
|
+
updateModelValue: (value: string | undefined) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const useMenu: (options: {
|
|
10
|
+
props: VueProps<typeof menuProps>;
|
|
11
|
+
}) => {
|
|
12
|
+
menuClass: ComputedRef<string[]>;
|
|
13
|
+
};
|
|
14
|
+
export declare const useMenuInject: () => MenuInjectData;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { VueProps } from '../../../../vue-utils';
|
|
2
|
+
import { subMenuProps } from '../props-define';
|
|
3
|
+
import { InjectionKey, Ref } from 'vue';
|
|
4
|
+
import { MenuItemInstance } from './use-menu-item';
|
|
5
|
+
export interface SubMenuInjectData {
|
|
6
|
+
menuItemList: Ref<MenuItemInstance[]>;
|
|
7
|
+
contentRef: Ref<HTMLDivElement | undefined>;
|
|
8
|
+
}
|
|
9
|
+
export interface SubMenuPopperInjectData {
|
|
10
|
+
}
|
|
11
|
+
export declare const SUB_MENU_POPPER_INJECT_KEY: InjectionKey<SubMenuPopperInjectData>;
|
|
12
|
+
export declare const useSubMenu: (options: {
|
|
13
|
+
props: VueProps<typeof subMenuProps>;
|
|
14
|
+
}) => {
|
|
15
|
+
isActive: import('vue').ComputedRef<boolean>;
|
|
16
|
+
isExpand: Ref<boolean>;
|
|
17
|
+
toggleExpand: () => void;
|
|
18
|
+
subMenuIcon: import('vue').ComputedRef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption | undefined>;
|
|
19
|
+
onClickSubMenu: () => void;
|
|
20
|
+
contentRef: Ref<HTMLDivElement | undefined>;
|
|
21
|
+
};
|
|
22
|
+
export declare const useSubMenuPopperInject: () => SubMenuPopperInjectData | undefined;
|
|
23
|
+
export declare const useSubMenuInject: (menuItemInstance?: MenuItemInstance) => SubMenuInjectData | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
index: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
3
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
4
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
5
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
6
|
+
to: import('vue-types').VueTypeDef<string | import('./props-define').MenuRouterLocation>;
|
|
7
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
index: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
9
|
+
title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
10
|
+
icon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
11
|
+
activeIcon: import('vue-types').VueTypeValidableDef<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption, import('vue-types/dist/types').ValidatorFunction<import('@polyv/icons-vue-middle/icon-builder').IconComponentOption>>;
|
|
12
|
+
to: import('vue-types').VueTypeDef<string | import('./props-define').MenuRouterLocation>;
|
|
13
|
+
}>>, {}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: HTMLDivElement;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import('vue').DefineComponent<{
|
|
11
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
12
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
13
|
+
default: "vertical" | "horizontal";
|
|
14
|
+
};
|
|
15
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
19
|
+
default: "light" | "dark";
|
|
20
|
+
};
|
|
21
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
+
[x: string]: (...args: any[]) => void;
|
|
26
|
+
}, string, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
"v-model-key": import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
|
|
28
|
+
mode: import('vue-types').VueTypeDef<"vertical" | "horizontal"> & {
|
|
29
|
+
default: "vertical" | "horizontal";
|
|
30
|
+
};
|
|
31
|
+
collapsed: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
effect: import('vue-types').VueTypeDef<"light" | "dark"> & {
|
|
35
|
+
default: "light" | "dark";
|
|
36
|
+
};
|
|
37
|
+
forceExpand: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
}>>, {
|
|
41
|
+
effect: "light" | "dark";
|
|
42
|
+
mode: "vertical" | "horizontal";
|
|
43
|
+
collapsed: boolean;
|
|
44
|
+
forceExpand: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
47
|
+
export default _default;
|
|
48
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
49
|
+
new (): {
|
|
50
|
+
$scopedSlots: S;
|
|
51
|
+
};
|
|
52
|
+
};
|