mali-ui-plus 1.0.112 → 1.0.113
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/mali-ui-plus.common.js +28 -21
- package/lib/mali-ui-plus.umd.js +28 -21
- package/lib/mali-ui-plus.umd.min.js +14 -14
- package/package.json +1 -1
- package/types/index.d.ts +4 -1
- package/types/permission/index.d.ts +8 -0
|
@@ -10157,7 +10157,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10157
10157
|
"default": function() { return /* binding */ entry_lib; }
|
|
10158
10158
|
});
|
|
10159
10159
|
|
|
10160
|
-
// UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlImageSwiper, MlInput, MlInvoiceType, MlModal, MlNotData, MlNumberInput, MlPager, MlPasswordInput, MlPopover, MlProvincesPicker, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
|
|
10160
|
+
// UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliPermission, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlImageSwiper, MlInput, MlInvoiceType, MlModal, MlNotData, MlNumberInput, MlPager, MlPasswordInput, MlPopover, MlProvincesPicker, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
|
|
10161
10161
|
|
|
10162
10162
|
// NAMESPACE OBJECT: ./node_modules/vxe-table/es/all.js
|
|
10163
10163
|
var all_namespaceObject = {};
|
|
@@ -39474,9 +39474,27 @@ const MlRow_exports_ = MlRowvue_type_script_lang_ts_setup_true;
|
|
|
39474
39474
|
const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
39475
39475
|
|
|
39476
39476
|
/* harmony default export */ var MlCol = (MlCol_exports_);
|
|
39477
|
+
;// CONCATENATED MODULE: ./permission/index.ts
|
|
39478
|
+
|
|
39479
|
+
function checkPermission(params) {
|
|
39480
|
+
if (config_0.checkPermission) {
|
|
39481
|
+
return config_0.checkPermission(params);
|
|
39482
|
+
}
|
|
39483
|
+
return true;
|
|
39484
|
+
}
|
|
39485
|
+
const MaliPermission = {
|
|
39486
|
+
checkPermission,
|
|
39487
|
+
checkPermissionByCode(code) {
|
|
39488
|
+
return checkPermission({
|
|
39489
|
+
code
|
|
39490
|
+
});
|
|
39491
|
+
}
|
|
39492
|
+
};
|
|
39493
|
+
/* harmony default export */ var permission = (MaliPermission);
|
|
39477
39494
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-button/MlButton.vue?vue&type=script&lang=ts&setup=true
|
|
39478
39495
|
|
|
39479
39496
|
|
|
39497
|
+
|
|
39480
39498
|
/* harmony default export */ var MlButtonvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
39481
39499
|
__name: 'MlButton',
|
|
39482
39500
|
props: {
|
|
@@ -39507,7 +39525,8 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39507
39525
|
};
|
|
39508
39526
|
return (_ctx, _cache) => {
|
|
39509
39527
|
const _component_vxe_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-button");
|
|
39510
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_vxe_button, {
|
|
39528
|
+
return !__props.permissionCode || (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(permission).checkPermissionByCode(__props.permissionCode) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_vxe_button, {
|
|
39529
|
+
key: 0,
|
|
39511
39530
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-button", [__props.size ? `size-${__props.size}` : '']]),
|
|
39512
39531
|
type: __props.type,
|
|
39513
39532
|
status: __props.status,
|
|
@@ -39525,7 +39544,7 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39525
39544
|
name: "icon",
|
|
39526
39545
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon")]),
|
|
39527
39546
|
key: "0"
|
|
39528
|
-
} : undefined]), 1032, ["class", "type", "status", "round", "icon", "size", "circle", "loading", "disabled"]);
|
|
39547
|
+
} : undefined]), 1032, ["class", "type", "status", "round", "icon", "size", "circle", "loading", "disabled"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true);
|
|
39529
39548
|
};
|
|
39530
39549
|
}
|
|
39531
39550
|
}));
|
|
@@ -73396,19 +73415,6 @@ const MaliClipboard = {
|
|
|
73396
73415
|
}
|
|
73397
73416
|
};
|
|
73398
73417
|
/* harmony default export */ var clipboard = (MaliClipboard);
|
|
73399
|
-
;// CONCATENATED MODULE: ./utils/permission.ts
|
|
73400
|
-
|
|
73401
|
-
function checkPermission(params) {
|
|
73402
|
-
if (config_0.checkPermission) {
|
|
73403
|
-
return config_0.checkPermission(params);
|
|
73404
|
-
}
|
|
73405
|
-
return true;
|
|
73406
|
-
}
|
|
73407
|
-
function checkPermissionByCode(code) {
|
|
73408
|
-
return checkPermission({
|
|
73409
|
-
code
|
|
73410
|
-
});
|
|
73411
|
-
}
|
|
73412
73418
|
;// CONCATENATED MODULE: ./table/renderer/default.tsx
|
|
73413
73419
|
|
|
73414
73420
|
|
|
@@ -73429,7 +73435,7 @@ VXETable.renderer.mixin({
|
|
|
73429
73435
|
props = {},
|
|
73430
73436
|
events
|
|
73431
73437
|
} = item;
|
|
73432
|
-
return !props.permissionCode || checkPermission({
|
|
73438
|
+
return !props.permissionCode || permission.checkPermission({
|
|
73433
73439
|
code: props.permissionCode
|
|
73434
73440
|
}) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-button"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(props, {
|
|
73435
73441
|
"onClick": () => {
|
|
@@ -74241,7 +74247,7 @@ VXETable.renderer.mixin({
|
|
|
74241
74247
|
props = {},
|
|
74242
74248
|
events
|
|
74243
74249
|
} = item;
|
|
74244
|
-
return !props.permissionCode || checkPermission({
|
|
74250
|
+
return !props.permissionCode || permission.checkPermission({
|
|
74245
74251
|
code: props.permissionCode
|
|
74246
74252
|
}) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-button"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(props, {
|
|
74247
74253
|
"onClick": () => {
|
|
@@ -75328,7 +75334,7 @@ xe_utils_default().each(componentMaps, (component, name) => {
|
|
|
75328
75334
|
function useOther(app) {
|
|
75329
75335
|
app.use(index_esm);
|
|
75330
75336
|
app.config.globalProperties.$modal = index_esm.modal;
|
|
75331
|
-
app.config.globalProperties.$permission = checkPermissionByCode;
|
|
75337
|
+
app.config.globalProperties.$permission = permission.checkPermissionByCode;
|
|
75332
75338
|
}
|
|
75333
75339
|
function index_install(app) {
|
|
75334
75340
|
useOther(app);
|
|
@@ -75339,7 +75345,7 @@ function index_config(options) {
|
|
|
75339
75345
|
return config_0;
|
|
75340
75346
|
}
|
|
75341
75347
|
const MaliUI = {
|
|
75342
|
-
version: "1.0.
|
|
75348
|
+
version: "1.0.112",
|
|
75343
75349
|
install: index_install,
|
|
75344
75350
|
config: index_config,
|
|
75345
75351
|
renderer: index_esm.renderer,
|
|
@@ -75349,7 +75355,8 @@ const MaliUI = {
|
|
|
75349
75355
|
MaliModal: modal_modal_0,
|
|
75350
75356
|
MaliNotify: modal_notify,
|
|
75351
75357
|
MaliLoading: modal_loading,
|
|
75352
|
-
MaliStorage: storage
|
|
75358
|
+
MaliStorage: storage,
|
|
75359
|
+
MaliPermission: permission
|
|
75353
75360
|
};
|
|
75354
75361
|
|
|
75355
75362
|
index_components.forEach(item => {
|
package/lib/mali-ui-plus.umd.js
CHANGED
|
@@ -10167,7 +10167,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10167
10167
|
"default": function() { return /* binding */ entry_lib; }
|
|
10168
10168
|
});
|
|
10169
10169
|
|
|
10170
|
-
// UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlImageSwiper, MlInput, MlInvoiceType, MlModal, MlNotData, MlNumberInput, MlPager, MlPasswordInput, MlPopover, MlProvincesPicker, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
|
|
10170
|
+
// UNUSED EXPORTS: MaliClipboard, MaliLoading, MaliModal, MaliNotify, MaliPermission, MaliStorage, MaliToast, MaliUI, MaliUtils, MlAmountInput, MlAmountText, MlApprovalType, MlButton, MlCalendar, MlCard, MlCarousel, MlCarouselItem, MlCascader, MlCharts, MlCheckbox, MlCheckboxGroup, MlCol, MlColorPicker, MlDatePicker, MlDateRangePicker, MlDateTimePicker, MlDatetimePicker, MlDictType, MlDrawer, MlEditor, MlForm, MlGrid, MlIcon, MlImage, MlImageSwiper, MlInput, MlInvoiceType, MlModal, MlNotData, MlNumberInput, MlPager, MlPasswordInput, MlPopover, MlProvincesPicker, MlQuarterPicker, MlRadio, MlRadioButton, MlRadioGroup, MlRangePicker, MlRow, MlSearchInput, MlSelect, MlSwitch, MlTabPane, MlTable, MlTabs, MlText, MlTextarea, MlTooltip, MlTree, MlUpload, MlWeekPicker, components
|
|
10171
10171
|
|
|
10172
10172
|
// NAMESPACE OBJECT: ./node_modules/vxe-table/es/all.js
|
|
10173
10173
|
var all_namespaceObject = {};
|
|
@@ -39484,9 +39484,27 @@ const MlRow_exports_ = MlRowvue_type_script_lang_ts_setup_true;
|
|
|
39484
39484
|
const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
39485
39485
|
|
|
39486
39486
|
/* harmony default export */ var MlCol = (MlCol_exports_);
|
|
39487
|
+
;// CONCATENATED MODULE: ./permission/index.ts
|
|
39488
|
+
|
|
39489
|
+
function checkPermission(params) {
|
|
39490
|
+
if (config_0.checkPermission) {
|
|
39491
|
+
return config_0.checkPermission(params);
|
|
39492
|
+
}
|
|
39493
|
+
return true;
|
|
39494
|
+
}
|
|
39495
|
+
const MaliPermission = {
|
|
39496
|
+
checkPermission,
|
|
39497
|
+
checkPermissionByCode(code) {
|
|
39498
|
+
return checkPermission({
|
|
39499
|
+
code
|
|
39500
|
+
});
|
|
39501
|
+
}
|
|
39502
|
+
};
|
|
39503
|
+
/* harmony default export */ var permission = (MaliPermission);
|
|
39487
39504
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./components/ml-button/MlButton.vue?vue&type=script&lang=ts&setup=true
|
|
39488
39505
|
|
|
39489
39506
|
|
|
39507
|
+
|
|
39490
39508
|
/* harmony default export */ var MlButtonvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
39491
39509
|
__name: 'MlButton',
|
|
39492
39510
|
props: {
|
|
@@ -39517,7 +39535,8 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39517
39535
|
};
|
|
39518
39536
|
return (_ctx, _cache) => {
|
|
39519
39537
|
const _component_vxe_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-button");
|
|
39520
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_vxe_button, {
|
|
39538
|
+
return !__props.permissionCode || (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(permission).checkPermissionByCode(__props.permissionCode) ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)(_component_vxe_button, {
|
|
39539
|
+
key: 0,
|
|
39521
39540
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-button", [__props.size ? `size-${__props.size}` : '']]),
|
|
39522
39541
|
type: __props.type,
|
|
39523
39542
|
status: __props.status,
|
|
@@ -39535,7 +39554,7 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39535
39554
|
name: "icon",
|
|
39536
39555
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon")]),
|
|
39537
39556
|
key: "0"
|
|
39538
|
-
} : undefined]), 1032, ["class", "type", "status", "round", "icon", "size", "circle", "loading", "disabled"]);
|
|
39557
|
+
} : undefined]), 1032, ["class", "type", "status", "round", "icon", "size", "circle", "loading", "disabled"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true);
|
|
39539
39558
|
};
|
|
39540
39559
|
}
|
|
39541
39560
|
}));
|
|
@@ -73406,19 +73425,6 @@ const MaliClipboard = {
|
|
|
73406
73425
|
}
|
|
73407
73426
|
};
|
|
73408
73427
|
/* harmony default export */ var clipboard = (MaliClipboard);
|
|
73409
|
-
;// CONCATENATED MODULE: ./utils/permission.ts
|
|
73410
|
-
|
|
73411
|
-
function checkPermission(params) {
|
|
73412
|
-
if (config_0.checkPermission) {
|
|
73413
|
-
return config_0.checkPermission(params);
|
|
73414
|
-
}
|
|
73415
|
-
return true;
|
|
73416
|
-
}
|
|
73417
|
-
function checkPermissionByCode(code) {
|
|
73418
|
-
return checkPermission({
|
|
73419
|
-
code
|
|
73420
|
-
});
|
|
73421
|
-
}
|
|
73422
73428
|
;// CONCATENATED MODULE: ./table/renderer/default.tsx
|
|
73423
73429
|
|
|
73424
73430
|
|
|
@@ -73439,7 +73445,7 @@ VXETable.renderer.mixin({
|
|
|
73439
73445
|
props = {},
|
|
73440
73446
|
events
|
|
73441
73447
|
} = item;
|
|
73442
|
-
return !props.permissionCode || checkPermission({
|
|
73448
|
+
return !props.permissionCode || permission.checkPermission({
|
|
73443
73449
|
code: props.permissionCode
|
|
73444
73450
|
}) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-button"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(props, {
|
|
73445
73451
|
"onClick": () => {
|
|
@@ -74251,7 +74257,7 @@ VXETable.renderer.mixin({
|
|
|
74251
74257
|
props = {},
|
|
74252
74258
|
events
|
|
74253
74259
|
} = item;
|
|
74254
|
-
return !props.permissionCode || checkPermission({
|
|
74260
|
+
return !props.permissionCode || permission.checkPermission({
|
|
74255
74261
|
code: props.permissionCode
|
|
74256
74262
|
}) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("ml-button"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.mergeProps)(props, {
|
|
74257
74263
|
"onClick": () => {
|
|
@@ -75338,7 +75344,7 @@ xe_utils_default().each(componentMaps, (component, name) => {
|
|
|
75338
75344
|
function useOther(app) {
|
|
75339
75345
|
app.use(index_esm);
|
|
75340
75346
|
app.config.globalProperties.$modal = index_esm.modal;
|
|
75341
|
-
app.config.globalProperties.$permission = checkPermissionByCode;
|
|
75347
|
+
app.config.globalProperties.$permission = permission.checkPermissionByCode;
|
|
75342
75348
|
}
|
|
75343
75349
|
function index_install(app) {
|
|
75344
75350
|
useOther(app);
|
|
@@ -75349,7 +75355,7 @@ function index_config(options) {
|
|
|
75349
75355
|
return config_0;
|
|
75350
75356
|
}
|
|
75351
75357
|
const MaliUI = {
|
|
75352
|
-
version: "1.0.
|
|
75358
|
+
version: "1.0.112",
|
|
75353
75359
|
install: index_install,
|
|
75354
75360
|
config: index_config,
|
|
75355
75361
|
renderer: index_esm.renderer,
|
|
@@ -75359,7 +75365,8 @@ const MaliUI = {
|
|
|
75359
75365
|
MaliModal: modal_modal_0,
|
|
75360
75366
|
MaliNotify: modal_notify,
|
|
75361
75367
|
MaliLoading: modal_loading,
|
|
75362
|
-
MaliStorage: storage
|
|
75368
|
+
MaliStorage: storage,
|
|
75369
|
+
MaliPermission: permission
|
|
75363
75370
|
};
|
|
75364
75371
|
|
|
75365
75372
|
index_components.forEach(item => {
|