bm-admin-ui 1.0.24-alpha → 1.0.26-alpha
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/float-table/index.d.ts +2 -2
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/search-filter/index.d.ts +15 -14
- package/es/components/search-filter/index.js +24 -16
- package/es/components/search-filter/src/search-filter.d.ts +8 -4
- package/es/components/search-filter/src/search-filter.vue.d.ts +15 -14
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/es/components/timeline/index.d.ts +11 -0
- package/es/components/timeline/index.js +9 -6
- package/es/components/timeline/src/props.d.ts +3 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +1 -0
- package/es/components/timeline/src/timeline.vue.d.ts +10 -0
- package/index.esm.js +33 -22
- package/index.js +32 -21
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/search-filter/index.d.ts +15 -14
- package/lib/components/search-filter/index.js +23 -15
- package/lib/components/search-filter/src/search-filter.d.ts +8 -4
- package/lib/components/search-filter/src/search-filter.vue.d.ts +15 -14
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/lib/components/timeline/index.d.ts +11 -0
- package/lib/components/timeline/index.js +9 -6
- package/lib/components/timeline/src/props.d.ts +3 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +1 -0
- package/lib/components/timeline/src/timeline.vue.d.ts +10 -0
- package/package.json +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/search-filter/index.d.ts +15 -14
- package/types/components/search-filter/src/search-filter.d.ts +8 -4
- package/types/components/search-filter/src/search-filter.vue.d.ts +15 -14
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +17 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +2 -2
- package/types/components/timeline/index.d.ts +11 -0
- package/types/components/timeline/src/props.d.ts +3 -0
- package/types/components/timeline/src/timeline-item.vue.d.ts +1 -0
- package/types/components/timeline/src/timeline.vue.d.ts +10 -0
package/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ var process = {
|
|
|
3
3
|
NODE_ENV: 'production'
|
|
4
4
|
}
|
|
5
5
|
};
|
|
6
|
-
import require$$1$1, { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, resolveComponent, ref, onMounted, createElementBlock, Fragment, isVNode, Comment, Text, inject, computed, createVNode, reactive, provide, watch, Transition, onUnmounted, Teleport, TransitionGroup, render as render$9, h as h$2, nextTick, watchEffect, onBeforeMount, onUpdated, onBeforeUnmount, getCurrentInstance, withDirectives, vShow, resolveDynamicComponent, useSlots, createSlots, createElementVNode, createTextVNode, mergeProps as mergeProps$1, markRaw, toRef, createApp, toRefs, resolveDirective, toDisplayString, createCommentVNode, renderList, withModifiers, normalizeClass,
|
|
6
|
+
import require$$1$1, { defineComponent, openBlock, createBlock, unref, withCtx, renderSlot, resolveComponent, ref, onMounted, createElementBlock, Fragment, isVNode, Comment, Text, inject, computed, createVNode, reactive, provide, watch, Transition, onUnmounted, Teleport, TransitionGroup, render as render$9, h as h$2, nextTick, watchEffect, onBeforeMount, onUpdated, onBeforeUnmount, getCurrentInstance, withDirectives, vShow, resolveDynamicComponent, useSlots, createSlots, createElementVNode, createTextVNode, mergeProps as mergeProps$1, markRaw, toRef, createApp, toRefs, resolveDirective, normalizeStyle, toDisplayString, createCommentVNode, renderList, withModifiers, normalizeClass, readonly, toHandlers, normalizeProps, guardReactiveProps } from 'vue';
|
|
7
7
|
|
|
8
8
|
const withInstall$2 = (comp) => {
|
|
9
9
|
comp.install = function (app) {
|
|
@@ -27424,6 +27424,12 @@ const searchResetBtnProps = {
|
|
|
27424
27424
|
type: String,
|
|
27425
27425
|
default: '收起',
|
|
27426
27426
|
},
|
|
27427
|
+
gutter: {
|
|
27428
|
+
type: Array,
|
|
27429
|
+
default() {
|
|
27430
|
+
return [24, 16];
|
|
27431
|
+
},
|
|
27432
|
+
},
|
|
27427
27433
|
};
|
|
27428
27434
|
const searchFilterProps = Object.assign({ userRule: {
|
|
27429
27435
|
type: Array,
|
|
@@ -27447,11 +27453,6 @@ const searchFilterProps = Object.assign({ userRule: {
|
|
|
27447
27453
|
default() {
|
|
27448
27454
|
return {};
|
|
27449
27455
|
},
|
|
27450
|
-
}, gutter: {
|
|
27451
|
-
type: Array,
|
|
27452
|
-
default() {
|
|
27453
|
-
return [24, 16];
|
|
27454
|
-
},
|
|
27455
27456
|
}, fixedCount: {
|
|
27456
27457
|
type: Number,
|
|
27457
27458
|
default: 999999,
|
|
@@ -27462,16 +27463,19 @@ const searchFilterProps = Object.assign({ userRule: {
|
|
|
27462
27463
|
},
|
|
27463
27464
|
} }, searchResetBtnProps);
|
|
27464
27465
|
|
|
27465
|
-
const _hoisted_1$a = { class: "bm-search-filter-
|
|
27466
|
-
const _hoisted_2$8 =
|
|
27467
|
-
const _hoisted_3$7 = /* @__PURE__ */ createTextVNode("\
|
|
27468
|
-
const _hoisted_4$7 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
|
|
27466
|
+
const _hoisted_1$a = { class: "bm-search-filter-actions" };
|
|
27467
|
+
const _hoisted_2$8 = /* @__PURE__ */ createTextVNode("\u91CD\u7F6E");
|
|
27468
|
+
const _hoisted_3$7 = /* @__PURE__ */ createTextVNode("\u67E5\u8BE2");
|
|
27469
27469
|
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
27470
27470
|
props: searchResetBtnProps,
|
|
27471
27471
|
emits: ["submit", "reset", "expand"],
|
|
27472
27472
|
setup(__props, { emit: emits }) {
|
|
27473
27473
|
const props = __props;
|
|
27474
27474
|
const isExpand = ref(false);
|
|
27475
|
+
const wrapperStyle = computed(() => {
|
|
27476
|
+
let gutter = props.gutter?.[0] || 24;
|
|
27477
|
+
return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
|
|
27478
|
+
});
|
|
27475
27479
|
function handleExpandBtnChange() {
|
|
27476
27480
|
isExpand.value = !isExpand.value;
|
|
27477
27481
|
emits("expand", isExpand.value);
|
|
@@ -27484,7 +27488,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27484
27488
|
}
|
|
27485
27489
|
return (_ctx, _cache) => {
|
|
27486
27490
|
const _component_a_button = resolveComponent("a-button");
|
|
27487
|
-
return openBlock(), createElementBlock("div",
|
|
27491
|
+
return openBlock(), createElementBlock("div", {
|
|
27492
|
+
class: "bm-search-filter-btn",
|
|
27493
|
+
style: normalizeStyle(unref(wrapperStyle))
|
|
27494
|
+
}, [
|
|
27488
27495
|
props.showExpandBtn ? (openBlock(), createElementBlock("span", {
|
|
27489
27496
|
key: 0,
|
|
27490
27497
|
class: "bm-search-filter-expand",
|
|
@@ -27493,10 +27500,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27493
27500
|
createTextVNode(toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
27494
27501
|
isExpand.value ? (openBlock(), createBlock(unref(UpOutlined$1), { key: 0 })) : (openBlock(), createBlock(unref(DownOutlined$1), { key: 1 }))
|
|
27495
27502
|
])) : createCommentVNode("v-if", true),
|
|
27496
|
-
createElementVNode("span",
|
|
27503
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
27497
27504
|
createVNode(_component_a_button, { onClick: handleReset }, {
|
|
27498
27505
|
default: withCtx(() => [
|
|
27499
|
-
|
|
27506
|
+
_hoisted_2$8
|
|
27500
27507
|
]),
|
|
27501
27508
|
_: 1
|
|
27502
27509
|
}),
|
|
@@ -27506,12 +27513,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
27506
27513
|
}, {
|
|
27507
27514
|
default: withCtx(() => [
|
|
27508
27515
|
props.showSearchIcon ? (openBlock(), createBlock(unref(SearchOutlined$4), { key: 0 })) : createCommentVNode("v-if", true),
|
|
27509
|
-
|
|
27516
|
+
_hoisted_3$7
|
|
27510
27517
|
]),
|
|
27511
27518
|
_: 1
|
|
27512
27519
|
})
|
|
27513
27520
|
])
|
|
27514
|
-
]);
|
|
27521
|
+
], 4);
|
|
27515
27522
|
};
|
|
27516
27523
|
}
|
|
27517
27524
|
});
|
|
@@ -28049,7 +28056,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
28049
28056
|
showExpandBtn: props.showExpandBtn,
|
|
28050
28057
|
showSearchIcon: props.showSearchIcon,
|
|
28051
28058
|
expandText: props.expandText,
|
|
28052
|
-
collapseText: props.collapseText
|
|
28059
|
+
collapseText: props.collapseText,
|
|
28060
|
+
gutter: props.gutter
|
|
28053
28061
|
},
|
|
28054
28062
|
on: {
|
|
28055
28063
|
submit() {
|
|
@@ -46724,6 +46732,7 @@ function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;
|
|
|
46724
46732
|
|
|
46725
46733
|
const timelineProps = () => ({
|
|
46726
46734
|
mode: z.oneOf(['left', 'right']).def('left'),
|
|
46735
|
+
size: z.oneOf(['normal', 'small']).def('normal'),
|
|
46727
46736
|
labelWidth: z.string.def(''),
|
|
46728
46737
|
});
|
|
46729
46738
|
const timelineItemProps = () => ({
|
|
@@ -46747,11 +46756,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
46747
46756
|
const className = computed(() => {
|
|
46748
46757
|
return {
|
|
46749
46758
|
"bm-timeline": true,
|
|
46750
|
-
[`bm-timeline-${props.mode}`]: true
|
|
46759
|
+
[`bm-timeline-${props.mode}`]: true,
|
|
46760
|
+
[`bm-timeline-${props.size}`]: true
|
|
46751
46761
|
};
|
|
46752
46762
|
});
|
|
46753
46763
|
return (_ctx, _cache) => {
|
|
46754
|
-
return openBlock(), createElementBlock("
|
|
46764
|
+
return openBlock(), createElementBlock("div", {
|
|
46755
46765
|
class: normalizeClass(unref(className))
|
|
46756
46766
|
}, [
|
|
46757
46767
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -46777,9 +46787,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
46777
46787
|
const offsetStyle = computed(() => {
|
|
46778
46788
|
if (labelWidth.value) {
|
|
46779
46789
|
if (mode.value !== "right") {
|
|
46780
|
-
return { left: `calc(${labelWidth.value}
|
|
46790
|
+
return { left: `calc(${labelWidth.value})` };
|
|
46781
46791
|
} else {
|
|
46782
|
-
return { right: `calc(${labelWidth.value}
|
|
46792
|
+
return { right: `calc(${labelWidth.value})` };
|
|
46783
46793
|
}
|
|
46784
46794
|
} else {
|
|
46785
46795
|
return {};
|
|
@@ -46787,7 +46797,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
46787
46797
|
});
|
|
46788
46798
|
const itemClassName = computed(() => {
|
|
46789
46799
|
return {
|
|
46790
|
-
"bm-timeline-item": true
|
|
46800
|
+
"bm-timeline-item": true,
|
|
46801
|
+
"bm-timeline-item-has-label": labelWidth.value
|
|
46791
46802
|
};
|
|
46792
46803
|
});
|
|
46793
46804
|
const dotClassName = computed(() => {
|
|
@@ -46801,7 +46812,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
46801
46812
|
return /blue|red|green|gray/.test(props.color || "") ? void 0 : props.color;
|
|
46802
46813
|
});
|
|
46803
46814
|
return (_ctx, _cache) => {
|
|
46804
|
-
return openBlock(), createElementBlock("
|
|
46815
|
+
return openBlock(), createElementBlock("div", {
|
|
46805
46816
|
class: normalizeClass(unref(itemClassName))
|
|
46806
46817
|
}, [
|
|
46807
46818
|
createElementVNode("div", {
|
package/index.js
CHANGED
|
@@ -27432,6 +27432,12 @@ var process = {
|
|
|
27432
27432
|
type: String,
|
|
27433
27433
|
default: '收起',
|
|
27434
27434
|
},
|
|
27435
|
+
gutter: {
|
|
27436
|
+
type: Array,
|
|
27437
|
+
default() {
|
|
27438
|
+
return [24, 16];
|
|
27439
|
+
},
|
|
27440
|
+
},
|
|
27435
27441
|
};
|
|
27436
27442
|
const searchFilterProps = Object.assign({ userRule: {
|
|
27437
27443
|
type: Array,
|
|
@@ -27455,11 +27461,6 @@ var process = {
|
|
|
27455
27461
|
default() {
|
|
27456
27462
|
return {};
|
|
27457
27463
|
},
|
|
27458
|
-
}, gutter: {
|
|
27459
|
-
type: Array,
|
|
27460
|
-
default() {
|
|
27461
|
-
return [24, 16];
|
|
27462
|
-
},
|
|
27463
27464
|
}, fixedCount: {
|
|
27464
27465
|
type: Number,
|
|
27465
27466
|
default: 999999,
|
|
@@ -27470,16 +27471,19 @@ var process = {
|
|
|
27470
27471
|
},
|
|
27471
27472
|
} }, searchResetBtnProps);
|
|
27472
27473
|
|
|
27473
|
-
const _hoisted_1$a = { class: "bm-search-filter-
|
|
27474
|
-
const _hoisted_2$8 =
|
|
27475
|
-
const _hoisted_3$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\
|
|
27476
|
-
const _hoisted_4$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\u67E5\u8BE2");
|
|
27474
|
+
const _hoisted_1$a = { class: "bm-search-filter-actions" };
|
|
27475
|
+
const _hoisted_2$8 = /* @__PURE__ */ require$$1$1.createTextVNode("\u91CD\u7F6E");
|
|
27476
|
+
const _hoisted_3$7 = /* @__PURE__ */ require$$1$1.createTextVNode("\u67E5\u8BE2");
|
|
27477
27477
|
const _sfc_main$d = /* @__PURE__ */ require$$1$1.defineComponent({
|
|
27478
27478
|
props: searchResetBtnProps,
|
|
27479
27479
|
emits: ["submit", "reset", "expand"],
|
|
27480
27480
|
setup(__props, { emit: emits }) {
|
|
27481
27481
|
const props = __props;
|
|
27482
27482
|
const isExpand = require$$1$1.ref(false);
|
|
27483
|
+
const wrapperStyle = require$$1$1.computed(() => {
|
|
27484
|
+
let gutter = props.gutter?.[0] || 24;
|
|
27485
|
+
return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
|
|
27486
|
+
});
|
|
27483
27487
|
function handleExpandBtnChange() {
|
|
27484
27488
|
isExpand.value = !isExpand.value;
|
|
27485
27489
|
emits("expand", isExpand.value);
|
|
@@ -27492,7 +27496,10 @@ var process = {
|
|
|
27492
27496
|
}
|
|
27493
27497
|
return (_ctx, _cache) => {
|
|
27494
27498
|
const _component_a_button = require$$1$1.resolveComponent("a-button");
|
|
27495
|
-
return require$$1$1.openBlock(), require$$1$1.createElementBlock("div",
|
|
27499
|
+
return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
|
|
27500
|
+
class: "bm-search-filter-btn",
|
|
27501
|
+
style: require$$1$1.normalizeStyle(require$$1$1.unref(wrapperStyle))
|
|
27502
|
+
}, [
|
|
27496
27503
|
props.showExpandBtn ? (require$$1$1.openBlock(), require$$1$1.createElementBlock("span", {
|
|
27497
27504
|
key: 0,
|
|
27498
27505
|
class: "bm-search-filter-expand",
|
|
@@ -27501,10 +27508,10 @@ var process = {
|
|
|
27501
27508
|
require$$1$1.createTextVNode(require$$1$1.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
27502
27509
|
isExpand.value ? (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(UpOutlined$1), { key: 0 })) : (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(DownOutlined$1), { key: 1 }))
|
|
27503
27510
|
])) : require$$1$1.createCommentVNode("v-if", true),
|
|
27504
|
-
require$$1$1.createElementVNode("span",
|
|
27511
|
+
require$$1$1.createElementVNode("span", _hoisted_1$a, [
|
|
27505
27512
|
require$$1$1.createVNode(_component_a_button, { onClick: handleReset }, {
|
|
27506
27513
|
default: require$$1$1.withCtx(() => [
|
|
27507
|
-
|
|
27514
|
+
_hoisted_2$8
|
|
27508
27515
|
]),
|
|
27509
27516
|
_: 1
|
|
27510
27517
|
}),
|
|
@@ -27514,12 +27521,12 @@ var process = {
|
|
|
27514
27521
|
}, {
|
|
27515
27522
|
default: require$$1$1.withCtx(() => [
|
|
27516
27523
|
props.showSearchIcon ? (require$$1$1.openBlock(), require$$1$1.createBlock(require$$1$1.unref(SearchOutlined$4), { key: 0 })) : require$$1$1.createCommentVNode("v-if", true),
|
|
27517
|
-
|
|
27524
|
+
_hoisted_3$7
|
|
27518
27525
|
]),
|
|
27519
27526
|
_: 1
|
|
27520
27527
|
})
|
|
27521
27528
|
])
|
|
27522
|
-
]);
|
|
27529
|
+
], 4);
|
|
27523
27530
|
};
|
|
27524
27531
|
}
|
|
27525
27532
|
});
|
|
@@ -28057,7 +28064,8 @@ var process = {
|
|
|
28057
28064
|
showExpandBtn: props.showExpandBtn,
|
|
28058
28065
|
showSearchIcon: props.showSearchIcon,
|
|
28059
28066
|
expandText: props.expandText,
|
|
28060
|
-
collapseText: props.collapseText
|
|
28067
|
+
collapseText: props.collapseText,
|
|
28068
|
+
gutter: props.gutter
|
|
28061
28069
|
},
|
|
28062
28070
|
on: {
|
|
28063
28071
|
submit() {
|
|
@@ -46732,6 +46740,7 @@ var process = {
|
|
|
46732
46740
|
|
|
46733
46741
|
const timelineProps = () => ({
|
|
46734
46742
|
mode: z.oneOf(['left', 'right']).def('left'),
|
|
46743
|
+
size: z.oneOf(['normal', 'small']).def('normal'),
|
|
46735
46744
|
labelWidth: z.string.def(''),
|
|
46736
46745
|
});
|
|
46737
46746
|
const timelineItemProps = () => ({
|
|
@@ -46755,11 +46764,12 @@ var process = {
|
|
|
46755
46764
|
const className = require$$1$1.computed(() => {
|
|
46756
46765
|
return {
|
|
46757
46766
|
"bm-timeline": true,
|
|
46758
|
-
[`bm-timeline-${props.mode}`]: true
|
|
46767
|
+
[`bm-timeline-${props.mode}`]: true,
|
|
46768
|
+
[`bm-timeline-${props.size}`]: true
|
|
46759
46769
|
};
|
|
46760
46770
|
});
|
|
46761
46771
|
return (_ctx, _cache) => {
|
|
46762
|
-
return require$$1$1.openBlock(), require$$1$1.createElementBlock("
|
|
46772
|
+
return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
|
|
46763
46773
|
class: require$$1$1.normalizeClass(require$$1$1.unref(className))
|
|
46764
46774
|
}, [
|
|
46765
46775
|
require$$1$1.renderSlot(_ctx.$slots, "default")
|
|
@@ -46785,9 +46795,9 @@ var process = {
|
|
|
46785
46795
|
const offsetStyle = require$$1$1.computed(() => {
|
|
46786
46796
|
if (labelWidth.value) {
|
|
46787
46797
|
if (mode.value !== "right") {
|
|
46788
|
-
return { left: `calc(${labelWidth.value}
|
|
46798
|
+
return { left: `calc(${labelWidth.value})` };
|
|
46789
46799
|
} else {
|
|
46790
|
-
return { right: `calc(${labelWidth.value}
|
|
46800
|
+
return { right: `calc(${labelWidth.value})` };
|
|
46791
46801
|
}
|
|
46792
46802
|
} else {
|
|
46793
46803
|
return {};
|
|
@@ -46795,7 +46805,8 @@ var process = {
|
|
|
46795
46805
|
});
|
|
46796
46806
|
const itemClassName = require$$1$1.computed(() => {
|
|
46797
46807
|
return {
|
|
46798
|
-
"bm-timeline-item": true
|
|
46808
|
+
"bm-timeline-item": true,
|
|
46809
|
+
"bm-timeline-item-has-label": labelWidth.value
|
|
46799
46810
|
};
|
|
46800
46811
|
});
|
|
46801
46812
|
const dotClassName = require$$1$1.computed(() => {
|
|
@@ -46809,7 +46820,7 @@ var process = {
|
|
|
46809
46820
|
return /blue|red|green|gray/.test(props.color || "") ? void 0 : props.color;
|
|
46810
46821
|
});
|
|
46811
46822
|
return (_ctx, _cache) => {
|
|
46812
|
-
return require$$1$1.openBlock(), require$$1$1.createElementBlock("
|
|
46823
|
+
return require$$1$1.openBlock(), require$$1$1.createElementBlock("div", {
|
|
46813
46824
|
class: require$$1$1.normalizeClass(require$$1$1.unref(itemClassName))
|
|
46814
46825
|
}, [
|
|
46815
46826
|
require$$1$1.createElementVNode("div", {
|
|
@@ -42,9 +42,9 @@ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithI
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -42,9 +42,9 @@ declare const _default: {
|
|
|
42
42
|
gridOptions: import("vue").ComputedRef<any>;
|
|
43
43
|
gridEvents: import("vue").ComputedRef<any>;
|
|
44
44
|
pager: import("vue").ComputedRef<any>;
|
|
45
|
-
simpleImage: import("vue").Ref<
|
|
45
|
+
simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
46
|
[key: string]: any;
|
|
47
|
-
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}> | null | undefined)[]>;
|
|
50
50
|
floatRefsId: import("vue").Ref<{}>;
|
|
@@ -19,6 +19,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
+
gutter: {
|
|
23
|
+
type: import("vue").PropType<number[]>;
|
|
24
|
+
default(): number[];
|
|
25
|
+
};
|
|
22
26
|
userRule: {
|
|
23
27
|
type: ArrayConstructor;
|
|
24
28
|
default(): never[];
|
|
@@ -37,10 +41,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
37
41
|
type: ObjectConstructor;
|
|
38
42
|
default(): {};
|
|
39
43
|
};
|
|
40
|
-
gutter: {
|
|
41
|
-
type: ArrayConstructor;
|
|
42
|
-
default(): number[];
|
|
43
|
-
};
|
|
44
44
|
fixedCount: {
|
|
45
45
|
type: NumberConstructor;
|
|
46
46
|
default: number;
|
|
@@ -71,6 +71,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
71
71
|
type: StringConstructor;
|
|
72
72
|
default: string;
|
|
73
73
|
};
|
|
74
|
+
gutter: {
|
|
75
|
+
type: import("vue").PropType<number[]>;
|
|
76
|
+
default(): number[];
|
|
77
|
+
};
|
|
74
78
|
userRule: {
|
|
75
79
|
type: ArrayConstructor;
|
|
76
80
|
default(): never[];
|
|
@@ -89,10 +93,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
89
93
|
type: ObjectConstructor;
|
|
90
94
|
default(): {};
|
|
91
95
|
};
|
|
92
|
-
gutter: {
|
|
93
|
-
type: ArrayConstructor;
|
|
94
|
-
default(): number[];
|
|
95
|
-
};
|
|
96
96
|
fixedCount: {
|
|
97
97
|
type: NumberConstructor;
|
|
98
98
|
default: number;
|
|
@@ -116,6 +116,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
116
116
|
showSearchIcon: boolean;
|
|
117
117
|
expandText: string;
|
|
118
118
|
collapseText: string;
|
|
119
|
+
gutter: number[];
|
|
119
120
|
};
|
|
120
121
|
on: {
|
|
121
122
|
submit: () => void;
|
|
@@ -129,7 +130,7 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
129
130
|
span: number;
|
|
130
131
|
};
|
|
131
132
|
row: {
|
|
132
|
-
gutter:
|
|
133
|
+
gutter: number[];
|
|
133
134
|
};
|
|
134
135
|
form: {
|
|
135
136
|
labelCol: {
|
|
@@ -169,6 +170,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
169
170
|
type: StringConstructor;
|
|
170
171
|
default: string;
|
|
171
172
|
};
|
|
173
|
+
gutter: {
|
|
174
|
+
type: import("vue").PropType<number[]>;
|
|
175
|
+
default(): number[];
|
|
176
|
+
};
|
|
172
177
|
userRule: {
|
|
173
178
|
type: ArrayConstructor;
|
|
174
179
|
default(): never[];
|
|
@@ -187,10 +192,6 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
187
192
|
type: ObjectConstructor;
|
|
188
193
|
default(): {};
|
|
189
194
|
};
|
|
190
|
-
gutter: {
|
|
191
|
-
type: ArrayConstructor;
|
|
192
|
-
default(): number[];
|
|
193
|
-
};
|
|
194
195
|
fixedCount: {
|
|
195
196
|
type: NumberConstructor;
|
|
196
197
|
default: number;
|
|
@@ -211,10 +212,10 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
|
|
|
211
212
|
expandPlacement: "left" | "right";
|
|
212
213
|
expandText: string;
|
|
213
214
|
collapseText: string;
|
|
215
|
+
gutter: number[];
|
|
214
216
|
userRule: unknown[];
|
|
215
217
|
labelCol: Record<string, any>;
|
|
216
218
|
ruleSpan: Record<string, any>;
|
|
217
|
-
gutter: unknown[];
|
|
218
219
|
fixedCount: number;
|
|
219
220
|
fixedFields: string[];
|
|
220
221
|
}>>;
|
|
@@ -1256,6 +1256,12 @@ const searchResetBtnProps = {
|
|
|
1256
1256
|
type: String,
|
|
1257
1257
|
default: '收起',
|
|
1258
1258
|
},
|
|
1259
|
+
gutter: {
|
|
1260
|
+
type: Array,
|
|
1261
|
+
default() {
|
|
1262
|
+
return [24, 16];
|
|
1263
|
+
},
|
|
1264
|
+
},
|
|
1259
1265
|
};
|
|
1260
1266
|
const searchFilterProps = Object.assign({ userRule: {
|
|
1261
1267
|
type: Array,
|
|
@@ -1279,11 +1285,6 @@ const searchFilterProps = Object.assign({ userRule: {
|
|
|
1279
1285
|
default() {
|
|
1280
1286
|
return {};
|
|
1281
1287
|
},
|
|
1282
|
-
}, gutter: {
|
|
1283
|
-
type: Array,
|
|
1284
|
-
default() {
|
|
1285
|
-
return [24, 16];
|
|
1286
|
-
},
|
|
1287
1288
|
}, fixedCount: {
|
|
1288
1289
|
type: Number,
|
|
1289
1290
|
default: 999999,
|
|
@@ -1302,16 +1303,19 @@ var _export_sfc = (sfc, props) => {
|
|
|
1302
1303
|
return target;
|
|
1303
1304
|
};
|
|
1304
1305
|
|
|
1305
|
-
const _hoisted_1$1 = { class: "bm-search-filter-
|
|
1306
|
-
const _hoisted_2$1 =
|
|
1307
|
-
const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\
|
|
1308
|
-
const _hoisted_4$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
|
|
1306
|
+
const _hoisted_1$1 = { class: "bm-search-filter-actions" };
|
|
1307
|
+
const _hoisted_2$1 = /* @__PURE__ */ vue.createTextVNode("\u91CD\u7F6E");
|
|
1308
|
+
const _hoisted_3$1 = /* @__PURE__ */ vue.createTextVNode("\u67E5\u8BE2");
|
|
1309
1309
|
const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
1310
1310
|
props: searchResetBtnProps,
|
|
1311
1311
|
emits: ["submit", "reset", "expand"],
|
|
1312
1312
|
setup(__props, { emit: emits }) {
|
|
1313
1313
|
const props = __props;
|
|
1314
1314
|
const isExpand = vue.ref(false);
|
|
1315
|
+
const wrapperStyle = vue.computed(() => {
|
|
1316
|
+
let gutter = props.gutter?.[0] || 24;
|
|
1317
|
+
return { paddingLeft: gutter / 2 + "px", paddingRight: gutter / 2 + "px" };
|
|
1318
|
+
});
|
|
1315
1319
|
function handleExpandBtnChange() {
|
|
1316
1320
|
isExpand.value = !isExpand.value;
|
|
1317
1321
|
emits("expand", isExpand.value);
|
|
@@ -1324,7 +1328,10 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1324
1328
|
}
|
|
1325
1329
|
return (_ctx, _cache) => {
|
|
1326
1330
|
const _component_a_button = vue.resolveComponent("a-button");
|
|
1327
|
-
return vue.openBlock(), vue.createElementBlock("div",
|
|
1331
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1332
|
+
class: "bm-search-filter-btn",
|
|
1333
|
+
style: vue.normalizeStyle(vue.unref(wrapperStyle))
|
|
1334
|
+
}, [
|
|
1328
1335
|
props.showExpandBtn ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
1329
1336
|
key: 0,
|
|
1330
1337
|
class: "bm-search-filter-expand",
|
|
@@ -1333,10 +1340,10 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1333
1340
|
vue.createTextVNode(vue.toDisplayString(isExpand.value ? props.collapseText : props.expandText), 1),
|
|
1334
1341
|
isExpand.value ? (vue.openBlock(), vue.createBlock(vue.unref(UpOutlined$1), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(DownOutlined$1), { key: 1 }))
|
|
1335
1342
|
])) : vue.createCommentVNode("v-if", true),
|
|
1336
|
-
vue.createElementVNode("span",
|
|
1343
|
+
vue.createElementVNode("span", _hoisted_1$1, [
|
|
1337
1344
|
vue.createVNode(_component_a_button, { onClick: handleReset }, {
|
|
1338
1345
|
default: vue.withCtx(() => [
|
|
1339
|
-
|
|
1346
|
+
_hoisted_2$1
|
|
1340
1347
|
]),
|
|
1341
1348
|
_: 1
|
|
1342
1349
|
}),
|
|
@@ -1346,12 +1353,12 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1346
1353
|
}, {
|
|
1347
1354
|
default: vue.withCtx(() => [
|
|
1348
1355
|
props.showSearchIcon ? (vue.openBlock(), vue.createBlock(vue.unref(SearchOutlined$1), { key: 0 })) : vue.createCommentVNode("v-if", true),
|
|
1349
|
-
|
|
1356
|
+
_hoisted_3$1
|
|
1350
1357
|
]),
|
|
1351
1358
|
_: 1
|
|
1352
1359
|
})
|
|
1353
1360
|
])
|
|
1354
|
-
]);
|
|
1361
|
+
], 4);
|
|
1355
1362
|
};
|
|
1356
1363
|
}
|
|
1357
1364
|
});
|
|
@@ -1890,7 +1897,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1890
1897
|
showExpandBtn: props.showExpandBtn,
|
|
1891
1898
|
showSearchIcon: props.showSearchIcon,
|
|
1892
1899
|
expandText: props.expandText,
|
|
1893
|
-
collapseText: props.collapseText
|
|
1900
|
+
collapseText: props.collapseText,
|
|
1901
|
+
gutter: props.gutter
|
|
1894
1902
|
},
|
|
1895
1903
|
on: {
|
|
1896
1904
|
submit() {
|
|
@@ -20,6 +20,10 @@ export declare const searchResetBtnProps: {
|
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
+
gutter: {
|
|
24
|
+
type: PropType<number[]>;
|
|
25
|
+
default(): number[];
|
|
26
|
+
};
|
|
23
27
|
};
|
|
24
28
|
export declare const searchFilterProps: {
|
|
25
29
|
showExpandBtn: {
|
|
@@ -42,6 +46,10 @@ export declare const searchFilterProps: {
|
|
|
42
46
|
type: StringConstructor;
|
|
43
47
|
default: string;
|
|
44
48
|
};
|
|
49
|
+
gutter: {
|
|
50
|
+
type: PropType<number[]>;
|
|
51
|
+
default(): number[];
|
|
52
|
+
};
|
|
45
53
|
userRule: {
|
|
46
54
|
type: ArrayConstructor;
|
|
47
55
|
default(): never[];
|
|
@@ -60,10 +68,6 @@ export declare const searchFilterProps: {
|
|
|
60
68
|
type: ObjectConstructor;
|
|
61
69
|
default(): {};
|
|
62
70
|
};
|
|
63
|
-
gutter: {
|
|
64
|
-
type: ArrayConstructor;
|
|
65
|
-
default(): number[];
|
|
66
|
-
};
|
|
67
71
|
fixedCount: {
|
|
68
72
|
type: NumberConstructor;
|
|
69
73
|
default: number;
|
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
+
gutter: {
|
|
23
|
+
type: import("vue").PropType<number[]>;
|
|
24
|
+
default(): number[];
|
|
25
|
+
};
|
|
22
26
|
userRule: {
|
|
23
27
|
type: ArrayConstructor;
|
|
24
28
|
default(): never[];
|
|
@@ -37,10 +41,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
41
|
type: ObjectConstructor;
|
|
38
42
|
default(): {};
|
|
39
43
|
};
|
|
40
|
-
gutter: {
|
|
41
|
-
type: ArrayConstructor;
|
|
42
|
-
default(): number[];
|
|
43
|
-
};
|
|
44
44
|
fixedCount: {
|
|
45
45
|
type: NumberConstructor;
|
|
46
46
|
default: number;
|
|
@@ -71,6 +71,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
type: StringConstructor;
|
|
72
72
|
default: string;
|
|
73
73
|
};
|
|
74
|
+
gutter: {
|
|
75
|
+
type: import("vue").PropType<number[]>;
|
|
76
|
+
default(): number[];
|
|
77
|
+
};
|
|
74
78
|
userRule: {
|
|
75
79
|
type: ArrayConstructor;
|
|
76
80
|
default(): never[];
|
|
@@ -89,10 +93,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
89
93
|
type: ObjectConstructor;
|
|
90
94
|
default(): {};
|
|
91
95
|
};
|
|
92
|
-
gutter: {
|
|
93
|
-
type: ArrayConstructor;
|
|
94
|
-
default(): number[];
|
|
95
|
-
};
|
|
96
96
|
fixedCount: {
|
|
97
97
|
type: NumberConstructor;
|
|
98
98
|
default: number;
|
|
@@ -116,6 +116,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
116
|
showSearchIcon: boolean;
|
|
117
117
|
expandText: string;
|
|
118
118
|
collapseText: string;
|
|
119
|
+
gutter: number[];
|
|
119
120
|
};
|
|
120
121
|
on: {
|
|
121
122
|
submit: () => void;
|
|
@@ -129,7 +130,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
129
130
|
span: number;
|
|
130
131
|
};
|
|
131
132
|
row: {
|
|
132
|
-
gutter:
|
|
133
|
+
gutter: number[];
|
|
133
134
|
};
|
|
134
135
|
form: {
|
|
135
136
|
labelCol: {
|
|
@@ -169,6 +170,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
170
|
type: StringConstructor;
|
|
170
171
|
default: string;
|
|
171
172
|
};
|
|
173
|
+
gutter: {
|
|
174
|
+
type: import("vue").PropType<number[]>;
|
|
175
|
+
default(): number[];
|
|
176
|
+
};
|
|
172
177
|
userRule: {
|
|
173
178
|
type: ArrayConstructor;
|
|
174
179
|
default(): never[];
|
|
@@ -187,10 +192,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
192
|
type: ObjectConstructor;
|
|
188
193
|
default(): {};
|
|
189
194
|
};
|
|
190
|
-
gutter: {
|
|
191
|
-
type: ArrayConstructor;
|
|
192
|
-
default(): number[];
|
|
193
|
-
};
|
|
194
195
|
fixedCount: {
|
|
195
196
|
type: NumberConstructor;
|
|
196
197
|
default: number;
|
|
@@ -211,10 +212,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
212
|
expandPlacement: "left" | "right";
|
|
212
213
|
expandText: string;
|
|
213
214
|
collapseText: string;
|
|
215
|
+
gutter: number[];
|
|
214
216
|
userRule: unknown[];
|
|
215
217
|
labelCol: Record<string, any>;
|
|
216
218
|
ruleSpan: Record<string, any>;
|
|
217
|
-
gutter: unknown[];
|
|
218
219
|
fixedCount: number;
|
|
219
220
|
fixedFields: string[];
|
|
220
221
|
}>;
|