@94ai/nf-search-form 3.3.4 → 3.3.11
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/lib/nf-search-form.cjs.js +23 -16
- package/lib/nf-search-form.esm-bundler.js +23 -16
- package/package/nf-search-form.vue +22 -16
- package/package.json +18 -18
|
@@ -5,6 +5,7 @@ const vue2RuntimeHelpers = require("@94ai/vue2-runtime-helpers");
|
|
|
5
5
|
const commonUtils = require("@94ai/common-utils");
|
|
6
6
|
const ResizeObserver = require("resize-observer-polyfill");
|
|
7
7
|
const vue = require("vue");
|
|
8
|
+
const lodashEs = require("lodash-es");
|
|
8
9
|
const NfMessage = require("@94ai/nf-message");
|
|
9
10
|
const __sfc_main$5 = vueDemi.defineComponent({
|
|
10
11
|
name: "NfNumberRange"
|
|
@@ -7311,20 +7312,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7311
7312
|
}
|
|
7312
7313
|
}
|
|
7313
7314
|
};
|
|
7314
|
-
const onResize = async (params = {}) => {
|
|
7315
|
-
var _a2;
|
|
7316
|
-
const {
|
|
7317
|
-
width
|
|
7318
|
-
} = ((_a2 = params == null ? void 0 : params[0]) == null ? void 0 : _a2.contentRect) || {};
|
|
7319
|
-
if (width && domWidth.value && width === domWidth.value) {
|
|
7320
|
-
return;
|
|
7321
|
-
}
|
|
7322
|
-
if (domWidth.value) {
|
|
7323
|
-
await vueDemi.nextTick();
|
|
7324
|
-
domWidth.value = topDom.value.offsetWidth;
|
|
7325
|
-
}
|
|
7326
|
-
refreshLabel();
|
|
7327
|
-
};
|
|
7328
7315
|
const calcColumns = () => {
|
|
7329
7316
|
if (props.columns) {
|
|
7330
7317
|
newColumns.value = props.columns;
|
|
@@ -7346,6 +7333,22 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7346
7333
|
}, 0);
|
|
7347
7334
|
newColumns.value = count;
|
|
7348
7335
|
};
|
|
7336
|
+
const throttleCalcColumns = lodashEs.throttle(calcColumns, 100);
|
|
7337
|
+
const onResize = async (params = {}) => {
|
|
7338
|
+
var _a2;
|
|
7339
|
+
const {
|
|
7340
|
+
width
|
|
7341
|
+
} = ((_a2 = params == null ? void 0 : params[0]) == null ? void 0 : _a2.contentRect) || {};
|
|
7342
|
+
if (width && domWidth.value && width === domWidth.value) {
|
|
7343
|
+
return;
|
|
7344
|
+
}
|
|
7345
|
+
if (domWidth.value) {
|
|
7346
|
+
await vueDemi.nextTick();
|
|
7347
|
+
domWidth.value = topDom.value.offsetWidth;
|
|
7348
|
+
}
|
|
7349
|
+
refreshLabel();
|
|
7350
|
+
throttleCalcColumns();
|
|
7351
|
+
};
|
|
7349
7352
|
const observer = vueDemi.ref();
|
|
7350
7353
|
vueDemi.onMounted(async () => {
|
|
7351
7354
|
await vueDemi.nextTick();
|
|
@@ -7704,9 +7707,11 @@ var _sfc_render = function render6() {
|
|
|
7704
7707
|
"content": _vm.columnDisplayBtnText,
|
|
7705
7708
|
"placement": "top"
|
|
7706
7709
|
}
|
|
7710
|
+
}, [_c("span", {
|
|
7711
|
+
staticClass: "icon-wrap"
|
|
7707
7712
|
}, [_c("i", {
|
|
7708
7713
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7709
|
-
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
7714
|
+
})])])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
7710
7715
|
staticClass: "nf-flex nf-flex-align-items nf-mt10"
|
|
7711
7716
|
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("nf-button", {
|
|
7712
7717
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
@@ -7774,9 +7779,11 @@ var _sfc_render = function render6() {
|
|
|
7774
7779
|
"content": _vm.columnDisplayBtnText,
|
|
7775
7780
|
"placement": "top"
|
|
7776
7781
|
}
|
|
7782
|
+
}, [_c("span", {
|
|
7783
|
+
staticClass: "icon-wrap"
|
|
7777
7784
|
}, [_c("i", {
|
|
7778
7785
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7779
|
-
})]) : _vm._e()], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7786
|
+
})])]) : _vm._e()], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7780
7787
|
ref: "columnCheckDialog",
|
|
7781
7788
|
attrs: {
|
|
7782
7789
|
"title": _vm.moreDialogTitle,
|
|
@@ -3,6 +3,7 @@ import { normalizeComponent } from "@94ai/vue2-runtime-helpers";
|
|
|
3
3
|
import { createUniqueString, CachedManager, deepClone } from "@94ai/common-utils";
|
|
4
4
|
import ResizeObserver from "resize-observer-polyfill";
|
|
5
5
|
import { set } from "vue";
|
|
6
|
+
import { throttle as throttle$1 } from "lodash-es";
|
|
6
7
|
import NfMessage from "@94ai/nf-message";
|
|
7
8
|
const __sfc_main$5 = defineComponent({
|
|
8
9
|
name: "NfNumberRange"
|
|
@@ -7309,20 +7310,6 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7309
7310
|
}
|
|
7310
7311
|
}
|
|
7311
7312
|
};
|
|
7312
|
-
const onResize = async (params = {}) => {
|
|
7313
|
-
var _a2;
|
|
7314
|
-
const {
|
|
7315
|
-
width
|
|
7316
|
-
} = ((_a2 = params == null ? void 0 : params[0]) == null ? void 0 : _a2.contentRect) || {};
|
|
7317
|
-
if (width && domWidth.value && width === domWidth.value) {
|
|
7318
|
-
return;
|
|
7319
|
-
}
|
|
7320
|
-
if (domWidth.value) {
|
|
7321
|
-
await nextTick();
|
|
7322
|
-
domWidth.value = topDom.value.offsetWidth;
|
|
7323
|
-
}
|
|
7324
|
-
refreshLabel();
|
|
7325
|
-
};
|
|
7326
7313
|
const calcColumns = () => {
|
|
7327
7314
|
if (props.columns) {
|
|
7328
7315
|
newColumns.value = props.columns;
|
|
@@ -7344,6 +7331,22 @@ __sfc_main.setup = (__props, __ctx) => {
|
|
|
7344
7331
|
}, 0);
|
|
7345
7332
|
newColumns.value = count;
|
|
7346
7333
|
};
|
|
7334
|
+
const throttleCalcColumns = throttle$1(calcColumns, 100);
|
|
7335
|
+
const onResize = async (params = {}) => {
|
|
7336
|
+
var _a2;
|
|
7337
|
+
const {
|
|
7338
|
+
width
|
|
7339
|
+
} = ((_a2 = params == null ? void 0 : params[0]) == null ? void 0 : _a2.contentRect) || {};
|
|
7340
|
+
if (width && domWidth.value && width === domWidth.value) {
|
|
7341
|
+
return;
|
|
7342
|
+
}
|
|
7343
|
+
if (domWidth.value) {
|
|
7344
|
+
await nextTick();
|
|
7345
|
+
domWidth.value = topDom.value.offsetWidth;
|
|
7346
|
+
}
|
|
7347
|
+
refreshLabel();
|
|
7348
|
+
throttleCalcColumns();
|
|
7349
|
+
};
|
|
7347
7350
|
const observer = ref();
|
|
7348
7351
|
onMounted(async () => {
|
|
7349
7352
|
await nextTick();
|
|
@@ -7702,9 +7705,11 @@ var _sfc_render = function render6() {
|
|
|
7702
7705
|
"content": _vm.columnDisplayBtnText,
|
|
7703
7706
|
"placement": "top"
|
|
7704
7707
|
}
|
|
7708
|
+
}, [_c("span", {
|
|
7709
|
+
staticClass: "icon-wrap"
|
|
7705
7710
|
}, [_c("i", {
|
|
7706
7711
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7707
|
-
})])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
7712
|
+
})])])], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2)]) : _vm._e()], 2), _vm.btnModel === "block" ? _c("div", {
|
|
7708
7713
|
staticClass: "nf-flex nf-flex-align-items nf-mt10"
|
|
7709
7714
|
}, [_vm.isShowBtnBoxSlot && !_vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e(), _vm.btnItems.includes("search") ? _c("nf-button", {
|
|
7710
7715
|
class: (_vm.queryBtnClass || "") + " nf-btn-search",
|
|
@@ -7772,9 +7777,11 @@ var _sfc_render = function render6() {
|
|
|
7772
7777
|
"content": _vm.columnDisplayBtnText,
|
|
7773
7778
|
"placement": "top"
|
|
7774
7779
|
}
|
|
7780
|
+
}, [_c("span", {
|
|
7781
|
+
staticClass: "icon-wrap"
|
|
7775
7782
|
}, [_c("i", {
|
|
7776
7783
|
staticClass: "iconfont icon-shaixuan1 nf-fs12"
|
|
7777
|
-
})]) : _vm._e()], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7784
|
+
})])]) : _vm._e()], 1) : _vm._e(), _vm.isShowBtnBoxSlot && _vm.reverseBtnSlot ? _vm._t("btnBox") : _vm._e()], 2) : _vm._e(), _vm.columnEdit && _vm.configNfSearchItemVisibleDialog && _vm.checkMode === "dialog" ? _c("column-check-dialog", {
|
|
7778
7785
|
ref: "columnCheckDialog",
|
|
7779
7786
|
attrs: {
|
|
7780
7787
|
"title": _vm.moreDialogTitle,
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
@click="configNfSearchItemVisibleDialog = true"
|
|
133
133
|
>
|
|
134
134
|
<el-tooltip :content="columnDisplayBtnText" placement="top">
|
|
135
|
-
<i class="iconfont icon-shaixuan1 nf-fs12"></i>
|
|
135
|
+
<span class="icon-wrap"><i class="iconfont icon-shaixuan1 nf-fs12"></i></span>
|
|
136
136
|
</el-tooltip>
|
|
137
137
|
</nf-button>
|
|
138
138
|
<slot v-if="isShowBtnBoxSlot && reverseBtnSlot" name="btnBox" />
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
:class="(checkBtnClass || '') + ' nf-btn-check'"
|
|
196
196
|
>
|
|
197
197
|
<el-tooltip :content="columnDisplayBtnText" placement="top" v-if="columnEdit">
|
|
198
|
-
|
|
198
|
+
<span class="icon-wrap"><i class="iconfont icon-shaixuan1 nf-fs12"></i></span>
|
|
199
199
|
</el-tooltip>
|
|
200
200
|
</nf-button>
|
|
201
201
|
<slot v-if="isShowBtnBoxSlot && reverseBtnSlot" name="btnBox" />
|
|
@@ -305,6 +305,9 @@ import { set } from 'vue'
|
|
|
305
305
|
import {
|
|
306
306
|
CachedManager,
|
|
307
307
|
} from '@94ai/common-utils'
|
|
308
|
+
import {
|
|
309
|
+
throttle
|
|
310
|
+
} from 'lodash-es'
|
|
308
311
|
|
|
309
312
|
|
|
310
313
|
const props = withDefaults(defineProps<{
|
|
@@ -912,20 +915,6 @@ const refreshLabel = () => {
|
|
|
912
915
|
}
|
|
913
916
|
}
|
|
914
917
|
}
|
|
915
|
-
const onResize = async (params: Record<string, any> = {}) => {
|
|
916
|
-
const {
|
|
917
|
-
width
|
|
918
|
-
} = (params?.[0]?.contentRect) || {}
|
|
919
|
-
if (width && domWidth.value && width === domWidth.value) {
|
|
920
|
-
return
|
|
921
|
-
}
|
|
922
|
-
if (domWidth.value) {
|
|
923
|
-
await nextTick()
|
|
924
|
-
domWidth.value = topDom.value.offsetWidth
|
|
925
|
-
}
|
|
926
|
-
refreshLabel()
|
|
927
|
-
}
|
|
928
|
-
|
|
929
918
|
const calcColumns = () => {
|
|
930
919
|
if (props.columns) {
|
|
931
920
|
newColumns.value = props.columns
|
|
@@ -947,6 +936,23 @@ const calcColumns = () => {
|
|
|
947
936
|
newColumns.value = count
|
|
948
937
|
}
|
|
949
938
|
|
|
939
|
+
const throttleCalcColumns = throttle(calcColumns, 100)
|
|
940
|
+
|
|
941
|
+
const onResize = async (params: Record<string, any> = {}) => {
|
|
942
|
+
const {
|
|
943
|
+
width
|
|
944
|
+
} = (params?.[0]?.contentRect) || {}
|
|
945
|
+
if (width && domWidth.value && width === domWidth.value) {
|
|
946
|
+
return
|
|
947
|
+
}
|
|
948
|
+
if (domWidth.value) {
|
|
949
|
+
await nextTick()
|
|
950
|
+
domWidth.value = topDom.value.offsetWidth
|
|
951
|
+
}
|
|
952
|
+
refreshLabel()
|
|
953
|
+
throttleCalcColumns()
|
|
954
|
+
}
|
|
955
|
+
|
|
950
956
|
const observer = ref()
|
|
951
957
|
onMounted(async () => {
|
|
952
958
|
await nextTick()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-search-form",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zoujiahe <zoujiahe@94ai.com>",
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/common-utils": "^3.3.
|
|
18
|
-
"@94ai/nf-button": "^3.3.
|
|
19
|
-
"@94ai/nf-double-half-year": "^3.3.
|
|
20
|
-
"@94ai/nf-double-quarter": "^3.3.
|
|
21
|
-
"@94ai/nf-double-week": "^3.3.
|
|
22
|
-
"@94ai/nf-double-year": "^3.3.
|
|
23
|
-
"@94ai/nf-drawer": "^3.3.
|
|
24
|
-
"@94ai/nf-form": "^3.3.
|
|
25
|
-
"@94ai/nf-form-item": "^3.3.
|
|
26
|
-
"@94ai/nf-half-year-picker": "^3.3.
|
|
27
|
-
"@94ai/nf-lazy-select": "^3.3.
|
|
28
|
-
"@94ai/nf-message": "^3.3.
|
|
29
|
-
"@94ai/nf-quarter-picker": "^3.3.
|
|
30
|
-
"@94ai/nf-theme-chalk": "^3.3.
|
|
31
|
-
"@94ai/nf-transfer-select": "^3.3.
|
|
32
|
-
"@94ai/nf-virtual-select": "^3.3.
|
|
17
|
+
"@94ai/common-utils": "^3.3.11",
|
|
18
|
+
"@94ai/nf-button": "^3.3.11",
|
|
19
|
+
"@94ai/nf-double-half-year": "^3.3.11",
|
|
20
|
+
"@94ai/nf-double-quarter": "^3.3.11",
|
|
21
|
+
"@94ai/nf-double-week": "^3.3.11",
|
|
22
|
+
"@94ai/nf-double-year": "^3.3.11",
|
|
23
|
+
"@94ai/nf-drawer": "^3.3.11",
|
|
24
|
+
"@94ai/nf-form": "^3.3.11",
|
|
25
|
+
"@94ai/nf-form-item": "^3.3.11",
|
|
26
|
+
"@94ai/nf-half-year-picker": "^3.3.11",
|
|
27
|
+
"@94ai/nf-lazy-select": "^3.3.11",
|
|
28
|
+
"@94ai/nf-message": "^3.3.11",
|
|
29
|
+
"@94ai/nf-quarter-picker": "^3.3.11",
|
|
30
|
+
"@94ai/nf-theme-chalk": "^3.3.11",
|
|
31
|
+
"@94ai/nf-transfer-select": "^3.3.11",
|
|
32
|
+
"@94ai/nf-virtual-select": "^3.3.11",
|
|
33
33
|
"idb-keyval": "^6.2.1",
|
|
34
34
|
"resize-observer-polyfill": "^1.5.1",
|
|
35
35
|
"vue-demi": "^0.14.5",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"types": "lib/index.d.ts",
|
|
49
49
|
"main": "lib/nf-search-form.cjs.js",
|
|
50
50
|
"module": "lib/nf-search-form.esm-bundler.js",
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1a2bb91c93b255d1036d88a5a58e6e785e4131e2"
|
|
52
52
|
}
|