@qynpm/ui 1.0.40 → 1.0.41
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 +1797 -1797
- package/dist/index.cjs +19 -19
- package/dist/index.mjs +21 -21
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-alert/index.cjs +1 -1
- package/dist/qy-alert/index.mjs +4 -4
- package/dist/qy-aside/index.cjs +1 -1
- package/dist/qy-aside/index.mjs +4 -4
- package/dist/qy-autocomplete/index.cjs +1 -1
- package/dist/qy-autocomplete/index.mjs +3 -3
- package/dist/qy-avatar/index.cjs +1 -1
- package/dist/qy-avatar/index.mjs +1 -1
- package/dist/qy-badge/index.cjs +1 -1
- package/dist/qy-badge/index.mjs +4 -4
- package/dist/qy-button/index.cjs +2 -2
- package/dist/qy-button/index.mjs +2 -2
- package/dist/qy-card/index.cjs +1 -1
- package/dist/qy-card/index.mjs +1 -1
- package/dist/qy-cascader/index.cjs +1 -1
- package/dist/qy-cascader/index.mjs +3 -3
- 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 +4 -4
- package/dist/qy-col/index.cjs +1 -1
- package/dist/qy-col/index.mjs +4 -4
- package/dist/qy-collapse/index.cjs +1 -1
- package/dist/qy-collapse/index.mjs +2 -2
- package/dist/qy-collapse-item/index.cjs +1 -1
- package/dist/qy-collapse-item/index.mjs +5 -5
- package/dist/qy-color-picker/index.cjs +1 -1
- package/dist/qy-color-picker/index.mjs +4 -4
- package/dist/qy-container/index.cjs +1 -1
- package/dist/qy-container/index.mjs +3 -3
- package/dist/qy-date-picker/index.cjs +1 -1
- package/dist/qy-date-picker/index.mjs +1 -1
- package/dist/qy-descriptions/index.cjs +1 -1
- package/dist/qy-descriptions/index.mjs +1 -1
- package/dist/qy-descriptions-item/index.cjs +1 -1
- package/dist/qy-descriptions-item/index.mjs +4 -4
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +4 -4
- package/dist/qy-divider/index.cjs +1 -1
- package/dist/qy-divider/index.mjs +4 -4
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/index.mjs +2 -2
- package/dist/qy-dropdown/index.cjs +2 -2
- package/dist/qy-dropdown/index.mjs +2 -2
- package/dist/qy-empty/index.cjs +1 -1
- package/dist/qy-empty/index.mjs +4 -4
- 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 +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- 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 +2 -2
- package/dist/qy-icon-picker/index.mjs +5 -5
- 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 +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- 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 +2 -2
- package/dist/qy-input-tag/index.cjs +1 -1
- package/dist/qy-input-tag/index.mjs +4 -4
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-link/index.cjs +1 -1
- package/dist/qy-link/index.mjs +5 -5
- package/dist/qy-main/index.cjs +1 -1
- package/dist/qy-main/index.mjs +4 -4
- 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 +4 -4
- 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 +5 -5
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/index.mjs +4 -4
- package/dist/qy-progress/index.cjs +1 -1
- package/dist/qy-progress/index.mjs +3 -3
- 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 +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-result/index.cjs +1 -1
- package/dist/qy-result/index.mjs +4 -4
- package/dist/qy-row/index.cjs +1 -1
- package/dist/qy-row/index.mjs +4 -4
- package/dist/qy-scrollbar/index.cjs +1 -1
- package/dist/qy-scrollbar/index.mjs +3 -3
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-skeleton/index.cjs +1 -1
- package/dist/qy-skeleton/index.mjs +4 -4
- package/dist/qy-skeleton-item/index.cjs +1 -1
- package/dist/qy-skeleton-item/index.mjs +4 -4
- package/dist/qy-statistic/index.cjs +1 -1
- package/dist/qy-statistic/index.mjs +3 -3
- package/dist/qy-step/index.cjs +1 -1
- package/dist/qy-step/index.mjs +5 -5
- package/dist/qy-steps/index.cjs +1 -1
- package/dist/qy-steps/index.mjs +4 -4
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-tab-pane/index.cjs +1 -1
- package/dist/qy-tab-pane/index.mjs +4 -4
- 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 +4 -4
- 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 +4 -4
- package/dist/qy-tree/index.cjs +1 -1
- package/dist/qy-tree/index.mjs +5 -5
- 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/qy-watermark/index.cjs +1 -1
- package/dist/qy-watermark/index.mjs +1 -1
- package/dist/shared/{index-CBhrdEIf.mjs → index-2D5AFexl.mjs} +1 -1
- package/dist/shared/index-8Iwma3ls.mjs +222 -0
- package/dist/shared/index-B25yA5j-.mjs +71 -0
- package/dist/shared/index-B3GsIwhf.mjs +142 -0
- package/dist/shared/index-B3XwO-Lc.mjs +127 -0
- package/dist/shared/index-B3YHS3Aa.mjs +54 -0
- package/dist/shared/index-BEcS8y8g.mjs +68 -0
- package/dist/shared/index-BNssRW4d.mjs +90 -0
- package/dist/shared/index-BSTMCPDj.mjs +72 -0
- package/dist/shared/index-BhvOSOfi.mjs +766 -0
- package/dist/shared/index-BjqJCq-6.mjs +293 -0
- package/dist/shared/index-Bq9quq2D.cjs +1 -0
- package/dist/shared/index-ByQyMTPg.mjs +285 -0
- package/dist/shared/index-CGq7Q_hV.mjs +119 -0
- package/dist/shared/{index-D97QYFZw.cjs → index-CUlhX6fW.cjs} +1 -1
- package/dist/shared/index-CVWru9T3.cjs +1 -0
- package/dist/shared/index-CVYNG8Fc.cjs +1 -0
- package/dist/shared/index-CiE6qJCJ.mjs +377 -0
- package/dist/shared/index-CnVhquq5.cjs +1 -0
- package/dist/shared/index-Co84fsS5.mjs +225 -0
- package/dist/shared/index-D27mwR57.cjs +1 -0
- package/dist/shared/index-DAztNKSp.cjs +1 -0
- package/dist/shared/index-DKw-seoh.cjs +1 -0
- package/dist/shared/index-DRIoLeFE.mjs +162 -0
- package/dist/shared/index-DRugp8x0.cjs +1 -0
- package/dist/shared/index-DTbGlDqr.cjs +1 -0
- package/dist/shared/index-DXZ6Y6wd.mjs +107 -0
- package/dist/shared/index-DiEag4sK.cjs +1 -0
- package/dist/shared/index-DuP-b_eY.cjs +1 -0
- package/dist/shared/index-DvFMgAcu.mjs +149 -0
- package/dist/shared/index-E3zI0Ugj.mjs +2362 -0
- package/dist/shared/index-EIFVul2W.cjs +1 -0
- package/dist/shared/index-HNFq7v-A.cjs +1 -0
- package/dist/shared/index-Mj7JZt7y.cjs +1 -0
- package/dist/shared/index-MyDDX-zj.cjs +1 -0
- package/dist/shared/index-R_hSPemR.cjs +1 -0
- package/dist/shared/index-d76Z3yrB.cjs +1 -0
- package/dist/shared/index-gMrQlV5n.cjs +1 -0
- package/dist/shared/index-rSrDnOpu.cjs +1 -0
- package/dist/shared/index-zo5J-y0C.mjs +157 -0
- package/dist/shared/{index-CCVlab6d.mjs → index.vue_vue_type_script_lang-69zSOotQ.mjs} +10 -11
- package/dist/shared/index.vue_vue_type_script_lang-8AT3-xU-.cjs +1 -0
- package/dist/shared/{index-EPcAlzgc.mjs → index.vue_vue_type_script_lang-BGAdXWIL.mjs} +11 -12
- package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +1 -0
- package/dist/shared/{index-1Vw54aYL.mjs → index.vue_vue_type_script_lang-BaIOvoQn.mjs} +5 -6
- package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-BgapsQjI.cjs +1 -0
- package/dist/shared/{index-BG3XKumS.mjs → index.vue_vue_type_script_lang-Bk0kLg5l.mjs} +8 -9
- package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-BnmY1ndj.mjs +77 -0
- package/dist/shared/index.vue_vue_type_script_lang-By3jd4gw.cjs +1 -0
- package/dist/shared/{index-Se0xx6vl.mjs → index.vue_vue_type_script_lang-C4JHCuXz.mjs} +13 -14
- package/dist/shared/{index-D_Imq4-m.mjs → index.vue_vue_type_script_lang-C9X0V5AK.mjs} +12 -13
- package/dist/shared/index.vue_vue_type_script_lang-CCL57H5c.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CKZUcaZ5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CWnNQBPN.mjs +31 -0
- package/dist/shared/{index-CrlLsoRF.mjs → index.vue_vue_type_script_lang-CZK0hDYa.mjs} +20 -21
- package/dist/shared/index.vue_vue_type_script_lang-CfjfZCT3.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-ChS-3_vl.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +1 -0
- package/dist/shared/{index-BPXJkcM1.mjs → index.vue_vue_type_script_lang-D7b9ABei.mjs} +19 -20
- package/dist/shared/{index-LDtOVxCE.mjs → index.vue_vue_type_script_lang-D7nzeBUR.mjs} +7 -8
- package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +72 -0
- package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +1 -0
- package/dist/shared/{index-TVUj4Yp4.mjs → index.vue_vue_type_script_lang-DOOT2grg.mjs} +10 -11
- package/dist/shared/index.vue_vue_type_script_lang-DRvk4-_O.mjs +43 -0
- package/dist/shared/{index-BQzQcTgt.mjs → index.vue_vue_type_script_lang-Dfq7D3mJ.mjs} +3 -4
- package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +1 -0
- package/dist/shared/{index-B1I7mCIm.mjs → index.vue_vue_type_script_lang-chBiq2cG.mjs} +3 -4
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +43 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +42 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BXnZt9UT.mjs +63 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +62 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BnIolx5s.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-D7BlbHN5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs +106 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +94 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +48 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +61 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-wG7OTsWa.mjs +331 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B6cv-Ra3.mjs +404 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +215 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +67 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +172 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CPxbKjvY.mjs +286 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CU9gg9t5.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs +98 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs +166 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-D9DraThL.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DFAaBzkW.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +68 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs +317 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +128 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs +298 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +1 -0
- package/dist/shared/{index-DZU3jXf9.mjs → index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs} +9 -10
- package/dist/shared/index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs +1 -0
- package/dist/shared/{index-GRwpbz1m.mjs → index.vue_vue_type_style_index_0_lang-gs0YJI91.mjs} +17 -18
- package/dist/shared/index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs +1 -0
- package/index.d.ts +592 -592
- package/package.json +14 -10
- package/qy-action-bar/index.d.ts +5 -5
- package/qy-aside/index.d.ts +47 -47
- package/qy-button/index.d.ts +34 -34
- package/qy-checkbox/index.d.ts +45 -45
- package/qy-checkbox-group/index.d.ts +48 -48
- package/qy-col/index.d.ts +65 -65
- package/qy-color-picker/index.d.ts +36 -36
- package/qy-container/index.d.ts +49 -49
- package/qy-date-picker/index.d.ts +140 -140
- package/qy-dropdown/index.d.ts +40 -40
- package/qy-file-picker/index.d.ts +48 -48
- package/qy-form-section/index.d.ts +5 -5
- package/qy-fullscreen/index.d.ts +72 -72
- package/qy-icon/index.d.ts +99 -99
- package/qy-icon-picker/index.d.ts +56 -56
- package/qy-input/index.d.ts +32 -32
- package/qy-input-number/index.d.ts +15 -15
- package/qy-legacy-selection-dialog/index.d.ts +5 -5
- package/qy-main/index.d.ts +45 -45
- package/qy-popconfirm/index.d.ts +55 -55
- package/qy-popover/index.d.ts +63 -63
- package/qy-radio/index.d.ts +44 -44
- package/qy-radio-group/index.d.ts +60 -60
- package/qy-record-quote-search/index.d.ts +5 -5
- package/qy-remark-image/index.d.ts +5 -5
- package/qy-remote-select/index.d.ts +12 -12
- package/qy-row/index.d.ts +59 -59
- package/qy-search-input/index.d.ts +5 -5
- package/qy-select/index.d.ts +67 -67
- package/qy-selection-dialog/index.d.ts +5 -5
- package/qy-statistic/index.d.ts +61 -61
- package/qy-switch/index.d.ts +46 -46
- package/qy-tag/index.d.ts +44 -44
- package/qy-tooltip/index.d.ts +54 -54
- package/qy-watermark/index.d.ts +72 -72
- package/dist/shared/index-5vWL_IJI.mjs +0 -150
- package/dist/shared/index-7fIb2Tqw.mjs +0 -129
- package/dist/shared/index-9T0p3USM.cjs +0 -1
- package/dist/shared/index-B-zfoMbw.cjs +0 -1
- package/dist/shared/index-B1aU9mew.mjs +0 -77
- package/dist/shared/index-B26-GlFX.cjs +0 -1
- package/dist/shared/index-B63vgrS4.mjs +0 -73
- package/dist/shared/index-B97hTd-h.cjs +0 -1
- package/dist/shared/index-B9zEH5Yq.cjs +0 -1
- package/dist/shared/index-BA_tJgLE.cjs +0 -1
- package/dist/shared/index-BBIPQa5N.mjs +0 -76
- package/dist/shared/index-BCWvMvRL.cjs +0 -1
- package/dist/shared/index-BDJIWxaw.cjs +0 -1
- package/dist/shared/index-BFbAB8UH.mjs +0 -307
- package/dist/shared/index-BHGDbXoK.mjs +0 -82
- package/dist/shared/index-BInkt-Al.cjs +0 -1
- package/dist/shared/index-BKEw_9fh.mjs +0 -2660
- package/dist/shared/index-BNfu2YgX.mjs +0 -47
- package/dist/shared/index-BUSdZ-x8.cjs +0 -1
- package/dist/shared/index-BZDbBD41.cjs +0 -1
- package/dist/shared/index-Bc1ny9GC.cjs +0 -1
- package/dist/shared/index-BcscC86C.mjs +0 -206
- package/dist/shared/index-BiowqiSD.cjs +0 -1
- package/dist/shared/index-Bpl6Jh4H.cjs +0 -1
- package/dist/shared/index-BqojE7aF.cjs +0 -1
- package/dist/shared/index-BrZzYI8x.cjs +0 -1
- package/dist/shared/index-BsXys36-.cjs +0 -1
- package/dist/shared/index-BvmXE8aK.cjs +0 -1
- package/dist/shared/index-Bw3nETeY.cjs +0 -1
- package/dist/shared/index-BxxuaQGJ.cjs +0 -1
- package/dist/shared/index-BxymsnW0.cjs +0 -1
- package/dist/shared/index-BzpgGytE.mjs +0 -52
- package/dist/shared/index-BzzZmppN.mjs +0 -63
- package/dist/shared/index-C0rOcDsc.cjs +0 -1
- package/dist/shared/index-C1hAuubZ.mjs +0 -157
- package/dist/shared/index-C2BQtQPa.mjs +0 -61
- package/dist/shared/index-C62Loq0f.cjs +0 -1
- package/dist/shared/index-C7N8x3DK.mjs +0 -206
- package/dist/shared/index-C8aLbb8l.cjs +0 -1
- package/dist/shared/index-CA279UZp.mjs +0 -87
- package/dist/shared/index-CDjAMIpe.cjs +0 -1
- package/dist/shared/index-CDleTMJj.mjs +0 -395
- package/dist/shared/index-CG4I3nRK.cjs +0 -1
- package/dist/shared/index-CHt1R1WD.cjs +0 -1
- package/dist/shared/index-CZIsLBLq.cjs +0 -1
- package/dist/shared/index-CcEXTVYA.mjs +0 -69
- package/dist/shared/index-CedTjtZr.cjs +0 -1
- package/dist/shared/index-CgXuleV-.mjs +0 -205
- package/dist/shared/index-CkfWS0Ba.cjs +0 -1
- package/dist/shared/index-Cm7k9j8a.cjs +0 -1
- package/dist/shared/index-CmgT_pgc.mjs +0 -154
- package/dist/shared/index-CngdcQWi.cjs +0 -1
- package/dist/shared/index-CqdhLbMe.cjs +0 -1
- package/dist/shared/index-CsI1WBRp.cjs +0 -1
- package/dist/shared/index-CsXA7Qfy.mjs +0 -105
- package/dist/shared/index-CsaDF9d4.mjs +0 -175
- package/dist/shared/index-CvdUJpAu.mjs +0 -365
- package/dist/shared/index-CvfLEIFE.mjs +0 -526
- package/dist/shared/index-CwcD7q4B.mjs +0 -446
- package/dist/shared/index-D0kCG3Ov.mjs +0 -278
- package/dist/shared/index-D1-QYDXi.cjs +0 -1
- package/dist/shared/index-D1BK66mG.cjs +0 -1
- package/dist/shared/index-D3IHte_d.cjs +0 -1
- package/dist/shared/index-D3VO2Ccd.mjs +0 -73
- package/dist/shared/index-D5spJ8nj.cjs +0 -1
- package/dist/shared/index-D7uPizqd.cjs +0 -1
- package/dist/shared/index-D8OJx-hy.mjs +0 -104
- package/dist/shared/index-DAiFZxwY.mjs +0 -51
- package/dist/shared/index-DBz3lz62.mjs +0 -53
- package/dist/shared/index-DCKEecrx.mjs +0 -138
- package/dist/shared/index-DCneRuMf.mjs +0 -78
- package/dist/shared/index-DD-zKgrO.cjs +0 -1
- package/dist/shared/index-DEHvfBYQ.mjs +0 -295
- package/dist/shared/index-DF_Q6c4g.mjs +0 -27
- package/dist/shared/index-DFeV2CL8.cjs +0 -1
- package/dist/shared/index-DIckpqrH.cjs +0 -1
- package/dist/shared/index-DKKMSKqm.cjs +0 -1
- package/dist/shared/index-DPhYSn9g.mjs +0 -130
- package/dist/shared/index-DSq7WIiO.cjs +0 -1
- package/dist/shared/index-DTHRZ-aL.mjs +0 -74
- package/dist/shared/index-DTqCwGN_.cjs +0 -1
- package/dist/shared/index-DVwCIrin.mjs +0 -100
- package/dist/shared/index-DbxSDJ7e.mjs +0 -81
- package/dist/shared/index-Dc4A_1-H.mjs +0 -53
- package/dist/shared/index-Dchy1DNn.mjs +0 -197
- package/dist/shared/index-DdKCUobQ.mjs +0 -311
- package/dist/shared/index-DdX40CzJ.cjs +0 -1
- package/dist/shared/index-DfP6txWq.mjs +0 -198
- package/dist/shared/index-Dh_dh3TS.cjs +0 -1
- package/dist/shared/index-DjRDV62n.mjs +0 -153
- package/dist/shared/index-DpGlBnUl.cjs +0 -1
- package/dist/shared/index-DsDUAk2R.cjs +0 -1
- package/dist/shared/index-DxUzSONj.cjs +0 -1
- package/dist/shared/index-DypZJHmM.cjs +0 -1
- package/dist/shared/index-DzCwEfCQ.cjs +0 -1
- package/dist/shared/index-Gyu5R4Gn.cjs +0 -1
- package/dist/shared/index-IJJI2ylC.mjs +0 -234
- package/dist/shared/index-OaA2R7Ur.mjs +0 -369
- package/dist/shared/index-S2TDFo5d.cjs +0 -1
- package/dist/shared/index-U3c1apvC.cjs +0 -1
- package/dist/shared/index-VExJFRrd.mjs +0 -156
- package/dist/shared/index-Xw2_Py_V.mjs +0 -63
- package/dist/shared/index-ZbSETCxZ.cjs +0 -1
- package/dist/shared/index-ZkHMbIv4.cjs +0 -1
- package/dist/shared/index-aveXATNw.cjs +0 -1
- package/dist/shared/index-byOl9Vtk.cjs +0 -1
- package/dist/shared/index-fiuhurmv.cjs +0 -1
- package/dist/shared/index-pqwrEshN.cjs +0 -1
- package/dist/shared/index-rowlxa3p.mjs +0 -245
- package/dist/shared/index-trf8Dvbk.cjs +0 -1
- package/dist/shared/index-tsfRa5ze.cjs +0 -1
- package/dist/shared/index-uRVIiLjP.mjs +0 -892
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent as x, useAttrs as A, ref as r, computed as i, watch as C, openBlock as b, createBlock as g, unref as N, mergeProps as B, withCtx as P, renderSlot as j, nextTick as w } from "vue";
|
|
2
|
+
import { ElCollapse as E } from "element-plus";
|
|
3
|
+
const O = /* @__PURE__ */ x({
|
|
4
|
+
name: "QyCollapse",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: { default: () => [] },
|
|
9
|
+
accordion: { type: Boolean, default: !1 },
|
|
10
|
+
expandIconPosition: { default: "right" },
|
|
11
|
+
beforeCollapse: {}
|
|
12
|
+
},
|
|
13
|
+
emits: ["update:modelValue", "change"],
|
|
14
|
+
setup(a, { expose: d, emit: u }) {
|
|
15
|
+
const t = a, n = u, m = A(), s = r(), l = r(t.modelValue), f = i(
|
|
16
|
+
() => Object.fromEntries(
|
|
17
|
+
Object.entries(m).filter(
|
|
18
|
+
([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
19
|
+
)
|
|
20
|
+
)
|
|
21
|
+
);
|
|
22
|
+
function c(e) {
|
|
23
|
+
const o = Array.isArray(e) ? e : [e];
|
|
24
|
+
return t.accordion ? o.slice(0, 1) : o;
|
|
25
|
+
}
|
|
26
|
+
C(
|
|
27
|
+
() => t.modelValue,
|
|
28
|
+
(e) => {
|
|
29
|
+
l.value = e;
|
|
30
|
+
},
|
|
31
|
+
{ deep: !0 }
|
|
32
|
+
);
|
|
33
|
+
const p = i(() => c(t.modelValue));
|
|
34
|
+
function h(e) {
|
|
35
|
+
l.value = e, n("update:modelValue", e), w(() => {
|
|
36
|
+
l.value = t.modelValue;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function V(e) {
|
|
40
|
+
n("change", e);
|
|
41
|
+
}
|
|
42
|
+
function v(e) {
|
|
43
|
+
var o;
|
|
44
|
+
(o = s.value) == null || o.setActiveNames(c(e));
|
|
45
|
+
}
|
|
46
|
+
return d({ activeNames: p, setActiveNames: v }), (e, o) => (b(), g(N(E), B({
|
|
47
|
+
ref_key: "collapseRef",
|
|
48
|
+
ref: s
|
|
49
|
+
}, f.value, {
|
|
50
|
+
class: "qy-collapse",
|
|
51
|
+
"model-value": l.value,
|
|
52
|
+
accordion: a.accordion,
|
|
53
|
+
"expand-icon-position": a.expandIconPosition,
|
|
54
|
+
"before-collapse": a.beforeCollapse,
|
|
55
|
+
"onUpdate:modelValue": h,
|
|
56
|
+
onChange: V
|
|
57
|
+
}), {
|
|
58
|
+
default: P(() => [
|
|
59
|
+
j(e.$slots, "default")
|
|
60
|
+
]),
|
|
61
|
+
_: 3
|
|
62
|
+
}, 16, ["model-value", "accordion", "expand-icon-position", "before-collapse"]));
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
export {
|
|
66
|
+
O as _
|
|
67
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { defineComponent as J, useAttrs as X, ref as o, computed as c, watch as Y, onBeforeUnmount as Z, openBlock as ee, createElementBlock as ae, createElementVNode as b, mergeProps as le, withKeys as _, withModifiers as w, normalizeStyle as ne, normalizeClass as te, toDisplayString as re, createVNode as oe, unref as ie, nextTick as B } from "vue";
|
|
2
|
+
import { ElColorPicker as ue } from "element-plus";
|
|
3
|
+
const se = ["id", "role", "aria-disabled", "tabindex", "disabled", "onKeydown"], de = {
|
|
4
|
+
class: "qy-color-picker__value",
|
|
5
|
+
"aria-hidden": "true"
|
|
6
|
+
};
|
|
7
|
+
let ce = 0;
|
|
8
|
+
const fe = () => `qy-color-picker-${++ce}`, me = /* @__PURE__ */ J({
|
|
9
|
+
name: "QyColorPicker",
|
|
10
|
+
inheritAttrs: !1,
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: { default: null },
|
|
14
|
+
format: { default: void 0 },
|
|
15
|
+
showAlpha: { type: Boolean, default: !1 },
|
|
16
|
+
predefine: { default: void 0 },
|
|
17
|
+
size: { default: "default" },
|
|
18
|
+
disabled: { type: Boolean, default: !1 },
|
|
19
|
+
clearable: { type: Boolean, default: !1 }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue", "active-change", "change", "visible-change"],
|
|
22
|
+
setup(I, { emit: K }) {
|
|
23
|
+
const l = I, i = K, f = X(), C = o(null), V = o(null), m = o(null), t = o(u(l.modelValue)), g = o(t.value), n = o(!1), r = o(null), s = o(!1), v = o(!1), E = fe(), N = c(() => typeof f.id == "string" && f.id || E), x = `qy-color-picker__popper--${E}`, S = c(
|
|
24
|
+
() => l.format || (l.showAlpha ? "rgb" : "hex")
|
|
25
|
+
), h = c(() => u(l.modelValue)), O = c(() => String(f.role || "button")), Q = c(
|
|
26
|
+
() => f["aria-disabled"] ?? (l.disabled ? "true" : "false")
|
|
27
|
+
), T = c(
|
|
28
|
+
() => l.disabled ? void 0 : f.tabindex ?? 0
|
|
29
|
+
), U = c(() => {
|
|
30
|
+
const e = {};
|
|
31
|
+
for (const [a, d] of Object.entries(f)) {
|
|
32
|
+
const k = a.toLowerCase();
|
|
33
|
+
(a === "class" || a === "style" || a === "id" || a === "title" || a === "tabindex" || a === "role" || k.startsWith("data-") || k.startsWith("aria-") || ["onkeydown", "onkeyup", "onkeypress"].includes(k)) && (e[a] = d);
|
|
34
|
+
}
|
|
35
|
+
return e;
|
|
36
|
+
});
|
|
37
|
+
Y(
|
|
38
|
+
() => l.modelValue,
|
|
39
|
+
(e) => {
|
|
40
|
+
t.value = u(e), n.value && (g.value = t.value);
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
function u(e) {
|
|
44
|
+
return e == null || e === "" ? null : String(e);
|
|
45
|
+
}
|
|
46
|
+
function $() {
|
|
47
|
+
if (!l.disabled) {
|
|
48
|
+
if (n.value) {
|
|
49
|
+
p();
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
R();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function A() {
|
|
56
|
+
l.disabled || n.value || R();
|
|
57
|
+
}
|
|
58
|
+
function F() {
|
|
59
|
+
n.value && p();
|
|
60
|
+
}
|
|
61
|
+
function R() {
|
|
62
|
+
n.value || l.disabled || (g.value = u(l.modelValue), t.value = g.value, r.value = null, s.value = !1, v.value = !1, n.value = !0, H(), i("visible-change", !0), B(() => {
|
|
63
|
+
var e, a;
|
|
64
|
+
return (a = (e = m.value) == null ? void 0 : e.show) == null ? void 0 : a.call(e);
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
function W(e) {
|
|
68
|
+
!n.value || r.value || (t.value = u(e), i("active-change", t.value));
|
|
69
|
+
}
|
|
70
|
+
function j(e) {
|
|
71
|
+
!n.value || r.value === "cancel" || (t.value = u(e), s.value || (s.value = !0, r.value = "commit", i("update:modelValue", t.value)));
|
|
72
|
+
}
|
|
73
|
+
function M(e) {
|
|
74
|
+
!n.value || r.value === "cancel" || (t.value = u(e), s.value || (s.value = !0, r.value = "commit", i("update:modelValue", t.value)), v.value || (v.value = !0, i("change", t.value)), y());
|
|
75
|
+
}
|
|
76
|
+
function G() {
|
|
77
|
+
!n.value || r.value === "cancel" || (s.value || (s.value = !0, r.value = "commit", t.value = null, i("update:modelValue", null)), v.value || (v.value = !0, i("change", null)), y());
|
|
78
|
+
}
|
|
79
|
+
function p() {
|
|
80
|
+
var e, a;
|
|
81
|
+
!n.value || r.value || (r.value = "cancel", t.value = u(l.modelValue), (a = (e = m.value) == null ? void 0 : e.hide) == null || a.call(e), y());
|
|
82
|
+
}
|
|
83
|
+
function y() {
|
|
84
|
+
var e, a;
|
|
85
|
+
n.value && (n.value = !1, z(), (a = (e = m.value) == null ? void 0 : e.hide) == null || a.call(e), i("visible-change", !1), B(() => {
|
|
86
|
+
var d;
|
|
87
|
+
return (d = V.value) == null ? void 0 : d.focus();
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
function P(e) {
|
|
91
|
+
var a, d;
|
|
92
|
+
return e instanceof Node ? (a = C.value) != null && a.contains(e) ? !0 : !!((d = e.closest) != null && d.call(e, `.${x}`)) : !1;
|
|
93
|
+
}
|
|
94
|
+
function q(e) {
|
|
95
|
+
n.value && !P(e.target) && p();
|
|
96
|
+
}
|
|
97
|
+
function D(e) {
|
|
98
|
+
n.value && !P(e.target) && p();
|
|
99
|
+
}
|
|
100
|
+
function L(e) {
|
|
101
|
+
n.value && e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), p());
|
|
102
|
+
}
|
|
103
|
+
function H() {
|
|
104
|
+
document.addEventListener("pointerdown", q, !0), document.addEventListener("focusin", D, !0), document.addEventListener("keydown", L, !0);
|
|
105
|
+
}
|
|
106
|
+
function z() {
|
|
107
|
+
document.removeEventListener("pointerdown", q, !0), document.removeEventListener("focusin", D, !0), document.removeEventListener("keydown", L, !0);
|
|
108
|
+
}
|
|
109
|
+
return Z(() => {
|
|
110
|
+
z();
|
|
111
|
+
}), (e, a) => (ee(), ae("div", {
|
|
112
|
+
ref_key: "rootRef",
|
|
113
|
+
ref: C,
|
|
114
|
+
class: "qy-color-picker",
|
|
115
|
+
"data-qy-color-picker": ""
|
|
116
|
+
}, [
|
|
117
|
+
b("button", le({
|
|
118
|
+
ref_key: "triggerRef",
|
|
119
|
+
ref: V,
|
|
120
|
+
type: "button",
|
|
121
|
+
class: "qy-color-picker__trigger"
|
|
122
|
+
}, U.value, {
|
|
123
|
+
id: N.value,
|
|
124
|
+
role: O.value,
|
|
125
|
+
"aria-disabled": Q.value,
|
|
126
|
+
tabindex: T.value,
|
|
127
|
+
disabled: l.disabled,
|
|
128
|
+
class: { "is-disabled": l.disabled, "is-open": n.value },
|
|
129
|
+
onClick: $,
|
|
130
|
+
onKeydown: [
|
|
131
|
+
_(w(A, ["prevent"]), ["enter"]),
|
|
132
|
+
_(w(A, ["prevent"]), ["space"]),
|
|
133
|
+
_(w(F, ["prevent"]), ["esc"])
|
|
134
|
+
]
|
|
135
|
+
}), [
|
|
136
|
+
b("span", {
|
|
137
|
+
class: te(["qy-color-picker__swatch", { "is-empty": !h.value }]),
|
|
138
|
+
style: ne(h.value ? { backgroundColor: h.value } : void 0),
|
|
139
|
+
"aria-hidden": "true"
|
|
140
|
+
}, null, 6),
|
|
141
|
+
b("span", de, re(h.value || "选择颜色"), 1),
|
|
142
|
+
a[0] || (a[0] = b("span", {
|
|
143
|
+
class: "qy-color-picker__arrow",
|
|
144
|
+
"aria-hidden": "true"
|
|
145
|
+
}, "⌄", -1))
|
|
146
|
+
], 16, se),
|
|
147
|
+
oe(ie(ue), {
|
|
148
|
+
ref_key: "rendererRef",
|
|
149
|
+
ref: m,
|
|
150
|
+
class: "qy-color-picker__renderer",
|
|
151
|
+
"model-value": t.value,
|
|
152
|
+
"show-alpha": l.showAlpha,
|
|
153
|
+
"color-format": S.value,
|
|
154
|
+
predefine: l.predefine,
|
|
155
|
+
size: l.size,
|
|
156
|
+
disabled: !1,
|
|
157
|
+
clearable: l.clearable,
|
|
158
|
+
teleported: !0,
|
|
159
|
+
tabindex: -1,
|
|
160
|
+
"popper-class": x,
|
|
161
|
+
"aria-hidden": "true",
|
|
162
|
+
onActiveChange: W,
|
|
163
|
+
"onUpdate:modelValue": j,
|
|
164
|
+
onChange: M,
|
|
165
|
+
onClear: G
|
|
166
|
+
}, null, 8, ["model-value", "show-alpha", "color-format", "predefine", "size", "clearable"])
|
|
167
|
+
], 512));
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
export {
|
|
171
|
+
me as _
|
|
172
|
+
};
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { defineComponent as W, useAttrs as K, ref as H, computed as h, openBlock as N, createBlock as U, unref as q, mergeProps as Q, createSlots as G, withCtx as d, renderSlot as c, normalizeProps as J, guardReactiveProps as X } from "vue";
|
|
2
|
+
import { ElCascader as Y } from "element-plus";
|
|
3
|
+
const ee = /* @__PURE__ */ W({
|
|
4
|
+
name: "QyCascader",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {},
|
|
9
|
+
options: { default: () => [] },
|
|
10
|
+
props: { default: () => ({}) },
|
|
11
|
+
size: {},
|
|
12
|
+
placeholder: {},
|
|
13
|
+
disabled: { type: Boolean },
|
|
14
|
+
clearable: { type: Boolean, default: !0 },
|
|
15
|
+
clearIcon: {},
|
|
16
|
+
filterable: { type: Boolean, default: !1 },
|
|
17
|
+
filterMethod: {},
|
|
18
|
+
separator: { default: " / " },
|
|
19
|
+
showAllLevels: { type: Boolean, default: !0 },
|
|
20
|
+
collapseTags: { type: Boolean, default: !1 },
|
|
21
|
+
maxCollapseTags: { default: 1 },
|
|
22
|
+
collapseTagsTooltip: { type: Boolean, default: !1 },
|
|
23
|
+
maxCollapseTagsTooltipHeight: {},
|
|
24
|
+
debounce: { default: 300 },
|
|
25
|
+
beforeFilter: {},
|
|
26
|
+
placement: {},
|
|
27
|
+
fallbackPlacements: {},
|
|
28
|
+
popperClass: {},
|
|
29
|
+
popperStyle: { type: [Boolean, null, String, Object, Array] },
|
|
30
|
+
teleported: { type: Boolean, default: !0 },
|
|
31
|
+
effect: {},
|
|
32
|
+
persistent: { type: Boolean, default: !0 },
|
|
33
|
+
showCheckedStrategy: {},
|
|
34
|
+
fitInputWidth: { type: [Boolean, Number] },
|
|
35
|
+
tagType: {},
|
|
36
|
+
tagEffect: {},
|
|
37
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
38
|
+
emptyValues: {},
|
|
39
|
+
valueOnClear: {},
|
|
40
|
+
virtualScroll: { type: Boolean, default: !1 },
|
|
41
|
+
itemSize: { default: 34 },
|
|
42
|
+
height: { default: 204 }
|
|
43
|
+
},
|
|
44
|
+
emits: ["update:modelValue", "change", "focus", "blur", "clear", "visible-change", "expand-change", "remove-tag"],
|
|
45
|
+
setup(a, { expose: y, emit: g }) {
|
|
46
|
+
const i = a, n = g, C = K(), u = H(), S = h(
|
|
47
|
+
() => Object.fromEntries(
|
|
48
|
+
Object.entries(C).filter(
|
|
49
|
+
([e]) => e === "class" || e === "style" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
50
|
+
)
|
|
51
|
+
)
|
|
52
|
+
), k = h(() => ({
|
|
53
|
+
...i.emptyValues !== void 0 ? { emptyValues: i.emptyValues } : {},
|
|
54
|
+
...i.valueOnClear !== void 0 ? { valueOnClear: i.valueOnClear } : {}
|
|
55
|
+
})), V = h(() => ({
|
|
56
|
+
...S.value,
|
|
57
|
+
...k.value
|
|
58
|
+
}));
|
|
59
|
+
function f(e, t = {}) {
|
|
60
|
+
return Object.freeze({
|
|
61
|
+
uid: e.uid,
|
|
62
|
+
level: e.level,
|
|
63
|
+
value: e.value,
|
|
64
|
+
label: e.label,
|
|
65
|
+
pathValues: Object.freeze([...e.pathValues]),
|
|
66
|
+
pathLabels: Object.freeze([...e.pathLabels]),
|
|
67
|
+
data: e.data,
|
|
68
|
+
root: e.root,
|
|
69
|
+
isLeaf: t.isLeaf ?? e.isLeaf,
|
|
70
|
+
isDisabled: t.isDisabled ?? e.isDisabled,
|
|
71
|
+
checked: e.checked,
|
|
72
|
+
indeterminate: e.indeterminate,
|
|
73
|
+
loading: e.loading,
|
|
74
|
+
loaded: e.loaded ?? !1
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function T(e, t) {
|
|
78
|
+
var p, v;
|
|
79
|
+
const l = typeof t.leaf == "string" ? t.leaf : "leaf", s = t.children ?? "children", o = (p = e.data) == null ? void 0 : p[l];
|
|
80
|
+
if (typeof o == "boolean")
|
|
81
|
+
return o;
|
|
82
|
+
const r = Array.isArray(e.childrenData) ? e.childrenData : (v = e.data) == null ? void 0 : v[s];
|
|
83
|
+
return Array.isArray(r) && r.length > 0 ? !1 : t.lazy ? e.loaded === !0 : !0;
|
|
84
|
+
}
|
|
85
|
+
function m(e, t, l = /* @__PURE__ */ new Set()) {
|
|
86
|
+
var p;
|
|
87
|
+
if (l.has(e))
|
|
88
|
+
return !1;
|
|
89
|
+
l.add(e);
|
|
90
|
+
const s = typeof t.disabled == "string" ? t.disabled : "disabled", o = !!((p = e.data) != null && p[s]), r = t.checkStrictly !== !0 && e.parent ? m(e.parent, t, l) : !1;
|
|
91
|
+
return o || r;
|
|
92
|
+
}
|
|
93
|
+
function b(e, t) {
|
|
94
|
+
return f(e, {
|
|
95
|
+
isLeaf: T(e, t),
|
|
96
|
+
isDisabled: m(e, t)
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const z = h(() => {
|
|
100
|
+
const e = i.props ?? {}, t = { ...e };
|
|
101
|
+
return typeof e.disabled == "function" && (t.disabled = (l, s) => {
|
|
102
|
+
var o;
|
|
103
|
+
return ((o = e.disabled) == null ? void 0 : o.call(e, b(s, e))) ?? !1;
|
|
104
|
+
}), typeof e.leaf == "function" && (t.leaf = (l, s) => {
|
|
105
|
+
var o;
|
|
106
|
+
return ((o = e.leaf) == null ? void 0 : o.call(e, b(s, e))) ?? !1;
|
|
107
|
+
}), typeof e.lazyLoad == "function" && (t.lazyLoad = (l, s, o) => {
|
|
108
|
+
var r;
|
|
109
|
+
return (r = e.lazyLoad) == null ? void 0 : r.call(e, f(l), s, o);
|
|
110
|
+
}), t;
|
|
111
|
+
}), B = h(
|
|
112
|
+
() => i.filterMethod ? (e, t) => {
|
|
113
|
+
var l;
|
|
114
|
+
return ((l = i.filterMethod) == null ? void 0 : l.call(i, f(e), t)) ?? !1;
|
|
115
|
+
} : void 0
|
|
116
|
+
);
|
|
117
|
+
function w(e) {
|
|
118
|
+
return {
|
|
119
|
+
...e,
|
|
120
|
+
node: f(e.node)
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function L(e, t) {
|
|
124
|
+
return e.map((l) => {
|
|
125
|
+
const s = f(l.node);
|
|
126
|
+
return Object.freeze({
|
|
127
|
+
uid: s.uid,
|
|
128
|
+
value: s.value,
|
|
129
|
+
label: s.label,
|
|
130
|
+
pathValues: s.pathValues,
|
|
131
|
+
pathLabels: s.pathLabels,
|
|
132
|
+
data: s.data,
|
|
133
|
+
text: l.text,
|
|
134
|
+
hitState: l.hitState,
|
|
135
|
+
closable: l.closable,
|
|
136
|
+
remove: () => t(l)
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function $(e) {
|
|
141
|
+
n("update:modelValue", e);
|
|
142
|
+
}
|
|
143
|
+
function A(e) {
|
|
144
|
+
n("change", e);
|
|
145
|
+
}
|
|
146
|
+
function O(e) {
|
|
147
|
+
n("focus", e);
|
|
148
|
+
}
|
|
149
|
+
function x(e) {
|
|
150
|
+
n("blur", e);
|
|
151
|
+
}
|
|
152
|
+
function D() {
|
|
153
|
+
n("clear");
|
|
154
|
+
}
|
|
155
|
+
function E(e) {
|
|
156
|
+
n("visible-change", e);
|
|
157
|
+
}
|
|
158
|
+
function P(e) {
|
|
159
|
+
n("expand-change", e);
|
|
160
|
+
}
|
|
161
|
+
function j(e) {
|
|
162
|
+
n("remove-tag", e);
|
|
163
|
+
}
|
|
164
|
+
function F() {
|
|
165
|
+
var e;
|
|
166
|
+
(e = u.value) == null || e.focus();
|
|
167
|
+
}
|
|
168
|
+
function M() {
|
|
169
|
+
var e;
|
|
170
|
+
(e = u.value) == null || e.blur();
|
|
171
|
+
}
|
|
172
|
+
function R() {
|
|
173
|
+
var e, t;
|
|
174
|
+
(t = (e = u.value) == null ? void 0 : e.togglePopperVisible) == null || t.call(e, !0);
|
|
175
|
+
}
|
|
176
|
+
function I() {
|
|
177
|
+
var e, t;
|
|
178
|
+
(t = (e = u.value) == null ? void 0 : e.togglePopperVisible) == null || t.call(e, !1);
|
|
179
|
+
}
|
|
180
|
+
return y({ focus: F, blur: M, open: R, close: I }), (e, t) => (N(), U(q(Y), Q({
|
|
181
|
+
ref_key: "cascaderRef",
|
|
182
|
+
ref: u
|
|
183
|
+
}, V.value, {
|
|
184
|
+
class: "qy-cascader",
|
|
185
|
+
"model-value": a.modelValue,
|
|
186
|
+
options: a.options,
|
|
187
|
+
props: z.value,
|
|
188
|
+
size: a.size,
|
|
189
|
+
placeholder: a.placeholder,
|
|
190
|
+
disabled: a.disabled,
|
|
191
|
+
clearable: a.clearable,
|
|
192
|
+
"clear-icon": a.clearIcon,
|
|
193
|
+
filterable: a.filterable,
|
|
194
|
+
"filter-method": B.value,
|
|
195
|
+
separator: a.separator,
|
|
196
|
+
"show-all-levels": a.showAllLevels,
|
|
197
|
+
"collapse-tags": a.collapseTags,
|
|
198
|
+
"max-collapse-tags": a.maxCollapseTags,
|
|
199
|
+
"collapse-tags-tooltip": a.collapseTagsTooltip,
|
|
200
|
+
"max-collapse-tags-tooltip-height": a.maxCollapseTagsTooltipHeight,
|
|
201
|
+
debounce: a.debounce,
|
|
202
|
+
"before-filter": a.beforeFilter,
|
|
203
|
+
placement: a.placement,
|
|
204
|
+
"fallback-placements": a.fallbackPlacements,
|
|
205
|
+
"popper-class": a.popperClass,
|
|
206
|
+
"popper-style": a.popperStyle,
|
|
207
|
+
teleported: a.teleported,
|
|
208
|
+
effect: a.effect,
|
|
209
|
+
persistent: a.persistent,
|
|
210
|
+
"show-checked-strategy": a.showCheckedStrategy,
|
|
211
|
+
"fit-input-width": a.fitInputWidth,
|
|
212
|
+
"tag-type": a.tagType,
|
|
213
|
+
"tag-effect": a.tagEffect,
|
|
214
|
+
"validate-event": a.validateEvent,
|
|
215
|
+
"virtual-scroll": a.virtualScroll,
|
|
216
|
+
"item-size": a.itemSize,
|
|
217
|
+
height: a.height,
|
|
218
|
+
"onUpdate:modelValue": $,
|
|
219
|
+
onChange: A,
|
|
220
|
+
onFocus: O,
|
|
221
|
+
onBlur: x,
|
|
222
|
+
onClear: D,
|
|
223
|
+
onVisibleChange: E,
|
|
224
|
+
onExpandChange: P,
|
|
225
|
+
onRemoveTag: j
|
|
226
|
+
}), G({ _: 2 }, [
|
|
227
|
+
e.$slots.prefix ? {
|
|
228
|
+
name: "prefix",
|
|
229
|
+
fn: d(() => [
|
|
230
|
+
c(e.$slots, "prefix")
|
|
231
|
+
]),
|
|
232
|
+
key: "0"
|
|
233
|
+
} : void 0,
|
|
234
|
+
e.$slots.header ? {
|
|
235
|
+
name: "header",
|
|
236
|
+
fn: d(() => [
|
|
237
|
+
c(e.$slots, "header")
|
|
238
|
+
]),
|
|
239
|
+
key: "1"
|
|
240
|
+
} : void 0,
|
|
241
|
+
e.$slots.footer ? {
|
|
242
|
+
name: "footer",
|
|
243
|
+
fn: d(() => [
|
|
244
|
+
c(e.$slots, "footer")
|
|
245
|
+
]),
|
|
246
|
+
key: "2"
|
|
247
|
+
} : void 0,
|
|
248
|
+
e.$slots.empty ? {
|
|
249
|
+
name: "empty",
|
|
250
|
+
fn: d(() => [
|
|
251
|
+
c(e.$slots, "empty")
|
|
252
|
+
]),
|
|
253
|
+
key: "3"
|
|
254
|
+
} : void 0,
|
|
255
|
+
e.$slots.default ? {
|
|
256
|
+
name: "default",
|
|
257
|
+
fn: d((l) => [
|
|
258
|
+
c(e.$slots, "default", J(X(w(l))))
|
|
259
|
+
]),
|
|
260
|
+
key: "4"
|
|
261
|
+
} : void 0,
|
|
262
|
+
e.$slots["suggestion-item"] ? {
|
|
263
|
+
name: "suggestion-item",
|
|
264
|
+
fn: d((l) => [
|
|
265
|
+
c(e.$slots, "suggestion-item", {
|
|
266
|
+
item: f(l.item)
|
|
267
|
+
})
|
|
268
|
+
]),
|
|
269
|
+
key: "5"
|
|
270
|
+
} : void 0,
|
|
271
|
+
e.$slots.tag ? {
|
|
272
|
+
name: "tag",
|
|
273
|
+
fn: d((l) => [
|
|
274
|
+
c(e.$slots, "tag", {
|
|
275
|
+
data: L(l.data, l.deleteTag),
|
|
276
|
+
remove: (s) => s == null ? void 0 : s.remove()
|
|
277
|
+
})
|
|
278
|
+
]),
|
|
279
|
+
key: "6"
|
|
280
|
+
} : void 0
|
|
281
|
+
]), 1040, ["model-value", "options", "props", "size", "placeholder", "disabled", "clearable", "clear-icon", "filterable", "filter-method", "separator", "show-all-levels", "collapse-tags", "max-collapse-tags", "collapse-tags-tooltip", "max-collapse-tags-tooltip-height", "debounce", "before-filter", "placement", "fallback-placements", "popper-class", "popper-style", "teleported", "effect", "persistent", "show-checked-strategy", "fit-input-width", "tag-type", "tag-effect", "validate-event", "virtual-scroll", "item-size", "height"]));
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
export {
|
|
285
|
+
ee as _
|
|
286
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const R=require("element-plus"),e=require("vue"),le=require("clsx"),U=require("element-plus"),ne=require("@element-plus/icons-vue"),W=require("@vueuse/core"),ae={class:"text-lg flex items-center pt-2 pl-[var(--content-padding)]"},re={key:0},ie={key:1},se={key:0,class:"icon-[material-symbols--square-outline-rounded]",role:"img","aria-hidden":"true"},de={key:1,class:"icon-[tdesign--fullscreen-exit-1]",role:"img","aria-hidden":"true"},ce={key:0,class:"fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"},ue={class:"flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center"},fe={class:"flex items-center justify-between w-full pl-1 pr-4 h-full ml-2"},me={class:"flex items-center gap-2"},pe={class:"text-sm text-gray-700 truncate max-w-[200px]"},ye={class:"flex items-center gap-2"},X=5,M=2e3,ge=e.defineComponent({inheritAttrs:!1,__name:"index",props:{open:{type:Boolean,default:!1},title:{default:""},width:{default:"50%"},showFooter:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},confirmText:{default:"确 认"},cancelText:{default:"取 消"},confirmLoading:{type:Boolean,default:!1},confirmDisabled:{type:Boolean,default:!1},closeOnConfirm:{type:Boolean,default:!1},closeOnEscape:{type:Boolean,default:!0},closeOnOverlay:{type:Boolean,default:!0},minimizable:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},top:{default:"15vh"},fullscreen:{type:Boolean,default:!1},showFullscreen:{type:Boolean,default:!1},size:{default:"default"},zIndex:{default:2e3}},emits:["update:open","open-change","confirm","cancel","close","opened","closed"],setup(K,{expose:P,emit:Y}){let d=0;const l=K,E=e.useSlots(),S=e.ref(!0),C=e.ref(!1),q=e.ref(M),N=e.ref(null),G=W.useBreakpoints({mobile:0,tablet:640,laptop:1024,desktop:1280}).isSmaller("tablet"),B=e.computed(()=>{const t=[];return l.showCancel&&t.push("cancel"),l.showConfirm&&t.push("confirm"),t}),V=e.computed(()=>({CancelButton:e.createVNode(Z),ConfirmButton:e.createVNode(T)})),I=e.computed(()=>!!(E.footer||l.showFooter)),m=e.ref(!1),g=e.ref(!1);let b=!1,p=document.activeElement instanceof HTMLElement?document.activeElement:null;const v=e.ref(l.showFullscreen&&G?!0:l.fullscreen),r=Y,D=e.computed(()=>l.open);e.watchEffect(()=>{D.value&&(m.value=!1)}),e.watch(()=>l.open,(t,o)=>{if(t){m.value=!1,g.value=!1,p=document.activeElement instanceof HTMLElement?document.activeElement:p,o===!1&&r("open-change",!0);return}o&&!m.value&&(m.value=!0,r("open-change",!1),r("close","external"))}),e.watch(()=>l.confirmLoading,t=>{t?b=!0:b&&(b=!1,g.value=!1)}),P({handleMinimize:z});const c=`qy-dialog-${Math.random().toString(36).slice(2,11)}`,y=e.ref(!1);let h=!1;const w=e.ref(null),{x:L,y:_}=W.useDraggable(w,{initialValue:{x:5,y:window.innerHeight-100-d*60},onMove(t){var o;(o=w.value)==null||o.classList.add("dragging"),document.body.classList.add("qy-dialog--dragging"),L.value=Math.max(0,Math.min(window.innerWidth-300,t.x)),_.value=Math.max(0,Math.min(window.innerHeight-50,t.y))},onEnd(){var t;(t=w.value)==null||t.classList.remove("dragging"),document.body.classList.remove("qy-dialog--dragging")}}),J=e.computed(()=>({transform:`translate(${L.value}px, ${_.value}px)`,willChange:"transform"}));function O(t){const o=t.target,{scrollTop:n,scrollHeight:i,clientHeight:s}=o;S.value=n<=X,C.value=i-(n+s)<=X}function Q(){const t=document.querySelector(`.${c}.el-dialog`);t&&(N.value=t,t.addEventListener("scroll",O)),x(),r("opened")}function $(){v.value=!v.value,x()}function u(t){l.confirmLoading&&t!=="external"||m.value||(m.value=!0,j(),r("update:open",!1),r("open-change",!1),(t==="cancel"||t==="header")&&r("cancel"),r("close",t))}function ee(){r("closed"),e.nextTick(()=>{p!=null&&p.isConnected&&p.focus()})}function te(t){l.showFullscreen&&t.detail>=2&&$()}function T(){return e.h(U.ElButton,{type:"primary",class:"dialog__footerBtn",loading:l.confirmLoading,disabled:l.confirmDisabled||l.confirmLoading||g.value,onClick:oe},()=>l.confirmText)}function oe(){g.value||l.confirmLoading||l.confirmDisabled||(g.value=!0,r("confirm"),l.closeOnConfirm&&u("confirm"))}function Z(){return e.h(U.ElButton,{class:"dialog__footerBtn",onClick:()=>u("cancel")},()=>l.cancelText)}e.onMounted(()=>{typeof window.qyDialogMaxZIndex>"u"&&(window.qyDialogMaxZIndex=M),x(),document.addEventListener("keydown",A),document.addEventListener("mousedown",F)});function H(){var i,s;const t=(i=document.querySelector(`.${c}`))==null?void 0:i.closest(".el-overlay");if(!t)return!1;const n=Array.from(document.querySelectorAll(".el-overlay")).filter(a=>window.getComputedStyle(a).display!=="none").map((a,f)=>({overlay:a,order:f,zIndex:Number.parseInt(window.getComputedStyle(a).zIndex||"0",10)}));return n.sort((a,f)=>a.zIndex-f.zIndex||a.order-f.order),((s=n.at(-1))==null?void 0:s.overlay)===t}function A(t){t.key!=="Escape"||!l.open||!l.closeOnEscape||l.confirmLoading||!H()||(t.preventDefault(),u("escape"))}function F(t){if(!l.open||!l.closeOnOverlay||l.confirmLoading||!H()||!(t.target instanceof Node))return;const o=document.querySelector(`.${c}.el-dialog`),n=o==null?void 0:o.closest(".el-overlay");!o||!n||!n.contains(t.target)||o.contains(t.target)||u("overlay")}function x(){var f;const t=Array.from(document.querySelectorAll(".el-overlay")).filter(k=>window.getComputedStyle(k).display!=="none"&&!k.classList.contains("is-message")),o=(f=document.querySelector(`.${c}`))==null?void 0:f.closest(".el-overlay"),n=document.querySelector(`.${c}.el-dialog`);if(!o||!n)return;const i=M;window.qyDialogMaxZIndex=window.qyDialogMaxZIndex||i;const a=Math.max(window.qyDialogMaxZIndex,...t.map(k=>parseInt(window.getComputedStyle(k).zIndex||i.toString())))+2;window.qyDialogMaxZIndex=a,e.nextTick(()=>{o.style.zIndex=a.toString(),n.style.zIndex=(a+1).toString(),q.value=a+1})}e.onUnmounted(()=>{var t;document.removeEventListener("keydown",A),document.removeEventListener("mousedown",F),(t=N.value)==null||t.removeEventListener("scroll",O),j()});function j(){if(!h){y.value=!1;return}h=!1,d=Math.max(0,d-1),y.value=!1}function z(){var o;const t=(o=document.querySelector(`.${c}`))==null?void 0:o.closest(".el-overlay");!t||!l.open||(y.value?(y.value=!1,t.style.display="block",h&&(h=!1,d=Math.max(0,d-1)),x()):(y.value=!0,t.style.display="none",h=!0,d+=1,_.value=window.innerHeight-50-d*60))}return(t,o)=>{const n=R.ElIcon,i=R.ElDialog;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(i,{ref:"dialogRef",class:e.normalizeClass(["qy-dialog",[l.size==="small"&&"[&_.el-dialog__header]:!hidden",c]]),"model-value":D.value,title:l.title,width:l.width,top:l.top,"align-center":"","append-to-body":"","destroy-on-close":l.destroyOnClose,"lock-scroll":l.lockScroll,style:{"--el-dialog-padding-primary":0},"show-close":!1,"close-on-press-escape":!1,"close-on-click-modal":!1,fullscreen:v.value,"z-index":q.value,onClosed:ee,onOpened:Q,draggable:l.draggable},e.createSlots({header:e.withCtx(()=>[l.size==="default"?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({borderBottom:"1px solid",borderColor:S.value?"transparent":"var(--block-outline-color)",transition:"border-color .2s linear"}),class:"flex justify-between h-[var(--header-height)]",onDblclick:te},[e.createElementVNode("div",ae,[e.unref(E).header?e.unref(E).header?(e.openBlock(),e.createElementBlock("div",ie,[e.renderSlot(t.$slots,"header")])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",re,e.toDisplayString(l.title),1))]),e.createElementVNode("div",{class:"flex",onMousedown:o[4]||(o[4]=e.withModifiers(()=>{},["stop"]))},[l.size==="default"&&l.minimizable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers(z,["stop"]),onMousedown:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},[...o[7]||(o[7]=[e.createElementVNode("span",{class:"icon-[material-symbols--minimize] text-xl mb-3",role:"img","aria-hidden":"true"},null,-1)])],32)):e.createCommentVNode("",!0),l.showFullscreen?(e.openBlock(),e.createElementBlock("div",{key:1,class:"qy-dialog__btn qy-dialog__btn--default",onClick:e.withModifiers($,["stop"]),onMousedown:o[1]||(o[1]=e.withModifiers(()=>{},["stop"]))},[v.value?(e.openBlock(),e.createElementBlock("span",de)):(e.openBlock(),e.createElementBlock("span",se))],32)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"qy-dialog__btn qy-dialog__btn--danger",onClick:o[2]||(o[2]=e.withModifiers(s=>u("header"),["stop"])),onMousedown:o[3]||(o[3]=e.withModifiers(()=>{},["stop"]))},[...o[8]||(o[8]=[e.createElementVNode("span",{class:"icon-[ri--close-line] text-xl",role:"img","aria-hidden":"true"},null,-1)])],32)],32)],36)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["qy-dialog__wrapper",e.unref(le)(v.value&&"qy-dialog__wrapper--fullscreen")]),style:e.normalizeStyle({maxHeight:I.value?"calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))":"calc(100vh - var(--header-height) - var(--sides-gap))",padding:l.size==="small"?"var(--small-content-padding)":"var(--content-padding)"})},[l.size==="small"?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(n,{size:36,class:"cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",onClick:o[5]||(o[5]=s=>u("header"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ne.Close))]),_:1})])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],6)]),_:2},[l.showFooter&&!t.$slots.footer&&Array.isArray(B.value)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ue,[e.createElementVNode("div",null,[e.renderSlot(t.$slots,"footer-left")]),e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":C.value},"qy-dialog__footer flex items-center justify-end"])},[B.value.includes("cancel")?(e.openBlock(),e.createBlock(Z,{key:0})):e.createCommentVNode("",!0),B.value.includes("confirm")?(e.openBlock(),e.createBlock(T,{key:1})):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"footer-append")],2)])]),key:"0"}:I.value?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([{"qy-dialog__footer--outline":C.value},"qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])},[e.renderSlot(t.$slots,"footer",{layouts:V.value,layoutsNode:Object.values(V.value)})],2)]),key:"1"}:void 0]),1032,["class","model-value","title","width","top","destroy-on-close","lock-scroll","fullscreen","z-index","draggable"]),e.withDirectives(e.createElementVNode("div",{ref_key:"minimizedRef",ref:w,class:"fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",style:e.normalizeStyle([J.value,{width:"300px",height:"50px","will-change":"transform"}])},[e.createElementVNode("div",fe,[e.createElementVNode("div",me,[o[9]||(o[9]=e.createElementVNode("div",{class:"icon-[mdi--window-restore] text-gray-600"},null,-1)),e.createElementVNode("span",pe,e.toDisplayString(l.title),1)]),e.createElementVNode("div",ye,[e.createElementVNode("div",{class:"p-1 hover:bg-gray-200 rounded",onClick:e.withModifiers(z,["stop"])},[...o[10]||(o[10]=[e.createElementVNode("div",{class:"icon-[mdi--window-maximize] text-gray-600"},null,-1)])]),e.createElementVNode("div",{class:"p-1 hover:bg-red-100 rounded",onClick:o[6]||(o[6]=e.withModifiers(s=>u("header"),["stop"]))},[...o[11]||(o[11]=[e.createElementVNode("div",{class:"icon-[mdi--close] text-red-600"},null,-1)])])])])],4),[[e.vShow,y.value]])])}}});exports._sfc_main=ge;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent as g, useAttrs as h, ref as v, computed as w, openBlock as x, createBlock as p, unref as z, mergeProps as A, withCtx as B, renderSlot as T } from "vue";
|
|
2
|
+
import { ElScrollbar as C } from "element-plus";
|
|
3
|
+
const N = /* @__PURE__ */ g({
|
|
4
|
+
name: "QyScrollbar",
|
|
5
|
+
inheritAttrs: !1,
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
distance: { type: Number, default: 0 },
|
|
9
|
+
height: { type: [String, Number], default: "" },
|
|
10
|
+
maxHeight: { type: [String, Number], default: "" },
|
|
11
|
+
native: { type: Boolean, default: !1 },
|
|
12
|
+
wrapStyle: { type: [String, Object, Array, Boolean], default: "" },
|
|
13
|
+
wrapClass: { type: [String, Array], default: "" },
|
|
14
|
+
viewClass: { type: [String, Array], default: "" },
|
|
15
|
+
viewStyle: { type: [String, Object, Array, Boolean], default: "" },
|
|
16
|
+
noresize: { type: Boolean, default: !1 },
|
|
17
|
+
tag: { type: String, default: "div" },
|
|
18
|
+
always: { type: Boolean, default: !1 },
|
|
19
|
+
minSize: { type: Number, default: 20 },
|
|
20
|
+
tabindex: { type: [String, Number], default: void 0 },
|
|
21
|
+
id: { type: String, default: void 0 },
|
|
22
|
+
role: { type: String, default: void 0 },
|
|
23
|
+
ariaLabel: { type: String, default: void 0 },
|
|
24
|
+
ariaOrientation: { type: String, default: void 0 }
|
|
25
|
+
},
|
|
26
|
+
emits: ["scroll", "end-reached"],
|
|
27
|
+
setup(t, { expose: o, emit: s }) {
|
|
28
|
+
const i = s, c = h(), l = v(), d = w(
|
|
29
|
+
() => Object.fromEntries(
|
|
30
|
+
Object.entries(c).filter(
|
|
31
|
+
([e]) => e === "class" || e === "style" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
|
|
32
|
+
)
|
|
33
|
+
)
|
|
34
|
+
);
|
|
35
|
+
function f(e) {
|
|
36
|
+
i("scroll", Object.freeze({
|
|
37
|
+
scrollTop: e.scrollTop,
|
|
38
|
+
scrollLeft: e.scrollLeft
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
function u(e) {
|
|
42
|
+
i("end-reached", e);
|
|
43
|
+
}
|
|
44
|
+
function y(e, a) {
|
|
45
|
+
var r, n;
|
|
46
|
+
if (typeof e == "number") {
|
|
47
|
+
typeof a == "number" && ((r = l.value) == null || r.scrollTo(e, a));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
(n = l.value) == null || n.scrollTo(e);
|
|
51
|
+
}
|
|
52
|
+
function m(e) {
|
|
53
|
+
var a;
|
|
54
|
+
(a = l.value) == null || a.setScrollTop(e);
|
|
55
|
+
}
|
|
56
|
+
function S(e) {
|
|
57
|
+
var a;
|
|
58
|
+
(a = l.value) == null || a.setScrollLeft(e);
|
|
59
|
+
}
|
|
60
|
+
function b() {
|
|
61
|
+
var e;
|
|
62
|
+
(e = l.value) == null || e.update();
|
|
63
|
+
}
|
|
64
|
+
return o({ scrollTo: y, setScrollTop: m, setScrollLeft: S, update: b }), (e, a) => (x(), p(z(C), A({
|
|
65
|
+
ref_key: "scrollbarRef",
|
|
66
|
+
ref: l
|
|
67
|
+
}, d.value, {
|
|
68
|
+
class: "qy-scrollbar",
|
|
69
|
+
distance: t.distance,
|
|
70
|
+
height: t.height,
|
|
71
|
+
"max-height": t.maxHeight,
|
|
72
|
+
native: t.native,
|
|
73
|
+
"wrap-style": t.wrapStyle,
|
|
74
|
+
"wrap-class": t.wrapClass,
|
|
75
|
+
"view-class": t.viewClass,
|
|
76
|
+
"view-style": t.viewStyle,
|
|
77
|
+
noresize: t.noresize,
|
|
78
|
+
tag: t.tag,
|
|
79
|
+
always: t.always,
|
|
80
|
+
"min-size": t.minSize,
|
|
81
|
+
tabindex: t.tabindex,
|
|
82
|
+
id: t.id,
|
|
83
|
+
role: t.role,
|
|
84
|
+
"aria-label": t.ariaLabel,
|
|
85
|
+
"aria-orientation": t.ariaOrientation,
|
|
86
|
+
onScroll: f,
|
|
87
|
+
onEndReached: u
|
|
88
|
+
}), {
|
|
89
|
+
default: B(() => [
|
|
90
|
+
T(e.$slots, "default")
|
|
91
|
+
]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 16, ["distance", "height", "max-height", "native", "wrap-style", "wrap-class", "view-class", "view-style", "noresize", "tag", "always", "min-size", "tabindex", "id", "role", "aria-label", "aria-orientation"]));
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
N as _
|
|
98
|
+
};
|