@qynpm/ui 1.0.44 → 1.0.46
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/README.md +9 -2
- package/dist/index.cjs +20 -13
- package/dist/index.mjs +268 -102
- package/dist/qy-action-bar/index.cjs +3 -1
- package/dist/qy-action-bar/index.mjs +7 -2
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +1 -1
- package/dist/qy-button/index.cjs +1 -1
- package/dist/qy-button/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +1 -1
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +1 -1
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +3 -2
- package/dist/qy-dialog/index.mjs +7 -5
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +1 -1
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +3 -1
- package/dist/qy-form-section/index.mjs +7 -2
- package/dist/qy-fullscreen/index.cjs +1 -1
- package/dist/qy-fullscreen/index.mjs +1 -1
- package/dist/qy-icon/index.cjs +1 -1
- package/dist/qy-icon/index.mjs +2 -2
- package/dist/qy-icon-picker/index.cjs +1 -1
- package/dist/qy-icon-picker/index.mjs +1 -1
- package/dist/qy-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +2 -2
- package/dist/qy-image-upload/index.cjs +3 -1
- package/dist/qy-image-upload/index.mjs +7 -2
- package/dist/qy-input/index.cjs +1 -1
- package/dist/qy-input/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +151 -5
- package/dist/qy-legacy-selection-dialog/index.cjs +8 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +12 -2
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-pagination/index.cjs +1 -1
- package/dist/qy-pagination/index.mjs +1 -1
- package/dist/qy-popconfirm/index.cjs +1 -1
- package/dist/qy-popconfirm/index.mjs +1 -1
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +1 -1
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +4 -1
- package/dist/qy-record-quote-search/index.mjs +8 -2
- package/dist/qy-remark-image/index.cjs +3 -1
- package/dist/qy-remark-image/index.mjs +11 -2
- package/dist/qy-remote-select/index.cjs +3 -1
- package/dist/qy-remote-select/index.mjs +7 -2
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +1 -1
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +3 -1
- package/dist/qy-search-input/index.mjs +7 -2
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +7 -1
- package/dist/qy-selection-dialog/index.mjs +11 -2
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tabs/index.cjs +1 -1
- package/dist/qy-tabs/index.mjs +1 -1
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-tooltip/index.cjs +1 -1
- package/dist/qy-tooltip/index.mjs +1 -1
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/index-AvNvmJe5.cjs +1 -0
- package/dist/shared/{index-DvFMgAcu.mjs → index-B0CTzdRW.mjs} +1 -1
- package/dist/shared/index-B1J7PQMl.mjs +79 -0
- package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
- package/dist/shared/{index-Co84fsS5.mjs → index-B7j9BtSm.mjs} +88 -80
- package/dist/shared/{index-CiE6qJCJ.mjs → index-BAOV5iYx.mjs} +151 -143
- package/dist/shared/index-BN4A-O6P.mjs +727 -0
- package/dist/shared/index-BR7tIt2k.mjs +211 -0
- package/dist/shared/index-BaRw7pWi.mjs +156 -0
- package/dist/shared/index-BgAP_K2E.cjs +1 -0
- package/dist/shared/index-Blgz8PJc.cjs +1 -0
- package/dist/shared/index-BqzKToOL.cjs +1 -0
- package/dist/shared/{index-BNssRW4d.mjs → index-BuVrLl5B.mjs} +13 -13
- package/dist/shared/index-Bv1DrJ32.mjs +71 -0
- package/dist/shared/index-Bz9WjKdL.cjs +1 -0
- package/dist/shared/{index-BjqJCq-6.mjs → index-Bzr2RHi5.mjs} +3 -3
- package/dist/shared/index-C50jpQ11.mjs +295 -0
- package/dist/shared/index-C6G9eVku.cjs +1 -0
- package/dist/shared/index-CB0v25oB.cjs +1 -0
- package/dist/shared/{index-gMrQlV5n.cjs → index-CIXJwYI-.cjs} +1 -1
- package/dist/shared/index-CKkanVur.cjs +1 -0
- package/dist/shared/index-CLvL8LAM.cjs +1 -0
- package/dist/shared/index-CN2mgT5V.cjs +1 -0
- package/dist/shared/{index-DNnWRAFl.mjs → index-CW4s627w.mjs} +1 -1
- package/dist/shared/{index-8Iwma3ls.mjs → index-CXOCZlps.mjs} +2 -2
- package/dist/shared/{index-CUlhX6fW.cjs → index-CXnL-0Kp.cjs} +1 -1
- package/dist/shared/index-CZs0V4ze.cjs +1 -0
- package/dist/shared/index-Cqr-L0yd.mjs +285 -0
- package/dist/shared/index-Cu6yAwdj.mjs +124 -0
- package/dist/shared/index-CxTyKMEH.cjs +1 -0
- package/dist/shared/index-D5HS8M1P.cjs +1 -0
- package/dist/shared/index-D6QwZtYV.mjs +56 -0
- package/dist/shared/index-DCsun70c.cjs +1 -0
- package/dist/shared/{index-BweLwi2_.cjs → index-DEzFHeJL.cjs} +1 -1
- package/dist/shared/{index-2D5AFexl.mjs → index-DNMRIYkm.mjs} +1 -1
- package/dist/shared/index-DY2IXvwl.cjs +1 -0
- package/dist/shared/{index-C4F8hXzQ.mjs → index-DdGlwebp.mjs} +90 -81
- package/dist/shared/index-DiN5vXXD.cjs +1 -0
- package/dist/shared/{index-Mj7JZt7y.cjs → index-Duq5XZ5w.cjs} +1 -1
- package/dist/shared/index-DwHM9eYc.cjs +1 -0
- package/dist/shared/index-FZ5gl2au.cjs +1 -0
- package/dist/shared/index-PM5yNugz.mjs +573 -0
- package/dist/shared/index-VtM0GmfU.mjs +361 -0
- package/dist/shared/index-ykI9hKtc.mjs +88 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4CNzVpgF.mjs +40 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D3MxDFk1.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-DECgTYqI.mjs} +20 -18
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DW2JKXjA.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DeFEEJk8.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-GUuWAB0o.mjs +238 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-mWNAIcqc.mjs +63 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B4fDeQox.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BLRxKB-e.mjs +413 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Ba6d5zw4.mjs +142 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BzJsAWKD.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs → index.vue_vue_type_style_index_0_lang-C4yXFBV_.cjs} +1 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CFp5MK6j.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVAm3ApY.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs → index.vue_vue_type_style_index_0_lang-CuTyK1Ey.mjs} +3 -3
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CvVl_Y56.mjs +219 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D-p1u8y8.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9T_xdbu.mjs +176 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DGV7FQlw.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-DZOPXZov.mjs} +59 -57
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-KXiTSh4t.mjs} +24 -18
- package/dist/shared/js.cookie-BA-dL3zT.mjs +74 -0
- package/dist/shared/js.cookie-BmJmHEx1.cjs +1 -0
- package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
- package/dist/shared/overlay-stack-eI-yzYU6.mjs +34 -0
- package/dist/shared/{utils-DoyI5oM8.mjs → utils-DpZkMLkb.mjs} +63 -49
- package/dist/shared/utils-DpkN3Zat.cjs +1 -0
- package/index.d.ts +44 -15
- package/package.json +1 -1
- package/qy-action-bar/index.d.ts +16 -4
- package/qy-autocomplete/index.d.ts +43 -2
- package/qy-checkbox/index.d.ts +1 -0
- package/qy-checkbox-group/index.d.ts +1 -0
- package/qy-date-picker/index.d.ts +1 -0
- package/qy-dialog/index.d.ts +4 -0
- package/qy-form-section/index.d.ts +22 -4
- package/qy-image/index.d.ts +1 -0
- package/qy-image-preview/index.d.ts +8 -4
- package/qy-menu-actions/index.d.ts +21 -2
- package/qy-money-input/index.d.ts +1 -0
- package/qy-pagination/index.d.ts +4 -0
- package/qy-popover/index.d.ts +4 -0
- package/qy-radio-group/index.d.ts +1 -0
- package/qy-record-quote-search/index.d.ts +53 -4
- package/qy-remark-image/index.d.ts +48 -4
- package/qy-remote-select/index.d.ts +53 -2
- package/qy-search-input/index.d.ts +66 -4
- package/qy-select/index.d.ts +4 -0
- package/qy-selection-dialog/index.d.ts +63 -2
- package/qy-switch/index.d.ts +1 -0
- package/qy-table-column-settings/index.d.ts +19 -2
- package/qy-tooltip/index.d.ts +5 -0
- package/qy-tree-select/index.d.ts +1 -0
- package/dist/shared/index-5dxbpQb_.cjs +0 -1
- package/dist/shared/index-BEcS8y8g.mjs +0 -68
- package/dist/shared/index-BSTMCPDj.mjs +0 -72
- package/dist/shared/index-Bh9hxVFh.mjs +0 -766
- package/dist/shared/index-CGq7Q_hV.mjs +0 -119
- package/dist/shared/index-CVYNG8Fc.cjs +0 -1
- package/dist/shared/index-CmgTSaFS.cjs +0 -1
- package/dist/shared/index-CnVhquq5.cjs +0 -1
- package/dist/shared/index-D27mwR57.cjs +0 -1
- package/dist/shared/index-DKw-seoh.cjs +0 -1
- package/dist/shared/index-DRugp8x0.cjs +0 -1
- package/dist/shared/index-DTbGlDqr.cjs +0 -1
- package/dist/shared/index-MyDDX-zj.cjs +0 -1
- package/dist/shared/index-afOuq3YX.cjs +0 -1
- package/dist/shared/index-rSrDnOpu.cjs +0 -1
- package/dist/shared/index-rjciSHaR.mjs +0 -2362
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +0 -143
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
- package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
- package/dist/shared/utils-BjEXwY3L.cjs +0 -1
- /package/dist/shared/{index-DiEag4sK.cjs → index-5UAiwqdT.cjs} +0 -0
- /package/dist/shared/{index-B3GsIwhf.mjs → index-BKdw4jD_.mjs} +0 -0
- /package/dist/shared/{index-B25yA5j-.mjs → index-BVaIvVMi.mjs} +0 -0
- /package/dist/shared/{index-HNFq7v-A.cjs → index-Bdlzmh8A.cjs} +0 -0
- /package/dist/shared/{index-Bq9quq2D.cjs → index-BsNtvE6i.cjs} +0 -0
- /package/dist/shared/{index-B3YHS3Aa.mjs → index-CGH2ROZV.mjs} +0 -0
- /package/dist/shared/{index-ByQyMTPg.mjs → index-DvXzDAmi.mjs} +0 -0
- /package/dist/shared/{index-EIFVul2W.cjs → index-O6K0DO_k.cjs} +0 -0
- /package/dist/shared/{index-B3XwO-Lc.mjs → index-QN7-6GpS.mjs} +0 -0
- /package/dist/shared/{index-CVWru9T3.cjs → index-_Bagw0Pj.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs → index.vue_vue_type_script_setup_true_lang-2ZOn9XPM.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs → index.vue_vue_type_script_setup_true_lang-DM0MGPZh.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs → index.vue_vue_type_style_index_0_lang-90f2jQr7.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs → index.vue_vue_type_style_index_0_lang-BNL5vyrU.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs → index.vue_vue_type_style_index_0_lang-BvBAR8A1.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs → index.vue_vue_type_style_index_0_lang-C7L66EnO.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs → index.vue_vue_type_style_index_0_lang-CN3dJjUV.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs → index.vue_vue_type_style_index_0_lang-CNdV3Mnk.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs → index.vue_vue_type_style_index_0_lang-CgScSrRJ.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs → index.vue_vue_type_style_index_0_lang-Clt7QDAK.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs → index.vue_vue_type_style_index_0_lang-CvlRVqcl.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs → index.vue_vue_type_style_index_0_lang-DGt78p3G.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs → index.vue_vue_type_style_index_0_lang-J7wvS2CR.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs → index.vue_vue_type_style_index_0_lang-YEjVWWsy.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-D9DraThL.cjs → index.vue_vue_type_style_index_0_lang-nS-EDK4t.cjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs → index.vue_vue_type_style_index_0_lang-yci929so.cjs} +0 -0
package/qy-dialog/index.d.ts
CHANGED
|
@@ -33,7 +33,11 @@ export interface QyDialogProps {
|
|
|
33
33
|
draggable?: boolean
|
|
34
34
|
lockScroll?: boolean
|
|
35
35
|
top?: string
|
|
36
|
+
alignCenter?: boolean
|
|
37
|
+
appendToBody?: boolean
|
|
38
|
+
appendTo?: string
|
|
36
39
|
size?: 'default' | 'small'
|
|
40
|
+
/** 弹窗层级下限;打开时按当前浮层栈提升。 */
|
|
37
41
|
zIndex?: number
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType } from 'vue'
|
|
2
|
+
export interface QyFormSectionProps {
|
|
3
|
+
title?: string
|
|
4
|
+
description?: string
|
|
5
|
+
tip?: string
|
|
6
|
+
tipType?: 'info' | 'warning' | 'error' | 'success'
|
|
7
|
+
collapsible?: boolean
|
|
8
|
+
defaultExpanded?: boolean
|
|
9
|
+
bordered?: boolean
|
|
10
|
+
background?: 'white' | 'gray' | 'transparent'
|
|
11
|
+
bodyClass?: string
|
|
12
|
+
headerClass?: string
|
|
13
|
+
}
|
|
14
|
+
export type QyFormSectionEmits = { toggle: (expanded: boolean) => void }
|
|
15
|
+
export interface QyFormSectionSlots {
|
|
16
|
+
title?: () => unknown
|
|
17
|
+
description?: () => unknown
|
|
18
|
+
actions?: () => unknown
|
|
19
|
+
tip?: () => unknown
|
|
20
|
+
default?: () => unknown
|
|
21
|
+
}
|
|
22
|
+
declare const QyFormSection: DefineComponent<QyFormSectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyFormSectionEmits, string, PublicProps, Readonly<QyFormSectionProps> & EmitsToProps<QyFormSectionEmits>, {}, SlotsType<QyFormSectionSlots>> & Plugin
|
|
5
23
|
export default QyFormSection
|
package/qy-image/index.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export interface QyImagePreviewProps {
|
|
4
4
|
open?: boolean
|
|
5
5
|
urlList?: string[]
|
|
6
6
|
initialIndex?: number
|
|
7
7
|
hideOnClickModal?: boolean
|
|
8
|
-
}
|
|
9
|
-
|
|
8
|
+
}
|
|
9
|
+
export type QyImagePreviewEmits = {
|
|
10
|
+
'update:open': (open: boolean) => void
|
|
11
|
+
close: () => void
|
|
12
|
+
}
|
|
13
|
+
declare const QyImagePreview: DefineComponent<QyImagePreviewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyImagePreviewEmits> & Plugin
|
|
10
14
|
|
|
11
15
|
export function openQyImagePreview(options: {
|
|
12
16
|
url?: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
|
|
2
2
|
|
|
3
3
|
export type QyMenuActionType =
|
|
4
4
|
| 'default'
|
|
@@ -10,6 +10,11 @@ export type QyMenuActionType =
|
|
|
10
10
|
export interface QyMenuActionContext<Row = Record<string, unknown>> {
|
|
11
11
|
row?: Row
|
|
12
12
|
rowIndex?: number
|
|
13
|
+
column?: unknown
|
|
14
|
+
target?: EventTarget | null
|
|
15
|
+
hide?: () => void
|
|
16
|
+
setLoading?: (status: boolean) => void
|
|
17
|
+
[key: string]: unknown
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export interface QyMenuAction<Row = Record<string, unknown>> {
|
|
@@ -23,7 +28,21 @@ export interface QyMenuAction<Row = Record<string, unknown>> {
|
|
|
23
28
|
meta?: Record<string, unknown>
|
|
24
29
|
}
|
|
25
30
|
|
|
26
|
-
|
|
31
|
+
export interface QyMenuActionsProps {
|
|
32
|
+
actions?: QyMenuAction[]
|
|
33
|
+
row?: Record<string, unknown>
|
|
34
|
+
rowIndex?: number
|
|
35
|
+
context?: QyMenuActionContext
|
|
36
|
+
mode?: 'inline' | 'popover'
|
|
37
|
+
emptyText?: string
|
|
38
|
+
popoverWidth?: number
|
|
39
|
+
confirmMethod?: (action: QyMenuAction, context: QyMenuActionContext) => boolean | Promise<boolean>
|
|
40
|
+
}
|
|
41
|
+
export type QyMenuActionsEmits = {
|
|
42
|
+
action: (action: QyMenuAction, context: QyMenuActionContext) => void
|
|
43
|
+
'confirm-required': (action: QyMenuAction, context: QyMenuActionContext) => void
|
|
44
|
+
}
|
|
45
|
+
declare const QyMenuActions: DefineComponent<QyMenuActionsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyMenuActionsEmits> & Plugin
|
|
27
46
|
|
|
28
47
|
export { QyMenuActions }
|
|
29
48
|
export default QyMenuActions
|
package/qy-pagination/index.d.ts
CHANGED
|
@@ -10,7 +10,11 @@ export interface QyPaginationBinding {
|
|
|
10
10
|
setPageSize(pageSize: number): void | Promise<unknown>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
export type QyPaginationLayoutItem = 'sizes' | 'prev' | 'pager' | 'next' | 'jumper'
|
|
14
|
+
|
|
13
15
|
export interface QyPaginationProps {
|
|
16
|
+
layout?: readonly QyPaginationLayoutItem[]
|
|
17
|
+
pagerCount?: number
|
|
14
18
|
total?: number
|
|
15
19
|
page?: number
|
|
16
20
|
pageSize?: number
|
package/qy-popover/index.d.ts
CHANGED
|
@@ -24,6 +24,10 @@ export type QyPopoverPlacement =
|
|
|
24
24
|
export type QyPopoverEffect = 'light' | 'dark'
|
|
25
25
|
|
|
26
26
|
export interface QyPopoverProps {
|
|
27
|
+
enterable?: boolean
|
|
28
|
+
teleported?: boolean
|
|
29
|
+
appendTo?: string | HTMLElement
|
|
30
|
+
transition?: string
|
|
27
31
|
trigger?: QyPopoverTrigger
|
|
28
32
|
placement?: QyPopoverPlacement
|
|
29
33
|
effect?: QyPopoverEffect
|
|
@@ -1,5 +1,54 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType } from 'vue'
|
|
2
|
+
import type { QySearchSuggestion, QySearchInputTrimMode } from '../qy-search-input'
|
|
3
|
+
export type QyRecordQuoteSearchStatus = 'default' | 'success' | 'warning' | 'error'
|
|
4
|
+
export interface QyRecordQuoteSearchPayload { rawValue: string; code: string; item?: QySearchSuggestion }
|
|
5
|
+
export interface QyRecordQuoteSearchProps {
|
|
6
|
+
modelValue?: string | null
|
|
7
|
+
loading?: boolean
|
|
8
|
+
disabled?: boolean
|
|
9
|
+
placeholder?: string
|
|
10
|
+
buttonText?: string
|
|
11
|
+
autoNormalize?: boolean
|
|
12
|
+
showStatus?: boolean
|
|
13
|
+
status?: QyRecordQuoteSearchStatus
|
|
14
|
+
statusText?: string
|
|
15
|
+
suggestions?: QySearchSuggestion[]
|
|
16
|
+
fetchSuggestions?: ((keyword: string) => Promise<QySearchSuggestion[] | undefined> | QySearchSuggestion[] | undefined) | null
|
|
17
|
+
fetchSuggestionsMethod?: ((query: string, callback: (items: QySearchSuggestion[]) => void) => void) | null
|
|
18
|
+
debounce?: number
|
|
19
|
+
minLength?: number
|
|
20
|
+
searchOnSelect?: boolean
|
|
21
|
+
searchMethod?: ((payload: QyRecordQuoteSearchPayload) => unknown | Promise<unknown>) | null
|
|
22
|
+
extractMethod?: ((value: string) => string) | null
|
|
23
|
+
normalizeMethod?: ((value: string) => string) | null
|
|
24
|
+
label?: string
|
|
25
|
+
description?: string
|
|
26
|
+
trimMode?: QySearchInputTrimMode
|
|
27
|
+
}
|
|
28
|
+
export type QyRecordQuoteSearchEmits = {
|
|
29
|
+
'update:modelValue': (value: string) => void
|
|
30
|
+
search: (payload: QyRecordQuoteSearchPayload) => void
|
|
31
|
+
clear: () => void
|
|
32
|
+
normalize: (payload: Omit<QyRecordQuoteSearchPayload, 'item'>) => void
|
|
33
|
+
enter: (event: KeyboardEvent) => void
|
|
34
|
+
select: (item: QySearchSuggestion) => void
|
|
35
|
+
error: (error: unknown) => void
|
|
36
|
+
success: (result: unknown) => void
|
|
37
|
+
}
|
|
38
|
+
export interface QyRecordQuoteSearchExposed {
|
|
39
|
+
focus(): void
|
|
40
|
+
blur(): void
|
|
41
|
+
select(): void
|
|
42
|
+
clear(): void
|
|
43
|
+
extractQuoteOrderCode(value: string): string
|
|
44
|
+
normalizeQuoteOrderCode(value: string): string
|
|
45
|
+
}
|
|
46
|
+
export interface QyRecordQuoteSearchSlots {
|
|
47
|
+
label?: () => unknown
|
|
48
|
+
prefix?: () => unknown
|
|
49
|
+
suffix?: () => unknown
|
|
50
|
+
item?: (props: { item: QySearchSuggestion; keyword: string }) => unknown
|
|
51
|
+
status?: (props: { status: QyRecordQuoteSearchStatus; statusText: string }) => unknown
|
|
52
|
+
}
|
|
53
|
+
declare const QyRecordQuoteSearch: DefineComponent<QyRecordQuoteSearchProps, QyRecordQuoteSearchExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyRecordQuoteSearchEmits, string, PublicProps, Readonly<QyRecordQuoteSearchProps> & EmitsToProps<QyRecordQuoteSearchEmits>, {}, SlotsType<QyRecordQuoteSearchSlots>> & Plugin
|
|
5
54
|
export default QyRecordQuoteSearch
|
|
@@ -1,5 +1,49 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
|
|
2
|
+
export type QyRemarkImageSelectValue = string | number | boolean
|
|
3
|
+
export interface QyRemarkImageSelectOption {
|
|
4
|
+
label: string
|
|
5
|
+
value: QyRemarkImageSelectValue
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
}
|
|
8
|
+
export interface QyRemarkImageUploadContext {
|
|
9
|
+
file: File
|
|
10
|
+
formData: FormData
|
|
11
|
+
/** Legacy renderer metadata; not a public vendor instance contract. */
|
|
12
|
+
options: unknown
|
|
13
|
+
api: string
|
|
14
|
+
tokenKey: string
|
|
15
|
+
}
|
|
16
|
+
export interface QyRemarkImageProps {
|
|
17
|
+
defaultValue?: string
|
|
18
|
+
defaultImage?: string
|
|
19
|
+
rows?: string | number
|
|
20
|
+
width?: string | number
|
|
21
|
+
autosize?: boolean | Record<string, number>
|
|
22
|
+
disabled?: boolean
|
|
23
|
+
placeholder?: string
|
|
24
|
+
type?: string
|
|
25
|
+
layout?: string
|
|
26
|
+
selectValue?: QyRemarkImageSelectValue
|
|
27
|
+
selectOptions?: QyRemarkImageSelectOption[]
|
|
28
|
+
selectDisabled?: boolean
|
|
29
|
+
api?: string
|
|
30
|
+
tokenKey?: string
|
|
31
|
+
uploadName?: string
|
|
32
|
+
uploadRequest?: (context: QyRemarkImageUploadContext) => unknown | Promise<unknown>
|
|
33
|
+
}
|
|
34
|
+
export type QyRemarkImageEmits = {
|
|
35
|
+
change: (value: string, imageUrl?: string) => void
|
|
36
|
+
'update:selectValue': (value: QyRemarkImageSelectValue) => void
|
|
37
|
+
'select-change': (value: QyRemarkImageSelectValue) => void
|
|
38
|
+
}
|
|
39
|
+
export interface QyRemarkImageExposed {
|
|
40
|
+
deleteImage(): void
|
|
41
|
+
clearContent(): void
|
|
42
|
+
getValue(): { text: string; imageUrl: string; value: string }
|
|
43
|
+
}
|
|
44
|
+
declare const QyRemarkImage: DefineComponent<QyRemarkImageProps, QyRemarkImageExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyRemarkImageEmits> & Plugin
|
|
5
45
|
export default QyRemarkImage
|
|
46
|
+
|
|
47
|
+
export function parseRemarkText(remarkText: string): { imageUrl: string; text: string }
|
|
48
|
+
export function formatRemarkText(text: string): string
|
|
49
|
+
export function parseRemarkWithImage(text: string, imageUrl?: string): string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* QyRemoteSelect 单组件入口类型声明。
|
|
@@ -7,6 +7,57 @@ import type { DefineComponent, Plugin } from 'vue'
|
|
|
7
7
|
* - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
|
|
8
8
|
* - Plugin 用于 app.use(QyRemoteSelect) 时通过 Vue 插件类型校验。
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
export type QyRemoteSelectOption = Record<string, any>
|
|
11
|
+
export type QyRemoteSelectModelValue = string | number | boolean | any[] | null
|
|
12
|
+
export type QyRemoteSelectFetchMethod = (keyword: string) => QyRemoteSelectOption[] | undefined | Promise<QyRemoteSelectOption[] | undefined>
|
|
13
|
+
export interface QyRemoteSelectProps {
|
|
14
|
+
modelValue?: QyRemoteSelectModelValue
|
|
15
|
+
fetchMethod: QyRemoteSelectFetchMethod
|
|
16
|
+
defaultOptions?: QyRemoteSelectOption[]
|
|
17
|
+
labelKey?: string
|
|
18
|
+
valueKey?: string
|
|
19
|
+
disabledKey?: string
|
|
20
|
+
placeholder?: string
|
|
21
|
+
disabled?: boolean
|
|
22
|
+
clearable?: boolean
|
|
23
|
+
multiple?: boolean
|
|
24
|
+
multipleLimit?: number
|
|
25
|
+
validateEvent?: boolean
|
|
26
|
+
collapseTags?: boolean
|
|
27
|
+
collapseTagsTooltip?: boolean
|
|
28
|
+
autoSelectSingle?: boolean
|
|
29
|
+
size?: 'small' | 'default' | 'large'
|
|
30
|
+
teleported?: boolean
|
|
31
|
+
appendTo?: string
|
|
32
|
+
fitInputWidth?: boolean
|
|
33
|
+
popperClass?: string
|
|
34
|
+
debounce?: number
|
|
35
|
+
minLength?: number
|
|
36
|
+
remoteOnFocus?: boolean
|
|
37
|
+
remoteShowSuffix?: boolean
|
|
38
|
+
loading?: boolean
|
|
39
|
+
reserveSelectedOption?: boolean
|
|
40
|
+
allowCreate?: boolean
|
|
41
|
+
commitOnBlur?: boolean
|
|
42
|
+
}
|
|
43
|
+
export type QyRemoteSelectEmits = {
|
|
44
|
+
'update:modelValue': (value: unknown) => void
|
|
45
|
+
change: (value: unknown) => void
|
|
46
|
+
clear: () => void
|
|
47
|
+
'visible-change': (visible: boolean) => void
|
|
48
|
+
focus: (event: FocusEvent) => void
|
|
49
|
+
blur: (event: FocusEvent) => void
|
|
50
|
+
'options-change': (options: QyRemoteSelectOption[]) => void
|
|
51
|
+
'loading-change': (loading: boolean) => void
|
|
52
|
+
error: (error: unknown) => void
|
|
53
|
+
}
|
|
54
|
+
export interface QyRemoteSelectExposed {
|
|
55
|
+
focus(): void
|
|
56
|
+
blur(): void
|
|
57
|
+
clear(): void
|
|
58
|
+
retryFetch(): void
|
|
59
|
+
fetchDefaultOptions(): void
|
|
60
|
+
}
|
|
61
|
+
declare const QyRemoteSelect: DefineComponent<QyRemoteSelectProps, QyRemoteSelectExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyRemoteSelectEmits> & Plugin
|
|
11
62
|
|
|
12
63
|
export default QyRemoteSelect
|
|
@@ -1,5 +1,67 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType } from 'vue'
|
|
2
|
+
export interface QySearchSuggestion {
|
|
3
|
+
label: string
|
|
4
|
+
value: string
|
|
5
|
+
description?: string
|
|
6
|
+
disabled?: boolean
|
|
7
|
+
raw?: any
|
|
8
|
+
}
|
|
9
|
+
export interface QySearchSuggestionGroup { groupLabel: string; items: QySearchSuggestion[] }
|
|
10
|
+
export type QySearchSuggestionInput = QySearchSuggestion | QySearchSuggestionGroup
|
|
11
|
+
export type QySearchInputTrimMode = 'none' | 'blur' | 'change'
|
|
12
|
+
export interface QySearchInputProps {
|
|
13
|
+
modelValue?: string | number | null
|
|
14
|
+
loading?: boolean
|
|
15
|
+
disabled?: boolean
|
|
16
|
+
placeholder?: string
|
|
17
|
+
removeSpace?: boolean
|
|
18
|
+
trimMode?: QySearchInputTrimMode
|
|
19
|
+
clearable?: boolean
|
|
20
|
+
showButton?: boolean
|
|
21
|
+
buttonText?: string
|
|
22
|
+
buttonProps?: Record<string, any>
|
|
23
|
+
suggestions?: QySearchSuggestionInput[]
|
|
24
|
+
fetchSuggestions?: ((keyword: string) => Promise<QySearchSuggestionInput[] | undefined> | QySearchSuggestionInput[] | undefined) | null
|
|
25
|
+
fetchSuggestionsMethod?: ((query: string, callback: (items: QySearchSuggestion[]) => void) => void) | null
|
|
26
|
+
debounce?: number
|
|
27
|
+
minLength?: number
|
|
28
|
+
triggerOnFocus?: boolean
|
|
29
|
+
searchOnEnter?: boolean
|
|
30
|
+
searchOnSelect?: boolean
|
|
31
|
+
highlightKeyword?: boolean
|
|
32
|
+
teleported?: boolean
|
|
33
|
+
appendTo?: string
|
|
34
|
+
popperClass?: string
|
|
35
|
+
fitInputWidth?: boolean
|
|
36
|
+
}
|
|
37
|
+
export type QySearchInputEmits = {
|
|
38
|
+
'update:modelValue': (value: string) => void
|
|
39
|
+
search: (value: string) => void
|
|
40
|
+
clear: () => void
|
|
41
|
+
input: (value: string) => void
|
|
42
|
+
change: (value: string) => void
|
|
43
|
+
focus: (event: FocusEvent) => void
|
|
44
|
+
blur: (event: FocusEvent) => void
|
|
45
|
+
enter: (event: KeyboardEvent) => void
|
|
46
|
+
select: (item: QySearchSuggestion) => void
|
|
47
|
+
'visible-change': (visible: boolean) => void
|
|
48
|
+
'suggestions-change': (items: QySearchSuggestion[]) => void
|
|
49
|
+
error: (error: unknown) => void
|
|
50
|
+
}
|
|
51
|
+
export interface QySearchInputExposed {
|
|
52
|
+
focus(): void
|
|
53
|
+
blur(): void
|
|
54
|
+
select(): void
|
|
55
|
+
clear(): void
|
|
56
|
+
closePanel(): void
|
|
57
|
+
retryFetch(): void
|
|
58
|
+
}
|
|
59
|
+
export interface QySearchInputSlots {
|
|
60
|
+
prefix?: () => unknown
|
|
61
|
+
suffix?: () => unknown
|
|
62
|
+
prepend?: () => unknown
|
|
63
|
+
append?: () => unknown
|
|
64
|
+
item?: (props: { item: QySearchSuggestion; keyword: string }) => unknown
|
|
65
|
+
}
|
|
66
|
+
declare const QySearchInput: DefineComponent<QySearchInputProps, QySearchInputExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QySearchInputEmits, string, PublicProps, Readonly<QySearchInputProps> & EmitsToProps<QySearchInputEmits>, {}, SlotsType<QySearchInputSlots>> & Plugin
|
|
5
67
|
export default QySearchInput
|
package/qy-select/index.d.ts
CHANGED
|
@@ -25,6 +25,10 @@ export interface QySelectProps {
|
|
|
25
25
|
disabled?: boolean
|
|
26
26
|
clearable?: boolean
|
|
27
27
|
filterable?: boolean
|
|
28
|
+
filterMethod?: (query: string) => void
|
|
29
|
+
multipleLimit?: number
|
|
30
|
+
allowCreate?: boolean
|
|
31
|
+
validateEvent?: boolean
|
|
28
32
|
loading?: boolean
|
|
29
33
|
multiple?: boolean
|
|
30
34
|
collapseTags?: boolean
|
|
@@ -1,5 +1,66 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
export type QySelectionRow = Record<string, any>
|
|
4
|
+
export type QySelectionResult = QySelectionRow[] | {
|
|
5
|
+
records?: QySelectionRow[]
|
|
6
|
+
total?: number
|
|
7
|
+
data?: QySelectionRow[] | { records?: QySelectionRow[]; total?: number }
|
|
8
|
+
rows?: QySelectionRow[]
|
|
9
|
+
}
|
|
10
|
+
export interface QySelectionDialogProps {
|
|
11
|
+
modelValue?: QySelectionRow[]
|
|
12
|
+
open?: boolean
|
|
13
|
+
title?: string
|
|
14
|
+
width?: string | number
|
|
15
|
+
fetchMethod?: (query: Record<string, any>) => QySelectionResult | Promise<QySelectionResult>
|
|
16
|
+
query?: (query: Record<string, any>) => QySelectionResult | Promise<QySelectionResult>
|
|
17
|
+
responseFormatter?: (response: any) => QySelectionResult | Promise<QySelectionResult>
|
|
18
|
+
selectionMode?: 'single' | 'multiple' | 'none'
|
|
19
|
+
selection?: 'single' | 'multi' | 'none'
|
|
20
|
+
selected?: QySelectionRow[]
|
|
21
|
+
rowKey?: string
|
|
22
|
+
mainKey?: string
|
|
23
|
+
labelKey?: string
|
|
24
|
+
tagName?: string
|
|
25
|
+
searchKey?: string | null
|
|
26
|
+
queryParams?: Record<string, any>
|
|
27
|
+
category?: any[] | (() => Promise<any> | any) | false
|
|
28
|
+
categoryFormatter?: ((value: any) => any[]) | [string, string]
|
|
29
|
+
categoryOptions?: any[]
|
|
30
|
+
categoryFetchMethod?: (() => Promise<any[]> | any[]) | null
|
|
31
|
+
type?: Array<{ label: string; value: any }> | false
|
|
32
|
+
typeOptions?: Array<{ label: string; value: any }>
|
|
33
|
+
typeSelectionProps?: Record<string, any>
|
|
34
|
+
typeSelectProps?: Record<string, any>
|
|
35
|
+
tableProps?: Record<string, any>
|
|
36
|
+
showSelected?: boolean
|
|
37
|
+
showSearch?: boolean
|
|
38
|
+
showPagination?: boolean
|
|
39
|
+
showCopyPaste?: boolean
|
|
40
|
+
append?: boolean
|
|
41
|
+
showAppend?: boolean
|
|
42
|
+
pageSizes?: number[]
|
|
43
|
+
}
|
|
44
|
+
export type QySelectionDialogEmits = {
|
|
45
|
+
'update:modelValue': (rows: QySelectionRow[]) => void
|
|
46
|
+
'update:open': (open: boolean) => void
|
|
47
|
+
'selection-change': (rows: QySelectionRow[]) => void
|
|
48
|
+
confirm: (rows: QySelectionRow[]) => void
|
|
49
|
+
submit: (payload: { selection: QySelectionRow[]; rows: QySelectionRow[]; query: Record<string, any> }) => void
|
|
50
|
+
cancel: () => void
|
|
51
|
+
close: () => void
|
|
52
|
+
append: () => void
|
|
53
|
+
loaded: (rows: QySelectionRow[]) => void
|
|
54
|
+
error: (error: unknown) => void
|
|
55
|
+
}
|
|
56
|
+
export interface QySelectionDialogExposed {
|
|
57
|
+
search(): Promise<QySelectionResult | undefined>
|
|
58
|
+
handleSearch(): Promise<QySelectionResult | undefined>
|
|
59
|
+
handleQuerySearch(): Promise<QySelectionResult | undefined>
|
|
60
|
+
resetSearch(): Promise<QySelectionResult | undefined>
|
|
61
|
+
getTableData(): QySelectionRow[]
|
|
62
|
+
getSelection(): QySelectionRow[]
|
|
63
|
+
}
|
|
64
|
+
declare const QySelectionDialog: DefineComponent<QySelectionDialogProps, QySelectionDialogExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QySelectionDialogEmits> & Plugin
|
|
4
65
|
|
|
5
66
|
export default QySelectionDialog
|
package/qy-switch/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
1
|
+
import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
|
|
2
2
|
|
|
3
3
|
export type QyColumnFixed = 'left' | 'right' | false
|
|
4
4
|
|
|
@@ -12,7 +12,24 @@ export interface QyTableColumnSetting {
|
|
|
12
12
|
fixed: QyColumnFixed
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
export interface QyTableColumnSettingsProps {
|
|
16
|
+
modelValue: boolean
|
|
17
|
+
settings?: QyTableColumnSetting[]
|
|
18
|
+
defaultSettings?: QyTableColumnSetting[]
|
|
19
|
+
title?: string
|
|
20
|
+
width?: string | number
|
|
21
|
+
showDeleteCache?: boolean
|
|
22
|
+
unconfigurableTypes?: string[]
|
|
23
|
+
}
|
|
24
|
+
export type QyTableColumnSettingsEmits = {
|
|
25
|
+
'update:modelValue': (value: boolean) => void
|
|
26
|
+
confirm: (settings: QyTableColumnSetting[]) => void
|
|
27
|
+
reset: (settings: QyTableColumnSetting[]) => void
|
|
28
|
+
cancel: () => void
|
|
29
|
+
'delete-cache': () => void
|
|
30
|
+
change: (settings: QyTableColumnSetting[]) => void
|
|
31
|
+
}
|
|
32
|
+
declare const QyTableColumnSettings: DefineComponent<QyTableColumnSettingsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyTableColumnSettingsEmits> & Plugin
|
|
16
33
|
|
|
17
34
|
export { QyTableColumnSettings }
|
|
18
35
|
export default QyTableColumnSettings
|
package/qy-tooltip/index.d.ts
CHANGED
|
@@ -21,9 +21,14 @@ export type QyTooltipPlacement =
|
|
|
21
21
|
| 'auto-start'
|
|
22
22
|
| 'auto-end'
|
|
23
23
|
export type QyTooltipEffect = 'light' | 'dark'
|
|
24
|
+
export type QyTooltipTrigger = 'hover' | 'focus' | 'click' | 'contextmenu'
|
|
24
25
|
|
|
25
26
|
export interface QyTooltipProps {
|
|
26
27
|
content?: string
|
|
28
|
+
trigger?: QyTooltipTrigger | QyTooltipTrigger[]
|
|
29
|
+
enterable?: boolean
|
|
30
|
+
teleported?: boolean
|
|
31
|
+
appendTo?: string | HTMLElement
|
|
27
32
|
placement?: QyTooltipPlacement
|
|
28
33
|
effect?: QyTooltipEffect
|
|
29
34
|
disabled?: boolean
|