@farris/ui-vue 1.7.3 → 1.7.5
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/components/accordion/index.esm.js +312 -61
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +1482 -56
- package/components/avatar/index.umd.cjs +1 -1
- package/components/binding-selector/index.esm.js +752 -8
- package/components/binding-selector/index.umd.cjs +1 -1
- package/components/button-group/index.esm.js +266 -110
- package/components/button-group/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +129 -128
- package/components/calendar/index.umd.cjs +2 -2
- package/components/code-editor/index.esm.js +237 -169
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +134 -133
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/color-picker/index.esm.js +812 -502
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +323 -291
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +355 -174
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +134 -133
- package/components/comment/index.umd.cjs +2 -2
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +3791 -2760
- package/components/component/index.umd.cjs +8 -1
- package/components/condition/index.esm.js +2482 -492
- package/components/condition/index.umd.cjs +8 -1
- package/components/data-view/index.esm.js +1816 -1790
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1 -1
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +2975 -2615
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +397 -387
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dropdown/index.esm.js +373 -124
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +592 -1894
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +250 -248
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +427 -466
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +1 -1
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1890 -1473
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.css +1 -1
- package/components/expression-editor/index.esm.js +7371 -2
- package/components/expression-editor/index.umd.cjs +427 -1
- package/components/fieldset/index.esm.js +1 -1
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +2 -3
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.css +1 -1
- package/components/filter-condition-editor/index.esm.js +9044 -425
- package/components/filter-condition-editor/index.umd.cjs +427 -1
- package/components/html-template/index.esm.js +33 -36
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +615 -361
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +325 -247
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +269 -269
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/layout/index.esm.js +549 -163
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +837 -39
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +427 -646
- package/components/list-view/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +3624 -3625
- package/components/lookup/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +577 -536
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/nav/index.esm.js +311 -31
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +1634 -189
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +82 -82
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1190 -850
- package/components/order/index.umd.cjs +6 -6
- package/components/page-footer/index.esm.js +331 -48
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +110 -116
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +509 -232
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +353 -148
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +157 -153
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +1825 -871
- package/components/property-panel/index.umd.cjs +12 -5
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +6075 -3863
- package/components/query-solution/index.umd.cjs +13 -6
- package/components/response-layout/index.esm.js +1 -1
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +2447 -2221
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +244 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +134 -133
- package/components/section/index.umd.cjs +2 -2
- package/components/smoke-detector/index.esm.js +179 -8
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.css +1 -0
- package/components/sort-condition-editor/index.esm.js +9488 -4
- package/components/sort-condition-editor/index.umd.cjs +427 -1
- package/components/splitter/index.esm.js +1172 -142
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +47 -48
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +490 -419
- package/components/tabs/index.umd.cjs +1 -1
- package/components/text/index.esm.js +217 -73
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +29 -27
- package/components/textarea/index.umd.cjs +2 -2
- package/components/transfer/index.esm.js +760 -543
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +105 -104
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +320 -153
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +1125 -634
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +359 -106
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +222 -89
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +290 -199
- package/components/weather/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +5192 -4408
- package/designer/data-grid/index.umd.cjs +17 -10
- package/designer/drawer/index.esm.js +576 -567
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1418 -1154
- package/designer/dynamic-form/index.umd.cjs +8 -1
- package/designer/farris-designer.all.esm.js +12665 -12117
- package/designer/farris-designer.all.umd.cjs +12 -12
- package/designer/list-view/index.esm.js +327 -327
- package/designer/list-view/index.umd.cjs +3 -3
- package/designer/modal/index.esm.js +29 -137
- package/designer/modal/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +0 -1
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-toolbar/index.esm.js +9 -9
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +1 -6
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +2829 -2540
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +822 -464
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +68724 -67244
- package/farris.all.umd.cjs +92 -92
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/accordion/src/accordion.props.d.ts +1 -0
- package/types/accordion/src/components/accordion-item.props.d.ts +1 -0
- package/types/avatar/src/avatar.props.d.ts +1 -0
- package/types/binding-selector/index.d.ts +54 -0
- package/types/binding-selector/src/binding-selector.props.d.ts +1 -0
- package/types/button-group/index.d.ts +0 -15
- package/types/button-group/src/button-group.props.d.ts +1 -0
- package/types/code-editor/index.d.ts +1 -0
- package/types/code-editor/src/code-textbox.component.d.ts +6 -6
- package/types/code-editor/src/code-textbox.props.d.ts +2 -0
- package/types/color-picker/index.d.ts +15 -0
- package/types/color-picker/src/color-picker.props.d.ts +1 -0
- package/types/combo-list/src/composition/use-data-source.d.ts +2 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +14 -2
- package/types/combo-tree/src/combo-tree.props.d.ts +1 -0
- package/types/component/index.d.ts +2 -0
- package/types/component/src/component.props.d.ts +8 -0
- package/types/components.d.ts +6 -1
- package/types/condition/index.d.ts +55 -0
- package/types/designer-toolbox/index.d.ts +3 -0
- package/types/designer-toolbox/src/toolbox.component.d.ts +14 -0
- package/types/designer-toolbox/src/toolbox.props.d.ts +29 -0
- package/types/designer-toolbox/src/types.d.ts +21 -0
- package/types/designer.d.ts +13 -0
- package/types/dropdown/index.d.ts +6 -27
- package/types/dropdown/src/dropdown.item.component.d.ts +1 -1
- package/types/dropdown/src/dropdown.props.d.ts +1 -0
- package/types/dynamic-form/designer.d.ts +1 -3
- package/types/dynamic-form/index.d.ts +3 -9
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -3
- package/types/dynamic-resolver/index.d.ts +0 -3
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/property-config-resolver.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/property-config/use-property-config-resolver.d.ts +2 -2
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver-design.d.ts +1 -1
- package/types/dynamic-resolver/src/resolver/schema/schema-resolver.d.ts +1 -1
- package/types/dynamic-view/src/components/maps.d.ts +104 -92
- package/types/{binding-selector/designer.d.ts → expression-editor/index.d.ts} +6 -6
- package/types/filter-condition-editor/index.d.ts +9 -0
- package/types/filter-condition-editor/src/components/filter-condition-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/components/sort-editor-grid.component.d.ts +12 -12
- package/types/filter-condition-editor/src/filter-condition-editor.props.d.ts +1 -0
- package/types/flow-canvas/index.d.ts +3 -0
- package/types/{dynamic-form/src/component/form-control/form-control.component.d.ts → flow-canvas/src/components/flow-node-item.component.d.ts} +1 -1
- package/types/flow-canvas/src/components/flow-node-item.props.d.ts +3 -0
- package/types/flow-canvas/src/composition/types.d.ts +42 -0
- package/types/flow-canvas/src/composition/use-bezier-curve.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-connections.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-curve.d.ts +4 -0
- package/types/flow-canvas/src/composition/use-drawing-bezier.d.ts +2 -0
- package/types/flow-canvas/src/composition/use-drawing.d.ts +4 -0
- package/types/flow-canvas/src/flow-canvas.component.d.ts +8 -0
- package/types/flow-canvas/src/flow-canvas.props.d.ts +3 -0
- package/types/image-cropper/src/image-cropper.props.d.ts +1 -0
- package/types/index.d.ts +1 -0
- package/types/json-editor/src/json-editor.props.d.ts +1 -0
- package/types/layout/index.d.ts +0 -1
- package/types/layout/src/components/layout-pane.props.d.ts +1 -0
- package/types/layout/src/layout.props.d.ts +1 -0
- package/types/list-nav/index.d.ts +5 -24
- package/types/list-nav/src/list-nav.props.d.ts +1 -0
- package/types/list-view/index.d.ts +0 -1
- package/types/list-view/src/composition/use-draggable.d.ts +1 -1
- package/types/lookup/index.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/menu-lookup/src/menu-lookup.props.d.ts +1 -0
- package/types/modal/designer.d.ts +0 -2
- package/types/nav/index.d.ts +20 -24
- package/types/nav/src/nav.props.d.ts +1 -0
- package/types/number-range/src/number-range.props.d.ts +1 -0
- package/types/order/index.d.ts +5 -36
- package/types/order/src/designer/order.design.component.d.ts +1 -1
- package/types/order/src/order.props.d.ts +1 -0
- package/types/page-footer/index.d.ts +2 -0
- package/types/page-footer/src/page-footer.props.d.ts +1 -0
- package/types/pagination/index.d.ts +0 -15
- package/types/pagination/src/pagination.props.d.ts +1 -0
- package/types/progress/src/progress.props.d.ts +1 -0
- package/types/query-solution/index.d.ts +1 -1
- package/types/radio-group/designer.d.ts +1 -2
- package/types/search-box/index.d.ts +17 -1
- package/types/search-box/src/search-box.props.d.ts +1 -0
- package/types/section/designer.d.ts +0 -1
- package/types/smoke-detector/index.d.ts +2 -0
- package/types/smoke-detector/src/smoke-detector.props.d.ts +1 -0
- package/types/sort-condition-editor/index.d.ts +7 -2
- package/types/sort-condition-editor/src/sort-condition-editor.props.d.ts +1 -0
- package/types/splitter/index.d.ts +0 -1
- package/types/splitter/src/components/splitter-pane.props.d.ts +1 -0
- package/types/splitter/src/splitter.props.d.ts +1 -0
- package/types/tabs/designer.d.ts +0 -1
- package/types/tabs/index.d.ts +1 -0
- package/types/text/index.d.ts +20 -24
- package/types/text/src/text.props.d.ts +1 -0
- package/types/transfer/src/transfer.props.d.ts +1 -0
- package/types/tree-view/src/tree-view.props.d.ts +1 -0
- package/types/uploader/src/uploader.props.d.ts +1 -0
- package/types/verify-detail/index.d.ts +5 -58
- package/types/verify-detail/src/designer/verify-detail.design.component.d.ts +8 -8
- package/types/verify-detail/src/verify-detail.props.d.ts +1 -0
- package/types/video/index.d.ts +20 -24
- package/types/video/src/video.props.d.ts +1 -0
- package/components/dynamic-form/index.css +0 -1
- package/designer/accordion/index.esm.js +0 -257
- package/designer/accordion/index.umd.cjs +0 -1
- package/designer/avatar/index.esm.js +0 -1460
- package/designer/avatar/index.umd.cjs +0 -1
- package/designer/binding-selector/index.esm.js +0 -792
- package/designer/binding-selector/index.umd.cjs +0 -1
- package/designer/button-group/index.esm.js +0 -282
- package/designer/button-group/index.umd.cjs +0 -1
- package/designer/code-editor/index.esm.js +0 -75
- package/designer/code-editor/index.umd.cjs +0 -1
- package/designer/color-picker/index.esm.js +0 -1096
- package/designer/color-picker/index.umd.cjs +0 -1
- package/designer/combo-list/index.esm.js +0 -1095
- package/designer/combo-list/index.umd.cjs +0 -1
- package/designer/combo-tree/index.esm.js +0 -186
- package/designer/combo-tree/index.umd.cjs +0 -1
- package/designer/component/index.css +0 -1
- package/designer/component/index.esm.js +0 -5002
- package/designer/component/index.umd.cjs +0 -1
- package/designer/condition/index.esm.js +0 -1899
- package/designer/condition/index.umd.cjs +0 -1
- package/designer/dropdown/index.esm.js +0 -261
- package/designer/dropdown/index.umd.cjs +0 -1
- package/designer/expression-editor/index.css +0 -1
- package/designer/expression-editor/index.esm.js +0 -7006
- package/designer/expression-editor/index.umd.cjs +0 -427
- package/designer/filter-condition-editor/index.css +0 -1
- package/designer/filter-condition-editor/index.esm.js +0 -4795
- package/designer/filter-condition-editor/index.umd.cjs +0 -1
- package/designer/html-template/index.esm.js +0 -718
- package/designer/html-template/index.umd.cjs +0 -1
- package/designer/image-cropper/index.esm.js +0 -765
- package/designer/image-cropper/index.umd.cjs +0 -1
- package/designer/json-editor/index.esm.js +0 -83
- package/designer/json-editor/index.umd.cjs +0 -1
- package/designer/language-textbox/index.esm.js +0 -783
- package/designer/language-textbox/index.umd.cjs +0 -8
- package/designer/layout/index.esm.js +0 -430
- package/designer/layout/index.umd.cjs +0 -1
- package/designer/list-nav/index.esm.js +0 -802
- package/designer/list-nav/index.umd.cjs +0 -1
- package/designer/lookup/index.esm.js +0 -2083
- package/designer/lookup/index.umd.cjs +0 -1
- package/designer/menu-lookup/index.esm.js +0 -46
- package/designer/menu-lookup/index.umd.cjs +0 -1
- package/designer/nav/index.esm.js +0 -284
- package/designer/nav/index.umd.cjs +0 -1
- package/designer/number-range/index.esm.js +0 -1616
- package/designer/number-range/index.umd.cjs +0 -1
- package/designer/order/index.css +0 -1
- package/designer/order/index.esm.js +0 -2196
- package/designer/order/index.umd.cjs +0 -18
- package/designer/page-footer/index.esm.js +0 -290
- package/designer/page-footer/index.umd.cjs +0 -1
- package/designer/page-header/index.esm.js +0 -1003
- package/designer/page-header/index.umd.cjs +0 -1
- package/designer/pagination/index.esm.js +0 -591
- package/designer/pagination/index.umd.cjs +0 -1
- package/designer/progress/index.esm.js +0 -213
- package/designer/progress/index.umd.cjs +0 -1
- package/designer/search-box/index.esm.js +0 -245
- package/designer/search-box/index.umd.cjs +0 -1
- package/designer/smoke-detector/index.css +0 -1
- package/designer/smoke-detector/index.esm.js +0 -178
- package/designer/smoke-detector/index.umd.cjs +0 -1
- package/designer/sort-condition-editor/index.esm.js +0 -138
- package/designer/sort-condition-editor/index.umd.cjs +0 -1
- package/designer/splitter/index.esm.js +0 -1120
- package/designer/splitter/index.umd.cjs +0 -1
- package/designer/step/index.esm.js +0 -226
- package/designer/step/index.umd.cjs +0 -1
- package/designer/text/index.esm.js +0 -147
- package/designer/text/index.umd.cjs +0 -1
- package/designer/transfer/index.esm.js +0 -254
- package/designer/transfer/index.umd.cjs +0 -1
- package/designer/tree-view/index.esm.js +0 -313
- package/designer/tree-view/index.umd.cjs +0 -1
- package/designer/uploader/index.esm.js +0 -1190
- package/designer/uploader/index.umd.cjs +0 -2
- package/designer/verify-detail/index.esm.js +0 -258
- package/designer/verify-detail/index.umd.cjs +0 -1
- package/designer/video/index.esm.js +0 -136
- package/designer/video/index.umd.cjs +0 -1
- package/designer/weather/index.css +0 -1
- package/designer/weather/index.esm.js +0 -6244
- package/designer/weather/index.umd.cjs +0 -14
- package/types/accordion/designer.d.ts +0 -44
- package/types/avatar/designer.d.ts +0 -29
- package/types/button-group/designer.d.ts +0 -29
- package/types/code-editor/designer.d.ts +0 -5
- package/types/color-picker/designer.d.ts +0 -29
- package/types/combo-list/designer.d.ts +0 -29
- package/types/combo-list/src/designer/combo-list.design.props.d.ts +0 -6
- package/types/combo-tree/designer.d.ts +0 -5
- package/types/component/designer.d.ts +0 -35
- package/types/condition/designer.d.ts +0 -56
- package/types/dropdown/designer.d.ts +0 -6
- package/types/dynamic-form/src/composition/use-input-type-resolver.d.ts +0 -11
- package/types/expression-editor/designer.d.ts +0 -9
- package/types/filter-condition-editor/designer.d.ts +0 -10
- package/types/html-template/designer.d.ts +0 -31
- package/types/html-template/src/designer/html-template.design.props.d.ts +0 -9
- package/types/image-cropper/designer.d.ts +0 -4
- package/types/json-editor/designer.d.ts +0 -5
- package/types/layout/designer.d.ts +0 -32
- package/types/list-nav/designer.d.ts +0 -6
- package/types/menu-lookup/designer.d.ts +0 -5
- package/types/nav/designer.d.ts +0 -6
- package/types/number-range/designer.d.ts +0 -29
- package/types/order/designer.d.ts +0 -6
- package/types/page-footer/designer.d.ts +0 -6
- package/types/page-header/src/designer/page-header.design.props.d.ts +0 -20
- package/types/pagination/designer.d.ts +0 -29
- package/types/progress/designer.d.ts +0 -29
- package/types/search-box/designer.d.ts +0 -52
- package/types/smoke-detector/designer.d.ts +0 -6
- package/types/sort-condition-editor/designer.d.ts +0 -9
- package/types/splitter/designer.d.ts +0 -32
- package/types/step/designer.d.ts +0 -6
- package/types/text/designer.d.ts +0 -6
- package/types/transfer/designer.d.ts +0 -35
- package/types/tree-view/designer.d.ts +0 -29
- package/types/uploader/designer.d.ts +0 -141
- package/types/verify-detail/designer.d.ts +0 -6
- package/types/video/designer.d.ts +0 -6
- /package/{designer → components}/condition/index.css +0 -0
- /package/{designer → components}/uploader/index.css +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as B, computed as y, watch as M, nextTick as L, reactive as pe, createVNode as u, withDirectives as Z, resolveDirective as he, onMounted as U, vModelText as me, Fragment as ge, defineComponent as ee, shallowRef as E, provide as ye, inject as Te, onUnmounted as Ce, isVNode as we } from "vue";
|
|
2
2
|
import { getCustomClass as Se, isMobilePhone as te } from "../common/index.esm.js";
|
|
3
|
-
import
|
|
4
|
-
import { LocaleService as
|
|
3
|
+
import Be from "../capsule/index.esm.js";
|
|
4
|
+
import { LocaleService as $ } from "../locale/index.esm.js";
|
|
5
5
|
import Ie from "../response-toolbar/index.esm.js";
|
|
6
6
|
import Q from "../section/index.esm.js";
|
|
7
|
-
|
|
7
|
+
import { BaseControlProperty as xe } from "../property-panel/index.esm.js";
|
|
8
|
+
const Oe = {
|
|
8
9
|
/** 标签页头部区域的展示类型 */
|
|
9
10
|
tabType: { type: String, default: "default" },
|
|
10
11
|
/** 标题自适应宽度 */
|
|
@@ -27,196 +28,196 @@ const Be = {
|
|
|
27
28
|
/** 控制是否可见 */
|
|
28
29
|
visible: { type: Boolean, default: !0 }
|
|
29
30
|
};
|
|
30
|
-
function
|
|
31
|
-
const
|
|
32
|
-
let
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
return (
|
|
31
|
+
function je(e, t, n) {
|
|
32
|
+
const i = B([]), o = B(e.activeId || "");
|
|
33
|
+
let f = "";
|
|
34
|
+
const h = B(!0), v = B([]), d = B(!0), c = B(0), m = y(() => {
|
|
35
|
+
const s = i.value.find((a) => a.props.id === o.value);
|
|
36
|
+
return (s == null ? void 0 : s.props.toolbarPosition) === "inHead";
|
|
36
37
|
});
|
|
37
|
-
function S(
|
|
38
|
-
const a =
|
|
38
|
+
function S(s, l = !0) {
|
|
39
|
+
const a = s.findIndex((g) => g.props.show !== !1 && !g.props.disabled);
|
|
39
40
|
if (v.value = [], a !== -1) {
|
|
40
|
-
if (
|
|
41
|
+
if (o.value = s[a].props.id, !l)
|
|
41
42
|
return;
|
|
42
|
-
const
|
|
43
|
-
|
|
43
|
+
const g = s[a];
|
|
44
|
+
g && g.props.toolbar && g.props.toolbar.buttons && g.props.toolbar.buttons.length && (v.value = [...g.props.toolbar.buttons], d.value = g.props.toolbarVisible);
|
|
44
45
|
}
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
v.value = [],
|
|
50
|
-
prevId:
|
|
51
|
-
nextId:
|
|
47
|
+
function C(s) {
|
|
48
|
+
o.value = s;
|
|
49
|
+
const l = i.value.find((a) => a.props.id === s);
|
|
50
|
+
v.value = [], l && l.props.toolbar && l.props.toolbar.buttons && l.props.toolbar.buttons.length && (v.value = [...l.props.toolbar.buttons], d.value = l.props.toolbarVisible), t.emit("update:activeId", s), t.emit("tabChange", {
|
|
51
|
+
prevId: f,
|
|
52
|
+
nextId: o.value
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
function I(
|
|
55
|
-
let
|
|
56
|
-
if (!
|
|
57
|
-
if (
|
|
55
|
+
function I(s) {
|
|
56
|
+
let l = -1;
|
|
57
|
+
if (!o.value) {
|
|
58
|
+
if (l = s.findIndex((a) => o.value === a.props.id && a.props.show !== !1 && !a.props.disabled), l > -1)
|
|
58
59
|
return;
|
|
59
|
-
|
|
60
|
+
f = o.value;
|
|
60
61
|
}
|
|
61
|
-
S(
|
|
62
|
+
S(s, !1), C(o.value);
|
|
62
63
|
}
|
|
63
|
-
function O(
|
|
64
|
-
let
|
|
65
|
-
if (
|
|
66
|
-
const a =
|
|
67
|
-
|
|
64
|
+
function O(s) {
|
|
65
|
+
let l = !1;
|
|
66
|
+
if (s) {
|
|
67
|
+
const a = i.value.find((g) => g.props.id === s);
|
|
68
|
+
l = !a || a.props.show === !1 || a.props.disabled === !0;
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
+
l ? I(i.value) : (o.value !== s && (f = o.value, o.value = s), C(o.value));
|
|
70
71
|
}
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
M(() => e.activeId, (s, l) => {
|
|
73
|
+
s !== l && e.activeId !== o.value && O(s);
|
|
73
74
|
});
|
|
74
|
-
function
|
|
75
|
+
function b(s) {
|
|
75
76
|
var a;
|
|
76
77
|
if (e.autoTitleWidth)
|
|
77
78
|
return;
|
|
78
|
-
const
|
|
79
|
-
if (!(!
|
|
80
|
-
for (let
|
|
81
|
-
const
|
|
82
|
-
|
|
79
|
+
const l = (a = s.value) == null ? void 0 : a.querySelectorAll(".st-tab-text");
|
|
80
|
+
if (!(!l || e.tabType === "pill"))
|
|
81
|
+
for (let g = 0; g < l.length; g++) {
|
|
82
|
+
const R = l[g].parentNode;
|
|
83
|
+
l[g].scrollWidth > R.offsetWidth ? l[g].classList.contains("farris-title-text-custom") || l[g].classList.add("farris-title-text-custom") : l[g].classList.remove("farris-title-text-custom");
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
86
|
+
const p = (s) => {
|
|
87
|
+
s.preventDefault(), s.stopPropagation();
|
|
87
88
|
};
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
removeIndex:
|
|
93
|
-
removeId:
|
|
94
|
-
activeId:
|
|
89
|
+
function T(s, l, a = !1) {
|
|
90
|
+
const g = i.value.findIndex((R) => R.props.id === l);
|
|
91
|
+
i.value = i.value.filter((R) => R.props.id !== l), o.value === l && (f = l, o.value = "", S(i.value)), p(s), L(() => {
|
|
92
|
+
c.value++, b(n), a && (h.value = !0), t.emit("tabRemove", {
|
|
93
|
+
removeIndex: g,
|
|
94
|
+
removeId: l,
|
|
95
|
+
activeId: o.value
|
|
95
96
|
});
|
|
96
97
|
});
|
|
97
98
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
function r(s, l = !0) {
|
|
100
|
+
o.value === s && (o.value = "", f = s, O("")), L(() => {
|
|
101
|
+
c.value++, l && (h.value = !0);
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
|
-
let
|
|
104
|
-
function j(
|
|
105
|
-
|
|
104
|
+
let x;
|
|
105
|
+
function j(s) {
|
|
106
|
+
x = s;
|
|
106
107
|
}
|
|
107
|
-
function H(
|
|
108
|
-
|
|
108
|
+
function H(s) {
|
|
109
|
+
o.value !== s && (f = o.value, C(s), x && x());
|
|
109
110
|
}
|
|
110
|
-
function
|
|
111
|
-
|
|
111
|
+
function V(s) {
|
|
112
|
+
i.value.findIndex((a) => a.props.id === s.props.id) === -1 && i.value.push(s), c.value++;
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
115
|
-
a.props.id ===
|
|
116
|
-
}),
|
|
117
|
-
|
|
114
|
+
function k(s) {
|
|
115
|
+
i.value.findIndex((a) => a.props.id === s.props.id) !== -1 && (i.value.forEach((a) => {
|
|
116
|
+
a.props.id === s.props.id && (a = s);
|
|
117
|
+
}), s.props.id === o.value && m.value, L(() => {
|
|
118
|
+
c.value++, b(n);
|
|
118
119
|
}));
|
|
119
120
|
}
|
|
120
121
|
return {
|
|
121
|
-
activeId:
|
|
122
|
-
addTab:
|
|
123
|
-
changeTitleStyle:
|
|
124
|
-
removeTab:
|
|
122
|
+
activeId: o,
|
|
123
|
+
addTab: V,
|
|
124
|
+
changeTitleStyle: b,
|
|
125
|
+
removeTab: T,
|
|
125
126
|
selectTab: H,
|
|
126
|
-
tabPages:
|
|
127
|
-
updateTab:
|
|
127
|
+
tabPages: i,
|
|
128
|
+
updateTab: k,
|
|
128
129
|
toolbarItems: v,
|
|
129
|
-
needUpdateNavigationLayout:
|
|
130
|
+
needUpdateNavigationLayout: c,
|
|
130
131
|
checkActiveIdAndSelect: O,
|
|
131
|
-
toggleShowTab:
|
|
132
|
-
hasInHeadClass:
|
|
132
|
+
toggleShowTab: r,
|
|
133
|
+
hasInHeadClass: m,
|
|
133
134
|
setScrollToSelectedTabFunction: j,
|
|
134
|
-
toolbarVisible:
|
|
135
|
+
toolbarVisible: d
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
+
function He(e, t, n, i, o) {
|
|
138
139
|
const {
|
|
139
|
-
activeId:
|
|
140
|
-
removeTab:
|
|
140
|
+
activeId: f,
|
|
141
|
+
removeTab: h,
|
|
141
142
|
selectTab: v
|
|
142
|
-
} =
|
|
143
|
-
const
|
|
143
|
+
} = o, d = y(() => {
|
|
144
|
+
const r = {
|
|
144
145
|
"st-tab-text": !0,
|
|
145
146
|
"text-truncate": e.tabType === "pill" && !e.autoTitleWidth,
|
|
146
147
|
"farris-title-auto": e.autoTitleWidth
|
|
147
148
|
};
|
|
148
|
-
return Se(
|
|
149
|
-
}),
|
|
149
|
+
return Se(r, t.customTitleClass);
|
|
150
|
+
}), c = y(() => ({
|
|
150
151
|
"nav-item": !0,
|
|
151
|
-
"d-none":
|
|
152
|
-
"f-state-active":
|
|
153
|
-
"f-state-disabled":
|
|
154
|
-
})),
|
|
155
|
-
width: `${
|
|
156
|
-
})), S =
|
|
152
|
+
"d-none": t.show !== void 0 ? !t.show : !1,
|
|
153
|
+
"f-state-active": t.id === f.value,
|
|
154
|
+
"f-state-disabled": t.disabled
|
|
155
|
+
})), m = y(() => ({
|
|
156
|
+
width: `${t.tabWidth}px`
|
|
157
|
+
})), S = y(() => ({
|
|
157
158
|
"nav-link": !0,
|
|
158
159
|
"tabs-text-truncate": !0,
|
|
159
|
-
active:
|
|
160
|
-
disabled:
|
|
161
|
-
})),
|
|
162
|
-
content:
|
|
160
|
+
active: t.id === f.value,
|
|
161
|
+
disabled: t.disabled
|
|
162
|
+
})), C = pe({
|
|
163
|
+
content: t.title,
|
|
163
164
|
overflowShown: !0
|
|
164
165
|
});
|
|
165
166
|
function I() {
|
|
166
167
|
return e.tabType !== "pill" && !e.autoTitleWidth ? Z(u("span", {
|
|
167
|
-
class:
|
|
168
|
-
"data-tabid":
|
|
169
|
-
}, [
|
|
170
|
-
class:
|
|
171
|
-
"data-tabid":
|
|
172
|
-
title:
|
|
173
|
-
}, [
|
|
174
|
-
}
|
|
175
|
-
const O =
|
|
176
|
-
function
|
|
168
|
+
class: d.value,
|
|
169
|
+
"data-tabid": t.id
|
|
170
|
+
}, [t.title]), [[he("tooltip"), C]]) : u("span", {
|
|
171
|
+
class: d.value,
|
|
172
|
+
"data-tabid": t.id,
|
|
173
|
+
title: t.title
|
|
174
|
+
}, [t.title]);
|
|
175
|
+
}
|
|
176
|
+
const O = B(t.removeable);
|
|
177
|
+
function b() {
|
|
177
178
|
return O.value ? u("span", {
|
|
178
179
|
class: "st-drop-close",
|
|
179
|
-
onClick: (
|
|
180
|
+
onClick: (r) => h(r, t.id)
|
|
180
181
|
}, [u("i", {
|
|
181
182
|
class: "f-icon f-icon-close"
|
|
182
183
|
}, null)]) : "";
|
|
183
184
|
}
|
|
184
|
-
function
|
|
185
|
-
v(
|
|
185
|
+
function p(r) {
|
|
186
|
+
v(t.id), e.tabType === "one-page" && i.scrollToByPaggId(t.id);
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
-
return
|
|
188
|
+
function T() {
|
|
189
|
+
return n.slots.title ? u("a", {
|
|
189
190
|
class: S.value,
|
|
190
|
-
onClick:
|
|
191
|
-
id: `${
|
|
192
|
-
}, [
|
|
191
|
+
onClick: p,
|
|
192
|
+
id: `${t.id}-design-item`
|
|
193
|
+
}, [n.slots.title(n), b()]) : t.titleRenderFunction ? u("a", {
|
|
193
194
|
class: S.value,
|
|
194
|
-
onClick:
|
|
195
|
-
id: `${
|
|
196
|
-
}, [
|
|
195
|
+
onClick: p,
|
|
196
|
+
id: `${t.id}-design-item`
|
|
197
|
+
}, [t.titleRenderFunction(), b()]) : u("a", {
|
|
197
198
|
class: S.value,
|
|
198
|
-
onClick:
|
|
199
|
-
id: `${
|
|
200
|
-
}, [I(),
|
|
199
|
+
onClick: p,
|
|
200
|
+
id: `${t.id}-design-item`
|
|
201
|
+
}, [I(), b()]);
|
|
201
202
|
}
|
|
202
203
|
return u("li", {
|
|
203
|
-
class:
|
|
204
|
-
style:
|
|
205
|
-
}, [
|
|
204
|
+
class: c.value,
|
|
205
|
+
style: m.value
|
|
206
|
+
}, [T()]);
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function Pe(e, t, n, i, o) {
|
|
208
209
|
const {
|
|
209
|
-
shouldShowNavigationButtons:
|
|
210
|
-
} =
|
|
211
|
-
tabPages:
|
|
212
|
-
} =
|
|
210
|
+
shouldShowNavigationButtons: f
|
|
211
|
+
} = n, {
|
|
212
|
+
tabPages: h
|
|
213
|
+
} = o, v = y(() => ({
|
|
213
214
|
spacer: !0,
|
|
214
215
|
"f-utils-fill": !0,
|
|
215
|
-
"spacer-sides-dropdown":
|
|
216
|
-
})),
|
|
216
|
+
"spacer-sides-dropdown": f.value
|
|
217
|
+
})), d = y(() => ({
|
|
217
218
|
width: "100%",
|
|
218
219
|
"justify-content": e.justifyContent
|
|
219
|
-
})),
|
|
220
|
+
})), c = y(() => ({
|
|
220
221
|
nav: !0,
|
|
221
222
|
"farris-nav-tabs": !0,
|
|
222
223
|
"flex-nowrap": !0,
|
|
@@ -227,345 +228,345 @@ function He(e, l, s, c, n) {
|
|
|
227
228
|
}));
|
|
228
229
|
return () => u("div", {
|
|
229
230
|
class: v.value,
|
|
230
|
-
style:
|
|
231
|
+
style: d.value
|
|
231
232
|
}, [u("ul", {
|
|
232
|
-
class:
|
|
233
|
-
ref:
|
|
234
|
-
}, [
|
|
233
|
+
class: c.value,
|
|
234
|
+
ref: t
|
|
235
|
+
}, [h.value.map((m) => He(e, m.props, m, i, o))])]);
|
|
235
236
|
}
|
|
236
|
-
function ke(e,
|
|
237
|
-
const
|
|
238
|
-
shouldShowNavigationButtons:
|
|
239
|
-
} =
|
|
237
|
+
function ke(e, t, n, i, o) {
|
|
238
|
+
const f = B(), {
|
|
239
|
+
shouldShowNavigationButtons: h
|
|
240
|
+
} = n, {
|
|
240
241
|
activeId: v,
|
|
241
|
-
tabPages:
|
|
242
|
-
selectTab:
|
|
243
|
-
} =
|
|
244
|
-
name:
|
|
245
|
-
value:
|
|
246
|
-
show:
|
|
247
|
-
disabled:
|
|
248
|
-
}))),
|
|
242
|
+
tabPages: d,
|
|
243
|
+
selectTab: c
|
|
244
|
+
} = o, m = B(v.value), S = y(() => d.value.map((b) => ({
|
|
245
|
+
name: b.props.title,
|
|
246
|
+
value: b.props.id,
|
|
247
|
+
show: b.props.show,
|
|
248
|
+
disabled: b.props.disabled
|
|
249
|
+
}))), C = y(() => ({
|
|
249
250
|
spacer: !0,
|
|
250
251
|
"f-utils-fill": !0,
|
|
251
|
-
"spacer-sides-dropdown":
|
|
252
|
-
})), I =
|
|
252
|
+
"spacer-sides-dropdown": h.value
|
|
253
|
+
})), I = y(() => ({
|
|
253
254
|
width: "100%",
|
|
254
255
|
display: "flex",
|
|
255
256
|
"justify-content": e.justifyContent
|
|
256
257
|
}));
|
|
257
258
|
U(() => {
|
|
258
|
-
|
|
259
|
+
f.value && (t.value = f.value.$el);
|
|
259
260
|
});
|
|
260
|
-
function O(
|
|
261
|
-
|
|
261
|
+
function O(b) {
|
|
262
|
+
c(b);
|
|
262
263
|
}
|
|
263
|
-
return
|
|
264
|
-
|
|
264
|
+
return M(() => v.value, (b) => {
|
|
265
|
+
b !== m.value && (m.value = b);
|
|
265
266
|
}, {
|
|
266
267
|
immediate: !0
|
|
267
268
|
}), () => u("div", {
|
|
268
|
-
class:
|
|
269
|
+
class: C.value,
|
|
269
270
|
style: I.value
|
|
270
|
-
}, [u(
|
|
271
|
+
}, [u(Be, {
|
|
271
272
|
items: S.value,
|
|
272
|
-
modelValue:
|
|
273
|
-
"onUpdate:modelValue": (
|
|
273
|
+
modelValue: m.value,
|
|
274
|
+
"onUpdate:modelValue": (b) => m.value = b,
|
|
274
275
|
onChange: O,
|
|
275
|
-
ref:
|
|
276
|
+
ref: f
|
|
276
277
|
}, null)]);
|
|
277
278
|
}
|
|
278
|
-
function Re(e,
|
|
279
|
-
const
|
|
280
|
-
activeId:
|
|
281
|
-
removeTab:
|
|
279
|
+
function Re(e, t, n, i) {
|
|
280
|
+
const o = B(), {
|
|
281
|
+
activeId: f,
|
|
282
|
+
removeTab: h,
|
|
282
283
|
tabPages: v,
|
|
283
|
-
selectTab:
|
|
284
|
-
} =
|
|
285
|
-
hideDropDown:
|
|
286
|
-
searchTabText:
|
|
287
|
-
} =
|
|
288
|
-
let
|
|
289
|
-
const I =
|
|
290
|
-
var a,
|
|
291
|
-
let
|
|
292
|
-
return e.searchBoxVisible ?
|
|
293
|
-
}), O =
|
|
284
|
+
selectTab: d
|
|
285
|
+
} = i, {
|
|
286
|
+
hideDropDown: c,
|
|
287
|
+
searchTabText: m
|
|
288
|
+
} = t, S = 600;
|
|
289
|
+
let C = null;
|
|
290
|
+
const I = y(() => {
|
|
291
|
+
var a, g;
|
|
292
|
+
let l = [];
|
|
293
|
+
return e.searchBoxVisible ? l = (a = v.value) == null ? void 0 : a.filter((R) => R.props.title.includes(m.value)) : l = (g = v.value) == null ? void 0 : g.slice(), l;
|
|
294
|
+
}), O = y(() => ({
|
|
294
295
|
"dropdown-menu": !0,
|
|
295
296
|
"tabs-pt28": e.searchBoxVisible,
|
|
296
297
|
// 未看到样式定义
|
|
297
|
-
show: !
|
|
298
|
-
"d-none":
|
|
298
|
+
show: !c.value,
|
|
299
|
+
"d-none": c.value
|
|
299
300
|
}));
|
|
300
|
-
let
|
|
301
|
-
function
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
if (
|
|
306
|
-
if (
|
|
307
|
-
|
|
301
|
+
let b;
|
|
302
|
+
function p(l) {
|
|
303
|
+
b = l;
|
|
304
|
+
}
|
|
305
|
+
M(c, (l) => {
|
|
306
|
+
if (b.value)
|
|
307
|
+
if (l)
|
|
308
|
+
o.value.style.width = null;
|
|
308
309
|
else {
|
|
309
|
-
const a =
|
|
310
|
-
|
|
310
|
+
const a = b.value.querySelector(".farris-tabs-header"), g = b.value.clientHeight - a.clientHeight - 20, W = a.querySelector(".farris-tabs-title").clientWidth - 20;
|
|
311
|
+
o.value.style.maxWidth = W + "px", o.value.style.maxHeight = g + "px", L(() => {
|
|
311
312
|
const {
|
|
312
|
-
width:
|
|
313
|
-
} =
|
|
314
|
-
|
|
313
|
+
width: D
|
|
314
|
+
} = o.value.getClientRects()[0];
|
|
315
|
+
o.value.style.width = D ? D + "px" : null;
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
318
|
});
|
|
318
|
-
function
|
|
319
|
+
function T(l) {
|
|
319
320
|
return {
|
|
320
321
|
"dropdown-item": !0,
|
|
321
322
|
"text-truncate": !0,
|
|
322
323
|
"px-2": !0,
|
|
323
|
-
disabled:
|
|
324
|
-
active:
|
|
325
|
-
"d-none":
|
|
324
|
+
disabled: l.props.disabled,
|
|
325
|
+
active: l.props.id === f.value,
|
|
326
|
+
"d-none": l.props.show !== !0
|
|
326
327
|
};
|
|
327
328
|
}
|
|
328
|
-
function
|
|
329
|
-
|
|
329
|
+
function r(l) {
|
|
330
|
+
l.preventDefault(), l.stopPropagation();
|
|
330
331
|
}
|
|
331
|
-
function
|
|
332
|
-
|
|
332
|
+
function x() {
|
|
333
|
+
C && clearTimeout(C);
|
|
333
334
|
}
|
|
334
335
|
function j() {
|
|
335
|
-
|
|
336
|
-
|
|
336
|
+
c.value || (C = setTimeout(() => {
|
|
337
|
+
c.value = !0;
|
|
337
338
|
}, S));
|
|
338
339
|
}
|
|
339
|
-
function H(
|
|
340
|
-
|
|
340
|
+
function H(l, a) {
|
|
341
|
+
l.stopPropagation(), a.disabled || d(a.id), c.value = !0;
|
|
341
342
|
}
|
|
342
|
-
function
|
|
343
|
-
|
|
343
|
+
function V(l, a) {
|
|
344
|
+
l.stopPropagation(), h(l, a, !0);
|
|
344
345
|
}
|
|
345
|
-
function
|
|
346
|
-
return
|
|
346
|
+
function k(l) {
|
|
347
|
+
return l.slots.title ? u("a", {
|
|
347
348
|
class: "dropdown-title",
|
|
348
|
-
id: `${
|
|
349
|
-
}, [
|
|
349
|
+
id: `${l.props.id}-dropdown-item`
|
|
350
|
+
}, [l.slots.title(l)]) : l.props.titleRenderFunction ? u("a", {
|
|
350
351
|
class: "dropdown-title",
|
|
351
|
-
id: `${
|
|
352
|
-
}, [
|
|
352
|
+
id: `${l.props.id}-dropdown-item`
|
|
353
|
+
}, [l.props.titleRenderFunction()]) : u("a", {
|
|
353
354
|
class: "dropdown-title",
|
|
354
|
-
id: `${
|
|
355
|
-
}, [
|
|
355
|
+
id: `${l.props.id}-dropdown-item`
|
|
356
|
+
}, [l.props.title]);
|
|
356
357
|
}
|
|
357
|
-
function
|
|
358
|
+
function s() {
|
|
358
359
|
return u("div", {
|
|
359
|
-
ref:
|
|
360
|
+
ref: o,
|
|
360
361
|
class: O.value,
|
|
361
|
-
onMouseenter: () =>
|
|
362
|
+
onMouseenter: () => x(),
|
|
362
363
|
onMouseleave: () => j()
|
|
363
364
|
}, [e.searchBoxVisible && u("div", {
|
|
364
|
-
onClick: (
|
|
365
|
+
onClick: (l) => r(l),
|
|
365
366
|
class: "pb-1 tabs-li-absolute"
|
|
366
367
|
}, [Z(u("input", {
|
|
367
368
|
type: "text",
|
|
368
369
|
class: "form-control",
|
|
369
|
-
"onUpdate:modelValue": (
|
|
370
|
-
}, null), [[me,
|
|
370
|
+
"onUpdate:modelValue": (l) => m.value = l
|
|
371
|
+
}, null), [[me, m.value]]), u("span", {
|
|
371
372
|
class: "f-icon f-icon-page-title-query tabs-icon-search"
|
|
372
373
|
}, null)]), I.value.length ? u("ul", {
|
|
373
374
|
class: "tab-dropdown-menu--items flex-fill"
|
|
374
|
-
}, [I.value.map((
|
|
375
|
-
class:
|
|
376
|
-
onClick: (a) => H(a,
|
|
377
|
-
}, [
|
|
375
|
+
}, [I.value.map((l) => u("li", {
|
|
376
|
+
class: T(l),
|
|
377
|
+
onClick: (a) => H(a, l.props)
|
|
378
|
+
}, [l.props.removeable && l.props.disabled !== !0 && u("span", {
|
|
378
379
|
class: "float-right st-drop-close",
|
|
379
|
-
onClick: (a) =>
|
|
380
|
+
onClick: (a) => V(a, l.props.id)
|
|
380
381
|
}, [u("i", {
|
|
381
382
|
class: "f-icon f-icon-close"
|
|
382
|
-
}, null)]),
|
|
383
|
+
}, null)]), k(l)]))]) : u("div", {
|
|
383
384
|
class: "dropdown-no-data"
|
|
384
|
-
}, [
|
|
385
|
+
}, [$.getLocaleValue("tabs.noData")])]);
|
|
385
386
|
}
|
|
386
387
|
return {
|
|
387
|
-
renderDropdownMenu:
|
|
388
|
-
setTabsRef:
|
|
388
|
+
renderDropdownMenu: s,
|
|
389
|
+
setTabsRef: p
|
|
389
390
|
};
|
|
390
391
|
}
|
|
391
|
-
function
|
|
392
|
+
function Me(e, t, n, i) {
|
|
392
393
|
const {
|
|
393
|
-
hideDropDown:
|
|
394
|
-
} =
|
|
395
|
-
renderDropdownMenu:
|
|
396
|
-
setTabsRef:
|
|
397
|
-
} = Re(e,
|
|
398
|
-
function
|
|
399
|
-
return v.value && u(
|
|
394
|
+
hideDropDown: o
|
|
395
|
+
} = t, {
|
|
396
|
+
renderDropdownMenu: f,
|
|
397
|
+
setTabsRef: h
|
|
398
|
+
} = Re(e, t, n, i), v = B(e.showDropdown);
|
|
399
|
+
function d() {
|
|
400
|
+
return v.value && u(ge, null, [u("button", {
|
|
400
401
|
class: "btn dropdown-toggle-split dropdown-toggle",
|
|
401
402
|
onClick: () => {
|
|
402
|
-
|
|
403
|
+
o.value = !1;
|
|
403
404
|
}
|
|
404
|
-
}, null),
|
|
405
|
+
}, null), f()]);
|
|
405
406
|
}
|
|
406
407
|
return {
|
|
407
|
-
renderMorePagesButtton:
|
|
408
|
-
setTabsRef:
|
|
408
|
+
renderMorePagesButtton: d,
|
|
409
|
+
setTabsRef: h
|
|
409
410
|
};
|
|
410
411
|
}
|
|
411
|
-
function
|
|
412
|
-
const
|
|
412
|
+
function Ve(e, t, n, i) {
|
|
413
|
+
const o = B(!1), { selectTab: f, tabPages: h, needUpdateNavigationLayout: v, activeId: d } = i, c = 4, m = y(() => ({
|
|
413
414
|
btn: !0,
|
|
414
415
|
"sc-nav-btn": !0,
|
|
415
416
|
"px-1": !0,
|
|
416
417
|
"sc-nav-lr": !0,
|
|
417
|
-
"d-none": !
|
|
418
|
-
})), S =
|
|
418
|
+
"d-none": !o.value
|
|
419
|
+
})), S = y(() => ({
|
|
419
420
|
"btn-group": !0,
|
|
420
421
|
"sc-nav-btn": !0,
|
|
421
422
|
dropdown: !0,
|
|
422
|
-
"d-none": !
|
|
423
|
-
})),
|
|
423
|
+
"d-none": !o.value
|
|
424
|
+
})), C = y(() => ({
|
|
424
425
|
btn: !0,
|
|
425
426
|
"sc-nav-rg": !0,
|
|
426
|
-
"d-none": !
|
|
427
|
+
"d-none": !o.value
|
|
427
428
|
}));
|
|
428
|
-
function I(
|
|
429
|
-
if (!
|
|
429
|
+
function I(r, x) {
|
|
430
|
+
if (!t.value)
|
|
430
431
|
return;
|
|
431
|
-
const j =
|
|
432
|
-
if (
|
|
433
|
-
if (
|
|
432
|
+
const j = t.value.scrollLeft, H = t.value.scrollWidth - t.value.offsetWidth;
|
|
433
|
+
if (x > 0) {
|
|
434
|
+
if (t.value.scrollLeft >= H)
|
|
434
435
|
return;
|
|
435
|
-
|
|
436
|
-
} else if (
|
|
437
|
-
if (
|
|
436
|
+
t.value.scrollLeft = j + e.scrollStep + r;
|
|
437
|
+
} else if (x < 0) {
|
|
438
|
+
if (t.value.scrollLeft <= 0)
|
|
438
439
|
return;
|
|
439
|
-
|
|
440
|
+
t.value.scrollLeft = j - e.scrollStep - r;
|
|
440
441
|
}
|
|
441
442
|
}
|
|
442
|
-
function O(
|
|
443
|
-
if (!
|
|
443
|
+
function O(r = -1) {
|
|
444
|
+
if (!o.value || !t.value)
|
|
444
445
|
return;
|
|
445
|
-
|
|
446
|
-
const
|
|
447
|
-
if (
|
|
448
|
-
const
|
|
449
|
-
|
|
446
|
+
r < 0 && (r = h.value.findIndex((k) => k.props.id === d.value));
|
|
447
|
+
const x = e.tabType === "pills" ? ".f-capsule-item" : ".nav-item", j = t.value.querySelectorAll(x), { parentElement: H } = t.value, V = j[r];
|
|
448
|
+
if (V && H) {
|
|
449
|
+
const k = H.getBoundingClientRect().left, s = H.getBoundingClientRect().right, l = V.getBoundingClientRect().left, a = V.getBoundingClientRect().right;
|
|
450
|
+
l < k ? I(k - l, -1) : s < a && I(a - s, 1), e.tabType === "one-page" && n.scrollTo(r);
|
|
450
451
|
}
|
|
451
452
|
}
|
|
452
|
-
function
|
|
453
|
+
function b() {
|
|
453
454
|
var j;
|
|
454
|
-
if (!
|
|
455
|
+
if (!t.value)
|
|
455
456
|
return;
|
|
456
|
-
const
|
|
457
|
-
|
|
457
|
+
const r = t.value, x = (j = t.value) == null ? void 0 : j.parentElement;
|
|
458
|
+
o.value = x && r && x.offsetWidth < r.scrollWidth - c, o.value && L(() => {
|
|
458
459
|
O();
|
|
459
460
|
});
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
-
|
|
462
|
+
function p(r) {
|
|
463
|
+
r.disabled || f(r.id);
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function T() {
|
|
465
466
|
["default", "one-page"].indexOf(e.tabType) > -1 && L(() => {
|
|
466
467
|
O();
|
|
467
468
|
});
|
|
468
469
|
}
|
|
469
|
-
return
|
|
470
|
-
|
|
470
|
+
return M(v, () => {
|
|
471
|
+
b();
|
|
471
472
|
}), {
|
|
472
|
-
previousButtonClass:
|
|
473
|
+
previousButtonClass: m,
|
|
473
474
|
nextButtonGroupClass: S,
|
|
474
|
-
nextButtonClass:
|
|
475
|
+
nextButtonClass: C,
|
|
475
476
|
scrollTab: I,
|
|
476
|
-
selectAndScrollToTab:
|
|
477
|
-
shouldShowNavigationButtons:
|
|
478
|
-
updateNavigationLayout:
|
|
479
|
-
scrollToSelectedTab:
|
|
477
|
+
selectAndScrollToTab: p,
|
|
478
|
+
shouldShowNavigationButtons: o,
|
|
479
|
+
updateNavigationLayout: b,
|
|
480
|
+
scrollToSelectedTab: T
|
|
480
481
|
};
|
|
481
482
|
}
|
|
482
|
-
function
|
|
483
|
-
const { tabPages:
|
|
484
|
-
return
|
|
485
|
-
v || (
|
|
483
|
+
function Le(e, t) {
|
|
484
|
+
const { tabPages: n } = t, i = B(""), o = B(!0), f = y(() => e.searchBoxVisible), h = y(() => f.value ? n.value.filter((d) => d.props.title.includes(i.value)) : n.value.slice());
|
|
485
|
+
return M(o, (v) => {
|
|
486
|
+
v || (i.value = "");
|
|
486
487
|
}), {
|
|
487
|
-
searchTabText:
|
|
488
|
-
hideDropDown:
|
|
489
|
-
shouldShowSearchBox:
|
|
490
|
-
tabsInDropdownMenu:
|
|
488
|
+
searchTabText: i,
|
|
489
|
+
hideDropDown: o,
|
|
490
|
+
shouldShowSearchBox: f,
|
|
491
|
+
tabsInDropdownMenu: h
|
|
491
492
|
};
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
-
const
|
|
495
|
-
function
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
const
|
|
501
|
-
|
|
494
|
+
function We(e, t, n) {
|
|
495
|
+
const i = ".farris-tab-page", { tabPages: o } = n;
|
|
496
|
+
function f(v) {
|
|
497
|
+
const d = t.value;
|
|
498
|
+
if (d) {
|
|
499
|
+
const c = t.value.querySelectorAll(i);
|
|
500
|
+
if (c.length > 0) {
|
|
501
|
+
const m = c[v], { offsetTop: S } = m, C = S - 32 > 0 ? S - 32 : 0;
|
|
502
|
+
d.scrollTop = C;
|
|
502
503
|
}
|
|
503
504
|
}
|
|
504
505
|
}
|
|
505
|
-
function
|
|
506
|
-
const
|
|
507
|
-
|
|
506
|
+
function h(v) {
|
|
507
|
+
const d = o.value.findIndex((c) => c.props.id === v);
|
|
508
|
+
d > -1 && f(d);
|
|
508
509
|
}
|
|
509
|
-
return { scrollTo:
|
|
510
|
+
return { scrollTo: f, scrollToByPaggId: h };
|
|
510
511
|
}
|
|
511
|
-
const
|
|
512
|
+
const N = /* @__PURE__ */ ee({
|
|
512
513
|
name: "FTabs",
|
|
513
|
-
props:
|
|
514
|
+
props: Oe,
|
|
514
515
|
emits: ["tabChange", "tabRemove", "update:activeId", "Click"],
|
|
515
|
-
setup(e,
|
|
516
|
-
const
|
|
517
|
-
activeId:
|
|
516
|
+
setup(e, t) {
|
|
517
|
+
const n = B(e.tabType), i = E(), o = te(), f = B(e.customClass), h = E(), v = E(), d = B(), c = je(e, t, h), {
|
|
518
|
+
activeId: m,
|
|
518
519
|
changeTitleStyle: S,
|
|
519
|
-
tabPages:
|
|
520
|
+
tabPages: C,
|
|
520
521
|
addTab: I,
|
|
521
522
|
updateTab: O,
|
|
522
|
-
toolbarItems:
|
|
523
|
-
checkActiveIdAndSelect:
|
|
524
|
-
toggleShowTab:
|
|
525
|
-
hasInHeadClass:
|
|
526
|
-
toolbarVisible:
|
|
527
|
-
} =
|
|
528
|
-
previousButtonClass:
|
|
529
|
-
nextButtonClass:
|
|
530
|
-
nextButtonGroupClass:
|
|
531
|
-
scrollTab:
|
|
523
|
+
toolbarItems: b,
|
|
524
|
+
checkActiveIdAndSelect: p,
|
|
525
|
+
toggleShowTab: T,
|
|
526
|
+
hasInHeadClass: r,
|
|
527
|
+
toolbarVisible: x
|
|
528
|
+
} = c, j = We(e, v, c), H = Ve(e, h, j, c), {
|
|
529
|
+
previousButtonClass: V,
|
|
530
|
+
nextButtonClass: k,
|
|
531
|
+
nextButtonGroupClass: s,
|
|
532
|
+
scrollTab: l,
|
|
532
533
|
updateNavigationLayout: a,
|
|
533
|
-
scrollToSelectedTab:
|
|
534
|
+
scrollToSelectedTab: g
|
|
534
535
|
} = H;
|
|
535
|
-
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
const
|
|
539
|
-
return
|
|
536
|
+
c.setScrollToSelectedTabFunction(g);
|
|
537
|
+
const R = Le(e, c), W = Pe(e, h, H, j, c), D = W, le = ke(e, h, H, j, c), q = /* @__PURE__ */ new Map([["default", W], ["one-page", D], ["pills", le]]);
|
|
538
|
+
y(() => {
|
|
539
|
+
const w = C.value.find((P) => P.props.id === m.value);
|
|
540
|
+
return w == null ? void 0 : w.slots;
|
|
540
541
|
});
|
|
541
|
-
const A =
|
|
542
|
-
|
|
542
|
+
const A = y(() => e.fill), z = (w, P) => {
|
|
543
|
+
t.emit("Click", w, P, m.value);
|
|
543
544
|
};
|
|
544
|
-
|
|
545
|
-
activeId:
|
|
545
|
+
ye("tabs", {
|
|
546
|
+
activeId: m,
|
|
546
547
|
addTab: I,
|
|
547
548
|
updateTab: O,
|
|
548
|
-
tabPages:
|
|
549
|
-
tabType:
|
|
549
|
+
tabPages: C,
|
|
550
|
+
tabType: n,
|
|
550
551
|
shouldFillParentContaner: A,
|
|
551
|
-
toggleShowTab:
|
|
552
|
-
toolbarVisible:
|
|
552
|
+
toggleShowTab: T,
|
|
553
|
+
toolbarVisible: x,
|
|
553
554
|
clickToolbarItemHandler: z
|
|
554
555
|
});
|
|
555
556
|
let G = !1;
|
|
556
|
-
const ne =
|
|
557
|
+
const ne = y(() => ({
|
|
557
558
|
"farris-tabs-header": !0,
|
|
558
|
-
"farris-tabs-inHead":
|
|
559
|
-
"farris-tabs-inContent": !
|
|
559
|
+
"farris-tabs-inHead": r.value,
|
|
560
|
+
"farris-tabs-inContent": !r.value,
|
|
560
561
|
"farris-tabs-nav-fill": e.tabType === "fill",
|
|
561
562
|
"farris-tabs-nav-pills": e.tabType === "pills"
|
|
562
|
-
})), oe =
|
|
563
|
-
const
|
|
564
|
-
width:
|
|
563
|
+
})), oe = y(() => {
|
|
564
|
+
const w = {
|
|
565
|
+
width: r.value && e.titleWidth ? `${e.titleWidth}%` : ""
|
|
565
566
|
};
|
|
566
|
-
return
|
|
567
|
-
}),
|
|
568
|
-
const
|
|
567
|
+
return w.width && (w.flex = "unset"), w;
|
|
568
|
+
}), se = y(() => {
|
|
569
|
+
const w = {
|
|
569
570
|
"farris-tabs": !0,
|
|
570
571
|
"f-tabs-content-fill": A.value,
|
|
571
572
|
"flex-column": e.position === "top",
|
|
@@ -574,99 +575,99 @@ const $ = /* @__PURE__ */ ee({
|
|
|
574
575
|
"flex-row-reverse": e.position === "right",
|
|
575
576
|
"one-page": e.tabType === "one-page"
|
|
576
577
|
};
|
|
577
|
-
return
|
|
578
|
-
}),
|
|
579
|
-
|
|
578
|
+
return f.value && f.value.split(" ").reduce((P, F) => (P[F] = !0, P), w), w;
|
|
579
|
+
}), ae = new ResizeObserver((w) => {
|
|
580
|
+
w.length && a();
|
|
580
581
|
});
|
|
581
582
|
function _() {
|
|
582
|
-
|
|
583
|
+
d.value && !G && (ae.observe(d.value), G = !0);
|
|
583
584
|
}
|
|
584
|
-
|
|
585
|
+
M(() => e.visible, (w) => {
|
|
585
586
|
L(() => {
|
|
586
|
-
|
|
587
|
+
C.value.length && p(e.activeId || C.value[0].props.id), a(), S(h), _();
|
|
587
588
|
});
|
|
588
|
-
}),
|
|
589
|
+
}), M(() => e.autoTitleWidth, (w) => {
|
|
589
590
|
L(() => {
|
|
590
|
-
a(), S(
|
|
591
|
+
a(), S(h);
|
|
591
592
|
});
|
|
592
593
|
}), U(() => {
|
|
593
|
-
e.visible && (
|
|
594
|
-
a(), S(
|
|
594
|
+
e.visible && (C.value.length && p(e.activeId || C.value[0].props.id), L(() => {
|
|
595
|
+
a(), S(h);
|
|
595
596
|
}), _());
|
|
596
597
|
});
|
|
597
598
|
function ie() {
|
|
598
599
|
return u("button", {
|
|
599
|
-
title:
|
|
600
|
+
title: $.getLocaleValue("tabs.leftButton"),
|
|
600
601
|
type: "button",
|
|
601
|
-
class:
|
|
602
|
+
class: V.value,
|
|
602
603
|
onClick: () => {
|
|
603
|
-
|
|
604
|
+
l(0, -1);
|
|
604
605
|
}
|
|
605
606
|
}, null);
|
|
606
607
|
}
|
|
607
|
-
function
|
|
608
|
+
function re() {
|
|
608
609
|
return u("button", {
|
|
609
|
-
title:
|
|
610
|
+
title: $.getLocaleValue("tabs.rightButton"),
|
|
610
611
|
type: "button",
|
|
611
|
-
class:
|
|
612
|
+
class: k.value,
|
|
612
613
|
onClick: () => {
|
|
613
|
-
|
|
614
|
+
l(0, 1);
|
|
614
615
|
}
|
|
615
616
|
}, null);
|
|
616
617
|
}
|
|
617
618
|
const {
|
|
618
|
-
renderMorePagesButtton:
|
|
619
|
+
renderMorePagesButtton: ue,
|
|
619
620
|
setTabsRef: ce
|
|
620
|
-
} =
|
|
621
|
-
ce(
|
|
621
|
+
} = Me(e, R, H, c);
|
|
622
|
+
ce(i);
|
|
622
623
|
function de() {
|
|
623
|
-
return
|
|
624
|
+
return b.value.length ? u("div", {
|
|
624
625
|
class: {
|
|
625
626
|
"farris-tabs-toolbar": !0,
|
|
626
|
-
"d-none": !
|
|
627
|
+
"d-none": !x.value
|
|
627
628
|
}
|
|
628
629
|
}, [u(Ie, {
|
|
629
630
|
class: "f-utils-fill",
|
|
630
|
-
alignment:
|
|
631
|
-
items:
|
|
632
|
-
visible:
|
|
631
|
+
alignment: r.value ? "right" : "left",
|
|
632
|
+
items: b.value,
|
|
633
|
+
visible: x.value,
|
|
633
634
|
onClick: z
|
|
634
635
|
}, null)]) : null;
|
|
635
636
|
}
|
|
636
|
-
const J =
|
|
637
|
+
const J = q.get(e.tabType) || q.get("default");
|
|
637
638
|
function fe() {
|
|
638
|
-
var
|
|
639
|
-
return !
|
|
639
|
+
var w, P, F, K;
|
|
640
|
+
return !o && u("div", {
|
|
640
641
|
class: ne.value
|
|
641
642
|
}, [u("div", {
|
|
642
643
|
class: "farris-tabs-header-pre"
|
|
643
|
-
}, [(
|
|
644
|
+
}, [(P = (w = t.slots).headerPrefix) == null ? void 0 : P.call(w)]), u("div", {
|
|
644
645
|
class: "farris-tabs-title scroll-tabs",
|
|
645
646
|
style: oe.value,
|
|
646
|
-
ref:
|
|
647
|
+
ref: d
|
|
647
648
|
}, [ie(), J && J(), u("div", {
|
|
648
|
-
class:
|
|
649
|
-
}, [
|
|
649
|
+
class: s.value
|
|
650
|
+
}, [re(), ue()])]), de(), u("div", {
|
|
650
651
|
class: "farris-tabs-header-post"
|
|
651
|
-
}, [(K = (
|
|
652
|
+
}, [(K = (F = t.slots).headerSuffix) == null ? void 0 : K.call(F)])]);
|
|
652
653
|
}
|
|
653
|
-
const ve =
|
|
654
|
+
const ve = y(() => ({
|
|
654
655
|
"farris-tabs-content": !0,
|
|
655
656
|
"f-utils-fill-flex-column": A.value
|
|
656
657
|
}));
|
|
657
658
|
function be() {
|
|
658
|
-
var
|
|
659
|
+
var w, P;
|
|
659
660
|
return u("div", {
|
|
660
661
|
class: ve.value,
|
|
661
662
|
ref: v
|
|
662
|
-
}, [(
|
|
663
|
+
}, [(P = (w = t.slots).default) == null ? void 0 : P.call(w)]);
|
|
663
664
|
}
|
|
664
665
|
return () => e.visible ? u("div", {
|
|
665
|
-
class:
|
|
666
|
-
ref:
|
|
666
|
+
class: se.value,
|
|
667
|
+
ref: i
|
|
667
668
|
}, [fe(), be()]) : null;
|
|
668
669
|
}
|
|
669
|
-
}),
|
|
670
|
+
}), De = {
|
|
670
671
|
tabWidth: { type: Number },
|
|
671
672
|
id: { type: String, default: "" },
|
|
672
673
|
customTitleClass: { type: String, default: "" },
|
|
@@ -690,93 +691,163 @@ const $ = /* @__PURE__ */ ee({
|
|
|
690
691
|
titleRenderFunction: { type: Function }
|
|
691
692
|
};
|
|
692
693
|
function X(e) {
|
|
693
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
694
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !we(e);
|
|
694
695
|
}
|
|
695
696
|
const Y = /* @__PURE__ */ ee({
|
|
696
697
|
name: "FTabPage",
|
|
697
|
-
props:
|
|
698
|
+
props: De,
|
|
698
699
|
emits: [],
|
|
699
|
-
setup(e,
|
|
700
|
-
const
|
|
701
|
-
slots:
|
|
700
|
+
setup(e, t) {
|
|
701
|
+
const n = Te("tabs"), i = te(), o = B(e.show), f = {
|
|
702
|
+
slots: t.slots,
|
|
702
703
|
props: e
|
|
703
|
-
},
|
|
704
|
+
}, h = B((n == null ? void 0 : n.tabType.value) || "default");
|
|
704
705
|
U(() => {
|
|
705
|
-
const
|
|
706
|
-
(!
|
|
707
|
-
}),
|
|
706
|
+
const p = n == null ? void 0 : n.tabPages.value.findIndex((T) => T.props.id === e.id);
|
|
707
|
+
(!p || p === -1) && (n == null || n.addTab(f));
|
|
708
|
+
}), Ce(() => {
|
|
708
709
|
});
|
|
709
|
-
const v =
|
|
710
|
+
const v = y(() => (e == null ? void 0 : e.id) === (n == null ? void 0 : n.activeId.value)), d = y(() => ({
|
|
710
711
|
display: v.value ? "" : "none"
|
|
711
712
|
}));
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
props:
|
|
715
|
-
slots:
|
|
713
|
+
M(() => e, (p) => {
|
|
714
|
+
n == null || n.updateTab({
|
|
715
|
+
props: p,
|
|
716
|
+
slots: t.slots
|
|
716
717
|
});
|
|
717
718
|
}, {
|
|
718
719
|
immediate: !0,
|
|
719
720
|
deep: !0
|
|
720
|
-
}),
|
|
721
|
-
|
|
722
|
-
}),
|
|
723
|
-
v.value &&
|
|
721
|
+
}), M(() => e.show, (p) => {
|
|
722
|
+
n == null || n.toggleShowTab(e.id);
|
|
723
|
+
}), M(() => e.toolbarVisible, (p) => {
|
|
724
|
+
v.value && n && (n.toolbarVisible.value = p);
|
|
724
725
|
});
|
|
725
|
-
function
|
|
726
|
-
var
|
|
727
|
-
const
|
|
726
|
+
function c() {
|
|
727
|
+
var T, r;
|
|
728
|
+
const p = (r = (T = t.slots).default) == null ? void 0 : r.call(T);
|
|
728
729
|
return u(Q, {
|
|
729
730
|
"main-title": e.title,
|
|
730
|
-
class: ["farris-tab-page",
|
|
731
|
-
}, X(
|
|
732
|
-
default: () => [
|
|
731
|
+
class: ["farris-tab-page", o.value ? "" : "f-tab-d-none"]
|
|
732
|
+
}, X(p) ? p : {
|
|
733
|
+
default: () => [p]
|
|
733
734
|
});
|
|
734
735
|
}
|
|
735
|
-
function
|
|
736
|
-
|
|
736
|
+
function m(p, T) {
|
|
737
|
+
n && (n.activeId.value = e.id, n.clickToolbarItemHandler && n.clickToolbarItemHandler(p, T));
|
|
737
738
|
}
|
|
738
739
|
function S() {
|
|
739
|
-
var
|
|
740
|
-
const
|
|
740
|
+
var T, r;
|
|
741
|
+
const p = (r = (T = t.slots).default) == null ? void 0 : r.call(T);
|
|
741
742
|
return u(Q, {
|
|
742
743
|
customClass: "section-in-tab is-mobile",
|
|
743
|
-
onClick:
|
|
744
|
+
onClick: m,
|
|
744
745
|
visible: e.show,
|
|
745
746
|
"main-title": e.title,
|
|
746
747
|
buttons: e.toolbar.buttons,
|
|
747
748
|
"button-position": e.toolbar.position || e.toolbarPosition,
|
|
748
749
|
"buttons-visible": e.toolbarVisible
|
|
749
|
-
}, X(
|
|
750
|
-
default: () => [
|
|
750
|
+
}, X(p) ? p : {
|
|
751
|
+
default: () => [p]
|
|
751
752
|
});
|
|
752
753
|
}
|
|
753
|
-
const
|
|
754
|
-
var
|
|
754
|
+
const C = y(() => {
|
|
755
|
+
var T;
|
|
755
756
|
return {
|
|
756
757
|
"farris-tab-page": !0,
|
|
757
|
-
"f-tab-d-none": !
|
|
758
|
-
"f-tab-active": v.value &&
|
|
758
|
+
"f-tab-d-none": !o.value,
|
|
759
|
+
"f-tab-active": v.value && n && ((T = n.shouldFillParentContaner) == null ? void 0 : T.value)
|
|
759
760
|
};
|
|
760
761
|
});
|
|
761
762
|
function I() {
|
|
762
|
-
var
|
|
763
|
-
const
|
|
763
|
+
var T, r;
|
|
764
|
+
const p = (r = (T = t.slots).default) == null ? void 0 : r.call(T);
|
|
764
765
|
return u("div", {
|
|
765
|
-
class:
|
|
766
|
-
style:
|
|
767
|
-
}, [
|
|
766
|
+
class: C.value,
|
|
767
|
+
style: d.value
|
|
768
|
+
}, [p]);
|
|
768
769
|
}
|
|
769
|
-
const
|
|
770
|
-
return () =>
|
|
770
|
+
const b = i ? S : (/* @__PURE__ */ new Map([["default", I], ["one-page", c], ["mobile", S]])).get(h.value) || I;
|
|
771
|
+
return () => b();
|
|
771
772
|
}
|
|
772
773
|
});
|
|
773
|
-
|
|
774
|
-
|
|
774
|
+
class ze extends xe {
|
|
775
|
+
constructor(t, n) {
|
|
776
|
+
super(t, n);
|
|
777
|
+
}
|
|
778
|
+
getPropertyConfig(t, n = !1) {
|
|
779
|
+
return this.propertyConfig.categories.basic = this.getBasicPropConfig(t), this.propertyConfig.categories.basic.properties.text = {
|
|
780
|
+
title: "文本",
|
|
781
|
+
type: "string",
|
|
782
|
+
description: "",
|
|
783
|
+
refreshPanelAfterChanged: !0
|
|
784
|
+
}, this.getAppearanceProperties(t, n), this.getbBehaviorConfig(t), this.getEventPropConfig(t), this.propertyConfig;
|
|
785
|
+
}
|
|
786
|
+
getAppearanceProperties(t, n = !1) {
|
|
787
|
+
this.propertyConfig.categories.appearance = {
|
|
788
|
+
title: "外观",
|
|
789
|
+
properties: {
|
|
790
|
+
class: {
|
|
791
|
+
description: "组件的CSS样式",
|
|
792
|
+
title: "class样式",
|
|
793
|
+
visible: !n
|
|
794
|
+
},
|
|
795
|
+
icon: {
|
|
796
|
+
title: "图标",
|
|
797
|
+
type: "string",
|
|
798
|
+
description: ""
|
|
799
|
+
},
|
|
800
|
+
split: {
|
|
801
|
+
title: "下拉按钮分离",
|
|
802
|
+
type: "boolean",
|
|
803
|
+
description: "启用下拉按钮分离,可以单独点击按钮。单独点击下拉按钮展开下拉面板",
|
|
804
|
+
visible: !!(t.children && t.children.length > 0)
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
getbBehaviorConfig(t) {
|
|
810
|
+
const n = this.getPropertyEditorParams(t, ["Const", "Variable", "StateMachine", "Expression"], "disabled");
|
|
811
|
+
this.propertyConfig.categories.behavior = this.getBehaviorConfig(t, "", {
|
|
812
|
+
disabled: {
|
|
813
|
+
title: "禁用",
|
|
814
|
+
type: "boolean",
|
|
815
|
+
description: "按钮禁用状态",
|
|
816
|
+
refreshPanelAfterChanged: !0,
|
|
817
|
+
editor: n
|
|
818
|
+
}
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
getEventPropConfig(t) {
|
|
822
|
+
const n = [
|
|
823
|
+
{
|
|
824
|
+
label: "onClick",
|
|
825
|
+
name: "点击事件"
|
|
826
|
+
}
|
|
827
|
+
], i = this, o = i.eventsEditorUtils.formProperties(t, i.viewModelId, n), f = i.createBaseEventProperty(o);
|
|
828
|
+
this.propertyConfig.categories.eventsEditor = {
|
|
829
|
+
title: "事件",
|
|
830
|
+
hideTitle: !0,
|
|
831
|
+
properties: f,
|
|
832
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
833
|
+
refreshPanelAfterChanged: !0,
|
|
834
|
+
tabId: "commands",
|
|
835
|
+
tabName: "交互",
|
|
836
|
+
setPropertyRelates(h, v) {
|
|
837
|
+
const d = h.propertyValue;
|
|
838
|
+
delete t[i.viewModelId], d && (d.setPropertyRelates = this.setPropertyRelates, i.eventsEditorUtils.saveRelatedParameters(t, i.viewModelId, d.events, d));
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
N.install = (e) => {
|
|
844
|
+
e.component(N.name, N), e.component(Y.name, Y);
|
|
775
845
|
};
|
|
776
846
|
export {
|
|
777
847
|
Y as FTabPage,
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
848
|
+
N as FTabs,
|
|
849
|
+
ze as TabToolbarItemProperty,
|
|
850
|
+
N as default,
|
|
851
|
+
De as tabPageProps,
|
|
852
|
+
Oe as tabsProps
|
|
782
853
|
};
|