@fmdeui/fmui 1.0.162 → 1.0.164
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/packages/components/select-table/src/index2.vue.mjs +6 -6
- package/index.js +7 -7
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +7 -7
- package/lib/packages/components/select-table/src/index2.vue.js +6 -6
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{component.css → defaults.css} +0 -0
- /package/lib/{make-installer.css → component.css} +0 -0
|
@@ -84,11 +84,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
apiAction: { default: "" },
|
|
85
85
|
queryParams: { default: () => ({}) },
|
|
86
86
|
responseFormatter: { type: Function, default: (res) => ({
|
|
87
|
-
data: res.result.items || [],
|
|
88
|
-
total: res.result.total || 0
|
|
87
|
+
data: res.data.result.items || [],
|
|
88
|
+
total: res.data.result.total || 0
|
|
89
89
|
}) }
|
|
90
90
|
}, {
|
|
91
|
-
"id": { default: 0, required: false },
|
|
91
|
+
"id": { default: void 0, required: false },
|
|
92
92
|
"idModifiers": {},
|
|
93
93
|
"name": { default: "", required: false },
|
|
94
94
|
"nameModifiers": {}
|
|
@@ -174,6 +174,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
174
174
|
() => props.table.data,
|
|
175
175
|
(val) => {
|
|
176
176
|
var _a, _b;
|
|
177
|
+
if (props.apiService) return;
|
|
177
178
|
if (props.useVirtual) {
|
|
178
179
|
saveDATA.value = val;
|
|
179
180
|
updateRenderData(scrollTopNum.value);
|
|
@@ -598,11 +599,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
598
599
|
modeValueName.value = row[props.keywords.label];
|
|
599
600
|
};
|
|
600
601
|
const rowClick = async (row) => {
|
|
601
|
-
var _a;
|
|
602
602
|
if (row.isRadioDisabled) return;
|
|
603
603
|
if (!props.rowClickRadio) return;
|
|
604
604
|
if (!props.multiple) {
|
|
605
|
-
const rowIndex =
|
|
605
|
+
const rowIndex = state.tableData.findIndex(
|
|
606
606
|
(item) => item[props.keywords.value] === row[props.keywords.value]
|
|
607
607
|
);
|
|
608
608
|
if (rowIndex !== -1) {
|
|
@@ -628,7 +628,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
628
628
|
isDefaultSelectVal.value = true;
|
|
629
629
|
state.defaultSelectValue = [];
|
|
630
630
|
state.defaultValue = props.multiple ? [] : null;
|
|
631
|
-
modeValueId.value = props.multiple ? [] : 0;
|
|
631
|
+
modeValueId.value = props.multiple ? [] : void 0;
|
|
632
632
|
modeValueName.value = props.multiple ? [] : "";
|
|
633
633
|
};
|
|
634
634
|
if (!selectTable.value) {
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.164 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -23127,11 +23127,11 @@
|
|
|
23127
23127
|
apiAction: { default: "" },
|
|
23128
23128
|
queryParams: { default: () => ({}) },
|
|
23129
23129
|
responseFormatter: { type: Function, default: (res) => ({
|
|
23130
|
-
data: res.result.items || [],
|
|
23131
|
-
total: res.result.total || 0
|
|
23130
|
+
data: res.data.result.items || [],
|
|
23131
|
+
total: res.data.result.total || 0
|
|
23132
23132
|
}) }
|
|
23133
23133
|
}, {
|
|
23134
|
-
"id": { default: 0, required: false },
|
|
23134
|
+
"id": { default: void 0, required: false },
|
|
23135
23135
|
"idModifiers": {},
|
|
23136
23136
|
"name": { default: "", required: false },
|
|
23137
23137
|
"nameModifiers": {}
|
|
@@ -23217,6 +23217,7 @@
|
|
|
23217
23217
|
() => props.table.data,
|
|
23218
23218
|
(val) => {
|
|
23219
23219
|
var _a, _b;
|
|
23220
|
+
if (props.apiService) return;
|
|
23220
23221
|
if (props.useVirtual) {
|
|
23221
23222
|
saveDATA.value = val;
|
|
23222
23223
|
updateRenderData(scrollTopNum.value);
|
|
@@ -23641,11 +23642,10 @@
|
|
|
23641
23642
|
modeValueName.value = row[props.keywords.label];
|
|
23642
23643
|
};
|
|
23643
23644
|
const rowClick = async (row) => {
|
|
23644
|
-
var _a;
|
|
23645
23645
|
if (row.isRadioDisabled) return;
|
|
23646
23646
|
if (!props.rowClickRadio) return;
|
|
23647
23647
|
if (!props.multiple) {
|
|
23648
|
-
const rowIndex =
|
|
23648
|
+
const rowIndex = state.tableData.findIndex(
|
|
23649
23649
|
(item) => item[props.keywords.value] === row[props.keywords.value]
|
|
23650
23650
|
);
|
|
23651
23651
|
if (rowIndex !== -1) {
|
|
@@ -23671,7 +23671,7 @@
|
|
|
23671
23671
|
isDefaultSelectVal.value = true;
|
|
23672
23672
|
state.defaultSelectValue = [];
|
|
23673
23673
|
state.defaultValue = props.multiple ? [] : null;
|
|
23674
|
-
modeValueId.value = props.multiple ? [] : 0;
|
|
23674
|
+
modeValueId.value = props.multiple ? [] : void 0;
|
|
23675
23675
|
modeValueName.value = props.multiple ? [] : "";
|
|
23676
23676
|
};
|
|
23677
23677
|
if (!selectTable.value) {
|