cnhis-design-vue 3.1.25-beta.5 → 3.1.25-beta.7
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/big-table/index.d.ts +5 -1
- package/es/components/big-table/src/BigTable.vue.d.ts +5 -1
- package/es/components/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +14 -25
- package/es/components/big-table/src/components/input-button.js +11 -6
- package/es/components/big-table/src/components/input-button.vue.d.ts +5 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/form-render/index.js +2 -0
- package/es/components/form-render/src/components/renderer/checkbox.d.ts +66 -2
- package/es/components/form-render/src/components/renderer/checkbox.js +47 -9
- package/es/components/form-render/src/components/renderer/radio.d.ts +60 -0
- package/es/components/form-render/src/components/renderer/radio.js +39 -13
- package/es/components/form-render/src/components/renderer/search.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/search.js +14 -61
- package/es/components/form-render/src/hooks/index.d.ts +2 -0
- package/es/components/form-render/src/hooks/index.js +2 -0
- package/es/components/form-render/src/hooks/useAutographOptions.d.ts +17 -0
- package/es/components/form-render/src/hooks/useAutographOptions.js +70 -0
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +12 -11
- package/es/components/index.css +1 -1
- package/es/components/index.js +2 -0
- package/package.json +2 -2
|
@@ -210,9 +210,13 @@ declare const BigTable: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
210
210
|
GROUP_TITLE_KEY: string;
|
|
211
211
|
InputButton: import("vue").DefineComponent<{}, {
|
|
212
212
|
content: import("vue").Ref<string>;
|
|
213
|
+
emit: (event: "trigger", ...args: any[]) => void;
|
|
214
|
+
search: () => void;
|
|
213
215
|
NButton: any;
|
|
214
216
|
NInput: any;
|
|
215
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
217
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "trigger"[], "trigger", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
218
|
+
onTrigger?: ((...args: any[]) => any) | undefined;
|
|
219
|
+
}, {}>;
|
|
216
220
|
$message: import("naive-ui").MessageApi;
|
|
217
221
|
xGrid: import("vue").Ref<{}>;
|
|
218
222
|
copyState: {
|
|
@@ -208,9 +208,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
208
208
|
GROUP_TITLE_KEY: string;
|
|
209
209
|
InputButton: import("vue").DefineComponent<{}, {
|
|
210
210
|
content: import("vue").Ref<string>;
|
|
211
|
+
emit: (event: "trigger", ...args: any[]) => void;
|
|
212
|
+
search: () => void;
|
|
211
213
|
NButton: any;
|
|
212
214
|
NInput: any;
|
|
213
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
215
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "trigger"[], "trigger", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
216
|
+
onTrigger?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
}, {}>;
|
|
214
218
|
$message: import("naive-ui").MessageApi;
|
|
215
219
|
xGrid: import("vue").Ref<{}>;
|
|
216
220
|
copyState: {
|
|
@@ -15,7 +15,7 @@ import { useSeparateRow, useSeparateMap } from './hooks/useSeparateRow.js';
|
|
|
15
15
|
import { SettingsSharp, CaretDown, CaretForward, CopyOutline, SyncOutline } from '@vicons/ionicons5';
|
|
16
16
|
import NoData from './components/NoData.js';
|
|
17
17
|
import script from '../../../shared/components/SvgIcon/SvgIcon.js';
|
|
18
|
-
import { useMessage, NIcon, NTooltip, NCheckbox, NCheckboxGroup, NGrid, NGi,
|
|
18
|
+
import { useMessage, NIcon, NTooltip, NCheckbox, NCheckboxGroup, NGrid, NGi, NButton, NPopconfirm, NProgress, NDropdown, NSwitch, NPopover, NTabs, NTabPane } from 'naive-ui';
|
|
19
19
|
import Grid from '../../grid/index.js';
|
|
20
20
|
import XEUtils from 'xe-utils';
|
|
21
21
|
import 'moment';
|
|
@@ -695,9 +695,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
695
695
|
};
|
|
696
696
|
const formatterHeader = (item) => {
|
|
697
697
|
let field = state.filterFields[item.columnName];
|
|
698
|
+
const checkboxItems = () => {
|
|
699
|
+
return field.searchFilterText ? field.filterItems.filter((item2) => {
|
|
700
|
+
if (!field.searchFilterText)
|
|
701
|
+
return item2;
|
|
702
|
+
let reg = new RegExp(field.searchFilterText);
|
|
703
|
+
return reg.test(item2.key);
|
|
704
|
+
}) : field.filterItems;
|
|
705
|
+
};
|
|
698
706
|
return () => {
|
|
699
707
|
var _a;
|
|
700
|
-
let _slot
|
|
708
|
+
let _slot;
|
|
701
709
|
return [createVNode("div", {
|
|
702
710
|
"class": "filter-box"
|
|
703
711
|
}, [toolTipTitle(item, "format"), createVNode("i", {
|
|
@@ -770,13 +778,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
770
778
|
}
|
|
771
779
|
}, {
|
|
772
780
|
default: () => [createTextVNode("\u5168\u9009")]
|
|
773
|
-
})]) : "",
|
|
774
|
-
"value": field.CONVERT,
|
|
775
|
-
"onUpdate:value": (val) => handleFilterChange(val, item.columnName, field)
|
|
781
|
+
})]) : "", createVNode(NCheckboxGroup, {
|
|
782
|
+
"value": field.searchFilterText ? field.searchFilterCONVERT : field.CONVERT,
|
|
783
|
+
"onUpdate:value": (val) => field.searchFilterText ? handleFilterSearchChange(val, item.columnName, field) : handleFilterChange(val, item.columnName, field)
|
|
776
784
|
}, {
|
|
777
785
|
default: () => [createVNode(NGrid, {
|
|
778
786
|
"cols": 1
|
|
779
|
-
}, _isSlot(_slot =
|
|
787
|
+
}, _isSlot(_slot = checkboxItems().map((item2) => {
|
|
780
788
|
return createVNode(NGi, {
|
|
781
789
|
"class": "sort-item"
|
|
782
790
|
}, {
|
|
@@ -788,25 +796,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
788
796
|
})) ? _slot : {
|
|
789
797
|
default: () => [_slot]
|
|
790
798
|
})]
|
|
791
|
-
}) : createVNode(NCheckboxGroup, {
|
|
792
|
-
"value": field.searchFilterCONVERT,
|
|
793
|
-
"onUpdate:value": (val) => handleFilterSearchChange(val, item.columnName, field)
|
|
794
|
-
}, {
|
|
795
|
-
default: () => [createVNode(NSpace, {
|
|
796
|
-
"item-style": "display: flex;"
|
|
797
|
-
}, _isSlot(_slot2 = field.filterItems.filter((item2) => {
|
|
798
|
-
if (!field.searchFilterText)
|
|
799
|
-
return item2;
|
|
800
|
-
let reg = new RegExp(field.searchFilterText);
|
|
801
|
-
return reg.test(item2.key);
|
|
802
|
-
}).map((item2) => {
|
|
803
|
-
return createVNode(NCheckbox, {
|
|
804
|
-
"value": item2.value,
|
|
805
|
-
"label": item2.key
|
|
806
|
-
}, null);
|
|
807
|
-
})) ? _slot2 : {
|
|
808
|
-
default: () => [_slot2]
|
|
809
|
-
})]
|
|
810
799
|
})])]), createVNode("div", {
|
|
811
800
|
"class": "checkbox-btn-wrap",
|
|
812
801
|
"style": {
|
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createBlock, unref, withCtx, createVNode, createTextVNode } from 'vue';
|
|
1
|
+
import { defineComponent, ref, openBlock, createBlock, unref, withKeys, withCtx, createVNode, createTextVNode } from 'vue';
|
|
2
2
|
import { NInput, NButton } from 'naive-ui';
|
|
3
3
|
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
4
4
|
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
6
|
__name: "input-button",
|
|
7
|
-
|
|
7
|
+
emits: ["trigger"],
|
|
8
|
+
setup(__props, { emit }) {
|
|
8
9
|
const content = ref("");
|
|
10
|
+
function search() {
|
|
11
|
+
emit("trigger", content.value);
|
|
12
|
+
}
|
|
9
13
|
return (_ctx, _cache) => {
|
|
10
14
|
return openBlock(), createBlock(unref(NInput), {
|
|
11
15
|
value: content.value,
|
|
12
|
-
"onUpdate:value": _cache[
|
|
16
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => content.value = $event),
|
|
13
17
|
placeholder: "\u5B57\u6BB5\u641C\u7D22",
|
|
14
|
-
class: "check-seach-input"
|
|
18
|
+
class: "check-seach-input",
|
|
19
|
+
onKeyup: withKeys(search, ["enter"])
|
|
15
20
|
}, {
|
|
16
21
|
suffix: withCtx(() => [
|
|
17
22
|
createVNode(unref(NButton), {
|
|
18
23
|
text: "",
|
|
19
|
-
onClick:
|
|
24
|
+
onClick: search
|
|
20
25
|
}, {
|
|
21
26
|
default: withCtx(() => [
|
|
22
27
|
createTextVNode("\u641C\u7D22")
|
|
@@ -25,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
30
|
})
|
|
26
31
|
]),
|
|
27
32
|
_: 1
|
|
28
|
-
}, 8, ["value"]);
|
|
33
|
+
}, 8, ["value", "onKeyup"]);
|
|
29
34
|
};
|
|
30
35
|
}
|
|
31
36
|
});
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
2
|
content: import("vue").Ref<string>;
|
|
3
|
+
emit: (event: "trigger", ...args: any[]) => void;
|
|
4
|
+
search: () => void;
|
|
3
5
|
NButton: any;
|
|
4
6
|
NInput: any;
|
|
5
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "trigger"[], "trigger", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
8
|
+
onTrigger?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
}, {}>;
|
|
6
10
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.big-table-filter-wrap{background-color:#fff;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.15);box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-direction:column;flex-wrap:wrap;margin-top:-6px;min-width:280px;overflow:hidden;position:fixed;transform:translateX(-2%);transition:width 2s;z-index:99998}.big-table-filter-wrap .sort-list{margin-top:6px}.big-table-filter-wrap .sort-item{align-items:center;display:flex;height:32px;padding:0 13px}.big-table-filter-wrap .sort-item.active,.big-table-filter-wrap .sort-item:hover{background:#f2f2f2}.big-table-filter-wrap .sort-icon{background-size:contain;display:inline-block;height:16px;width:16px}.big-table-filter-wrap .sort-text{color:rgba(0,0,0,.8);font-size:14px;line-height:32px;margin-left:11px}.big-table-filter-wrap .sort-icon-desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=")}.big-table-filter-wrap .filter-header{cursor:auto;padding:0 13px}.big-table-filter-wrap .filter-header-icon{border-right-color:#333;border-top-color:#333}.big-table-filter-wrap .filter-header-text{margin-left:11px}.big-table-filter-wrap .check-search-wrap{background:#f7f7f7;display:flex;justify-content:center;padding:8px 0;width:100%}.big-table-filter-wrap .check-seach-input{line-height:32px}.big-table-filter-wrap .checkbox-box{padding-right:3px;width:100%}.big-table-filter-wrap .checkbox-wrap{background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding-left:13px;padding-right:3px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar{height:4px;width:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-thumb{background-color:#d5d5d5;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-corner{background-color:#000;border-radius:4px;width:4px}.big-table-filter-wrap .checkbox-wrap--search{padding-right:10px}.big-table-filter-wrap .checkbox-btn-wrap{display:flex;padding:9px 10px 9px 14px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn{padding:0;width:56px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn+.checkbox-btn{margin-left:8px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn{border:0;border-radius:0;margin:0 13px;position:relative;width:auto}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn:hover:after{background-color:#5585f5;bottom:5px;content:"";display:block;height:1px;position:absolute;width:100%}.big-table-filter-wrap .arrows-icon{bottom:-1px;cursor:nw-resize;font-size:15px;height:20px;position:absolute;right:-1px;width:25px}.big-table__separate{padding:4px}.big-table__separatePlaceholder{display:inline-block;max-width:0;visibility:hidden;width:0;word-break:keep-all}.custom-big-table{position:relative}.custom-big-table .n-input{width:fit-content}.custom-big-table .img-wrap{align-items:center;display:flex;height:100%;line-height:1;padding:2px 0}.custom-big-table .img-wrap img{cursor:pointer;max-height:100%;object-fit:contain}.custom-big-table .img-wrap.img-circle img{border-radius:50%;object-fit:contain;width:28px}.custom-big-table .bigTable-qr-span{display:inline-block;height:100%;position:relative}.custom-big-table .bigTable-qr-span .bigTable-qr-img{max-height:96%}.custom-big-table .bigTable-qr-span>span{align-items:center;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.custom-big-table .bigTable-qr-span:hover>span{display:inline-flex}.custom-big-table .base-form{align-items:center;display:flex;overflow:hidden!important;width:100%}.custom-big-table .base-form-content{width:100%}.custom-big-table textarea{height:32px;margin-bottom:0;resize:none}.custom-big-table .formItem-select-multiple{align-items:center;display:flex;line-height:40px;width:100%}.custom-big-table.mt{height:calc(100% - 78px)!important;margin-top:26px}.custom-big-table.expand-padding .vxe-table .vxe-body--expanded-cell{padding-left:66px!important;padding-right:66px!important}.custom-big-table th.vxe-header--column{cursor:pointer}.custom-big-table .row-btn{margin-right:10px}.custom-big-table .vxe-table{transform:translateZ(0)}.custom-big-table .vxe-table .vxe-table--empty-content,.custom-big-table .vxe-table .vxe-table--empty-content>div{height:100%;width:100%}.custom-big-table .vxe-table .vxe-table--empty-content>div .no-data-tip{display:inline-flex}.custom-big-table .vxe-table .col--checkbox .vxe-cell,.custom-big-table .vxe-table .col--seq .vxe-cell{padding:0}.custom-big-table .vxe-table .col--checkbox .vxe-cell .vxe-checkbox--label,.custom-big-table .vxe-table .col--seq .vxe-cell .vxe-checkbox--label{padding-left:0}.custom-big-table .vxe-table .vxe-cell .vxe-tree-cell{height:100%}.custom-big-table .vxe-table .scan-multi-delete{color:#f06f64}.custom-big-table .vxe-table .vxe-table--header{background-color:#f2f2f2}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title{color:#35393c;height:100%;line-height:unset}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title .header-title-span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-big-table .vxe-table .vxe-table--header .col--checkbox .vxe-cell--title,.custom-big-table .vxe-table .vxe-table--header .col--seq .vxe-cell--title{display:inline-block}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:0}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.custom-big-table .vxe-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label{display:none}.custom-big-table .filter-box{align-items:center;display:flex;width:100%}.custom-big-table .filter-box .text-over-tooltip-components{max-width:calc(100% - 40px)}.custom-big-table .filter-box .vxe-filter--btn{border-right-color:#c0c4cc;border-top-color:#c0c4cc}.custom-big-table .filter-box .vxe-filter--btn.active{border-right-color:#35393c;border-top-color:#35393c}.custom-big-table .filter-box .vxe-filter--btn.checked{border-right-color:#5585f5;border-top-color:#5585f5}.custom-big-table .disabled-checked-tips{background:#fff;border:2px solid #ff1818;border-radius:50%;bottom:0;box-sizing:border-box;height:16px;margin-top:-8px;overflow:hidden;position:absolute;right:0;top:50%;width:16px}.custom-big-table .disabled-checked-tips:after{background-color:#ff1818;content:"";height:2px;left:0;position:absolute;top:0;transform:rotate(45deg);transform-origin:0 2px;width:16px}.custom-big-table .form-select-table .n-base-select-menu__empty{display:none}.custom-big-table .percent-wrap{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.custom-big-table .percent-wrap .percent-value{line-height:1;margin-bottom:-4px;margin-top:4px}.custom-big-table .refresh{align-items:center;background-color:#fff;border-bottom-left-radius:14px;border-top-left-radius:14px;box-shadow:0 2px 4px 0 hsla(0,0%,42%,.13);color:#5585f5;cursor:pointer;display:flex;font-size:12px;height:27px;padding-left:14px;padding-right:14px;position:absolute;right:0;top:6px;z-index:1}.custom-big-table .refresh-row{margin-bottom:0;margin-left:3px}.custom-big-table .check-wrap{background:#ffffe9;display:flex;justify-content:center;line-height:26px;margin-top:-26px;position:absolute;width:100%}.custom-big-table .check-wrap .check-wrap-btn,.custom-big-table .check-wrap .check-wrap-title{color:#000;cursor:pointer;font-size:12px;margin-bottom:0}.custom-big-table .check-wrap .check-wrap-btn{color:#5585f5}.custom-big-table .domPropsInnerHTML-span{height:100%}.custom-big-table .domPropsInnerHTML-span img{display:inline-block;height:var(--table-image-height);width:var(--table-image-width)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom{background:var(--table-icon-color);border-radius:50%;box-shadow:0 2px 4px 0 var(--table-icon-shadow);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-red{background:red;border-radius:50%;box-shadow:0 2px 4px 0 rgba(255,0,0,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue{background:blue;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0,0,255,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-green{background:green;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0,128,0,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray{background:gray;border-radius:50%;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{background:#ff0;border-radius:50%;box-shadow:0 2px 4px 0 rgba(255,255,0,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{background:#36be8c;border-radius:50%;box-shadow:0 2px 4px 0 rgba(54,190,140,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu{background:#42d0f6;border-radius:50%;box-shadow:0 2px 4px 0 rgba(66,208,246,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-close{background:#718391;border-radius:50%;box-shadow:0 2px 4px 0 rgba(113,131,145,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit{background:#f4ba32;border-radius:50%;box-shadow:0 2px 4px 0 rgba(244,186,50,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-design{background:#927ce1;border-radius:50%;box-shadow:0 2px 4px 0 rgba(146,124,225,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{background:#4eb0ef;border-radius:50%;box-shadow:0 2px 4px 0 rgba(78,176,239,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)}.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)}.custom-big-table .vxe-table--render-default.size--mini{font-size:14px}.custom-big-table .vxe-table--render-default .vxe-body--expanded-column,.custom-big-table .vxe-table--render-default .vxe-table--border-line{border-color:#d5d5d599}.custom-big-table .vxe-table--render-default .vxe-table--footer-wrapper{border-top-color:#d5d5d599}.custom-big-table .vxe-table--render-default.border--default .vxe-body--column,.custom-big-table .vxe-table--render-default.border--default .vxe-footer--column,.custom-big-table .vxe-table--render-default.border--default .vxe-header--column,.custom-big-table .vxe-table--render-default.border--inner .vxe-body--column,.custom-big-table .vxe-table--render-default.border--inner .vxe-footer--column,.custom-big-table .vxe-table--render-default.border--inner .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599)}.custom-big-table .vxe-table--render-default.border--full .vxe-body--column,.custom-big-table .vxe-table--render-default.border--full .vxe-footer--column,.custom-big-table .vxe-table--render-default.border--full .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599),linear-gradient(#d5d5d599,#d5d5d599)}.custom-big-table .vxe-table--render-default.border--full .vxe-table--fixed-left-wrapper .vxe-body--column{border-right-color:#d5d5d599}.custom-big-table .vxe-table--render-default.border--default .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter,.custom-big-table .vxe-table--render-default.border--full .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter,.custom-big-table .vxe-table--render-default.border--inner .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter,.custom-big-table .vxe-table--render-default.border--outer .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(#d5d5d599,#d5d5d599)}.custom-big-table .vxe-table--render-default.border--default .vxe-table--header-wrapper .vxe-table--header-border-line,.custom-big-table .vxe-table--render-default.border--full .vxe-table--header-wrapper .vxe-table--header-border-line,.custom-big-table .vxe-table--render-default.border--inner .vxe-table--header-wrapper .vxe-table--header-border-line,.custom-big-table .vxe-table--render-default.border--outer .vxe-table--header-wrapper .vxe-table--header-border-line{border-bottom-color:#d5d5d599}.custom-big-table .vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon{color:#d5d5d5;font-weight:400}.annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.svg-icon{fill:currentcolor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}.vxe-header--column [annotation-hover-show=true]{visibility:hidden}.vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.big-table__annotationWrapper{align-items:center;display:inline-flex;width:20px}.big-table__annotationWrapper .is-active{position:relative;top:3px}
|
|
1
|
+
.big-table-filter-wrap{background-color:#fff;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.2);display:flex;flex-flow:column wrap;margin-top:-6px;min-width:280px;overflow:hidden;position:fixed;transform:translateX(-2%);transition:width 2s;z-index:99998}.big-table-filter-wrap .sort-list{margin-top:6px}.big-table-filter-wrap .sort-item{align-items:center;background:#f7f7f7;display:flex;height:32px;padding:0 13px}.big-table-filter-wrap .sort-item.active,.big-table-filter-wrap .sort-item:hover{background:#f2f2f2}.big-table-filter-wrap .sort-icon{background-size:contain;display:inline-block;height:16px;width:16px}.big-table-filter-wrap .sort-text{color:rgba(0,0,0,.8);font-size:14px;line-height:32px;margin-left:11px}.big-table-filter-wrap .sort-icon-desc{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABT0lEQVRYR+3WvSuGYRTH8c9TykpJSimLMvgHpLyUCQsmg/wBMss/ILvdJgspNnkbZFYGk7JQSAaLwUuX7uFxu3E/nvvqSd3XeHW6zvec65zfORUNPpUG+1cClBnIysABhiMV5y4mqt/OAliPCHCImd8AIgWf/WzMIhzFK/Z/iigWQAtuE4A2PH0HEQugG5eJ005clwBlBmrJwDwGcorBNjYybOsqwit05QQ4R1/RAB3oqQHgoWiAnL5/NKvrC/4tQBNacYesDAR5fkxHV6QU72EQczhNSfE4VpOOmY01jsOyMYYXLGElcbSIZT4W4C1MxQIIUy9sU1ltGXyeYQSfuua7L2jOWYnPKbt2HKE3dR/0Iqx593lq4AT9OQE2MZ2yDTpyXKUlF0lthP3gy8nKwBqGcgLsYCHDNuwAAe4Nk7ipZRbk9F2MWZFt+CeiEuAdAU5CIQxYYdUAAAAASUVORK5CYII=")}.big-table-filter-wrap .filter-header{cursor:auto;padding:5px 13px}.big-table-filter-wrap .filter-header-icon{border-right-color:#333;border-top-color:#333}.big-table-filter-wrap .filter-header-text{margin-left:11px}.big-table-filter-wrap .check-search-wrap{background:#f7f7f7;display:flex;justify-content:center;padding:8px 0;width:100%}.big-table-filter-wrap .check-seach-input{line-height:32px}.big-table-filter-wrap .checkbox-box{padding-right:3px;width:100%}.big-table-filter-wrap .checkbox-wrap{background:#fff;display:flex;flex-direction:column;overflow-y:auto;padding:0 3px 0 13px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar{height:4px;width:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-thumb{background-color:#d5d5d5;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-track{background-color:#fff;border-radius:4px}.big-table-filter-wrap .checkbox-wrap::-webkit-scrollbar-corner{background-color:#000;border-radius:4px;width:4px}.big-table-filter-wrap .checkbox-wrap--search{padding-right:10px}.big-table-filter-wrap .checkbox-btn-wrap{display:flex;padding:9px 10px 9px 14px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn{padding:0;width:56px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn+.checkbox-btn{margin-left:8px}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn{border:0;border-radius:0;margin:0 13px;position:relative;width:auto}.big-table-filter-wrap .checkbox-btn-wrap .checkbox-btn-status .checkbox-btn:hover:after{background-color:#5585f5;bottom:5px;content:"";display:block;height:1px;position:absolute;width:100%}.big-table-filter-wrap .arrows-icon{bottom:-1px;cursor:nw-resize;font-size:15px;height:20px;position:absolute;right:-1px;width:25px}.big-table__separate{padding:4px}.big-table__separatePlaceholder{display:inline-block;max-width:0;visibility:hidden;width:0;word-break:keep-all}.custom-big-table{position:relative}.custom-big-table .n-input{width:fit-content}.custom-big-table .img-wrap{align-items:center;display:flex;height:100%;line-height:1;padding:2px 0}.custom-big-table .img-wrap img{cursor:pointer;max-height:100%;object-fit:contain}.custom-big-table .img-wrap.img-circle img{border-radius:50%;object-fit:contain;width:28px}.custom-big-table .bigTable-qr-span{display:inline-block;height:100%;position:relative}.custom-big-table .bigTable-qr-span .bigTable-qr-img{max-height:96%}.custom-big-table .bigTable-qr-span>span{align-items:center;background:rgba(0,0,0,.7);color:#fff;cursor:pointer;display:none;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.custom-big-table .bigTable-qr-span:hover>span{display:inline-flex}.custom-big-table .base-form{align-items:center;display:flex;overflow:hidden!important;width:100%}.custom-big-table .base-form-content{width:100%}.custom-big-table textarea{height:32px;margin-bottom:0;resize:none}.custom-big-table .formItem-select-multiple{align-items:center;display:flex;line-height:40px;width:100%}.custom-big-table.mt{height:calc(100% - 78px)!important;margin-top:26px}.custom-big-table.expand-padding .vxe-table .vxe-body--expanded-cell{padding-left:66px!important;padding-right:66px!important}.custom-big-table th.vxe-header--column{cursor:pointer}.custom-big-table .row-btn{margin-right:10px}.custom-big-table .vxe-table{transform:translateZ(0)}.custom-big-table .vxe-table .vxe-table--empty-content,.custom-big-table .vxe-table .vxe-table--empty-content>div{height:100%;width:100%}.custom-big-table .vxe-table .vxe-table--empty-content>div .no-data-tip{display:inline-flex}.custom-big-table .vxe-table .col--checkbox .vxe-cell,.custom-big-table .vxe-table .col--seq .vxe-cell{padding:0}.custom-big-table .vxe-table .col--checkbox .vxe-cell .vxe-checkbox--label,.custom-big-table .vxe-table .col--seq .vxe-cell .vxe-checkbox--label{padding-left:0}.custom-big-table .vxe-table .vxe-cell .vxe-tree-cell{height:100%}.custom-big-table .vxe-table .scan-multi-delete{color:#f06f64}.custom-big-table .vxe-table .vxe-table--header{background-color:#f2f2f2}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title{color:#35393c;height:100%;line-height:unset}.custom-big-table .vxe-table .vxe-table--header .vxe-header--column .vxe-cell--title .header-title-span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-big-table .vxe-table .vxe-table--header .col--checkbox .vxe-cell--title,.custom-big-table .vxe-table .vxe-table--header .col--seq .vxe-cell--title{display:inline-block}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:0}.custom-big-table .vxe-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.custom-big-table .vxe-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.custom-big-table .vxe-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.custom-big-table .vxe-table .vxe-cell--checkbox .vxe-checkbox--label{display:none}.custom-big-table .filter-box{align-items:center;display:flex;width:100%}.custom-big-table .filter-box .text-over-tooltip-components{max-width:calc(100% - 40px)}.custom-big-table .filter-box .vxe-filter--btn{border-right-color:#c0c4cc;border-top-color:#c0c4cc}.custom-big-table .filter-box .vxe-filter--btn.active{border-right-color:#35393c;border-top-color:#35393c}.custom-big-table .filter-box .vxe-filter--btn.checked{border-right-color:#5585f5;border-top-color:#5585f5}.custom-big-table .disabled-checked-tips{background:#fff;border:2px solid #ff1818;border-radius:50%;bottom:0;box-sizing:border-box;height:16px;margin-top:-8px;overflow:hidden;position:absolute;right:0;top:50%;width:16px}.custom-big-table .disabled-checked-tips:after{background-color:#ff1818;content:"";height:2px;left:0;position:absolute;top:0;transform:rotate(45deg);transform-origin:0 2px;width:16px}.custom-big-table .form-select-table .n-base-select-menu__empty{display:none}.custom-big-table .percent-wrap{align-items:center;display:flex;flex-direction:column;justify-content:center;text-align:center}.custom-big-table .percent-wrap .percent-value{line-height:1;margin-bottom:-4px;margin-top:4px}.custom-big-table .refresh{align-items:center;background-color:#fff;border-bottom-left-radius:14px;border-top-left-radius:14px;box-shadow:0 2px 4px 0 hsla(0,0%,42%,.13);color:#5585f5;cursor:pointer;display:flex;font-size:12px;height:27px;padding-left:14px;padding-right:14px;position:absolute;right:0;top:6px;z-index:1}.custom-big-table .refresh-row{margin-bottom:0;margin-left:3px}.custom-big-table .check-wrap{background:#ffffe9;display:flex;justify-content:center;line-height:26px;margin-top:-26px;position:absolute;width:100%}.custom-big-table .check-wrap .check-wrap-btn,.custom-big-table .check-wrap .check-wrap-title{color:#000;cursor:pointer;font-size:12px;margin-bottom:0}.custom-big-table .check-wrap .check-wrap-btn{color:#5585f5}.custom-big-table .domPropsInnerHTML-span{height:100%}.custom-big-table .domPropsInnerHTML-span img{display:inline-block;height:var(--table-image-height);width:var(--table-image-width)}.custom-big-table .domPropsInnerHTML-span .icon-dot-custom{background:var(--table-icon-color);border-radius:50%;box-shadow:0 2px 4px 0 var(--table-icon-shadow);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-red{background:red;border-radius:50%;box-shadow:0 2px 4px 0 rgba(255,0,0,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-blue{background:blue;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0,0,255,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-green{background:green;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0,128,0,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-gray{background:gray;border-radius:50%;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-yellow{background:#ff0;border-radius:50%;box-shadow:0 2px 4px 0 rgba(255,255,0,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-resolved{background:#36be8c;border-radius:50%;box-shadow:0 2px 4px 0 rgba(54,190,140,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-huifu{background:#42d0f6;border-radius:50%;box-shadow:0 2px 4px 0 rgba(66,208,246,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-close{background:#718391;border-radius:50%;box-shadow:0 2px 4px 0 rgba(113,131,145,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-audit{background:#f4ba32;border-radius:50%;box-shadow:0 2px 4px 0 rgba(244,186,50,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-design{background:#927ce1;border-radius:50%;box-shadow:0 2px 4px 0 rgba(146,124,225,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop{background:#4eb0ef;border-radius:50%;box-shadow:0 2px 4px 0 rgba(78,176,239,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .domPropsInnerHTML-span .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.custom-big-table .vxe-table--render-default .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)}.custom-big-table .vxe-table--render-default .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)}.custom-big-table .vxe-table--render-default.size--mini{font-size:14px}.custom-big-table .vxe-table--render-default .vxe-body--expanded-column,.custom-big-table .vxe-table--render-default .vxe-table--border-line{border-color:#d5d5d599}.custom-big-table .vxe-table--render-default .vxe-table--footer-wrapper{border-top-color:#d5d5d599}.custom-big-table .vxe-table--render-default.border--default .vxe-body--column,.custom-big-table .vxe-table--render-default.border--default .vxe-footer--column,.custom-big-table .vxe-table--render-default.border--default .vxe-header--column,.custom-big-table .vxe-table--render-default.border--inner .vxe-body--column,.custom-big-table .vxe-table--render-default.border--inner .vxe-footer--column,.custom-big-table .vxe-table--render-default.border--inner .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599)}.custom-big-table .vxe-table--render-default.border--full .vxe-body--column,.custom-big-table .vxe-table--render-default.border--full .vxe-footer--column,.custom-big-table .vxe-table--render-default.border--full .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599),linear-gradient(#d5d5d599,#d5d5d599)}.custom-big-table .vxe-table--render-default.border--full .vxe-table--fixed-left-wrapper .vxe-body--column{border-right-color:#d5d5d599}.custom-big-table .vxe-table--render-default.border--default .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter,.custom-big-table .vxe-table--render-default.border--full .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter,.custom-big-table .vxe-table--render-default.border--inner .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter,.custom-big-table .vxe-table--render-default.border--outer .vxe-table--header-wrapper .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(#d5d5d599,#d5d5d599)}.custom-big-table .vxe-table--render-default.border--default .vxe-table--header-wrapper .vxe-table--header-border-line,.custom-big-table .vxe-table--render-default.border--full .vxe-table--header-wrapper .vxe-table--header-border-line,.custom-big-table .vxe-table--render-default.border--inner .vxe-table--header-wrapper .vxe-table--header-border-line,.custom-big-table .vxe-table--render-default.border--outer .vxe-table--header-wrapper .vxe-table--header-border-line{border-bottom-color:#d5d5d599}.custom-big-table .vxe-table--render-default .vxe-cell--checkbox .vxe-checkbox--icon{color:#d5d5d5;font-weight:400}.annotation-edit{align-items:center;color:#0067ee;cursor:pointer;display:inline-flex;font-size:16px;user-select:none}.annotation-edit.is-active{color:#ff9828}.annotation-edit__icon{align-items:center;display:inline-flex}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.svg-icon{fill:currentcolor;height:1em;overflow:hidden;vertical-align:-.15em;width:1em}.vxe-header--column [annotation-hover-show=true]{visibility:hidden}.vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.big-table__annotationWrapper{align-items:center;display:inline-flex;width:20px}.big-table__annotationWrapper .is-active{position:relative;top:3px}
|
|
@@ -13,7 +13,9 @@ export { BusinessCollector, useBusinessBinding } from './src/hooks/useBusinessBi
|
|
|
13
13
|
export { ContextCollector, useChangeContext } from './src/hooks/useChangeContext.js';
|
|
14
14
|
export { FormItemDepsCollector, useFormItemDeps } from './src/hooks/useFormItemDeps.js';
|
|
15
15
|
export { useAnchor } from './src/hooks/useAnchor.js';
|
|
16
|
+
export { useAutographOptions } from './src/hooks/useAutographOptions.js';
|
|
16
17
|
export { useFormContext } from './src/hooks/useFormContext.js';
|
|
18
|
+
export { useCommonInjection, useSelectOptionProps } from './src/hooks/useCommonInjection.js';
|
|
17
19
|
export * from '@formily/core';
|
|
18
20
|
|
|
19
21
|
const FormRender = script;
|
|
@@ -1,26 +1,90 @@
|
|
|
1
1
|
import { AnyObject } from '../../../../../../es/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
export declare const CHECKBOX: import("vue").DefineComponent<{
|
|
4
|
+
value: {};
|
|
4
5
|
options: {
|
|
5
6
|
type: PropType<AnyObject[]>;
|
|
6
7
|
default: () => never[];
|
|
7
8
|
};
|
|
9
|
+
autograph: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
lazyRequest: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
requestCache: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
wordbook: {
|
|
21
|
+
type: PropType<Partial<{
|
|
22
|
+
level_num: number;
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
render_key: string[];
|
|
26
|
+
search_key: string[];
|
|
27
|
+
primary_key: string;
|
|
28
|
+
type: string;
|
|
29
|
+
value_key: string;
|
|
30
|
+
level_key: string;
|
|
31
|
+
link_key: string;
|
|
32
|
+
link_key_split: string;
|
|
33
|
+
show_key: string[];
|
|
34
|
+
conObj: AnyObject[];
|
|
35
|
+
conObjFirstLevel: AnyObject[];
|
|
36
|
+
}>>;
|
|
37
|
+
};
|
|
8
38
|
vertical: {
|
|
9
39
|
type: BooleanConstructor;
|
|
10
40
|
default: boolean;
|
|
11
41
|
};
|
|
12
42
|
onChange: {};
|
|
13
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
43
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
44
|
+
value: {};
|
|
14
45
|
options: {
|
|
15
46
|
type: PropType<AnyObject[]>;
|
|
16
47
|
default: () => never[];
|
|
17
48
|
};
|
|
49
|
+
autograph: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
};
|
|
52
|
+
lazyRequest: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
requestCache: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
wordbook: {
|
|
61
|
+
type: PropType<Partial<{
|
|
62
|
+
level_num: number;
|
|
63
|
+
id: string;
|
|
64
|
+
name: string;
|
|
65
|
+
render_key: string[];
|
|
66
|
+
search_key: string[];
|
|
67
|
+
primary_key: string;
|
|
68
|
+
type: string;
|
|
69
|
+
value_key: string;
|
|
70
|
+
level_key: string;
|
|
71
|
+
link_key: string;
|
|
72
|
+
link_key_split: string;
|
|
73
|
+
show_key: string[];
|
|
74
|
+
conObj: AnyObject[];
|
|
75
|
+
conObjFirstLevel: AnyObject[];
|
|
76
|
+
}>>;
|
|
77
|
+
};
|
|
18
78
|
vertical: {
|
|
19
79
|
type: BooleanConstructor;
|
|
20
80
|
default: boolean;
|
|
21
81
|
};
|
|
22
82
|
onChange: {};
|
|
23
|
-
}
|
|
83
|
+
}>> & {
|
|
84
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
}, {
|
|
24
86
|
options: AnyObject[];
|
|
25
87
|
vertical: boolean;
|
|
88
|
+
lazyRequest: boolean;
|
|
89
|
+
requestCache: boolean;
|
|
26
90
|
}>;
|
|
@@ -1,34 +1,72 @@
|
|
|
1
|
-
import { defineComponent, createVNode } from 'vue';
|
|
1
|
+
import { defineComponent, computed, createVNode } from 'vue';
|
|
2
|
+
import '../../../index.js';
|
|
2
3
|
import '../../utils/index.js';
|
|
3
4
|
import { connect, mapProps } from '@formily/vue';
|
|
4
5
|
import { NCheckboxGroup, NSpace, NCheckbox } from 'naive-ui';
|
|
5
|
-
import {
|
|
6
|
+
import { useAutographOptions } from '../../hooks/useAutographOptions.js';
|
|
7
|
+
import { assignUpdateValue } from '../../utils/schema.js';
|
|
8
|
+
import { useCommonInjection } from '../../hooks/useCommonInjection.js';
|
|
6
9
|
|
|
7
10
|
const script = defineComponent({
|
|
8
11
|
name: "FormCheckbox",
|
|
9
12
|
props: {
|
|
13
|
+
value: {},
|
|
10
14
|
options: {
|
|
11
15
|
type: Array,
|
|
12
16
|
default: () => []
|
|
13
17
|
},
|
|
18
|
+
autograph: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
lazyRequest: {
|
|
22
|
+
type: Boolean,
|
|
23
|
+
default: false
|
|
24
|
+
},
|
|
25
|
+
requestCache: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: true
|
|
28
|
+
},
|
|
29
|
+
wordbook: {
|
|
30
|
+
type: Object
|
|
31
|
+
},
|
|
14
32
|
vertical: {
|
|
15
33
|
type: Boolean,
|
|
16
34
|
default: false
|
|
17
35
|
},
|
|
18
36
|
onChange: {}
|
|
19
37
|
},
|
|
20
|
-
|
|
21
|
-
|
|
38
|
+
emits: ["update:value"],
|
|
39
|
+
setup(props, {
|
|
40
|
+
emit
|
|
41
|
+
}) {
|
|
42
|
+
const valueRef = computed({
|
|
43
|
+
get: () => props.value,
|
|
44
|
+
set: (v) => emit("update:value", v)
|
|
45
|
+
});
|
|
46
|
+
const {
|
|
47
|
+
labelKey,
|
|
48
|
+
valueKey,
|
|
49
|
+
options
|
|
50
|
+
} = useAutographOptions(props, valueRef);
|
|
51
|
+
const {
|
|
52
|
+
injectValueBindKey
|
|
53
|
+
} = useCommonInjection();
|
|
54
|
+
const key = injectValueBindKey(valueRef);
|
|
55
|
+
return () => createVNode(NCheckboxGroup, {
|
|
56
|
+
"key": key.value,
|
|
57
|
+
"value": valueRef.value,
|
|
58
|
+
"onUpdate:value": ($event) => valueRef.value = $event
|
|
59
|
+
}, {
|
|
22
60
|
default: () => [createVNode(NSpace, {
|
|
23
61
|
"vertical": props.vertical
|
|
24
62
|
}, {
|
|
25
63
|
default: () => {
|
|
26
64
|
var _a;
|
|
27
|
-
return [(_a =
|
|
28
|
-
"key": option.value,
|
|
29
|
-
"value": option.value
|
|
65
|
+
return [(_a = options.value) == null ? void 0 : _a.map((option) => createVNode(NCheckbox, {
|
|
66
|
+
"key": option[valueKey.value],
|
|
67
|
+
"value": option[valueKey.value]
|
|
30
68
|
}, {
|
|
31
|
-
default: () => [option.
|
|
69
|
+
default: () => [option[labelKey.value]]
|
|
32
70
|
}))];
|
|
33
71
|
}
|
|
34
72
|
})]
|
|
@@ -37,6 +75,6 @@ const script = defineComponent({
|
|
|
37
75
|
});
|
|
38
76
|
const CHECKBOX = connect(script, mapProps({
|
|
39
77
|
dataSource: "options"
|
|
40
|
-
}, assignUpdateValue
|
|
78
|
+
}, assignUpdateValue));
|
|
41
79
|
|
|
42
80
|
export { CHECKBOX };
|
|
@@ -8,6 +8,35 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
8
8
|
type: PropType<AnyObject[]>;
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
|
+
autograph: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
lazyRequest: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
requestCache: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
wordbook: {
|
|
23
|
+
type: PropType<Partial<{
|
|
24
|
+
level_num: number;
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
render_key: string[];
|
|
28
|
+
search_key: string[];
|
|
29
|
+
primary_key: string;
|
|
30
|
+
type: string;
|
|
31
|
+
value_key: string;
|
|
32
|
+
level_key: string;
|
|
33
|
+
link_key: string;
|
|
34
|
+
link_key_split: string;
|
|
35
|
+
show_key: string[];
|
|
36
|
+
conObj: AnyObject[];
|
|
37
|
+
conObjFirstLevel: AnyObject[];
|
|
38
|
+
}>>;
|
|
39
|
+
};
|
|
11
40
|
vertical: {
|
|
12
41
|
type: BooleanConstructor;
|
|
13
42
|
default: boolean;
|
|
@@ -21,6 +50,35 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
21
50
|
type: PropType<AnyObject[]>;
|
|
22
51
|
default: () => never[];
|
|
23
52
|
};
|
|
53
|
+
autograph: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
lazyRequest: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
requestCache: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
wordbook: {
|
|
65
|
+
type: PropType<Partial<{
|
|
66
|
+
level_num: number;
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
render_key: string[];
|
|
70
|
+
search_key: string[];
|
|
71
|
+
primary_key: string;
|
|
72
|
+
type: string;
|
|
73
|
+
value_key: string;
|
|
74
|
+
level_key: string;
|
|
75
|
+
link_key: string;
|
|
76
|
+
link_key_split: string;
|
|
77
|
+
show_key: string[];
|
|
78
|
+
conObj: AnyObject[];
|
|
79
|
+
conObjFirstLevel: AnyObject[];
|
|
80
|
+
}>>;
|
|
81
|
+
};
|
|
24
82
|
vertical: {
|
|
25
83
|
type: BooleanConstructor;
|
|
26
84
|
default: boolean;
|
|
@@ -31,4 +89,6 @@ export declare const RADIO: import("vue").DefineComponent<{
|
|
|
31
89
|
}, {
|
|
32
90
|
options: AnyObject[];
|
|
33
91
|
vertical: boolean;
|
|
92
|
+
lazyRequest: boolean;
|
|
93
|
+
requestCache: boolean;
|
|
34
94
|
}>;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { defineComponent, computed, createVNode } from 'vue';
|
|
1
|
+
import { defineComponent, computed, createVNode, isVNode } from 'vue';
|
|
2
2
|
import { connect, mapProps } from '@formily/vue';
|
|
3
3
|
import { isNumber } from 'lodash-es';
|
|
4
4
|
import { NRadioGroup, NSpace, NRadio } from 'naive-ui';
|
|
5
|
+
import '../../../index.js';
|
|
5
6
|
import '../../utils/index.js';
|
|
6
|
-
import {
|
|
7
|
+
import { useAutographOptions } from '../../hooks/useAutographOptions.js';
|
|
8
|
+
import { assignUpdateValue } from '../../utils/schema.js';
|
|
9
|
+
import { useCommonInjection } from '../../hooks/useCommonInjection.js';
|
|
7
10
|
|
|
11
|
+
function _isSlot(s) {
|
|
12
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
13
|
+
}
|
|
8
14
|
const script = defineComponent({
|
|
9
15
|
props: {
|
|
10
16
|
value: {
|
|
@@ -14,6 +20,20 @@ const script = defineComponent({
|
|
|
14
20
|
type: Array,
|
|
15
21
|
default: () => []
|
|
16
22
|
},
|
|
23
|
+
autograph: {
|
|
24
|
+
type: String
|
|
25
|
+
},
|
|
26
|
+
lazyRequest: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
requestCache: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: true
|
|
33
|
+
},
|
|
34
|
+
wordbook: {
|
|
35
|
+
type: Object
|
|
36
|
+
},
|
|
17
37
|
vertical: {
|
|
18
38
|
type: Boolean,
|
|
19
39
|
default: false
|
|
@@ -37,24 +57,30 @@ const script = defineComponent({
|
|
|
37
57
|
emit("update:value", v);
|
|
38
58
|
}
|
|
39
59
|
});
|
|
60
|
+
const {
|
|
61
|
+
labelKey,
|
|
62
|
+
valueKey,
|
|
63
|
+
options
|
|
64
|
+
} = useAutographOptions(props, valueRef);
|
|
65
|
+
const {
|
|
66
|
+
injectValueBindKey
|
|
67
|
+
} = useCommonInjection();
|
|
68
|
+
const key = injectValueBindKey(valueRef);
|
|
40
69
|
return () => {
|
|
70
|
+
let _slot;
|
|
41
71
|
return createVNode(NRadioGroup, {
|
|
72
|
+
"key": key.value,
|
|
42
73
|
"value": valueRef.value,
|
|
43
74
|
"onUpdate:value": ($event) => valueRef.value = $event
|
|
44
75
|
}, {
|
|
45
76
|
default: () => [createVNode(NSpace, {
|
|
46
77
|
"vertical": props.vertical
|
|
78
|
+
}, _isSlot(_slot = options.value.map((option) => createVNode(NRadio, {
|
|
79
|
+
"value": option[valueKey.value]
|
|
47
80
|
}, {
|
|
48
|
-
default: () =>
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return createVNode(NRadio, {
|
|
52
|
-
"value": option.value
|
|
53
|
-
}, {
|
|
54
|
-
default: () => [option.text]
|
|
55
|
-
});
|
|
56
|
-
})];
|
|
57
|
-
}
|
|
81
|
+
default: () => [option[labelKey.value]]
|
|
82
|
+
}))) ? _slot : {
|
|
83
|
+
default: () => [_slot]
|
|
58
84
|
})]
|
|
59
85
|
});
|
|
60
86
|
};
|
|
@@ -62,6 +88,6 @@ const script = defineComponent({
|
|
|
62
88
|
});
|
|
63
89
|
const RADIO = connect(script, mapProps({
|
|
64
90
|
dataSource: "options"
|
|
65
|
-
}, assignUpdateValue
|
|
91
|
+
}, assignUpdateValue));
|
|
66
92
|
|
|
67
93
|
export { RADIO };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Func } from '../../../../../../es/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
export declare const SEARCH: import("vue").DefineComponent<{
|
|
4
4
|
value: {
|
|
@@ -30,8 +30,8 @@ export declare const SEARCH: import("vue").DefineComponent<{
|
|
|
30
30
|
link_key: string;
|
|
31
31
|
link_key_split: string;
|
|
32
32
|
show_key: string[];
|
|
33
|
-
conObj: AnyObject[];
|
|
34
|
-
conObjFirstLevel: AnyObject[];
|
|
33
|
+
conObj: import("../../../../../../es/shared/types").AnyObject[];
|
|
34
|
+
conObjFirstLevel: import("../../../../../../es/shared/types").AnyObject[];
|
|
35
35
|
}>>;
|
|
36
36
|
required: true;
|
|
37
37
|
};
|
|
@@ -69,8 +69,8 @@ export declare const SEARCH: import("vue").DefineComponent<{
|
|
|
69
69
|
link_key: string;
|
|
70
70
|
link_key_split: string;
|
|
71
71
|
show_key: string[];
|
|
72
|
-
conObj: AnyObject[];
|
|
73
|
-
conObjFirstLevel: AnyObject[];
|
|
72
|
+
conObj: import("../../../../../../es/shared/types").AnyObject[];
|
|
73
|
+
conObjFirstLevel: import("../../../../../../es/shared/types").AnyObject[];
|
|
74
74
|
}>>;
|
|
75
75
|
required: true;
|
|
76
76
|
};
|