@kengic/vue 0.25.2-beta.1 → 0.25.2-beta.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +11 -12
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2437,7 +2437,7 @@ const emptyIcon = {
|
|
2437
2437
|
...t.data
|
2438
2438
|
}, a);
|
2439
2439
|
}
|
2440
|
-
}), version = "0.25.2-beta.
|
2440
|
+
}), version = "0.25.2-beta.2";
|
2441
2441
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2442
2442
|
const freeGlobal$1 = freeGlobal;
|
2443
2443
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -12150,26 +12150,25 @@ function transformVarGridConfig(e) {
|
|
12150
12150
|
if (!e)
|
12151
12151
|
return null;
|
12152
12152
|
const t = KG__VAR_GRID_CONFIG__OPERATION_ON_ROW_CLICK.A, a = KG__VAR_GRID_CONFIG__OPERATION_ON_ROW_CLICK.B, r = KG__VAR_GRID_CONFIG__OPERATION_ON_ROW_CLICK.C;
|
12153
|
-
isNil(e.available_flg) && (e.available_flg = 1), isNil(e.aut_load_flg) && (e.aut_load_flg = 0), isNil(e.mult_flg) && (e.mult_flg = 0), isNil(e.show_check_column_flg) && (e.show_check_column_flg = 0), isNil(e.check_first_row_after_retrieve) && (e.check_first_row_after_retrieve = 0), isNil(e.show_bottom_border_flg) && (e.show_bottom_border_flg = 0), isNil(e.show_bottom_left_flg) && (e.show_bottom_left_flg = 1), isNil(e.show_bottom_right_flg) && (e.show_bottom_right_flg = 1), isNil(e.operation_on_row_click) && (e.operation_on_row_click =
|
12154
|
-
|
12155
|
-
|
12156
|
-
|
12157
|
-
}), e.operation_on_row_click = t);
|
12153
|
+
isNil(e.available_flg) && (e.available_flg = 1), isNil(e.aut_load_flg) && (e.aut_load_flg = 0), isNil(e.mult_flg) && (e.mult_flg = 0), isNil(e.show_check_column_flg) && (e.show_check_column_flg = 0), isNil(e.check_first_row_after_retrieve) && (e.check_first_row_after_retrieve = 0), isNil(e.show_bottom_border_flg) && (e.show_bottom_border_flg = 0), isNil(e.show_bottom_left_flg) && (e.show_bottom_left_flg = 1), isNil(e.show_bottom_right_flg) && (e.show_bottom_right_flg = 1), isNil(e.operation_on_row_click) && (e.operation_on_row_click = a), isNil(e.convert_sort_field_to_under_score_flg) && (e.convert_sort_field_to_under_score_flg = 0), isNil(e.id_clm) && (e.id_clm = "id"), isNil(e.pg_size_opts) && (e.pg_size_opts = DEFAULT_PAGE_SIZES), isNil(e.pg_size_opt) && (e.pg_size_opt = 10), isNil(e.expand_accordion_flg) && (e.expand_accordion_flg = 1), [t, a, r].includes(Number(e.operation_on_row_click)) || (____ERROR____(
|
12154
|
+
`| \u6570\u636E\u6709\u8BEF | var_grid_config.operation_on_row_click \u4E3A\u975E\u6CD5\u503C\u300C${e.operation_on_row_click}\u300D, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${1}. \u5408\u6CD5\u7684\u503C\u4E3A ${t}, ${a}, ${r}.`,
|
12155
|
+
{ VarGridConfig: e }
|
12156
|
+
), e.operation_on_row_click = a);
|
12158
12157
|
try {
|
12159
|
-
let
|
12158
|
+
let n = JSON.parse(e.pg_size_opts);
|
12160
12159
|
switch (!0) {
|
12161
|
-
case !isArray$1(
|
12162
|
-
case
|
12163
|
-
case
|
12160
|
+
case !isArray$1(n):
|
12161
|
+
case n.length < 1:
|
12162
|
+
case n.some((i) => Number.isNaN(Number(i)) || Math.floor(Number(i)) <= 0): {
|
12164
12163
|
____ERROR____(`| \u6570\u636E\u6709\u8BEF | var_grid_config.pg_size_opts \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZES}.`, {
|
12165
12164
|
VarGridConfig: e
|
12166
12165
|
}), e.pg_size_opts = DEFAULT_PAGE_SIZES;
|
12167
12166
|
break;
|
12168
12167
|
}
|
12169
12168
|
default:
|
12170
|
-
switch (
|
12169
|
+
switch (n = sortBy$1(uniq(n.map((i) => Math.floor(i)))), e.pg_size_opts = JSON.stringify(n), e.pg_size_opt || (e.pg_size_opt = n[0]), e.pg_size_opt = Number(e.pg_size_opt), !0) {
|
12171
12170
|
case Number.isNaN(e.pg_size_opt):
|
12172
|
-
case !
|
12171
|
+
case !n.includes(e.pg_size_opt): {
|
12173
12172
|
____ERROR____(`| \u6570\u636E\u6709\u8BEF | var_grid_config.pg_size_opt \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZE}.`, { VarGridConfig: e }), e.pg_size_opt = DEFAULT_PAGE_SIZE;
|
12174
12173
|
break;
|
12175
12174
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kengic/vue",
|
3
|
-
"version": "0.25.2-beta.
|
3
|
+
"version": "0.25.2-beta.2",
|
4
4
|
"scripts": {
|
5
5
|
"build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
|
6
6
|
"build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
|