w-component-vue 2.1.67 → 2.1.71
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 +1 -1
- package/dist/w-component-vue.umd.js +3 -3
- package/dist/w-component-vue.umd.js.map +1 -1
- package/docs/binarySearch.mjs.html +2 -2
- package/docs/examples/app.html +1 -1
- package/docs/examples/app.umd.js +2 -2
- package/docs/examples/app.umd.js.map +1 -1
- package/docs/examples/w-aggrid-vue-dyn_defCellEditable.html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_kpCellEditable_kpRowStyle.html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_kpHeadTooltip_kpCellTooltip.html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_large data (1,000,000 items).html +1 -1
- package/docs/examples/w-aggrid-vue-dyn_simple data.html +1 -1
- package/docs/examples/w-alert_backgroundColor.html +1 -1
- package/docs/examples/w-alert_borderColor.html +1 -1
- package/docs/examples/w-alert_borderRadius.html +1 -1
- package/docs/examples/w-alert_borderWidth.html +1 -1
- package/docs/examples/w-alert_default.html +1 -1
- package/docs/examples/w-alert_icon.html +1 -1
- package/docs/examples/w-alert_position.html +1 -1
- package/docs/examples/w-alert_recive closed event by promise.html +1 -1
- package/docs/examples/w-alert_shadowStyle.html +1 -1
- package/docs/examples/w-alert_textColor.html +1 -1
- package/docs/examples/w-alert_time (6s).html +1 -1
- package/docs/examples/w-alert_type error.html +1 -1
- package/docs/examples/w-alert_type infor.html +1 -1
- package/docs/examples/w-alert_type warning.html +1 -1
- package/docs/examples/w-badge_backgroundColor.html +1 -1
- package/docs/examples/w-badge_badgeAlign.html +1 -1
- package/docs/examples/w-badge_borderColor_textColor_backgroundColor.html +1 -1
- package/docs/examples/w-badge_borderRadius.html +1 -1
- package/docs/examples/w-badge_default.html +1 -1
- package/docs/examples/w-badge_textColor_backgroundColor.html +1 -1
- package/docs/examples/w-badge_textFontSize.html +1 -1
- package/docs/examples/w-button-chip_active_backgroundColorActive.html +1 -1
- package/docs/examples/w-button-chip_active_borderColorActive.html +1 -1
- package/docs/examples/w-button-chip_active_iconColorActive.html +1 -1
- package/docs/examples/w-button-chip_active_no shadow_no shadowActive.html +1 -1
- package/docs/examples/w-button-chip_active_shadowActiveStyle.html +1 -1
- package/docs/examples/w-button-chip_active_textColorActive.html +1 -1
- package/docs/examples/w-button-chip_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-button-chip_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-button-chip_borderRadius.html +1 -1
- package/docs/examples/w-button-chip_borderRadiusStyle.html +1 -1
- package/docs/examples/w-button-chip_borderRadiusStyle_borderWidth_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-button-chip_borderWidth.html +1 -1
- package/docs/examples/w-button-chip_close.html +1 -1
- package/docs/examples/w-button-chip_close_shiftRight.html +1 -1
- package/docs/examples/w-button-chip_default.html +1 -1
- package/docs/examples/w-button-chip_icon (fontawesome).html +1 -1
- package/docs/examples/w-button-chip_icon (material).html +1 -1
- package/docs/examples/w-button-chip_icon_iconColor_iconColorHover_close.html +1 -1
- package/docs/examples/w-button-chip_icon_no text.html +1 -1
- package/docs/examples/w-button-chip_loading.html +1 -1
- package/docs/examples/w-button-chip_loading_loadingColor.html +1 -1
- package/docs/examples/w-button-chip_loading_textColor_textColorHover.html +1 -1
- package/docs/examples/w-button-chip_modify loading by callback in click.html +1 -1
- package/docs/examples/w-button-chip_modify prog by callback in click.html +1 -1
- package/docs/examples/w-button-chip_no shadow.html +1 -1
- package/docs/examples/w-button-chip_not editable.html +1 -1
- package/docs/examples/w-button-chip_not editable_disabledColor.html +1 -1
- package/docs/examples/w-button-chip_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-button-chip_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-button-chip_paddingStyle_icon_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-button-chip_prog.html +1 -1
- package/docs/examples/w-button-chip_prog_progColor_progBackgroundColor.html +1 -1
- package/docs/examples/w-button-chip_promiseUnlock.html +1 -1
- package/docs/examples/w-button-chip_rippleColor.html +1 -1
- package/docs/examples/w-button-chip_shadowStyle.html +1 -1
- package/docs/examples/w-button-chip_shiftLeft.html +1 -1
- package/docs/examples/w-button-chip_slot_close.html +1 -1
- package/docs/examples/w-button-chip_textColor.html +1 -1
- package/docs/examples/w-button-chip_textColor_textColorHover.html +1 -1
- package/docs/examples/w-button-chip_tooltip.html +1 -1
- package/docs/examples/w-button-circle_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-button-circle_icon (fontawesome).html +1 -1
- package/docs/examples/w-button-circle_icon (material).html +1 -1
- package/docs/examples/w-button-circle_iconColor_iconColorHover_iconColorFocus.html +1 -1
- package/docs/examples/w-button-circle_loading.html +1 -1
- package/docs/examples/w-button-circle_loading_loadingColor.html +1 -1
- package/docs/examples/w-button-circle_no shadow.html +1 -1
- package/docs/examples/w-button-circle_not editable.html +1 -1
- package/docs/examples/w-button-circle_not editable_disabledColor.html +1 -1
- package/docs/examples/w-button-circle_paddingStyle.html +1 -1
- package/docs/examples/w-button-circle_paddingStyle_iconSize.html +1 -1
- package/docs/examples/w-button-circle_promiseUnlock.html +1 -1
- package/docs/examples/w-button-circle_rippleColor.html +1 -1
- package/docs/examples/w-button-circle_shadowStyle.html +1 -1
- package/docs/examples/w-button-circle_tooltip.html +1 -1
- package/docs/examples/w-checkbox_checkedIconColor_uncheckedIconColor.html +1 -1
- package/docs/examples/w-checkbox_checkedIcon_uncheckedIcon.html +1 -1
- package/docs/examples/w-checkbox_default.html +1 -1
- package/docs/examples/w-checkbox_iconSize.html +1 -1
- package/docs/examples/w-checkbox_not editable.html +1 -1
- package/docs/examples/w-checkbox_not editable_checkedIconColorDisabled_uncheckedIconColorDisabled.html +1 -1
- package/docs/examples/w-checkbox_use string (y or n).html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_default.html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_height.html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_not editable.html +1 -1
- package/docs/examples/w-ckeditor-vue-dyn_settings.html +1 -1
- package/docs/examples/w-confirm_contentColor_contentIconColor_contentBackgroundColor.html +1 -1
- package/docs/examples/w-confirm_contentIcon (fontawesome).html +1 -1
- package/docs/examples/w-confirm_contentIconColor.html +1 -1
- package/docs/examples/w-confirm_contentIconSize.html +1 -1
- package/docs/examples/w-confirm_hasNoBtn_yesBtnText.html +1 -1
- package/docs/examples/w-confirm_maxWidth.html +1 -1
- package/docs/examples/w-confirm_noBtnTextColor_noBtnTextColorHover_noBtnBackgroundColor_noBtnBackgroundColorHover.html +1 -1
- package/docs/examples/w-confirm_noBtnText_yesBtnText.html +1 -1
- package/docs/examples/w-confirm_scrollable (slot content).html +1 -1
- package/docs/examples/w-confirm_scrollable.html +1 -1
- package/docs/examples/w-confirm_slot content.html +1 -1
- package/docs/examples/w-confirm_slot footer.html +1 -1
- package/docs/examples/w-confirm_slot header.html +1 -1
- package/docs/examples/w-confirm_titleColor_headerBackgroundColor_footerBackgroundColor.html +1 -1
- package/docs/examples/w-confirm_title_content.html +1 -1
- package/docs/examples/w-dialog_closeWithInterceptor.html +1 -1
- package/docs/examples/w-dialog_contentTextColor_contentBackgroundColor.html +1 -1
- package/docs/examples/w-dialog_fullscreen.html +1 -1
- package/docs/examples/w-dialog_hasSaveBtn and hasCloseBtn, no save and close button.html +1 -1
- package/docs/examples/w-dialog_hasSaveBtn, no save button.html +1 -1
- package/docs/examples/w-dialog_headerBackgroundColor.html +1 -1
- package/docs/examples/w-dialog_headerBtns.html +1 -1
- package/docs/examples/w-dialog_headerIconColor_headerTextColor_headerBackgroundColor.html +1 -1
- package/docs/examples/w-dialog_icon (fontawesome).html +1 -1
- package/docs/examples/w-dialog_maxWidth, for narrow width.html +1 -1
- package/docs/examples/w-dialog_multi dialogs.html +1 -1
- package/docs/examples/w-dialog_saveBtnTooltip_closeBtnTooltip.html +1 -1
- package/docs/examples/w-dialog_scrollable.html +1 -1
- package/docs/examples/w-dialog_separate for slot content.html +1 -1
- package/docs/examples/w-dialog_slot content.html +1 -1
- package/docs/examples/w-dialog_slot header-left_header-right.html +1 -1
- package/docs/examples/w-dialog_table in slot content.html +1 -1
- package/docs/examples/w-dialog_title.html +1 -1
- package/docs/examples/w-dropfiles_backgroundColor_backgroundColorDropIn_backgroundColorHover.html +1 -1
- package/docs/examples/w-dropfiles_borderColor_borderColorDropIn_borderColorHover_backgroundColorDropIn.html +1 -1
- package/docs/examples/w-dropfiles_borderRadius.html +1 -1
- package/docs/examples/w-dropfiles_borderWidth.html +1 -1
- package/docs/examples/w-dropfiles_default.html +1 -1
- package/docs/examples/w-dropfiles_timeTransition.html +1 -1
- package/docs/examples/w-dynamic-list_change rows.html +2 -2
- package/docs/examples/w-dynamic-list_change slot.html +2 -2
- package/docs/examples/w-dynamic-list_default.html +2 -2
- package/docs/examples/{w-dynamic-list_filterKeywords_searchEmpty.html → w-dynamic-list_filterKeywords_noResultsText.html} +4 -4
- package/docs/examples/w-dynamic-list_large data (1,000,000 items).html +9 -11
- package/docs/examples/w-dynamic-list_processItems.html +9 -11
- package/docs/examples/w-dynamic-list_render.html +2 -2
- package/docs/examples/w-dynamic-list_slot item with image.html +9 -11
- package/docs/examples/w-dynamic-list_viewHeightMax.html +2 -2
- package/docs/examples/w-echarts-vue-dyn_area.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_bar3D.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_continuous.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_heatmap.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_line.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_line3D.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_parallel.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_polar heatmap.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_polar.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_radar.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_scatter.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_stack.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_surface.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_tree.html +1 -1
- package/docs/examples/w-echarts-vue-dyn_treemap.html +1 -1
- package/docs/examples/w-group-check_backgroundColorActive.html +1 -1
- package/docs/examples/w-group-check_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-group-check_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-check_borderRadius.html +1 -1
- package/docs/examples/w-group-check_borderRadius_borderRadiusStyle_paddingStyle.html +1 -1
- package/docs/examples/w-group-check_borderWidth_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-check_click (console.log).html +1 -1
- package/docs/examples/w-group-check_default.html +1 -1
- package/docs/examples/w-group-check_group (only one).html +1 -1
- package/docs/examples/w-group-check_group_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-check_group_groupBorderRadiusStyle_groupShift_borderRadius.html +1 -1
- package/docs/examples/w-group-check_icon (fontawesome).html +1 -1
- package/docs/examples/w-group-check_icon (material).html +1 -1
- package/docs/examples/w-group-check_iconColorActive.html +1 -1
- package/docs/examples/w-group-check_iconColor_iconColorHover.html +1 -1
- package/docs/examples/w-group-check_loading.html +1 -1
- package/docs/examples/w-group-check_loading_loadingColor.html +1 -1
- package/docs/examples/w-group-check_marginStyle.html +1 -1
- package/docs/examples/w-group-check_no shadowActive.html +1 -1
- package/docs/examples/w-group-check_not editable.html +1 -1
- package/docs/examples/w-group-check_paddingStyle_borderRadius_textColor_iconColor.html +1 -1
- package/docs/examples/w-group-check_paddingStyle_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-group-check_shadow.html +1 -1
- package/docs/examples/w-group-check_shadowActiveStyle.html +1 -1
- package/docs/examples/w-group-check_shadow_shadowStyle.html +1 -1
- package/docs/examples/w-group-check_shiftLeft.html +1 -1
- package/docs/examples/w-group-check_shiftLeft_shiftRight.html +1 -1
- package/docs/examples/w-group-check_slot_shadow.html +1 -1
- package/docs/examples/w-group-check_textColor.html +1 -1
- package/docs/examples/w-group-check_textColorActive.html +1 -1
- package/docs/examples/w-group-check_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-check_tooltip.html +1 -1
- package/docs/examples/w-group-dragdrop_default.html +1 -1
- package/docs/examples/w-group-dragdrop_event (dragdrop).html +1 -1
- package/docs/examples/w-group-dragdrop_items(string array).html +1 -1
- package/docs/examples/w-group-dragdrop_keyBinder.html +1 -1
- package/docs/examples/w-group-dragdrop_not draggable.html +1 -1
- package/docs/examples/w-group-dragdrop_not itemStyleInline (block).html +1 -1
- package/docs/examples/w-group-radio_backgroundColorActive.html +1 -1
- package/docs/examples/w-group-radio_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-group-radio_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-radio_borderRadius.html +1 -1
- package/docs/examples/w-group-radio_borderRadius_borderRadiusStyle_paddingStyle.html +1 -1
- package/docs/examples/w-group-radio_borderWidth_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-radio_click (console.log).html +1 -1
- package/docs/examples/w-group-radio_default.html +1 -1
- package/docs/examples/w-group-radio_group (only one).html +1 -1
- package/docs/examples/w-group-radio_group_borderColor_borderColorHover_borderColorActive.html +1 -1
- package/docs/examples/w-group-radio_group_groupBorderRadiusStyle_groupShift_borderRadius.html +1 -1
- package/docs/examples/w-group-radio_icon (fontawesome).html +1 -1
- package/docs/examples/w-group-radio_icon (material).html +1 -1
- package/docs/examples/w-group-radio_iconColorActive.html +1 -1
- package/docs/examples/w-group-radio_iconColor_iconColorHover.html +1 -1
- package/docs/examples/w-group-radio_loading.html +1 -1
- package/docs/examples/w-group-radio_loading_loadingColor.html +1 -1
- package/docs/examples/w-group-radio_marginStyle.html +1 -1
- package/docs/examples/w-group-radio_no shadowActive.html +1 -1
- package/docs/examples/w-group-radio_not editable.html +1 -1
- package/docs/examples/w-group-radio_paddingStyle_borderRadius_textColor_iconColor.html +1 -1
- package/docs/examples/w-group-radio_paddingStyle_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-group-radio_shadow.html +1 -1
- package/docs/examples/w-group-radio_shadowActiveStyle.html +1 -1
- package/docs/examples/w-group-radio_shadow_shadowStyle.html +1 -1
- package/docs/examples/w-group-radio_shiftLeft.html +1 -1
- package/docs/examples/w-group-radio_shiftLeft_shiftRight.html +1 -1
- package/docs/examples/w-group-radio_slot_shadow.html +1 -1
- package/docs/examples/w-group-radio_textColor.html +1 -1
- package/docs/examples/w-group-radio_textColorActive.html +1 -1
- package/docs/examples/w-group-radio_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-radio_tooltip.html +1 -1
- package/docs/examples/w-group-tags_backgroundColor_backgroundColorHover.html +1 -1
- package/docs/examples/w-group-tags_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-group-tags_borderRadius.html +1 -1
- package/docs/examples/w-group-tags_closeWithInterceptor.html +1 -1
- package/docs/examples/w-group-tags_default.html +1 -1
- package/docs/examples/w-group-tags_editableClose(no close button).html +1 -1
- package/docs/examples/w-group-tags_editableInput(no slot input).html +1 -1
- package/docs/examples/w-group-tags_enableCloseEventOnly.html +1 -1
- package/docs/examples/w-group-tags_icon (fontawesome).html +1 -1
- package/docs/examples/w-group-tags_icon (material).html +1 -1
- package/docs/examples/w-group-tags_iconColor_iconColorHover_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-tags_icon_iconColor_iconColorHover.html +1 -1
- package/docs/examples/w-group-tags_inputTextButtonTooltip.html +1 -1
- package/docs/examples/w-group-tags_inputTextColor_inputTextBorderColor_inputTextBorderColorHover_inputTextBorderColorFocus.html +1 -1
- package/docs/examples/w-group-tags_inputTextWidth.html +1 -1
- package/docs/examples/w-group-tags_marginStyle.html +1 -1
- package/docs/examples/w-group-tags_modify loading by callback in click.html +1 -1
- package/docs/examples/w-group-tags_modify loading_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-tags_modify prog by callback in click.html +1 -1
- package/docs/examples/w-group-tags_no shadow_borderColor_borderColorHover.html +1 -1
- package/docs/examples/w-group-tags_not draggable.html +1 -1
- package/docs/examples/w-group-tags_not editable.html +1 -1
- package/docs/examples/w-group-tags_not editable_nodata.html +1 -1
- package/docs/examples/w-group-tags_object items.html +1 -1
- package/docs/examples/w-group-tags_object items_addButtonTextColor_addButtonTextColorHover_addButtonIconColor.html +1 -1
- package/docs/examples/w-group-tags_object items_addButtonText_addButtonTooltip.html +1 -1
- package/docs/examples/w-group-tags_object items_keyIcon.html +1 -1
- package/docs/examples/w-group-tags_object items_keyText.html +1 -1
- package/docs/examples/w-group-tags_object items_keyTooltip.html +1 -1
- package/docs/examples/w-group-tags_object items_slot item.html +1 -1
- package/docs/examples/w-group-tags_object items_slot item_editableInput(no slot input)_useActive.html +1 -1
- package/docs/examples/w-group-tags_object items_slot item_useColorsFromItem_editableInput(no slot input).html +1 -1
- package/docs/examples/w-group-tags_paddingStyle_icon_iconSize_textFontSize.html +1 -1
- package/docs/examples/w-group-tags_progColor_progBackgroundColor.html +1 -1
- package/docs/examples/w-group-tags_shadowStyle.html +1 -1
- package/docs/examples/w-group-tags_shiftLeft.html +1 -1
- package/docs/examples/w-group-tags_slot input.html +1 -1
- package/docs/examples/w-group-tags_slot item.html +1 -1
- package/docs/examples/w-group-tags_slot item_useActive_valueActive_paddingStyle.html +1 -1
- package/docs/examples/w-group-tags_suggests.html +1 -1
- package/docs/examples/w-group-tags_suggests_inputTextColor_inputExpansionIconColor.html +1 -1
- package/docs/examples/{w-group-tags_suggests_placeholder_searchEmpty.html → w-group-tags_suggests_placeholder_noResultsText.html} +3 -3
- package/docs/examples/w-group-tags_suggests_suggectItemFontSize_suggectItemTextColor_suggectItemTextColorHover.html +1 -1
- package/docs/examples/w-group-tags_textColor.html +1 -1
- package/docs/examples/w-group-tags_textColor_textColorHover.html +1 -1
- package/docs/examples/w-group-tags_useActive_valueActive.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_area.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_bar.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_change options.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_heatmap.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_large heatmap.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_line.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_pie.html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_render (need w-hc2png-server) (line).html +1 -1
- package/docs/examples/w-highcharts-bitmap-dyn_scale (line).html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_area.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_bar.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_heatmap.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_large heatmap.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_line.html +1 -1
- package/docs/examples/w-highcharts-vue-dyn_pie.html +1 -1
- package/docs/examples/w-highstock-vue-dyn_area.html +1 -1
- package/docs/examples/w-highstock-vue-dyn_line.html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-access-point)_size.html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-account-badge-horizontal)_timeTransition.html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-fruit-cherries).html +1 -1
- package/docs/examples/w-icon-svg_path (mdi-graph-outline)_color_colorHover.html +1 -1
- package/docs/examples/w-icon-svg_path (use 3 paths)_sizeOriginal.html +1 -1
- package/docs/examples/w-icon-svg_path_sizeOriginal.html +1 -1
- package/docs/examples/w-image-cascading-dyn_arrangeWhenFinish.html +1 -1
- package/docs/examples/w-image-cascading-dyn_colNum.html +1 -1
- package/docs/examples/w-image-cascading-dyn_default(imageWidth=300).html +1 -1
- package/docs/examples/w-image-cascading-dyn_imageWidth.html +1 -1
- package/docs/examples/w-image-viewer-dyn_multiple image with navbar.html +1 -1
- package/docs/examples/w-image-viewer-dyn_one image.html +1 -1
- package/docs/examples/w-json-view_default.html +13 -15
- package/docs/examples/{w-json-view_filterKeywords_searchEmpty.html → w-json-view_filterKeywords_noResultsText.html} +15 -17
- package/docs/examples/w-json-view_iconColor_keyColor_keyNumbersColor_numColor.html +13 -15
- package/docs/examples/{w-json-view_large data (100,000 lines).html → w-json-view_large data (15,500 lines).html } +14 -16
- package/docs/examples/w-json-view_viewHeightMax.html +13 -15
- package/docs/examples/w-leaflet-vue-dyn_contourSet for rain data.html +6 -6
- package/docs/examples/w-leaflet-vue-dyn_contourSets.html +6 -6
- package/docs/examples/w-leaflet-vue-dyn_pointSets.html +6 -6
- package/docs/examples/w-leaflet-vue-dyn_polygonSets.html +6 -6
- package/docs/examples/w-list-vertical_auto scroll.html +1 -1
- package/docs/examples/w-list-vertical_default.html +1 -1
- package/docs/examples/w-list-vertical_itemActive.html +1 -1
- package/docs/examples/w-list-vertical_itemActive_itemBackgroundColor_itemBackgroundColorHover_itemBackgroundColorActive.html +1 -1
- package/docs/examples/w-list-vertical_itemActive_itemTextColor_itemTextColorHover_itemTextColorActive.html +1 -1
- package/docs/examples/w-list-vertical_keyText_keyIcon.html +1 -1
- package/docs/examples/w-list-vertical_paddingStyle.html +1 -1
- package/docs/examples/w-list-vertical_slot footer.html +1 -1
- package/docs/examples/w-list-vertical_slot header.html +1 -1
- package/docs/examples/w-list-vertical_slot item.html +1 -1
- package/docs/examples/w-list-vertical_string items.html +1 -1
- package/docs/examples/w-list-vertical_useActive (no active).html +1 -1
- package/docs/examples/w-list-vertical_useActive (no active)_itemRippleColor.html +1 -1
- package/docs/examples/w-panel-bulge_contentBackgroundColor.html +1 -1
- package/docs/examples/w-panel-bulge_contentBorderRadius.html +1 -1
- package/docs/examples/w-panel-bulge_default.html +1 -1
- package/docs/examples/w-panel-bulge_headerBorderRadius.html +1 -1
- package/docs/examples/w-panel-bulge_headerPadding.html +1 -1
- package/docs/examples/w-panel-bulge_headerTextColor_headerBackgroundColor.html +1 -1
- package/docs/examples/w-panel-bulge_no headerShadow_no contentShadow, with green outer.html +1 -1
- package/docs/examples/w-panel-bulge_slot for header_headerBorderRadius_headerBackgroundColor(linear-gradient).html +1 -1
- package/docs/examples/w-panel-bulge_with grey outer.html +1 -1
- package/docs/examples/w-panel-chart_cmpName (WEchartsVueDyn).html +1 -1
- package/docs/examples/w-panel-chart_cmpName (WHighchartsBitmapDyn).html +1 -1
- package/docs/examples/w-panel-chart_cmpName (WHighstockVueDyn).html +1 -1
- package/docs/examples/w-panel-chart_default (WHighchartsVueDyn).html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnIcon.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnIconColor_downloadPictureBtnIconColorHover_downloadPictureBtnIconColorFocus.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureBtnTooltip.html +1 -1
- package/docs/examples/w-panel-chart_downloadPicture_downloadPictureFilenmae.html +1 -1
- package/docs/examples/w-panel-chart_scale.html +1 -1
- package/docs/examples/w-panel-chart_width_height.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_barBorderSize_barBorderColor.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_barColor.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_barSize.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_default.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_min_max.html +1 -1
- package/docs/examples/w-panel-divide-horizontal_ratio.html +1 -1
- package/docs/examples/w-panel-divide-vertical_barBorderSize_barBorderColor.html +1 -1
- package/docs/examples/w-panel-divide-vertical_barColor.html +1 -1
- package/docs/examples/w-panel-divide-vertical_barSize.html +1 -1
- package/docs/examples/w-panel-divide-vertical_default.html +1 -1
- package/docs/examples/w-panel-divide-vertical_min_max.html +1 -1
- package/docs/examples/w-panel-divide-vertical_ratio.html +1 -1
- package/docs/examples/w-panel-scale_for select.html +1 -1
- package/docs/examples/w-panel-scale_for v-btn.html +1 -1
- package/docs/examples/w-panel-scale_for w-panel-bulge.html +1 -1
- package/docs/examples/w-panel-scale_for w-panel-scrolly.html +1 -1
- package/docs/examples/w-panel-scale_for w-text-suggest.html +1 -1
- package/docs/examples/{w-panel-scrolly_barColor_barColorHover.html → w-panel-scrolly_barOpacity_barOpacityHover.html} +9 -9
- package/docs/examples/w-panel-scrolly_default.html +7 -10
- package/docs/examples/{w-panel-scrolly_barColor_barColorHover_barBackgroundColor_barBackgroundColorHover.html → w-panel-scrolly_events.html} +12 -13
- package/docs/examples/{w-panel-scrolly_ratio.html → w-panel-scrolly_scrollTop.html} +10 -10
- package/docs/examples/w-panel-stripe_borderRadius.html +1 -1
- package/docs/examples/w-panel-stripe_buttons in slot footer.html +1 -1
- package/docs/examples/w-panel-stripe_headerBackgroundColor_footerBackgroundColor.html +1 -1
- package/docs/examples/w-panel-stripe_no footer.html +1 -1
- package/docs/examples/w-panel-stripe_no header.html +1 -1
- package/docs/examples/w-panel-stripe_no shadow, with crimson outer.html +1 -1
- package/docs/examples/w-panel-stripe_only slot icon and slot title in header.html +1 -1
- package/docs/examples/w-panel-stripe_only slot title in header.html +1 -1
- package/docs/examples/w-panel-stripe_padding.html +1 -1
- package/docs/examples/w-panel-stripe_separate for slot content.html +1 -1
- package/docs/examples/w-panel-stripe_slot icon (fontawesome).html +1 -1
- package/docs/examples/w-panel-stripe_slot icon, slot title, slot description, slot content and slot footer.html +1 -1
- package/docs/examples/w-panel-stripe_table in slot content.html +1 -1
- package/docs/examples/w-panel-stripe_with grey outer.html +1 -1
- package/docs/examples/w-popup-edit-text_default.html +1 -1
- package/docs/examples/w-popup-edit-text_in table.html +1 -1
- package/docs/examples/w-popup-edit-text_minWidthForPopup.html +1 -1
- package/docs/examples/w-popup-edit-text_minWidthForValue.html +1 -1
- package/docs/examples/w-popup-edit-text_no title.html +1 -1
- package/docs/examples/w-popup-edit-text_title_contentIcon_contentIconColor_contentIconSize.html +1 -1
- package/docs/examples/w-popup-edit-text_title_footerBackgroundColor.html +1 -1
- package/docs/examples/w-popup-edit-text_title_inputTextColor_contentIconColor_contentBackgroundColor.html +1 -1
- package/docs/examples/w-popup-edit-text_title_saveBtnText_saveBtnTextColor_saveBtnTextColorHover.html +1 -1
- package/docs/examples/w-popup-edit-text_title_titleColor_titleFontSize_headerBackgroundColor.html +1 -1
- package/docs/examples/w-popup_auto flipping in scroll panel.html +1 -1
- package/docs/examples/w-popup_backgroundColor.html +1 -1
- package/docs/examples/w-popup_borderRadius.html +1 -1
- package/docs/examples/w-popup_click item by latency hiding.html +1 -1
- package/docs/examples/w-popup_default.html +1 -1
- package/docs/examples/w-popup_distY.html +1 -1
- package/docs/examples/w-popup_in dialog.html +1 -1
- package/docs/examples/w-popup_in popup.html +1 -1
- package/docs/examples/w-popup_in scroll panel.html +1 -1
- package/docs/examples/w-popup_isolated.html +1 -1
- package/docs/examples/w-popup_maxWidth.html +1 -1
- package/docs/examples/w-popup_minWidth.html +1 -1
- package/docs/examples/w-popup_no shadow_backgroundColor.html +1 -1
- package/docs/examples/w-popup_not editable.html +1 -1
- package/docs/examples/w-popup_shadowStyle.html +1 -1
- package/docs/examples/w-popup_slot for table_maxWidth.html +1 -1
- package/docs/examples/w-progress-bar_decimal.html +1 -1
- package/docs/examples/w-progress-bar_default.html +1 -1
- package/docs/examples/w-progress-bar_enableIconFinish (no iconFinish).html +1 -1
- package/docs/examples/w-progress-bar_enableIconWaiting (no iconWaiting).html +1 -1
- package/docs/examples/w-progress-bar_height.html +1 -1
- package/docs/examples/w-progress-bar_height_borderRadius.html +1 -1
- package/docs/examples/w-progress-bar_iconFinish (fontawesome).html +1 -1
- package/docs/examples/w-progress-bar_iconFinishColor.html +1 -1
- package/docs/examples/w-progress-bar_iconSize.html +1 -1
- package/docs/examples/w-progress-bar_iconWaiting (fontawesome).html +1 -1
- package/docs/examples/w-progress-bar_iconWaitingColor.html +1 -1
- package/docs/examples/w-progress-bar_progColor.html +1 -1
- package/docs/examples/w-progress-bar_progColor_progBackgroundColor.html +1 -1
- package/docs/examples/w-progress-bar_title.html +1 -1
- package/docs/examples/w-progress-bar_title_titleTextColor.html +1 -1
- package/docs/examples/w-progress-bar_title_titleTextFontSize.html +1 -1
- package/docs/examples/w-progress-bar_value=0 (waiting).html +1 -1
- package/docs/examples/w-progress-bar_value=100 (finish).html +1 -1
- package/docs/examples/w-progress-bar_valueTextColor.html +1 -1
- package/docs/examples/w-progress-bar_valueTextFontSize.html +1 -1
- package/docs/examples/w-progress-circle_color.html +1 -1
- package/docs/examples/w-progress-circle_default.html +1 -1
- package/docs/examples/w-progress-circle_small size.html +1 -1
- package/docs/examples/w-progress-circle_tooltip.html +1 -1
- package/docs/examples/w-progress-circle_very small size.html +1 -1
- package/docs/examples/w-progress-circle_width.html +1 -1
- package/docs/examples/w-progress-circle_/344/270/255/346/226/207text.html +1 -1
- package/docs/examples/w-quill-vue-dyn_default.html +1 -1
- package/docs/examples/w-quill-vue-dyn_height.html +1 -1
- package/docs/examples/w-quill-vue-dyn_not editable.html +1 -1
- package/docs/examples/w-quill-vue-dyn_settings.html +1 -1
- package/docs/examples/w-switch_default.html +1 -1
- package/docs/examples/w-switch_not editable.html +1 -1
- package/docs/examples/w-switch_text_color.html +1 -1
- package/docs/examples/w-switch_use string (y or n).html +1 -1
- package/docs/examples/w-table-dyn_default.html +1 -1
- package/docs/examples/w-table-dyn_editable.html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId.html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId_opt.modifyDataWhenSave_save(call cmp. method).html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId_successMsgFromAddRow_errorMsgFromAddRow.html +1 -1
- package/docs/examples/w-table-dyn_editable_checkId_tooltipAddRow_tooltipDeleteSelectedRows.html +1 -1
- package/docs/examples/w-table-dyn_editable_inforPaddingStyle_menuBackgroundColor.html +1 -1
- package/docs/examples/w-table-dyn_editable_opt.beforeAddRow.html +1 -1
- package/docs/examples/w-table-dyn_editable_opt.kpConvertKeysWhenUploadData.html +1 -1
- package/docs/examples/w-table-dyn_editable_opt.optForUploadData.html +1 -1
- package/docs/examples/w-table-dyn_editable_slot btns.html +1 -1
- package/docs/examples/w-table-dyn_editable_textLabelDataName_textPlaceholderDataName_textLabelDataDescription.html +1 -1
- package/docs/examples/w-table-dyn_fixIds (fix id).html +1 -1
- package/docs/examples/w-table-dyn_hideIds (hide mappingId).html +1 -1
- package/docs/examples/w-table-dyn_name_description.html +1 -1
- package/docs/examples/w-table-dyn_opt.kpHead.html +1 -1
- package/docs/examples/w-table-dyn_removeIdsWhenDownload (remove id, mappingId, order, isActive).html +1 -1
- package/docs/examples/w-table-dyn_slot btns.html +1 -1
- package/docs/examples/w-table-dyn_slot infor (name_description).html +1 -1
- package/docs/examples/w-table-dyn_sortColIds (sort by order).html +1 -1
- package/docs/examples/w-text-int_borderRadius.html +1 -1
- package/docs/examples/w-text-int_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text-int_border_borderRadius.html +1 -1
- package/docs/examples/w-text-int_border_buttonColor_buttonColorHover_buttonColorFocus.html +1 -1
- package/docs/examples/w-text-int_border_default.html +1 -1
- package/docs/examples/w-text-int_border_not editable.html +1 -1
- package/docs/examples/w-text-int_border_width.html +1 -1
- package/docs/examples/w-text-int_buttonColor_buttonColorHover_buttonColorFocus.html +1 -1
- package/docs/examples/w-text-int_buttonIconSize.html +1 -1
- package/docs/examples/w-text-int_default.html +1 -1
- package/docs/examples/w-text-int_not editable.html +1 -1
- package/docs/examples/w-text-int_textColor.html +1 -1
- package/docs/examples/w-text-int_textFontSize.html +1 -1
- package/docs/examples/w-text-int_width.html +1 -1
- package/docs/examples/w-text-select_a lot of items.html +1 -1
- package/docs/examples/w-text-select_borderRadius.html +1 -1
- package/docs/examples/w-text-select_border_a lot of items.html +1 -1
- package/docs/examples/w-text-select_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text-select_border_borderRadius.html +1 -1
- package/docs/examples/w-text-select_border_default.html +1 -1
- package/docs/examples/w-text-select_border_events.html +1 -1
- package/docs/examples/w-text-select_border_expansionIconSize.html +1 -1
- package/docs/examples/w-text-select_border_fullwidth.html +1 -1
- package/docs/examples/w-text-select_border_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-select_border_itemTextColor_itemTextColorHover_itemBackgroundColor.html +1 -1
- package/docs/examples/w-text-select_border_itemTextFontSize_defItemHeight_width.html +1 -1
- package/docs/examples/w-text-select_border_items(string array).html +1 -1
- package/docs/examples/w-text-select_border_keyText.html +1 -1
- package/docs/examples/w-text-select_border_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-select_border_leftIcon (material).html +1 -1
- package/docs/examples/w-text-select_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
- package/docs/examples/w-text-select_border_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/w-text-select_border_not editable.html +1 -1
- package/docs/examples/w-text-select_border_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-select_border_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-select_border_rightIcon_rightIconColor_rightIconColorHover.html +1 -1
- package/docs/examples/w-text-select_border_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-select_border_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-select_border_slot item.html +1 -1
- package/docs/examples/w-text-select_border_slot select.html +1 -1
- package/docs/examples/w-text-select_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-select_border_textFontSize.html +1 -1
- package/docs/examples/w-text-select_border_with popup.html +1 -1
- package/docs/examples/w-text-select_default.html +1 -1
- package/docs/examples/w-text-select_events.html +1 -1
- package/docs/examples/w-text-select_expansionIconSize.html +1 -1
- package/docs/examples/w-text-select_fullwidth.html +1 -1
- package/docs/examples/w-text-select_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-select_itemTextColor_itemTextColorHover_itemBackgroundColor_itemBackgroundColorHover.html +1 -1
- package/docs/examples/w-text-select_itemTextFontSize_defItemHeight_width.html +1 -1
- package/docs/examples/w-text-select_items(string array).html +1 -1
- package/docs/examples/w-text-select_keyText.html +1 -1
- package/docs/examples/w-text-select_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-select_leftIcon (material).html +1 -1
- package/docs/examples/w-text-select_leftIcon_leftIconColor_leftIconColorHover_leftIconColorFocus.html +1 -1
- package/docs/examples/w-text-select_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/w-text-select_not editable.html +1 -1
- package/docs/examples/w-text-select_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-select_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-select_rightIcon_rightIconColor_rightIconColorHover_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text-select_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-select_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-select_slot item.html +1 -1
- package/docs/examples/w-text-select_slot select.html +1 -1
- package/docs/examples/w-text-select_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-select_textFontSize.html +1 -1
- package/docs/examples/w-text-select_with popup.html +1 -1
- package/docs/examples/w-text-suggest_a lot of items.html +2 -2
- package/docs/examples/w-text-suggest_borderRadius.html +1 -1
- package/docs/examples/w-text-suggest_border_a lot of items.html +2 -2
- package/docs/examples/w-text-suggest_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text-suggest_border_borderRadius.html +1 -1
- package/docs/examples/w-text-suggest_border_default.html +1 -1
- package/docs/examples/w-text-suggest_border_events.html +1 -1
- package/docs/examples/w-text-suggest_border_expansionIconSize.html +1 -1
- package/docs/examples/w-text-suggest_border_fullwidth.html +1 -1
- package/docs/examples/w-text-suggest_border_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-suggest_border_itemTextColor_itemTextColorHover_itemBackgroundColor.html +1 -1
- package/docs/examples/w-text-suggest_border_itemTextFontSize_defItemHeight.html +1 -1
- package/docs/examples/w-text-suggest_border_items(string array).html +1 -1
- package/docs/examples/w-text-suggest_border_keyText.html +2 -2
- package/docs/examples/w-text-suggest_border_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-suggest_border_leftIcon (material).html +1 -1
- package/docs/examples/w-text-suggest_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
- package/docs/examples/w-text-suggest_border_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/{w-text-suggest_border_searchEmpty.html → w-text-suggest_border_noResultsText.html} +3 -3
- package/docs/examples/w-text-suggest_border_not editable.html +1 -1
- package/docs/examples/w-text-suggest_border_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-suggest_border_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-suggest_border_placeholder.html +1 -1
- package/docs/examples/w-text-suggest_border_rightIcon_rightIconColor_rightIconColorHover.html +1 -1
- package/docs/examples/w-text-suggest_border_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-suggest_border_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-suggest_border_showPanel(press enter to hide panel)_focused.html +1 -1
- package/docs/examples/w-text-suggest_border_slot item.html +1 -1
- package/docs/examples/w-text-suggest_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-suggest_border_textFontSize.html +1 -1
- package/docs/examples/w-text-suggest_border_with popup.html +1 -1
- package/docs/examples/w-text-suggest_default.html +1 -1
- package/docs/examples/w-text-suggest_events.html +1 -1
- package/docs/examples/w-text-suggest_expansionIconSize.html +1 -1
- package/docs/examples/w-text-suggest_fullwidth.html +1 -1
- package/docs/examples/w-text-suggest_itemPaddingStyle.html +1 -1
- package/docs/examples/w-text-suggest_itemTextColor_itemTextColorHover_itemBackgroundColor_itemBackgroundColorHover.html +1 -1
- package/docs/examples/w-text-suggest_itemTextFontSize_defItemHeight.html +1 -1
- package/docs/examples/w-text-suggest_items(string array).html +1 -1
- package/docs/examples/w-text-suggest_keyText.html +2 -2
- package/docs/examples/w-text-suggest_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text-suggest_leftIcon (material).html +1 -1
- package/docs/examples/w-text-suggest_leftIcon_leftIconColor_leftIconColorHover_leftIconColorFocus.html +1 -1
- package/docs/examples/w-text-suggest_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/{w-text-suggest_searchEmpty.html → w-text-suggest_noResultsText.html} +3 -3
- package/docs/examples/w-text-suggest_not editable.html +1 -1
- package/docs/examples/w-text-suggest_paddingStyle (equal height to using icon).html +1 -1
- package/docs/examples/w-text-suggest_paddingStyle (thin style).html +1 -1
- package/docs/examples/w-text-suggest_placeholder.html +1 -1
- package/docs/examples/w-text-suggest_rightIcon_rightIconColor_rightIconColorHover_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text-suggest_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text-suggest_showExpansionIcon.html +1 -1
- package/docs/examples/w-text-suggest_showPanel(press enter to hide panel)_focused.html +1 -1
- package/docs/examples/w-text-suggest_slot item.html +1 -1
- package/docs/examples/w-text-suggest_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-text-suggest_textFontSize.html +1 -1
- package/docs/examples/w-text_border_backgroundColor_backgroundColorHover_backgroundColorFocus.html +1 -1
- package/docs/examples/w-text_border_borderRadius_paddingStyle.html +1 -1
- package/docs/examples/w-text_border_default.html +1 -1
- package/docs/examples/w-text_border_events.html +1 -1
- package/docs/examples/w-text_border_fullwidth.html +1 -1
- package/docs/examples/w-text_border_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text_border_leftIcon (material).html +1 -1
- package/docs/examples/w-text_border_leftIcon_leftIconColor_leftIconColorHover.html +1 -1
- package/docs/examples/w-text_border_not editable.html +1 -1
- package/docs/examples/w-text_border_placeholder.html +1 -1
- package/docs/examples/w-text_border_rightIcon_rightIconColorHover_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text_border_textAlign.html +1 -1
- package/docs/examples/w-text_border_textColor.html +1 -1
- package/docs/examples/w-text_bottomLineBorderColor_bottomLineBorderColorHover_bottomLineBorderColorFocus.html +1 -1
- package/docs/examples/w-text_default.html +1 -1
- package/docs/examples/w-text_events.html +1 -1
- package/docs/examples/w-text_fullwidth.html +1 -1
- package/docs/examples/w-text_leftIcon (fontawesome).html +1 -1
- package/docs/examples/w-text_leftIcon (material).html +1 -1
- package/docs/examples/w-text_leftIcon_leftIconColor_leftIconColorFocus.html +1 -1
- package/docs/examples/w-text_leftIcon_leftIconSize.html +1 -1
- package/docs/examples/w-text_leftIcon_leftIconTooltip.html +1 -1
- package/docs/examples/w-text_not editable.html +1 -1
- package/docs/examples/w-text_placeholder.html +1 -1
- package/docs/examples/w-text_rightIcon.html +1 -1
- package/docs/examples/w-text_rightIcon_rightIconColor_rightIconColorFocus.html +1 -1
- package/docs/examples/w-text_rightIcon_rightIconSize.html +1 -1
- package/docs/examples/w-text_rightIcon_rightIconTooltip.html +1 -1
- package/docs/examples/w-text_textAlign.html +1 -1
- package/docs/examples/w-text_textColor.html +1 -1
- package/docs/examples/w-text_textFontSize.html +1 -1
- package/docs/examples/w-textarea_borderColorFocus.html +1 -1
- package/docs/examples/w-textarea_default.html +1 -1
- package/docs/examples/w-textarea_fullwidth.html +1 -1
- package/docs/examples/w-textarea_not editable.html +1 -1
- package/docs/examples/w-textarea_placeholder.html +1 -1
- package/docs/examples/w-timeday-range_between.html +1 -1
- package/docs/examples/w-timeday-range_borderRadius.html +1 -1
- package/docs/examples/w-timeday-range_border_between.html +1 -1
- package/docs/examples/w-timeday-range_border_borderRadius.html +1 -1
- package/docs/examples/w-timeday-range_border_default.html +1 -1
- package/docs/examples/w-timeday-range_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday-range_border_icon (material).html +1 -1
- package/docs/examples/w-timeday-range_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeday-range_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeday-range_border_not editable.html +1 -1
- package/docs/examples/w-timeday-range_border_pickColor.html +1 -1
- package/docs/examples/w-timeday-range_border_textColor.html +1 -1
- package/docs/examples/w-timeday-range_default.html +1 -1
- package/docs/examples/w-timeday-range_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday-range_icon (material).html +1 -1
- package/docs/examples/w-timeday-range_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeday-range_iconTooltip.html +1 -1
- package/docs/examples/w-timeday-range_icon_iconSize.html +1 -1
- package/docs/examples/w-timeday-range_not editable.html +1 -1
- package/docs/examples/w-timeday-range_pickColor.html +1 -1
- package/docs/examples/w-timeday-range_textColor.html +1 -1
- package/docs/examples/w-timeday_borderRadius.html +1 -1
- package/docs/examples/w-timeday_border_borderRadius.html +1 -1
- package/docs/examples/w-timeday_border_default.html +1 -1
- package/docs/examples/w-timeday_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday_border_icon (material).html +1 -1
- package/docs/examples/w-timeday_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeday_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeday_border_not editable.html +1 -1
- package/docs/examples/w-timeday_border_pickColor.html +1 -1
- package/docs/examples/w-timeday_border_textColor.html +1 -1
- package/docs/examples/w-timeday_default.html +1 -1
- package/docs/examples/w-timeday_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeday_icon (material).html +1 -1
- package/docs/examples/w-timeday_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeday_iconTooltip.html +1 -1
- package/docs/examples/w-timeday_icon_iconSize.html +1 -1
- package/docs/examples/w-timeday_not editable.html +1 -1
- package/docs/examples/w-timeday_pickColor.html +1 -1
- package/docs/examples/w-timeday_textColor.html +1 -1
- package/docs/examples/w-timeminute-range_between.html +1 -1
- package/docs/examples/w-timeminute-range_borderRadius.html +1 -1
- package/docs/examples/w-timeminute-range_border_between.html +1 -1
- package/docs/examples/w-timeminute-range_border_borderRadius.html +1 -1
- package/docs/examples/w-timeminute-range_border_default.html +1 -1
- package/docs/examples/w-timeminute-range_border_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute-range_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute-range_border_icon (material).html +1 -1
- package/docs/examples/w-timeminute-range_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeminute-range_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute-range_border_minuteInter.html +1 -1
- package/docs/examples/w-timeminute-range_border_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute-range_border_not editable.html +1 -1
- package/docs/examples/w-timeminute-range_border_pickColor.html +1 -1
- package/docs/examples/w-timeminute-range_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-timeminute-range_default.html +1 -1
- package/docs/examples/w-timeminute-range_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute-range_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute-range_icon (material).html +1 -1
- package/docs/examples/w-timeminute-range_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeminute-range_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute-range_icon_iconSize.html +1 -1
- package/docs/examples/w-timeminute-range_minuteInter.html +1 -1
- package/docs/examples/w-timeminute-range_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute-range_not editable.html +1 -1
- package/docs/examples/w-timeminute-range_pickColor.html +1 -1
- package/docs/examples/w-timeminute-range_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-timeminute_borderRadius.html +1 -1
- package/docs/examples/w-timeminute_border_borderRadius.html +1 -1
- package/docs/examples/w-timeminute_border_default.html +1 -1
- package/docs/examples/w-timeminute_border_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute_border_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute_border_icon (material).html +1 -1
- package/docs/examples/w-timeminute_border_iconColor_iconColorFoucs_borderColor.html +1 -1
- package/docs/examples/w-timeminute_border_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute_border_minuteInter.html +1 -1
- package/docs/examples/w-timeminute_border_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute_border_not editable.html +1 -1
- package/docs/examples/w-timeminute_border_pickColor.html +1 -1
- package/docs/examples/w-timeminute_border_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-timeminute_default.html +1 -1
- package/docs/examples/w-timeminute_hourMin_hourMax.html +1 -1
- package/docs/examples/w-timeminute_icon (fontawesome).html +1 -1
- package/docs/examples/w-timeminute_icon (material).html +1 -1
- package/docs/examples/w-timeminute_iconColor_iconColorFoucs.html +1 -1
- package/docs/examples/w-timeminute_iconTooltip.html +1 -1
- package/docs/examples/w-timeminute_icon_iconSize.html +1 -1
- package/docs/examples/w-timeminute_minuteInter.html +1 -1
- package/docs/examples/w-timeminute_minutesCustom.html +1 -1
- package/docs/examples/w-timeminute_not editable.html +1 -1
- package/docs/examples/w-timeminute_pickColor.html +1 -1
- package/docs/examples/w-timeminute_textColor_expansionIconColor.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_default.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_height.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_not editable.html +1 -1
- package/docs/examples/w-tinymce-vue-dyn_settings.html +1 -1
- package/docs/examples/w-tree_default.html +1 -1
- package/docs/examples/w-tree_defaultDisplayLevel.html +1 -1
- package/docs/examples/w-tree_draggable.html +1 -1
- package/docs/examples/w-tree_draggable_dgInsertLineColor_dgInsertBackgroundColor_dgBelongBackgroundColor.html +1 -1
- package/docs/examples/w-tree_draggable_dgPreviewOpacity_dgPreviewBorderWidth_dgBelongBackgroundColor.html +1 -1
- package/docs/examples/w-tree_draggable_dgTextDisabled_dgTextDisabledColor_dgTextDisabledPaddingLeft.html +1 -1
- package/docs/examples/{w-tree_slot_defItemHeight.html → w-tree_filterKeywords_noResultsText.html} +13 -14
- package/docs/examples/{w-tree_filterKeywords_searchEmpty_selectable.html → w-tree_filterKeywords_noResultsText_selectable.html} +5 -3
- package/docs/examples/{w-tree_separatorColor.html → w-tree_iconHeight.html} +3 -3
- package/docs/examples/{w-tree_separatorColor_separatorHeight.html → w-tree_iconHeight_defItemHeight.html} +4 -4
- package/docs/examples/w-tree_iconToggleColor_iconToggleBackgroundColor_iconToggleBackgroundColorHover.html +1 -1
- package/docs/examples/w-tree_indent.html +1 -1
- package/docs/examples/w-tree_keyPrimary_keyText_keyChildren.html +1 -1
- package/docs/examples/w-tree_mouseenter_mouseleave_click_change-view-items.html +1 -1
- package/docs/examples/w-tree_operatable.html +1 -1
- package/docs/examples/w-tree_operatable_operateBtnBackgroundColor_operateBtnBackgroundColorHover_operateBtnBackgroundColorFocus.html +1 -1
- package/docs/examples/w-tree_operatable_operateBtnTooltip_operateItemTextForInsertBefore_perateItemTextForInsertChild.html +1 -1
- package/docs/examples/w-tree_operatable_operateItemBackgroundColor_operateItemBackgroundColorHover_operateItemTextColor.html +1 -1
- package/docs/examples/w-tree_operatable_operateItemIconSize_operateItemPaddingStyle_operatePanelWidth.html +1 -1
- package/docs/examples/w-tree_paddingStyle.html +1 -1
- package/docs/examples/w-tree_selectable.html +1 -1
- package/docs/examples/w-tree_selectable_draggable.html +1 -1
- package/docs/examples/w-tree_slot.html +7 -41
- package/docs/examples/w-tree_slot_iconUncheckedColor_iconUncheckedDisabledColor_iconCheckedColor.html +1 -1
- package/docs/examples/w-tree_slot_locked_selectable.html +1 -1
- package/docs/examples/w-tree_slot_operatable.html +1 -1
- package/docs/examples/w-tree_slot_selectable.html +1 -1
- package/docs/examples/w-tree_slot_selectable_draggable.html +1 -1
- package/docs/examples/{w-tree_selectable_large data (100,000 items).html → w-tree_slot_selectable_large data (100,000 items).html } +5 -3
- package/docs/examples/w-tree_viewHeightMax.html +1 -1
- package/docs/global.html +2 -2
- package/docs/highchartsSetting.mjs.html +2 -2
- package/docs/index.html +2 -2
- package/docs/module-WAggridVueDyn.html +2 -2
- package/docs/module-WBadge.html +2 -2
- package/docs/module-WButtonChip.html +2 -2
- package/docs/module-WButtonCircle.html +2 -2
- package/docs/module-WCheckbox.html +2 -2
- package/docs/module-WCkeditorVueDyn.html +2 -2
- package/docs/module-WConfirm.html +2 -2
- package/docs/module-WDialog.html +2 -2
- package/docs/module-WDropfiles.html +2 -2
- package/docs/module-WDynamicList.html +13 -13
- package/docs/module-WEchartsVueDyn.html +2 -2
- package/docs/module-WGroupCheck.html +2 -2
- package/docs/module-WGroupDragdrop.html +2 -2
- package/docs/module-WGroupRadio.html +2 -2
- package/docs/module-WGroupTags.html +5 -5
- package/docs/module-WHighchartsBitmapDyn.html +2 -2
- package/docs/module-WHighchartsVueDyn.html +2 -2
- package/docs/module-WHighstockVueDyn.html +2 -2
- package/docs/module-WIcon.html +2 -2
- package/docs/module-WIconLoading.html +2 -2
- package/docs/module-WIconSvg.html +2 -2
- package/docs/module-WImageCascadingDyn.html +2 -2
- package/docs/module-WImageViewerDyn.html +2 -2
- package/docs/module-WJsonView.html +57 -27
- package/docs/module-WLeafletVueDyn.html +40 -10
- package/docs/module-WListVertical.html +2 -2
- package/docs/module-WListVerticalItem.html +2 -2
- package/docs/module-WPanelBulge.html +2 -2
- package/docs/module-WPanelChart.html +2 -2
- package/docs/module-WPanelDivideHorizontal.html +2 -2
- package/docs/module-WPanelDivideVertical.html +2 -2
- package/docs/module-WPanelScrolly.html +14 -38
- package/docs/module-WPanelScrollyCore.html +11 -47
- package/docs/module-WPanelStripe.html +2 -2
- package/docs/module-WPopup.html +2 -2
- package/docs/module-WPopupEditText.html +2 -2
- package/docs/module-WProgressBar.html +2 -2
- package/docs/module-WProgressCircle.html +2 -2
- package/docs/module-WQuillVueDyn.html +2 -2
- package/docs/module-WShellBottomLine.html +2 -2
- package/docs/module-WShellEllipse.html +2 -2
- package/docs/module-WShellMaterial.html +2 -2
- package/docs/module-WSwitch.html +2 -2
- package/docs/module-WTableDyn.html +2 -2
- package/docs/module-WText.html +2 -2
- package/docs/module-WTextCore.html +2 -2
- package/docs/module-WTextInt.html +2 -2
- package/docs/module-WTextIntCore.html +2 -2
- package/docs/module-WTextSelect.html +2 -2
- package/docs/module-WTextSuggest.html +5 -5
- package/docs/module-WTextSuggestCore.html +5 -5
- package/docs/module-WTextarea.html +2 -2
- package/docs/module-WTimeday.html +2 -2
- package/docs/module-WTimedayCore.html +2 -2
- package/docs/module-WTimedayRange.html +2 -2
- package/docs/module-WTimedayRangeCore.html +2 -2
- package/docs/module-WTimeminute.html +2 -2
- package/docs/module-WTimeminuteCore.html +2 -2
- package/docs/module-WTimeminuteRange.html +2 -2
- package/docs/module-WTimeminuteRangeCore.html +2 -2
- package/docs/module-WTinymceVueDyn.html +2 -2
- package/docs/module-WTree.html +11 -17
- package/docs/module-WTreeIconCheckbox.html +2 -2
- package/docs/module-WTreeIconToggle.html +2 -2
- package/docs/vuetifyColor.mjs.html +2 -2
- package/package.json +3 -3
- package/src/App.vue +1 -1
- package/src/AppZoneWBadge.vue +2 -0
- package/src/AppZoneWDynamicList.vue +24 -83
- package/src/AppZoneWGroupTags.vue +2 -2
- package/src/AppZoneWJsonView.vue +11 -23
- package/src/AppZoneWLeafletVueDyn.vue +5 -5
- package/src/AppZoneWPanelScrolly.vue +18 -66
- package/src/AppZoneWTextSuggest.vue +8 -8
- package/src/AppZoneWTree.vue +60 -37
- package/src/components/WButtonChip.vue +2 -1
- package/src/components/WButtonCircle.vue +2 -1
- package/src/components/WComponentVue.vue +0 -2
- package/src/components/WDynamicList.vue +491 -283
- package/src/components/WGroupTags.vue +4 -4
- package/src/components/WJsonView.vue +308 -945
- package/src/components/WLeafletVueDyn.vue +10 -5
- package/src/components/WPanelScrolly.vue +44 -104
- package/src/components/WPanelScrollyCore.vue +312 -535
- package/src/components/WTextSuggest.vue +4 -4
- package/src/components/WTextSuggestCore.vue +12 -15
- package/src/components/WTree.vue +131 -102
- package/src/js/convertToTreeWk.mjs +7 -0
- package/src/js/convertToTreeWk.wk.umd.js +1 -0
- package/toolg/gDistRollupWorkerFuncs.mjs +31 -0
- package/toolg/gExtractHtml.mjs +4 -1
- package/docs/examples/w-dynamic-list_separatorColor.html +0 -367
- package/docs/examples/w-dynamic-list_separatorColor_separatorHeight.html +0 -368
- package/docs/examples/w-json-view_valueStyleBreakAll.html +0 -469
- package/docs/examples/w-panel-scrolly_barHeightMin.html +0 -190
- package/docs/examples/w-panel-scrolly_barWidth.html +0 -218
- package/docs/examples/w-panel-scrolly_scrollDelta.html +0 -221
- package/docs/module-WJsonViewCore.html +0 -243
- package/src/components/WJsonViewCore.vue +0 -163
|
@@ -1,42 +1,38 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
:style="`
|
|
3
|
+
:style="`box-sizing:content-box;`"
|
|
4
4
|
v-domresize
|
|
5
|
-
@domresize="
|
|
5
|
+
@domresize="resizePanel"
|
|
6
6
|
@mouseenter="mouseEntering=true"
|
|
7
7
|
@mouseleave="mouseEntering=false"
|
|
8
|
-
:
|
|
9
|
-
:changeViewHeightMax="changeViewHeightMax"
|
|
8
|
+
:changeScrollTop="changeScrollTop"
|
|
10
9
|
>
|
|
11
10
|
|
|
12
|
-
<!--
|
|
13
|
-
<div
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
<!-- 外層設定box-sizing=content-box也就是高度不包括border與padding, 內層高度就會是viewHeightMax不需減少, 此時bar的設定box-sizing=border-box才能自動考量padding影響 -->
|
|
18
|
-
<div :style="`box-sizing:border-box; padding:${barPanelPadding}px 1px; position:relative; width:${barWidth}px; height:100%; background:${useBarBackgroundColor}; transition:background 0.5s;`">
|
|
19
|
-
<div
|
|
20
|
-
ref="divBar"
|
|
21
|
-
:style="`transform:translateY(${barLoc}px); width:100%; height:${barSize}px; user-select:none; cursor:pointer; border-radius:15px; background:${useBarColor}; transition:background 0.5s;`"
|
|
22
|
-
></div>
|
|
11
|
+
<!-- 計算nativeBarWidth -->
|
|
12
|
+
<div style="position:relative; width:0px; height:0px; opacity:0;">
|
|
13
|
+
<div style="position:absolute; left:0; top:0;">
|
|
14
|
+
<div ref="divDetect" style="width:50px; height:50px; overflow:auto;">
|
|
15
|
+
<div style="width:100px; height:100px;"></div>
|
|
23
16
|
</div>
|
|
24
17
|
</div>
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
<div
|
|
21
|
+
:style="`position:relative; width:100%; overflow-x:hidden;`"
|
|
22
|
+
>
|
|
25
23
|
|
|
26
|
-
<!-- 內容區 -->
|
|
27
24
|
<div
|
|
28
|
-
ref="
|
|
29
|
-
|
|
30
|
-
:style="`position:relative;
|
|
31
|
-
|
|
25
|
+
ref="divShell"
|
|
26
|
+
_class="sb"
|
|
27
|
+
:style="`position:relative; width:calc( 100% + ${nativeBarWidth}px ); height:${panelHeight}px; box-sizing:content-box; overflow-x:hidden; overflow-y:scroll;`"
|
|
28
|
+
v-domresize
|
|
29
|
+
@domresize="resizeShell"
|
|
30
|
+
@scroll="scrollShell"
|
|
32
31
|
>
|
|
33
32
|
|
|
34
|
-
<!-- 通過高度設定為viewHeightMax+extHeight使divPanel出現捲軸, 並強制設定scrollTop=extHeight/2可使保持監聽上下捲動與拖曳事件 -->
|
|
35
|
-
<div :style="`position:absolute; top:0px; left:0px; width:calc( 100% + ${extWidth}px ); height:${viewHeightMax+extHeight}px;`"></div>
|
|
36
|
-
|
|
37
33
|
<div
|
|
38
|
-
ref="
|
|
39
|
-
:style="
|
|
34
|
+
ref="divContent"
|
|
35
|
+
:style="``"
|
|
40
36
|
v-dommutation
|
|
41
37
|
@dommutation="mutation"
|
|
42
38
|
>
|
|
@@ -45,6 +41,22 @@
|
|
|
45
41
|
|
|
46
42
|
</div>
|
|
47
43
|
|
|
44
|
+
<!-- isMobile時divBar仍要存在, 因通用檢測時才會有效, 故isMobile時需於移至右側之外 -->
|
|
45
|
+
<div :style="`position:absolute; top:0px; right:${isMobile?-8:0}px; width:8px;`">
|
|
46
|
+
|
|
47
|
+
<div
|
|
48
|
+
ref="divBar"
|
|
49
|
+
class="sb"
|
|
50
|
+
:style="`width:8px; height:${panelHeight}px; box-sizing:content-box; overflow-x:hidden; overflow-y:auto; opacity:${mouseEntering?barOpacityHover:barOpacity};`"
|
|
51
|
+
@scroll="scrollBar"
|
|
52
|
+
>
|
|
53
|
+
|
|
54
|
+
<div :style="`width:1px; height:${contentHeight}px;`"></div>
|
|
55
|
+
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
</div>
|
|
59
|
+
|
|
48
60
|
</div>
|
|
49
61
|
|
|
50
62
|
</div>
|
|
@@ -52,178 +64,76 @@
|
|
|
52
64
|
|
|
53
65
|
<script>
|
|
54
66
|
import get from 'lodash/get'
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
67
|
+
import isEqual from 'lodash/isEqual'
|
|
68
|
+
// import cloneDeep from 'lodash/cloneDeep'
|
|
69
|
+
import waitFun from 'wsemi/src/waitFun.mjs'
|
|
70
|
+
import debounce from 'wsemi/src/debounce.mjs'
|
|
59
71
|
import domResize from '../js/domResize.mjs'
|
|
60
72
|
import domMutation from '../js/domMutation.mjs'
|
|
61
73
|
|
|
62
74
|
|
|
63
75
|
/**
|
|
64
76
|
* @vue-prop {Number} [viewHeightMax=400] 輸入顯示區最大高度,單位為px,預設400
|
|
65
|
-
* @vue-prop {Number} [
|
|
66
|
-
* @vue-prop {Number} [
|
|
67
|
-
* @vue-prop {
|
|
68
|
-
* @vue-prop {String} [barColorHover='rgba(0,0,0,0.3)'] 輸入滑鼠移入時捲軸內區塊顏色字串,預設'rgba(0,0,0,0.3)'
|
|
69
|
-
* @vue-prop {String} [barBackgroundColor='transparent'] 輸入捲軸背景顏色字串,預設'transparent'
|
|
70
|
-
* @vue-prop {String} [barBackgroundColorHover='transparent'] 輸入滑鼠移入時捲軸背景顏色字串,預設'transparent'
|
|
71
|
-
* @vue-prop {Number} [barWidth=8] 輸入捲軸區寬度,單位為px,預設8
|
|
72
|
-
* @vue-prop {Number} [barHeightMin=50] 輸入捲軸內區塊最小高度,單位為px,預設50
|
|
73
|
-
* @vue-prop {Number} [ratio=0] 輸入目前捲動比例數字,預設0
|
|
77
|
+
* @vue-prop {Number} [scrollTop=0] 輸入目前捲動值數字,預設0
|
|
78
|
+
* @vue-prop {Number} [barOpacity=0.6] 輸入捲軸透明度數字,預設0.6
|
|
79
|
+
* @vue-prop {Number} [barOpacityHover=1] 輸入滑鼠移入時捲軸透明度數字,預設1
|
|
74
80
|
*/
|
|
75
81
|
export default {
|
|
76
82
|
directives: {
|
|
77
83
|
domresize: domResize(),
|
|
78
84
|
dommutation: domMutation(),
|
|
79
85
|
},
|
|
86
|
+
components: {
|
|
87
|
+
},
|
|
80
88
|
props: {
|
|
81
89
|
viewHeightMax: {
|
|
82
90
|
type: Number,
|
|
83
91
|
default: 400,
|
|
84
92
|
},
|
|
85
|
-
|
|
86
|
-
type: Number,
|
|
87
|
-
default: 10000,
|
|
88
|
-
},
|
|
89
|
-
scrollDelta: {
|
|
93
|
+
scrollTop: {
|
|
90
94
|
type: Number,
|
|
91
|
-
default:
|
|
92
|
-
},
|
|
93
|
-
barColor: {
|
|
94
|
-
type: String,
|
|
95
|
-
default: 'rgba(0,0,0,0.15)',
|
|
96
|
-
},
|
|
97
|
-
barColorHover: {
|
|
98
|
-
type: String,
|
|
99
|
-
default: 'rgba(0,0,0,0.3)',
|
|
100
|
-
},
|
|
101
|
-
barBackgroundColor: {
|
|
102
|
-
type: String,
|
|
103
|
-
default: 'transparent',
|
|
104
|
-
},
|
|
105
|
-
barBackgroundColorHover: {
|
|
106
|
-
type: String,
|
|
107
|
-
default: 'transparent',
|
|
108
|
-
},
|
|
109
|
-
barWidth: {
|
|
110
|
-
type: Number,
|
|
111
|
-
default: 8,
|
|
95
|
+
default: 0,
|
|
112
96
|
},
|
|
113
|
-
|
|
97
|
+
barOpacity: {
|
|
114
98
|
type: Number,
|
|
115
|
-
default:
|
|
99
|
+
default: 0.6,
|
|
116
100
|
},
|
|
117
|
-
|
|
101
|
+
barOpacityHover: {
|
|
118
102
|
type: Number,
|
|
119
|
-
default:
|
|
103
|
+
default: 1,
|
|
120
104
|
},
|
|
121
105
|
},
|
|
122
106
|
data: function() {
|
|
123
107
|
return {
|
|
124
|
-
|
|
108
|
+
dbc: debounce(),
|
|
125
109
|
|
|
126
|
-
|
|
127
|
-
ratioTrans: 0, //捲動比例
|
|
128
|
-
barPressY: null, //bar按下準備拖曳前y座標
|
|
129
|
-
nativeBarWidth: 100, //原生捲軸寬度, 預設給超大值避免初始化時顯示捲軸出來
|
|
130
|
-
barPanelPadding: 1, //捲軸內與區塊的y向內間距
|
|
131
|
-
scrollInforLast: null, //上次算得的捲軸資訊
|
|
132
|
-
scrollInforTemp: null, //要恢復上次捲軸位置時用暫存的捲軸資訊
|
|
133
|
-
timerScrollTop: null, //偵測顯示區捲軸變動的timer
|
|
110
|
+
nativeBarWidth: 16, //預設bar寬度, 先給大值避免初始化時會顯示原本bar條
|
|
134
111
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
//console.log('mounted')
|
|
139
|
-
|
|
140
|
-
let vo = this
|
|
141
|
-
|
|
142
|
-
//das
|
|
143
|
-
let das = domDragBarAndScroll(vo.$refs.divPanel, vo.$refs.divBar, {
|
|
144
|
-
getHeighRatio: () => vo.heighRatio,
|
|
145
|
-
//stopScrollPropagationForPanel: true, //禁止滑鼠捲動事件傳遞至外, 現已強制原生捲軸再攔截相關事件, 故不需要停用傳遞
|
|
146
|
-
//stopTouchDragPropagationForPanel: true, //禁止觸控拖曳事件傳遞至外, 現已強制原生捲軸再攔截相關事件, 故不需要停用傳遞
|
|
147
|
-
})
|
|
148
|
-
das.on('scrollPanel', vo.dgScrollPanel)
|
|
149
|
-
das.on('pressBar', vo.dgPressBar)
|
|
150
|
-
das.on('dragBar', vo.dgDragBar)
|
|
151
|
-
das.on('freeBar', vo.dgFreeBar)
|
|
112
|
+
useEmitEvent: true, //是否可觸發事件
|
|
113
|
+
mouseEntering: false,
|
|
114
|
+
mouseLoc: '',
|
|
152
115
|
|
|
153
|
-
|
|
154
|
-
|
|
116
|
+
viewHeight: 0, //外框區高度px
|
|
117
|
+
contentHeight: 2, //內容區高度px, 一定要給>=2值(至少可能渲染2border)才能避免初始化無高度導致無法觸發後續事件
|
|
155
118
|
|
|
156
|
-
|
|
157
|
-
|
|
119
|
+
ratio: 0,
|
|
120
|
+
scrollInfor: null,
|
|
158
121
|
|
|
159
|
-
//resetScrollTop, 因vue切換組件時若為共用狀態則mounted只會觸發1次, 此導致顯示區塊的scrollTop會自動被歸0但又不觸發scroll事件, 故需通過timer偵測並重設scrollTop
|
|
160
|
-
vo.resetScrollTop()
|
|
161
|
-
|
|
162
|
-
}, 100)
|
|
163
|
-
|
|
164
|
-
},
|
|
165
|
-
beforeDestroy: function() {
|
|
166
|
-
//console.log('beforeDestroy')
|
|
167
|
-
|
|
168
|
-
let vo = this
|
|
169
|
-
|
|
170
|
-
//clear
|
|
171
|
-
if (vo.das) {
|
|
172
|
-
vo.das.clear()
|
|
173
122
|
}
|
|
174
|
-
|
|
175
|
-
//clearInterval
|
|
176
|
-
clearInterval(vo.timerScrollTop)
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
watch: {
|
|
180
|
-
|
|
181
|
-
viewHeightMax: function() {
|
|
182
|
-
//console.log('watch viewHeightMax')
|
|
183
|
-
|
|
184
|
-
let vo = this
|
|
185
|
-
|
|
186
|
-
//由watch處儲存捲軸資訊scrollInfor供後續恢復, 因放在computed會被vue偵測記憶體變動
|
|
187
|
-
vo.scrollInforTemp = cloneDeep(vo.scrollInforLast)
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
|
|
191
123
|
},
|
|
192
124
|
computed: {
|
|
193
125
|
|
|
194
|
-
|
|
195
|
-
//console.log('computed
|
|
126
|
+
changeScrollTop: function () {
|
|
127
|
+
//console.log('computed changeScrollTop')
|
|
196
128
|
|
|
197
129
|
let vo = this
|
|
198
130
|
|
|
199
|
-
//
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
//limit
|
|
203
|
-
ratioTrans = Math.max(ratioTrans, 0)
|
|
204
|
-
ratioTrans = Math.min(ratioTrans, 1)
|
|
205
|
-
|
|
206
|
-
//save
|
|
207
|
-
vo.ratioTrans = ratioTrans
|
|
131
|
+
//updateScrollTop
|
|
132
|
+
vo.updateScrollTop(vo.scrollTop)
|
|
208
133
|
|
|
209
134
|
return ''
|
|
210
135
|
},
|
|
211
136
|
|
|
212
|
-
changeViewHeightMax: function() {
|
|
213
|
-
//console.log('computed changeViewHeightMax')
|
|
214
|
-
|
|
215
|
-
let vo = this
|
|
216
|
-
|
|
217
|
-
//viewHeightMax for trigger
|
|
218
|
-
let viewHeightMax = vo.viewHeightMax
|
|
219
|
-
|
|
220
|
-
//keepRatioByChangeViewHeightMax
|
|
221
|
-
vo.keepRatioByChangeViewHeightMax()
|
|
222
|
-
|
|
223
|
-
vo.___viewHeightMax___ = viewHeightMax
|
|
224
|
-
return ''
|
|
225
|
-
},
|
|
226
|
-
|
|
227
137
|
panelHeight: function () {
|
|
228
138
|
//console.log('computed panelHeight')
|
|
229
139
|
|
|
@@ -232,512 +142,378 @@ export default {
|
|
|
232
142
|
return Math.min(vo.contentHeight, vo.viewHeightMax)
|
|
233
143
|
},
|
|
234
144
|
|
|
235
|
-
|
|
236
|
-
//console.log('computed
|
|
237
|
-
|
|
238
|
-
let vo = this
|
|
239
|
-
|
|
240
|
-
//放大比率(依照viewHeightMax)與增量
|
|
241
|
-
let r = 10 //桌機需高放大比率, 於複雜dom中比較有緩衝能平滑拖曳, 不容易觸發拖曳外層document
|
|
242
|
-
let d = 0
|
|
243
|
-
if (vo.nativeBarWidth <= 0) {
|
|
244
|
-
r = 0.2 //手機需低放大比率, 大值時拖曳會出現回彈效果使用者體驗比較好, 但會常觸發回彈導致無法拖曳
|
|
245
|
-
d = 2
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
//額外撐開高度, 最小上下留1px也就是需為viewHeightMax+2
|
|
249
|
-
let h = vo.viewHeightMax * r + d
|
|
250
|
-
|
|
251
|
-
return h
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
useEntering: function() {
|
|
255
|
-
//console.log('computed useEntering')
|
|
256
|
-
|
|
257
|
-
let vo = this
|
|
258
|
-
|
|
259
|
-
//滑鼠移入以及對捲軸按下正在拖曳中時, 都視為滑鼠移入狀態
|
|
260
|
-
return vo.mouseEntering || vo.barPressY
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
useBarColor: function() {
|
|
264
|
-
//console.log('computed useBarColor')
|
|
145
|
+
isMobile: function() {
|
|
146
|
+
//console.log('computed isMobile')
|
|
265
147
|
|
|
266
148
|
let vo = this
|
|
267
149
|
|
|
268
|
-
|
|
269
|
-
return color2hex(vo.barColorHover)
|
|
270
|
-
}
|
|
271
|
-
return color2hex(vo.barColor)
|
|
150
|
+
return vo.nativeBarWidth <= 0
|
|
272
151
|
},
|
|
273
152
|
|
|
274
|
-
|
|
275
|
-
//console.log('computed useBarBackgroundColor')
|
|
276
|
-
|
|
153
|
+
contentHeightEff: function() {
|
|
277
154
|
let vo = this
|
|
278
|
-
|
|
279
|
-
if (vo.useEntering) {
|
|
280
|
-
return color2hex(vo.barBackgroundColorHover)
|
|
281
|
-
}
|
|
282
|
-
return color2hex(vo.barBackgroundColor)
|
|
155
|
+
return Math.max(vo.contentHeight - vo.panelHeight, 0)
|
|
283
156
|
},
|
|
284
157
|
|
|
285
|
-
|
|
286
|
-
//console.log('computed heighRatio')
|
|
287
|
-
|
|
158
|
+
viewTop: function() {
|
|
288
159
|
let vo = this
|
|
289
|
-
|
|
290
|
-
//r, 顯示區與實際內容高度比, 此處只有domDragBarAndScroll會調用, 也就是使用者拖曳捲軸才觸發
|
|
291
|
-
let ch = vo.contentHeight
|
|
292
|
-
let r = vo.viewHeightMax / Math.max(ch, 1)
|
|
293
|
-
|
|
294
|
-
return r
|
|
160
|
+
return vo.ratio * vo.contentHeightEff
|
|
295
161
|
},
|
|
296
162
|
|
|
297
|
-
|
|
298
|
-
//console.log('computed barSize')
|
|
299
|
-
|
|
163
|
+
viewBottom: function() {
|
|
300
164
|
let vo = this
|
|
301
|
-
|
|
302
|
-
//r size ratio
|
|
303
|
-
let r = vo.viewHeightMax / vo.contentHeight
|
|
304
|
-
|
|
305
|
-
//barSize
|
|
306
|
-
let barSize = Math.max(r * vo.viewHeightMax, vo.barHeightMin)
|
|
307
|
-
|
|
308
|
-
return barSize
|
|
165
|
+
return vo.viewTop + vo.viewHeightMax
|
|
309
166
|
},
|
|
310
167
|
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
let vo = this
|
|
315
|
-
|
|
316
|
-
return vo.ratioTrans * vo.viewHeightEff
|
|
317
|
-
},
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
318
170
|
|
|
319
|
-
|
|
320
|
-
//console.log('
|
|
171
|
+
resizePanel: function(msg) {
|
|
172
|
+
// console.log('methods resizePanel', msg)
|
|
321
173
|
|
|
322
174
|
let vo = this
|
|
323
175
|
|
|
324
|
-
//
|
|
325
|
-
let
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
//triggerEvent, 若內容高度contentHeight或顯示區最大高度viewHeightMax變更則需要triggerEvent
|
|
329
|
-
vo.triggerEvent('changeHeight')
|
|
330
|
-
|
|
331
|
-
return v
|
|
332
|
-
},
|
|
176
|
+
//nativeBarWidth
|
|
177
|
+
let divDetect = get(vo, '$refs.divDetect')
|
|
178
|
+
if (divDetect) {
|
|
333
179
|
|
|
334
|
-
|
|
335
|
-
|
|
180
|
+
//save nativeBarWidth
|
|
181
|
+
if (vo.nativeBarWidth !== divDetect.offsetWidth - divDetect.clientWidth) {
|
|
182
|
+
// console.log('resizePanel 需更新nativeBarWidth', divDetect.offsetWidth - divDetect.clientWidth, '<-', vo.nativeBarWidth)
|
|
183
|
+
vo.nativeBarWidth = divDetect.offsetWidth - divDetect.clientWidth
|
|
184
|
+
}
|
|
336
185
|
|
|
337
|
-
|
|
186
|
+
}
|
|
338
187
|
|
|
339
|
-
//
|
|
340
|
-
|
|
341
|
-
|
|
188
|
+
//save
|
|
189
|
+
if (vo.viewHeight !== msg.snew.offsetHeight) {
|
|
190
|
+
// console.log('resizePanel 需更新viewHeight', msg.snew.offsetHeight, '<-', vo.viewHeight)
|
|
191
|
+
vo.viewHeight = msg.snew.offsetHeight
|
|
192
|
+
}
|
|
342
193
|
|
|
343
|
-
|
|
344
|
-
|
|
194
|
+
//divShell
|
|
195
|
+
let divShell = get(vo, '$refs.divShell')
|
|
196
|
+
if (divShell) {
|
|
345
197
|
|
|
346
|
-
|
|
347
|
-
|
|
198
|
+
//emit scrollTop
|
|
199
|
+
vo.$emit('update:scrollTop', divShell.scrollTop)
|
|
348
200
|
|
|
349
|
-
|
|
350
|
-
return vo.ratioTrans * vo.contentHeightEff
|
|
351
|
-
},
|
|
201
|
+
}
|
|
352
202
|
|
|
353
|
-
|
|
354
|
-
|
|
203
|
+
//emit
|
|
204
|
+
vo.triggerEvent('resize', { ...msg, from: 'panel' })
|
|
355
205
|
|
|
356
|
-
let vo = this
|
|
357
|
-
|
|
358
|
-
return vo.viewTop + vo.viewHeightMax
|
|
359
206
|
},
|
|
360
207
|
|
|
361
|
-
|
|
362
|
-
//console.log('
|
|
208
|
+
resizeShell: function(msg) {
|
|
209
|
+
// console.log('methods resizeShell', msg)
|
|
363
210
|
|
|
364
211
|
let vo = this
|
|
365
212
|
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
//console.log('computed extWidth')
|
|
213
|
+
//divContent
|
|
214
|
+
let divContent = get(vo, '$refs.divContent')
|
|
215
|
+
if (divContent) {
|
|
216
|
+
// console.log('resizeShell divContent.offsetHeight', divContent.offsetHeight)
|
|
371
217
|
|
|
372
|
-
|
|
218
|
+
//save
|
|
219
|
+
if (vo.contentHeight !== divContent.offsetHeight) {
|
|
220
|
+
// console.log('resizeShell 需更新contentHeight', divContent.offsetHeight, '<-', vo.contentHeight)
|
|
221
|
+
vo.contentHeight = divContent.offsetHeight
|
|
222
|
+
}
|
|
373
223
|
|
|
374
|
-
//額外撐開寬度, 當手機瀏覽時會沒有原生捲軸寬度, 此時需額外撐開使捲軸隱藏
|
|
375
|
-
if (vo.isMobile) {
|
|
376
|
-
return 20
|
|
377
224
|
}
|
|
378
|
-
return 0
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
fakeScrollTop: function() {
|
|
382
|
-
//console.log('computed fakeScrollTop')
|
|
383
|
-
|
|
384
|
-
let vo = this
|
|
385
225
|
|
|
386
|
-
|
|
226
|
+
//divShell
|
|
227
|
+
let divShell = get(vo, '$refs.divShell')
|
|
228
|
+
if (divShell) {
|
|
387
229
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
// st = vo.ratioTrans * vo.extHeight
|
|
391
|
-
// }
|
|
392
|
-
// else {
|
|
393
|
-
// st = vo.extHeight / 2
|
|
394
|
-
// }
|
|
230
|
+
//emit scrollTop
|
|
231
|
+
vo.$emit('update:scrollTop', divShell.scrollTop)
|
|
395
232
|
|
|
396
|
-
|
|
397
|
-
// vo.resetScrollTopDelay()
|
|
233
|
+
}
|
|
398
234
|
|
|
399
|
-
|
|
400
|
-
|
|
235
|
+
//emit
|
|
236
|
+
vo.triggerEvent('resize', { ...msg, from: 'shell' })
|
|
401
237
|
|
|
402
|
-
return st
|
|
403
238
|
},
|
|
404
239
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
scroll: function(e) {
|
|
409
|
-
//console.log('scroll', e)
|
|
240
|
+
mutation: function(msg) {
|
|
241
|
+
// console.log('methods mutation', msg)
|
|
410
242
|
|
|
411
243
|
let vo = this
|
|
412
244
|
|
|
413
|
-
//
|
|
414
|
-
|
|
245
|
+
//divContent
|
|
246
|
+
let divContent = get(vo, '$refs.divContent')
|
|
415
247
|
|
|
416
|
-
//
|
|
417
|
-
|
|
248
|
+
//check
|
|
249
|
+
if (divContent) {
|
|
250
|
+
// console.log('mutation divContent.offsetHeight', divContent.offsetHeight)
|
|
418
251
|
|
|
419
|
-
|
|
252
|
+
//save
|
|
253
|
+
if (vo.contentHeight !== divContent.offsetHeight) {
|
|
254
|
+
// console.log('mutation 需更新contentHeight', divContent.offsetHeight, '<-', vo.contentHeight)
|
|
255
|
+
vo.contentHeight = divContent.offsetHeight
|
|
256
|
+
}
|
|
420
257
|
|
|
421
|
-
|
|
422
|
-
//console.log('resetScrollTopDelay')
|
|
258
|
+
}
|
|
423
259
|
|
|
424
|
-
|
|
260
|
+
//updateRatio
|
|
261
|
+
vo.updateRatio()
|
|
425
262
|
|
|
426
|
-
//
|
|
427
|
-
vo
|
|
428
|
-
vo.resetScrollTop()
|
|
429
|
-
})
|
|
263
|
+
//emit
|
|
264
|
+
vo.triggerEvent('mutation', { ...msg, from: 'content' })
|
|
430
265
|
|
|
431
266
|
},
|
|
432
267
|
|
|
433
|
-
|
|
434
|
-
//console.log('
|
|
268
|
+
updateRatio: function() {
|
|
269
|
+
// console.log('methods updateRatio')
|
|
435
270
|
|
|
436
271
|
let vo = this
|
|
437
272
|
|
|
438
|
-
//div
|
|
439
|
-
let div = get(vo, '$refs.divPanel', null)
|
|
440
|
-
|
|
441
273
|
//check
|
|
442
|
-
if (!
|
|
274
|
+
if (!vo.$refs.divShell) { //於async中組件切換時還是有可能消失
|
|
443
275
|
return
|
|
444
276
|
}
|
|
445
277
|
|
|
446
|
-
//
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
div.scrollTop = vo.fakeScrollTop
|
|
451
|
-
|
|
278
|
+
//ratio
|
|
279
|
+
let ratio = 0
|
|
280
|
+
if (vo.contentHeightEff > 0) {
|
|
281
|
+
ratio = vo.$refs.divShell.scrollTop / vo.contentHeightEff
|
|
452
282
|
}
|
|
453
283
|
|
|
284
|
+
//save
|
|
285
|
+
vo.ratio = ratio
|
|
286
|
+
|
|
454
287
|
},
|
|
455
288
|
|
|
456
|
-
|
|
457
|
-
|
|
289
|
+
// updateScrollTopByRatio: function(r) {
|
|
290
|
+
// // console.log('methods updateScrollTopByRatio', r)
|
|
458
291
|
|
|
459
|
-
|
|
292
|
+
// let vo = this
|
|
460
293
|
|
|
461
|
-
|
|
462
|
-
|
|
294
|
+
// //divShell
|
|
295
|
+
// let divShell = get(vo, '$refs.divShell')
|
|
463
296
|
|
|
464
|
-
|
|
465
|
-
|
|
297
|
+
// //check
|
|
298
|
+
// if (!divShell) {
|
|
299
|
+
// return
|
|
300
|
+
// }
|
|
466
301
|
|
|
467
|
-
|
|
468
|
-
|
|
302
|
+
// //divBar
|
|
303
|
+
// let divBar = get(vo, '$refs.divBar')
|
|
469
304
|
|
|
470
|
-
|
|
305
|
+
// //check
|
|
306
|
+
// if (!divBar) {
|
|
307
|
+
// return
|
|
308
|
+
// }
|
|
471
309
|
|
|
472
|
-
|
|
310
|
+
// //scrollTop
|
|
311
|
+
// let h = vo.contentHeight - vo.panelHeight
|
|
312
|
+
// let scrollTop = 0
|
|
313
|
+
// if (h > 0) {
|
|
314
|
+
// scrollTop = r * h
|
|
315
|
+
// }
|
|
473
316
|
|
|
474
|
-
|
|
475
|
-
|
|
317
|
+
// //update scrollTop
|
|
318
|
+
// vo.$refs.divShell.scrollTop = scrollTop
|
|
319
|
+
// vo.$refs.divBar.scrollTop = scrollTop
|
|
476
320
|
|
|
477
|
-
|
|
321
|
+
// },
|
|
478
322
|
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
//若非外部調用直接傳入, 則使用組件自己儲存的scrollInforTemp
|
|
482
|
-
si = vo.scrollInforTemp
|
|
483
|
-
}
|
|
323
|
+
updateScrollTop: function(scrollTop) {
|
|
324
|
+
// console.log('methods updateScrollTop', scrollTop)
|
|
484
325
|
|
|
485
|
-
|
|
486
|
-
if (si === null) {
|
|
487
|
-
return
|
|
488
|
-
}
|
|
326
|
+
let vo = this
|
|
489
327
|
|
|
490
|
-
|
|
491
|
-
let ratioTrans = 0
|
|
492
|
-
if (vo.contentHeight > 0 && si.ch > 0) { //已有內容資料
|
|
493
|
-
|
|
494
|
-
//內容高度變少
|
|
495
|
-
if (vo.contentHeight < si.ch) {
|
|
496
|
-
|
|
497
|
-
//內容高度小於等於當前視窗高度
|
|
498
|
-
if (vo.contentHeight <= vo.viewHeightMax) {
|
|
499
|
-
ratioTrans = 0
|
|
500
|
-
//console.log('內容高度變少, 內容高度小於當前視窗高度故改為置頂, ratioTrans=', ratioTrans)
|
|
501
|
-
}
|
|
502
|
-
// else if (si.r === 0) { //置底(si.r === 1)不需維持避免內容撐開過多時無法固定畫面於原本瀏覽處
|
|
503
|
-
// ratioTrans = si.r
|
|
504
|
-
// //console.log('內容高度變少, 原本為置頂故需維持, ratioTrans=', ratioTrans)
|
|
505
|
-
// }
|
|
506
|
-
//內容高度大於當前視窗高度
|
|
507
|
-
else {
|
|
508
|
-
ratioTrans = si.t / (vo.contentHeight - vo.viewHeightMax)
|
|
509
|
-
//console.log('內容高度變少, 內容高度大於當前視窗高度, ratioTrans=', ratioTrans, si.t, vo.contentHeight, vo.viewHeightMax)
|
|
510
|
-
}
|
|
328
|
+
async function core() {
|
|
511
329
|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
//內容高度小於等於當前視窗高度
|
|
517
|
-
if (vo.contentHeight <= vo.viewHeightMax) {
|
|
518
|
-
ratioTrans = 0
|
|
519
|
-
//console.log('內容高度變高或不變, 內容高度小於當前視窗高度故改為置頂, ratioTrans=', ratioTrans)
|
|
520
|
-
}
|
|
521
|
-
// else if (si.r === 0) { //置底(si.r === 1)不需維持避免內容撐開過多時無法固定畫面於原本瀏覽處
|
|
522
|
-
// ratioTrans = si.r
|
|
523
|
-
// //console.log('內容高度變高或不變, 原本為置頂故需維持, ratioTrans=', ratioTrans)
|
|
524
|
-
// }
|
|
525
|
-
//內容高度大於當前視窗高度
|
|
526
|
-
else {
|
|
527
|
-
ratioTrans = si.t / (vo.contentHeight - vo.viewHeightMax)
|
|
528
|
-
//console.log('內容高度變高或不變, 內容高度大於當前視窗高度, ratioTrans=', ratioTrans, si.t, vo.contentHeight, vo.viewHeightMax)
|
|
529
|
-
}
|
|
330
|
+
//wait divShell與divBar, 組件初始化時會先觸發computed才會有實體元素出現, 故得用waitFun等待
|
|
331
|
+
await waitFun(() => {
|
|
332
|
+
return vo.$refs.divShell !== undefined && vo.$refs.divBar !== undefined
|
|
333
|
+
}, { timeInterval: 20 })
|
|
530
334
|
|
|
335
|
+
//update scrollTop
|
|
336
|
+
if (vo.$refs.divShell) { //於async中組件切換時還是有可能消失
|
|
337
|
+
vo.$refs.divShell.scrollTop = scrollTop
|
|
338
|
+
}
|
|
339
|
+
if (vo.$refs.divBar) { //於async中組件切換時還是有可能消失
|
|
340
|
+
vo.$refs.divBar.scrollTop = scrollTop
|
|
531
341
|
}
|
|
532
342
|
|
|
533
343
|
}
|
|
534
344
|
|
|
535
|
-
//
|
|
536
|
-
|
|
345
|
+
//core
|
|
346
|
+
core()
|
|
347
|
+
.catch((err) => {
|
|
348
|
+
console.log(err)
|
|
349
|
+
})
|
|
537
350
|
|
|
538
351
|
},
|
|
539
352
|
|
|
540
|
-
|
|
541
|
-
//console.log('methods
|
|
353
|
+
updateScrollInfor: function() {
|
|
354
|
+
//console.log('methods updateScrollInfor')
|
|
542
355
|
|
|
543
356
|
let vo = this
|
|
544
357
|
|
|
545
|
-
//
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
//nativeBarWidth
|
|
550
|
-
let nativeBarWidth = vo.$refs.divPanel.offsetWidth - vo.$refs.divPanel.clientWidth
|
|
551
|
-
|
|
552
|
-
//save
|
|
553
|
-
vo.nativeBarWidth = nativeBarWidth
|
|
554
|
-
|
|
358
|
+
//check
|
|
359
|
+
if (!vo.$refs.divShell) { //於async中組件切換時還是有可能消失
|
|
360
|
+
return
|
|
555
361
|
}
|
|
556
362
|
|
|
557
|
-
//
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
//console.log('methods mutation', msg)
|
|
570
|
-
|
|
571
|
-
let vo = this
|
|
363
|
+
//scrollInfor
|
|
364
|
+
let scrollInfor = {
|
|
365
|
+
r: vo.ratio,
|
|
366
|
+
sti: vo.scrollTop, //輸入給予scrollTop
|
|
367
|
+
stn: vo.$refs.divShell.scrollTop, //目前scrollTop, 要等emit scrollTop出去後才會與sti同值
|
|
368
|
+
dir: vo.scrollTop > vo.$refs.divShell.scrollTop ? 'up' : 'down', //判斷是往上還往下捲
|
|
369
|
+
t: vo.viewTop,
|
|
370
|
+
b: vo.viewBottom,
|
|
371
|
+
ch: vo.contentHeight,
|
|
372
|
+
che: vo.contentHeightEff,
|
|
373
|
+
// ph: vo.panelHeight,
|
|
374
|
+
}
|
|
572
375
|
|
|
573
|
-
//
|
|
574
|
-
vo.
|
|
376
|
+
//save
|
|
377
|
+
if (!isEqual(vo.scrollInfor, scrollInfor)) {
|
|
378
|
+
vo.scrollInfor = scrollInfor
|
|
379
|
+
}
|
|
575
380
|
|
|
576
381
|
},
|
|
577
382
|
|
|
578
|
-
|
|
579
|
-
//console.log('methods
|
|
383
|
+
scrollShell: function(ev) {
|
|
384
|
+
// console.log('methods scrollShell', ev)
|
|
580
385
|
|
|
581
386
|
let vo = this
|
|
582
387
|
|
|
583
|
-
//limit
|
|
584
|
-
ratioTrans = Math.max(ratioTrans, 0)
|
|
585
|
-
ratioTrans = Math.min(ratioTrans, 1)
|
|
586
|
-
|
|
587
388
|
//check
|
|
588
|
-
if (vo.
|
|
589
|
-
|
|
389
|
+
if (vo.mouseLoc === '') {
|
|
390
|
+
vo.mouseLoc = 'enter shell'
|
|
590
391
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
let changed = vo.ratioTrans !== ratioTrans
|
|
594
|
-
if (changed) {
|
|
595
|
-
|
|
596
|
-
//ratioTrans
|
|
597
|
-
vo.ratioTrans = ratioTrans
|
|
598
|
-
|
|
599
|
-
//triggerEvent, 捲動觸發事件
|
|
600
|
-
vo.triggerEvent('scroll')
|
|
601
|
-
|
|
392
|
+
if (vo.mouseLoc !== 'enter shell') {
|
|
393
|
+
return
|
|
602
394
|
}
|
|
395
|
+
// console.log('scrollShell')
|
|
603
396
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
dgPressBar: function({ clientY }) {
|
|
608
|
-
//console.log('methods dgPressBar', clientY)
|
|
609
|
-
|
|
610
|
-
let vo = this
|
|
397
|
+
//divShell
|
|
398
|
+
let divShell = get(vo, '$refs.divShell')
|
|
611
399
|
|
|
612
|
-
//
|
|
613
|
-
if (
|
|
400
|
+
//check
|
|
401
|
+
if (!divShell) {
|
|
402
|
+
return
|
|
403
|
+
}
|
|
614
404
|
|
|
615
|
-
|
|
616
|
-
|
|
405
|
+
//divBar
|
|
406
|
+
let divBar = get(vo, '$refs.divBar')
|
|
617
407
|
|
|
408
|
+
//check
|
|
409
|
+
if (!divBar) {
|
|
410
|
+
return
|
|
618
411
|
}
|
|
619
412
|
|
|
620
|
-
|
|
413
|
+
//sync divBar
|
|
414
|
+
vo.$refs.divBar.scrollTop = vo.$refs.divShell.scrollTop
|
|
621
415
|
|
|
622
|
-
|
|
623
|
-
|
|
416
|
+
//emit scrollTop
|
|
417
|
+
vo.$emit('update:scrollTop', vo.$refs.divShell.scrollTop)
|
|
624
418
|
|
|
625
|
-
|
|
419
|
+
//updateRatio
|
|
420
|
+
vo.updateRatio()
|
|
626
421
|
|
|
627
|
-
//
|
|
628
|
-
|
|
422
|
+
//emit
|
|
423
|
+
vo.triggerEvent('scroll', { ev, from: 'shell' })
|
|
629
424
|
|
|
630
|
-
//
|
|
631
|
-
|
|
425
|
+
// //updateScrollInfor
|
|
426
|
+
// vo.updateScrollInfor()
|
|
632
427
|
|
|
633
|
-
//
|
|
634
|
-
vo.
|
|
428
|
+
// //emit
|
|
429
|
+
// vo.triggerEvent('scroll-infor', { ...vo.scrollInfor, from: 'shell' })
|
|
635
430
|
|
|
636
|
-
//
|
|
637
|
-
vo.
|
|
431
|
+
//clear mouseLoc
|
|
432
|
+
vo.dbc(() => {
|
|
433
|
+
// console.log('scrollShell clear mouseLoc')
|
|
434
|
+
vo.mouseLoc = ''
|
|
435
|
+
})
|
|
638
436
|
|
|
639
437
|
},
|
|
640
438
|
|
|
641
|
-
|
|
642
|
-
//console.log('methods
|
|
439
|
+
scrollBar: function(ev) {
|
|
440
|
+
// console.log('methods scrollBar', ev)
|
|
643
441
|
|
|
644
442
|
let vo = this
|
|
645
443
|
|
|
646
|
-
//
|
|
647
|
-
vo.
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
vo.
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
getScrollInfor: function(from) {
|
|
655
|
-
//console.log('methods getScrollInfor', from)
|
|
444
|
+
//check
|
|
445
|
+
if (vo.mouseLoc === '') {
|
|
446
|
+
vo.mouseLoc = 'enter bar'
|
|
447
|
+
}
|
|
448
|
+
if (vo.mouseLoc !== 'enter bar') {
|
|
449
|
+
return
|
|
450
|
+
}
|
|
451
|
+
// console.log('scrollBar')
|
|
656
452
|
|
|
657
|
-
|
|
453
|
+
//divShell
|
|
454
|
+
let divShell = get(vo, '$refs.divShell')
|
|
658
455
|
|
|
659
|
-
//
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
r: vo.ratioTrans,
|
|
663
|
-
t: vo.viewTop,
|
|
664
|
-
b: vo.viewBottom,
|
|
665
|
-
ch: vo.contentHeight,
|
|
456
|
+
//check
|
|
457
|
+
if (!divShell) {
|
|
458
|
+
return
|
|
666
459
|
}
|
|
667
460
|
|
|
668
|
-
|
|
669
|
-
|
|
461
|
+
//divBar
|
|
462
|
+
let divBar = get(vo, '$refs.divBar')
|
|
670
463
|
|
|
671
|
-
|
|
672
|
-
|
|
464
|
+
//check
|
|
465
|
+
if (!divBar) {
|
|
466
|
+
return
|
|
467
|
+
}
|
|
673
468
|
|
|
674
|
-
|
|
469
|
+
//sync divShell
|
|
470
|
+
vo.$refs.divShell.scrollTop = vo.$refs.divBar.scrollTop
|
|
675
471
|
|
|
676
|
-
//
|
|
677
|
-
vo.$
|
|
472
|
+
//emit scrollTop
|
|
473
|
+
vo.$emit('update:scrollTop', vo.$refs.divShell.scrollTop)
|
|
678
474
|
|
|
679
|
-
|
|
680
|
-
|
|
475
|
+
//updateRatio
|
|
476
|
+
vo.updateRatio()
|
|
681
477
|
|
|
682
|
-
|
|
683
|
-
|
|
478
|
+
//emit
|
|
479
|
+
vo.triggerEvent('scroll', { ev, from: 'bar' })
|
|
684
480
|
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
vo.$emit(from, scrollInfor)
|
|
688
|
-
}
|
|
481
|
+
// //updateScrollInfor
|
|
482
|
+
// vo.updateScrollInfor()
|
|
689
483
|
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
//save scrollInforLast, 紀錄捲軸資訊, 供恢復捲軸資訊之用
|
|
694
|
-
vo.scrollInforLast = cloneDeep(scrollInfor)
|
|
484
|
+
// //emit
|
|
485
|
+
// vo.triggerEvent('scroll-infor', { ...vo.scrollInfor, from: 'bar' })
|
|
695
486
|
|
|
487
|
+
//clear mouseLoc
|
|
488
|
+
vo.dbc(() => {
|
|
489
|
+
// console.log('scrollBar clear mouseLoc')
|
|
490
|
+
vo.mouseLoc = ''
|
|
696
491
|
})
|
|
697
492
|
|
|
698
493
|
},
|
|
699
494
|
|
|
700
|
-
|
|
701
|
-
//console.log('methods
|
|
495
|
+
triggerEvent: function(name, msg) {
|
|
496
|
+
// console.log('methods triggerEvent', name, msg)
|
|
702
497
|
|
|
703
498
|
let vo = this
|
|
704
499
|
|
|
705
|
-
//
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
//update
|
|
709
|
-
if (ratioTrans >= 0 && ratioTrans <= 1) {
|
|
710
|
-
ratioTrans += deltaRatio
|
|
500
|
+
//check
|
|
501
|
+
if (!vo.useEmitEvent) {
|
|
502
|
+
return
|
|
711
503
|
}
|
|
712
504
|
|
|
713
|
-
//
|
|
714
|
-
vo
|
|
505
|
+
//emit
|
|
506
|
+
vo.$emit(name, msg)
|
|
715
507
|
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
scrollByDelta: function(delta) {
|
|
719
|
-
//console.log('methods scrollByDelta', delta)
|
|
508
|
+
//updateScrollInfor
|
|
509
|
+
vo.updateScrollInfor()
|
|
720
510
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
vo.scrollByDeltaRatio(deltaRatio)
|
|
728
|
-
|
|
729
|
-
},
|
|
730
|
-
|
|
731
|
-
dgScrollPanel: function({ ratioY }) {
|
|
732
|
-
//console.log('methods dgScrollPanel', ratioY)
|
|
733
|
-
|
|
734
|
-
let vo = this
|
|
735
|
-
|
|
736
|
-
//delta
|
|
737
|
-
let delta = ratioY * vo.scrollDelta
|
|
738
|
-
|
|
739
|
-
//scrollByDelta
|
|
740
|
-
vo.scrollByDelta(delta)
|
|
511
|
+
//emit
|
|
512
|
+
vo.$emit('change-infor', {
|
|
513
|
+
evName: name,
|
|
514
|
+
evMsg: msg,
|
|
515
|
+
...vo.scrollInfor,
|
|
516
|
+
})
|
|
741
517
|
|
|
742
518
|
},
|
|
743
519
|
|
|
@@ -746,23 +522,24 @@ export default {
|
|
|
746
522
|
</script>
|
|
747
523
|
|
|
748
524
|
<style scoped>
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
width:
|
|
525
|
+
.sb {
|
|
526
|
+
transition: opacity 0.3s;
|
|
527
|
+
/* Works on Firefox */
|
|
528
|
+
scrollbar-width: thin;
|
|
529
|
+
scrollbar-color: rgba(0,0,0,0.3) transparent;
|
|
753
530
|
}
|
|
754
|
-
|
|
755
|
-
|
|
531
|
+
/* Works on Chrome, Edge, and Safari */
|
|
532
|
+
.sb::-webkit-scrollbar {
|
|
533
|
+
width: 8px;
|
|
534
|
+
height: 8px;
|
|
756
535
|
}
|
|
757
|
-
.
|
|
758
|
-
box-shadow: transparent;
|
|
759
|
-
}
|
|
760
|
-
.clsPanel::-webkit-scrollbar-track-piece{
|
|
536
|
+
.sb::-webkit-scrollbar-track {
|
|
761
537
|
background: transparent;
|
|
762
538
|
}
|
|
763
|
-
.
|
|
764
|
-
background:
|
|
539
|
+
.sb::-webkit-scrollbar-thumb {
|
|
540
|
+
background-color: rgba(0,0,0,0.3);
|
|
541
|
+
border-radius: 20px;
|
|
542
|
+
border: 3px solid transparent;
|
|
765
543
|
}
|
|
766
|
-
|
|
767
544
|
</style>
|
|
768
545
|
|