cnhis-design-vue 3.1.18-beta.3 → 3.1.18-beta.4
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.
|
@@ -1247,9 +1247,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1247
1247
|
textColorTextHoverPrimary: string;
|
|
1248
1248
|
textColorTextPressedPrimary: string;
|
|
1249
1249
|
textColorTextFocusPrimary: string;
|
|
1250
|
-
textColorTextDisabledPrimary: string;
|
|
1251
|
-
* tsx渲染表格
|
|
1252
|
-
*/
|
|
1250
|
+
textColorTextDisabledPrimary: string;
|
|
1253
1251
|
textColorGhostPrimary: string;
|
|
1254
1252
|
textColorGhostHoverPrimary: string;
|
|
1255
1253
|
textColorGhostPressedPrimary: string;
|
|
@@ -1328,7 +1326,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1328
1326
|
textColorTextPressedWarning: string;
|
|
1329
1327
|
textColorTextFocusWarning: string;
|
|
1330
1328
|
textColorTextDisabledWarning: string;
|
|
1331
|
-
/** string */
|
|
1332
1329
|
textColorGhostWarning: string;
|
|
1333
1330
|
textColorGhostHoverWarning: string;
|
|
1334
1331
|
textColorGhostPressedWarning: string;
|
|
@@ -1318,8 +1318,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1318
1318
|
};
|
|
1319
1319
|
const handlerClickRow = (data) => {
|
|
1320
1320
|
var _a;
|
|
1321
|
-
|
|
1321
|
+
let {
|
|
1322
|
+
row,
|
|
1323
|
+
$event = {},
|
|
1324
|
+
$rowIndex
|
|
1325
|
+
} = data;
|
|
1326
|
+
if (((_a = attr.checkboxConfig) == null ? void 0 : _a.trigger) === "default") {
|
|
1327
|
+
emit("handlerClickRow", row, $rowIndex);
|
|
1322
1328
|
return false;
|
|
1329
|
+
}
|
|
1323
1330
|
if (isScanMultiTable.value || props.isInlineOperating)
|
|
1324
1331
|
return false;
|
|
1325
1332
|
if (XEUtils.has(data == null ? void 0 : data.row, GROUP_TITLE_KEY))
|
|
@@ -1328,11 +1335,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1328
1335
|
return false;
|
|
1329
1336
|
let table = xGrid.value;
|
|
1330
1337
|
isAboutNestTable.value && emit("resetNestLastClickTable", table);
|
|
1331
|
-
let {
|
|
1332
|
-
row,
|
|
1333
|
-
$event = {},
|
|
1334
|
-
$rowIndex
|
|
1335
|
-
} = data;
|
|
1336
1338
|
let {
|
|
1337
1339
|
className,
|
|
1338
1340
|
tagName
|
|
@@ -36,15 +36,15 @@ const _hoisted_18 = /* @__PURE__ */ createElementVNode("span", {
|
|
|
36
36
|
const _hoisted_19 = /* @__PURE__ */ createElementVNode("span", null, "\u62D6\u62FD\u8C03\u6574\u987A\u5E8F", -1);
|
|
37
37
|
const _hoisted_20 = /* @__PURE__ */ createElementVNode("span", { style: { "width": "14px", "margin-right": "6px" } }, null, -1);
|
|
38
38
|
const _hoisted_21 = { class: "width-show" };
|
|
39
|
-
const _hoisted_22 = {
|
|
40
|
-
const _hoisted_23 = {
|
|
39
|
+
const _hoisted_22 = {
|
|
41
40
|
key: 0,
|
|
42
41
|
class: "width-show"
|
|
43
42
|
};
|
|
44
|
-
const
|
|
43
|
+
const _hoisted_23 = {
|
|
45
44
|
key: 1,
|
|
46
45
|
class: "width-show"
|
|
47
46
|
};
|
|
47
|
+
const _hoisted_24 = { class: "width-show" };
|
|
48
48
|
const _hoisted_25 = { class: "width-showed" };
|
|
49
49
|
const _hoisted_26 = { class: "width-word" };
|
|
50
50
|
const _hoisted_27 = { class: "width-showed" };
|
|
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
columnName: "name",
|
|
87
87
|
isShow: "show",
|
|
88
88
|
isSort: "sort",
|
|
89
|
-
isFixed: "
|
|
89
|
+
isFixed: "fixedWay",
|
|
90
90
|
colWidth: "columnWidth"
|
|
91
91
|
};
|
|
92
92
|
const selectOptions = [
|
|
@@ -110,11 +110,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
110
110
|
result.forEach((item) => {
|
|
111
111
|
if (props.type == "old") {
|
|
112
112
|
if (Reflect.has(item, key)) {
|
|
113
|
-
|
|
113
|
+
if (key == "isFixed") {
|
|
114
|
+
item["fixedWay"] = item[key] == 1 ? "LEFT" : item[key] == 2 ? "RIGHT" : "NONE";
|
|
115
|
+
} else {
|
|
116
|
+
item[fieldsMapping[key]] = item[key];
|
|
117
|
+
}
|
|
114
118
|
Reflect.deleteProperty(item, key);
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
|
-
item.columnWidth =
|
|
121
|
+
item.columnWidth = +item.columnWidth;
|
|
122
|
+
if (!Reflect.has(item, "alias")) {
|
|
123
|
+
item.alias = "";
|
|
124
|
+
}
|
|
118
125
|
});
|
|
119
126
|
});
|
|
120
127
|
return result;
|
|
@@ -151,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
151
158
|
visible: item.show,
|
|
152
159
|
sequence: i,
|
|
153
160
|
sortable: item.sort,
|
|
154
|
-
title: item.alias
|
|
161
|
+
title: item.alias,
|
|
155
162
|
fixed: item.fixedWay,
|
|
156
163
|
minWidth: item.columnWidth,
|
|
157
164
|
...props.isEdit ? {
|
|
@@ -317,18 +324,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
317
324
|
[vShow, element.id != "0001"]
|
|
318
325
|
])
|
|
319
326
|
]),
|
|
320
|
-
createCommentVNode(" \u6392\u5E8F "),
|
|
321
|
-
createElementVNode("span", _hoisted_22, [
|
|
322
|
-
withDirectives(createVNode(unref(NCheckbox), {
|
|
323
|
-
checked: element.sort,
|
|
324
|
-
"onUpdate:checked": ($event) => element.sort = $event,
|
|
325
|
-
disabled: element.notParticipatingSort == 1
|
|
326
|
-
}, null, 8, ["checked", "onUpdate:checked", "disabled"]), [
|
|
327
|
-
[vShow, element.id != "0001"]
|
|
328
|
-
])
|
|
329
|
-
]),
|
|
330
327
|
createCommentVNode(" \u662F\u5426\u53EF\u7F16\u8F91 "),
|
|
331
|
-
__props.isEdit ? (openBlock(), createElementBlock("span",
|
|
328
|
+
__props.isEdit ? (openBlock(), createElementBlock("span", _hoisted_22, [
|
|
332
329
|
withDirectives(createVNode(unref(NCheckbox), {
|
|
333
330
|
checked: element.editable,
|
|
334
331
|
"onUpdate:checked": ($event) => element.editable = $event
|
|
@@ -337,7 +334,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
337
334
|
])
|
|
338
335
|
])) : createCommentVNode("v-if", true),
|
|
339
336
|
createCommentVNode(" \u662F\u5426\u5FC5\u586B "),
|
|
340
|
-
__props.isEdit ? (openBlock(), createElementBlock("span",
|
|
337
|
+
__props.isEdit ? (openBlock(), createElementBlock("span", _hoisted_23, [
|
|
341
338
|
withDirectives(createVNode(unref(NCheckbox), {
|
|
342
339
|
checked: element.required,
|
|
343
340
|
"onUpdate:checked": ($event) => element.required = $event
|
|
@@ -345,6 +342,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
345
342
|
[vShow, element.id != "0001"]
|
|
346
343
|
])
|
|
347
344
|
])) : createCommentVNode("v-if", true),
|
|
345
|
+
createCommentVNode(" \u6392\u5E8F "),
|
|
346
|
+
createElementVNode("span", _hoisted_24, [
|
|
347
|
+
withDirectives(createVNode(unref(NCheckbox), {
|
|
348
|
+
checked: element.sort,
|
|
349
|
+
"onUpdate:checked": ($event) => element.sort = $event,
|
|
350
|
+
disabled: element.notParticipatingSort == 1
|
|
351
|
+
}, null, 8, ["checked", "onUpdate:checked", "disabled"]), [
|
|
352
|
+
[vShow, element.id != "0001"]
|
|
353
|
+
])
|
|
354
|
+
]),
|
|
348
355
|
createCommentVNode(" \u56FA\u5B9A "),
|
|
349
356
|
createElementVNode("span", _hoisted_25, [
|
|
350
357
|
createVNode(unref(NSelect), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.18-beta.
|
|
3
|
+
"version": "3.1.18-beta.4",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"iOS 7",
|
|
66
66
|
"last 3 iOS versions"
|
|
67
67
|
],
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "74f97589ab3118a2398496092cc07d6a47e2aa6e"
|
|
69
69
|
}
|