yc-pro-components 0.0.75 → 0.0.77
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/es/components/check-card/index.d.ts +61 -61
- package/es/components/check-card/src/index.vue.d.ts +4 -4
- package/es/components/check-card-group/index.d.ts +43 -43
- package/es/components/check-card-group/src/index.vue.d.ts +3 -3
- package/es/components/date-picker/index.d.ts +30 -30
- package/es/components/date-picker/src/index.vue.d.ts +22 -22
- package/es/components/dialog/index.d.ts +45 -45
- package/es/components/dialog/src/index.vue.d.ts +3 -3
- package/es/components/dialog-form/index.d.ts +31 -31
- package/es/components/dialog-form/src/index.vue.d.ts +9 -9
- package/es/components/display-item/index.d.ts +41 -41
- package/es/components/display-item/src/index.vue.d.ts +22 -22
- package/es/components/drawer-form/index.d.ts +68 -68
- package/es/components/drawer-form/src/index.vue.d.ts +16 -16
- package/es/components/form/index.d.ts +71 -71
- package/es/components/form/src/form-content.vue.d.ts +21 -21
- package/es/components/form/src/index.vue.d.ts +19 -19
- package/es/components/form-item/index.d.ts +69 -69
- package/es/components/form-item/src/index.vue.d.ts +21 -21
- package/es/components/header/index.d.ts +19 -19
- package/es/components/header/src/index.vue.d.ts +1 -1
- package/es/components/index.mjs +1 -0
- package/es/components/input-tag/index.d.ts +15 -15
- package/es/components/input-tag/src/index.vue.d.ts +3 -3
- package/es/components/layout/index.d.ts +30 -30
- package/es/components/layout/src/index.vue.d.ts +10 -10
- package/es/components/page/index.d.ts +533 -533
- package/es/components/page/src/index.vue.d.ts +181 -181
- package/es/components/pagination/index.d.ts +42 -42
- package/es/components/pagination/src/index.vue.d.ts +3 -3
- package/es/components/radio/index.d.ts +35 -35
- package/es/components/radio/src/index.vue.d.ts +27 -27
- package/es/components/render/index.d.ts +3 -3
- package/es/components/render/src/index.vue.d.ts +1 -1
- package/es/components/search/index.d.ts +243 -243
- package/es/components/search/src/index.vue.d.ts +73 -73
- package/es/components/sidebar/index.d.ts +15 -15
- package/es/components/sidebar/src/index.vue.d.ts +5 -5
- package/es/components/steps-form/index.d.ts +23 -23
- package/es/components/steps-form/src/index.vue.d.ts +2 -2
- package/es/components/table/src/table-column.vue.d.ts +37 -37
- package/es/components/table/src/table-title-bar.vue.mjs +1 -1
- package/es/components/table/src/table-title-bar.vue2.mjs +79 -40
- package/es/components/table/src/type.d.ts +17 -0
- package/es/components/utils/index.d.ts +2 -2
- package/es/components/yc-dialog/index.d.ts +24 -24
- package/es/components/yc-download-dialog/index.d.ts +19 -19
- package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-drawer/src/index.vue.mjs +1 -1
- package/es/components/yc-drawer/src/index.vue2.mjs +2 -3
- package/es/components/yc-form-container-header/index.d.ts +12 -12
- package/es/components/yc-more-actions/index.d.ts +46 -46
- package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/es/components/yc-plus-page/index.d.ts +2 -0
- package/es/components/yc-plus-page/index.mjs +1 -0
- package/es/components/yc-plus-page/src/index.vue.d.ts +436 -361
- package/es/components/yc-plus-page/src/index.vue.mjs +1 -1
- package/es/components/yc-plus-page/src/index.vue2.mjs +90 -58
- package/es/components/yc-plus-page/src/type.d.ts +9 -0
- package/es/components/yc-segmented/index.d.ts +2 -2
- package/es/components/yc-segmented/src/index.d.ts +2 -2
- package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/es/components/yc-text/src/index.vue.d.ts +2 -2
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/usePlusFormReset.d.ts +244 -244
- package/es/hooks/useTableDragScroll.d.ts +35 -0
- package/es/hooks/useTableDragScroll.mjs +201 -0
- package/es/index.css +13 -12
- package/es/index.mjs +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/yc-components/version.d.ts +1 -1
- package/index.js +372 -104
- package/index.min.css +3 -2
- package/index.min.js +12 -11
- package/index.min.mjs +12 -11
- package/index.mjs +373 -106
- package/lib/components/check-card/index.d.ts +61 -61
- package/lib/components/check-card/src/index.vue.d.ts +4 -4
- package/lib/components/check-card-group/index.d.ts +43 -43
- package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
- package/lib/components/date-picker/index.d.ts +30 -30
- package/lib/components/date-picker/src/index.vue.d.ts +22 -22
- package/lib/components/dialog/index.d.ts +45 -45
- package/lib/components/dialog/src/index.vue.d.ts +3 -3
- package/lib/components/dialog-form/index.d.ts +31 -31
- package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
- package/lib/components/display-item/index.d.ts +41 -41
- package/lib/components/display-item/src/index.vue.d.ts +22 -22
- package/lib/components/drawer-form/index.d.ts +68 -68
- package/lib/components/drawer-form/src/index.vue.d.ts +16 -16
- package/lib/components/form/index.d.ts +71 -71
- package/lib/components/form/src/form-content.vue.d.ts +21 -21
- package/lib/components/form/src/index.vue.d.ts +19 -19
- package/lib/components/form-item/index.d.ts +69 -69
- package/lib/components/form-item/src/index.vue.d.ts +21 -21
- package/lib/components/header/index.d.ts +19 -19
- package/lib/components/header/src/index.vue.d.ts +1 -1
- package/lib/components/index.js +2 -0
- package/lib/components/input-tag/index.d.ts +15 -15
- package/lib/components/input-tag/src/index.vue.d.ts +3 -3
- package/lib/components/layout/index.d.ts +30 -30
- package/lib/components/layout/src/index.vue.d.ts +10 -10
- package/lib/components/page/index.d.ts +533 -533
- package/lib/components/page/src/index.vue.d.ts +181 -181
- package/lib/components/pagination/index.d.ts +42 -42
- package/lib/components/pagination/src/index.vue.d.ts +3 -3
- package/lib/components/radio/index.d.ts +35 -35
- package/lib/components/radio/src/index.vue.d.ts +27 -27
- package/lib/components/render/index.d.ts +3 -3
- package/lib/components/render/src/index.vue.d.ts +1 -1
- package/lib/components/search/index.d.ts +243 -243
- package/lib/components/search/src/index.vue.d.ts +73 -73
- package/lib/components/sidebar/index.d.ts +15 -15
- package/lib/components/sidebar/src/index.vue.d.ts +5 -5
- package/lib/components/steps-form/index.d.ts +23 -23
- package/lib/components/steps-form/src/index.vue.d.ts +2 -2
- package/lib/components/table/src/table-column.vue.d.ts +37 -37
- package/lib/components/table/src/table-title-bar.vue.js +1 -1
- package/lib/components/table/src/table-title-bar.vue2.js +78 -39
- package/lib/components/table/src/type.d.ts +17 -0
- package/lib/components/utils/index.d.ts +2 -2
- package/lib/components/yc-dialog/index.d.ts +24 -24
- package/lib/components/yc-download-dialog/index.d.ts +19 -19
- package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-drawer/src/index.vue.js +1 -1
- package/lib/components/yc-drawer/src/index.vue2.js +2 -3
- package/lib/components/yc-form-container-header/index.d.ts +12 -12
- package/lib/components/yc-more-actions/index.d.ts +46 -46
- package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
- package/lib/components/yc-plus-page/index.d.ts +2 -0
- package/lib/components/yc-plus-page/index.js +2 -0
- package/lib/components/yc-plus-page/src/index.vue.d.ts +436 -361
- package/lib/components/yc-plus-page/src/index.vue.js +1 -1
- package/lib/components/yc-plus-page/src/index.vue2.js +89 -57
- package/lib/components/yc-plus-page/src/type.d.ts +9 -0
- package/lib/components/yc-segmented/index.d.ts +2 -2
- package/lib/components/yc-segmented/src/index.d.ts +2 -2
- package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
- package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
- package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
- package/lib/components/yc-text/src/index.vue.d.ts +2 -2
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +2 -0
- package/lib/hooks/usePlusFormReset.d.ts +244 -244
- package/lib/hooks/useTableDragScroll.d.ts +35 -0
- package/lib/hooks/useTableDragScroll.js +203 -0
- package/lib/index.css +13 -12
- package/lib/index.js +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/yc-components/version.d.ts +1 -1
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/ja.js +1 -1
- package/locale/ja.min.js +1 -1
- package/locale/ja.min.mjs +1 -1
- package/locale/ja.mjs +1 -1
- package/locale/ko.js +1 -1
- package/locale/ko.min.js +1 -1
- package/locale/ko.min.mjs +1 -1
- package/locale/ko.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/locale/zh-tw.js +1 -1
- package/locale/zh-tw.min.js +1 -1
- package/locale/zh-tw.min.mjs +1 -1
- package/locale/zh-tw.mjs +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
6
6
|
var _pluginVue_exportHelper = require('../../../_virtual/_plugin-vue_export-helper.js');
|
|
7
7
|
|
|
8
|
-
var YcPlusPageComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
8
|
+
var YcPlusPageComponent = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-3ce473db"], ["__file", "index.vue"]]);
|
|
9
9
|
|
|
10
10
|
exports.default = YcPlusPageComponent;
|
|
@@ -6,6 +6,7 @@ var vue = require('vue');
|
|
|
6
6
|
var lodashEs = require('lodash-es');
|
|
7
7
|
var index = require('../../page/index.js');
|
|
8
8
|
var index$1 = require('../../yc-svg-icon/src/index.vue.js');
|
|
9
|
+
var useTableDragScroll = require('../../../hooks/useTableDragScroll.js');
|
|
9
10
|
var useHeaderFilter = require('./use-header-filter.js');
|
|
10
11
|
var headerFilterCell = require('./header-filter-cell.vue.js');
|
|
11
12
|
var useYcConfig = require('../../yc-config-provider/src/useYcConfig.js');
|
|
@@ -39,7 +40,8 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
40
|
hideHeaderFilter: { type: Boolean, default: true },
|
|
40
41
|
columnCacheKey: { default: void 0 },
|
|
41
42
|
disableColumnCache: { type: Boolean, default: false },
|
|
42
|
-
columnSettingsText: { default: void 0 }
|
|
43
|
+
columnSettingsText: { default: void 0 },
|
|
44
|
+
dragScroll: { type: [Boolean, Object], default: false }
|
|
43
45
|
},
|
|
44
46
|
emits: ["header-filter-confirm", "header-filter-reset"],
|
|
45
47
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -50,6 +52,21 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
50
52
|
const plusPageConfig = useYcConfig.useYcComponentConfig("plusPage");
|
|
51
53
|
const plusPageRef = vue.ref();
|
|
52
54
|
const rootRef = vue.ref();
|
|
55
|
+
const dragScrollWrapperRef = vue.ref(null);
|
|
56
|
+
const dragScrollEnabled = vue.computed(() => props.dragScroll !== false && props.dragScroll != null);
|
|
57
|
+
const dragScrollOptions = vue.computed(() => {
|
|
58
|
+
const value = props.dragScroll;
|
|
59
|
+
if (value && typeof value === "object") return value;
|
|
60
|
+
return {};
|
|
61
|
+
});
|
|
62
|
+
const { onMouseDown: onDragScrollMouseDown } = useTableDragScroll.useTableDragScroll(
|
|
63
|
+
dragScrollWrapperRef,
|
|
64
|
+
void 0,
|
|
65
|
+
{
|
|
66
|
+
...dragScrollOptions.value,
|
|
67
|
+
enabled: dragScrollEnabled
|
|
68
|
+
}
|
|
69
|
+
);
|
|
53
70
|
const plusTableInstance = vue.computed(() => {
|
|
54
71
|
var _a;
|
|
55
72
|
return (_a = plusPageRef.value) == null ? void 0 : _a.plusTableInstance;
|
|
@@ -467,6 +484,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
467
484
|
void resolvedColumnSettingsText.value;
|
|
468
485
|
void hasRequest.value;
|
|
469
486
|
void showDefaultColumnSettingsIcon.value;
|
|
487
|
+
void dragScrollEnabled.value;
|
|
470
488
|
__expose({
|
|
471
489
|
plusPageRef,
|
|
472
490
|
plusTableInstance,
|
|
@@ -524,62 +542,76 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
524
542
|
class: vue.normalizeClass(["yc-plus-page", { "yc-plus-page--borderless": isBorderless.value }])
|
|
525
543
|
},
|
|
526
544
|
[
|
|
527
|
-
vue.
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
545
|
+
vue.createCommentVNode(" \u62D6\u62FD\u6EDA\u52A8\u5305\u88F9\u5C42\uFF1AdragScroll \u542F\u7528\u65F6\u4ECB\u5165\uFF0C\u4F46\u59CB\u7EC8\u4FDD\u7559 ref\uFF0C\n \u4EE5\u4FDD\u8BC1 mousedown \u900F\u4F20 + hook \u5185\u90E8 DOM \u67E5\u8BE2\u6B63\u5E38 "),
|
|
546
|
+
vue.createElementVNode(
|
|
547
|
+
"div",
|
|
548
|
+
{
|
|
549
|
+
ref_key: "dragScrollWrapperRef",
|
|
550
|
+
ref: dragScrollWrapperRef,
|
|
551
|
+
class: vue.normalizeClass(["yc-plus-page__drag-wrapper", { "yc-plus-page__drag-wrapper--enabled": dragScrollEnabled.value }]),
|
|
552
|
+
onMousedown: _cache[0] || (_cache[0] = ($event) => dragScrollEnabled.value ? vue.unref(onDragScrollMouseDown)($event) : void 0)
|
|
553
|
+
},
|
|
554
|
+
[
|
|
555
|
+
vue.createVNode(vue.unref(index.PlusPage), vue.mergeProps({
|
|
556
|
+
ref_key: "plusPageRef",
|
|
557
|
+
ref: plusPageRef
|
|
558
|
+
}, { ...props, ..._ctx.$attrs }, {
|
|
559
|
+
columns: enhancedColumns.value,
|
|
560
|
+
"is-card": _ctx.isCard,
|
|
561
|
+
request: wrappedRequest.value,
|
|
562
|
+
search: mergedSearch.value,
|
|
563
|
+
"search-card-props": mergedSearchCardProps.value,
|
|
564
|
+
"table-card-props": mergedTableCardProps.value,
|
|
565
|
+
table: mergedTable.value,
|
|
566
|
+
pagination: mergedPagination.value,
|
|
567
|
+
"default-page-info": { page: 1, pageSize: DEFAULT_PAGE_SIZE },
|
|
568
|
+
onFilterTableHeader: handleFilterTableHeader,
|
|
569
|
+
onHeaderDragend: handleHeaderDragend
|
|
570
|
+
}), vue.createSlots({
|
|
571
|
+
default: vue.withCtx(() => [
|
|
572
|
+
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
573
|
+
]),
|
|
574
|
+
_: 2
|
|
575
|
+
/* DYNAMIC */
|
|
576
|
+
}, [
|
|
577
|
+
_ctx.$slots["column-settings-icon"] ? {
|
|
578
|
+
name: "column-settings-icon",
|
|
579
|
+
fn: vue.withCtx(() => [
|
|
580
|
+
vue.renderSlot(_ctx.$slots, "column-settings-icon", {}, void 0, true)
|
|
581
|
+
]),
|
|
582
|
+
key: "0"
|
|
583
|
+
} : showDefaultColumnSettingsIcon.value ? {
|
|
584
|
+
name: "column-settings-icon",
|
|
585
|
+
fn: vue.withCtx(() => [
|
|
586
|
+
vue.createElementVNode("div", { class: "column-settings-wrapper" }, [
|
|
587
|
+
vue.createVNode(vue.unref(index$1.default), {
|
|
588
|
+
src: fieldSettingIconUrl.value,
|
|
589
|
+
size: 16
|
|
590
|
+
}, null, 8, ["src"]),
|
|
591
|
+
vue.createElementVNode(
|
|
592
|
+
"span",
|
|
593
|
+
{ class: "column-settings-text" },
|
|
594
|
+
vue.toDisplayString(resolvedColumnSettingsText.value),
|
|
595
|
+
1
|
|
596
|
+
/* TEXT */
|
|
597
|
+
)
|
|
598
|
+
])
|
|
599
|
+
]),
|
|
600
|
+
key: "1"
|
|
601
|
+
} : void 0,
|
|
602
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
603
|
+
return {
|
|
604
|
+
name,
|
|
605
|
+
fn: vue.withCtx((slotProps) => [
|
|
606
|
+
name !== "column-settings-icon" && name !== "default" ? vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.mergeProps({ key: 0 }, slotProps)), void 0, true) : vue.createCommentVNode("v-if", true)
|
|
607
|
+
])
|
|
608
|
+
};
|
|
609
|
+
})
|
|
610
|
+
]), 1040, ["columns", "is-card", "request", "search", "search-card-props", "table-card-props", "table", "pagination", "default-page-info"])
|
|
611
|
+
],
|
|
612
|
+
34
|
|
613
|
+
/* CLASS, NEED_HYDRATION */
|
|
614
|
+
)
|
|
583
615
|
],
|
|
584
616
|
2
|
|
585
617
|
/* CLASS */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { UseTableDragScrollOptions } from 'yc-pro-components/es/hooks/useTableDragScroll';
|
|
1
2
|
import { PlusPageProps } from 'yc-pro-components/es/components/page';
|
|
2
3
|
import { FieldValues } from 'yc-pro-components/es/types/form';
|
|
3
4
|
import { PlusColumn, PageInfo } from 'yc-pro-components/es/types/plus';
|
|
@@ -178,6 +179,14 @@ export interface YcPlusPageProps extends /* @vue-ignore */ Omit<Partial<PlusPage
|
|
|
178
179
|
* @default true(默认隐藏)
|
|
179
180
|
*/
|
|
180
181
|
hideHeaderFilter?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* 是否启用表格横向拖拽滚动
|
|
184
|
+
* - true: 使用默认配置启用
|
|
185
|
+
* - 对象: 自定义 useTableDragScroll 配置(resizeAreaWidth / scrollContainerSelector 等)
|
|
186
|
+
* - false / 不传: 关闭(默认)
|
|
187
|
+
* @default false
|
|
188
|
+
*/
|
|
189
|
+
dragScroll?: boolean | UseTableDragScrollOptions;
|
|
181
190
|
}
|
|
182
191
|
/**
|
|
183
192
|
* 列设置缓存数据
|
|
@@ -54,12 +54,12 @@ export declare const YcSegmentedWithInstall: SFCWithInstall<DefineComponent<{
|
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
56
|
}>> & {
|
|
57
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
58
57
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
|
-
modelValue: string | number;
|
|
61
60
|
disabled: boolean;
|
|
62
61
|
options: YcSegmentedOption[];
|
|
62
|
+
modelValue: string | number;
|
|
63
63
|
resize: boolean;
|
|
64
64
|
block: boolean;
|
|
65
65
|
}, {}>>;
|
|
@@ -62,12 +62,12 @@ declare const _default: DefineComponent<{
|
|
|
62
62
|
default: boolean;
|
|
63
63
|
};
|
|
64
64
|
}>> & {
|
|
65
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
66
65
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
}, {
|
|
68
|
-
modelValue: string | number;
|
|
69
68
|
disabled: boolean;
|
|
70
69
|
options: YcSegmentedOption[];
|
|
70
|
+
modelValue: string | number;
|
|
71
71
|
resize: boolean;
|
|
72
72
|
block: boolean;
|
|
73
73
|
}, {}>;
|
|
@@ -44,14 +44,14 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
|
|
|
44
44
|
initialOptions: () => never[];
|
|
45
45
|
allSelect: boolean;
|
|
46
46
|
}>>> & {
|
|
47
|
-
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
48
47
|
onChange?: ((value: SelectValueType) => any) | undefined;
|
|
48
|
+
"onUpdate:modelValue"?: ((value: FieldValueType) => any) | undefined;
|
|
49
49
|
}, {
|
|
50
|
-
modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
51
|
-
filterable: boolean;
|
|
52
50
|
disabled: boolean;
|
|
51
|
+
filterable: boolean;
|
|
53
52
|
options: SelectOption[];
|
|
54
53
|
pageSize: number;
|
|
54
|
+
modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
|
|
55
55
|
multiple: boolean;
|
|
56
56
|
clearable: boolean;
|
|
57
57
|
placeholder: string;
|
|
@@ -28,9 +28,9 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
28
28
|
onCancel?: (() => any) | undefined;
|
|
29
29
|
onConfirm?: (() => any) | undefined;
|
|
30
30
|
}, {
|
|
31
|
+
content: string;
|
|
31
32
|
title: string;
|
|
32
33
|
width: string | number;
|
|
33
|
-
content: string;
|
|
34
34
|
visible: boolean;
|
|
35
35
|
status: StatusType;
|
|
36
36
|
cancelText: string;
|
|
@@ -5,14 +5,14 @@ import { default as YcTabsWithFilter } from './src/index.vue';
|
|
|
5
5
|
/** 带筛选按钮的 Tabs 组件 */
|
|
6
6
|
export declare const YcTabsWithFilterWithInstall: SFCWithInstall<{
|
|
7
7
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
8
|
-
filterText: {
|
|
9
|
-
type: PropType<string>;
|
|
10
|
-
default: undefined;
|
|
11
|
-
};
|
|
12
8
|
modelValue: {
|
|
13
9
|
type: PropType<string>;
|
|
14
10
|
required: true;
|
|
15
11
|
};
|
|
12
|
+
filterText: {
|
|
13
|
+
type: PropType<string>;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
16
|
showFilter: {
|
|
17
17
|
type: PropType<boolean>;
|
|
18
18
|
default: boolean;
|
|
@@ -38,14 +38,14 @@ export declare const YcTabsWithFilterWithInstall: SFCWithInstall<{
|
|
|
38
38
|
"update:modelValue": (value: string) => void;
|
|
39
39
|
"filter-toggle": (visible: boolean) => void;
|
|
40
40
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
41
|
-
filterText: {
|
|
42
|
-
type: PropType<string>;
|
|
43
|
-
default: undefined;
|
|
44
|
-
};
|
|
45
41
|
modelValue: {
|
|
46
42
|
type: PropType<string>;
|
|
47
43
|
required: true;
|
|
48
44
|
};
|
|
45
|
+
filterText: {
|
|
46
|
+
type: PropType<string>;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
49
|
showFilter: {
|
|
50
50
|
type: PropType<boolean>;
|
|
51
51
|
default: boolean;
|
|
@@ -79,14 +79,14 @@ export declare const YcTabsWithFilterWithInstall: SFCWithInstall<{
|
|
|
79
79
|
M: {};
|
|
80
80
|
Defaults: {};
|
|
81
81
|
}, Readonly< ExtractPropTypes<{
|
|
82
|
-
filterText: {
|
|
83
|
-
type: PropType<string>;
|
|
84
|
-
default: undefined;
|
|
85
|
-
};
|
|
86
82
|
modelValue: {
|
|
87
83
|
type: PropType<string>;
|
|
88
84
|
required: true;
|
|
89
85
|
};
|
|
86
|
+
filterText: {
|
|
87
|
+
type: PropType<string>;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
90
|
showFilter: {
|
|
91
91
|
type: PropType<boolean>;
|
|
92
92
|
default: boolean;
|
|
@@ -119,14 +119,14 @@ export declare const YcTabsWithFilterWithInstall: SFCWithInstall<{
|
|
|
119
119
|
__isTeleport?: undefined;
|
|
120
120
|
__isSuspense?: undefined;
|
|
121
121
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
122
|
-
filterText: {
|
|
123
|
-
type: PropType<string>;
|
|
124
|
-
default: undefined;
|
|
125
|
-
};
|
|
126
122
|
modelValue: {
|
|
127
123
|
type: PropType<string>;
|
|
128
124
|
required: true;
|
|
129
125
|
};
|
|
126
|
+
filterText: {
|
|
127
|
+
type: PropType<string>;
|
|
128
|
+
default: undefined;
|
|
129
|
+
};
|
|
130
130
|
showFilter: {
|
|
131
131
|
type: PropType<boolean>;
|
|
132
132
|
default: boolean;
|
|
@@ -9,7 +9,7 @@ interface TippyOptions {
|
|
|
9
9
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
10
10
|
/** 行数限制 */
|
|
11
11
|
lineClamp: {
|
|
12
|
-
type: (
|
|
12
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
13
13
|
};
|
|
14
14
|
/** Tippy 配置 */
|
|
15
15
|
tippyProps: {
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
|
|
|
19
19
|
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
20
20
|
/** 行数限制 */
|
|
21
21
|
lineClamp: {
|
|
22
|
-
type: (
|
|
22
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
23
23
|
};
|
|
24
24
|
/** Tippy 配置 */
|
|
25
25
|
tippyProps: {
|
package/lib/hooks/index.d.ts
CHANGED
package/lib/hooks/index.js
CHANGED
|
@@ -9,6 +9,7 @@ var useSortableDrag = require('./useSortableDrag.js');
|
|
|
9
9
|
var usePlusFormReset = require('./usePlusFormReset.js');
|
|
10
10
|
var useSelectWithPagination = require('./useSelectWithPagination.js');
|
|
11
11
|
var useDictInjection = require('./useDictInjection.js');
|
|
12
|
+
var useTableDragScroll = require('./useTableDragScroll.js');
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
@@ -30,3 +31,4 @@ exports.usePlusFormFullReset = usePlusFormReset.usePlusFormFullReset;
|
|
|
30
31
|
exports.usePlusFormReset = usePlusFormReset.usePlusFormReset;
|
|
31
32
|
exports.useSelectWithPagination = useSelectWithPagination.useSelectWithPagination;
|
|
32
33
|
exports.useDictInjection = useDictInjection.useDictInjection;
|
|
34
|
+
exports.useTableDragScroll = useTableDragScroll.useTableDragScroll;
|