mali-ui-plus 1.0.111 → 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 +91 -24
- package/lib/mali-ui-plus.umd.js +91 -24
- package/lib/mali-ui-plus.umd.min.js +14 -14
- package/package.json +1 -1
- package/types/index.d.ts +8 -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, 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 = {};
|
|
@@ -39326,6 +39326,10 @@ const globalStore = {
|
|
|
39326
39326
|
// 颜色选择器
|
|
39327
39327
|
colorPicker: {
|
|
39328
39328
|
predefineColors: ['#F0F2F5', '#246BFD', '#00D35C', '#FF5064', '#FF9C00', '#9747FF', '#5e7092']
|
|
39329
|
+
},
|
|
39330
|
+
notData: {
|
|
39331
|
+
// emptyUrl: '',
|
|
39332
|
+
emptyText: '暂无记录'
|
|
39329
39333
|
}
|
|
39330
39334
|
};
|
|
39331
39335
|
/* harmony default export */ var config_0 = (globalStore);
|
|
@@ -39470,9 +39474,27 @@ const MlRow_exports_ = MlRowvue_type_script_lang_ts_setup_true;
|
|
|
39470
39474
|
const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
39471
39475
|
|
|
39472
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);
|
|
39473
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
|
|
39474
39495
|
|
|
39475
39496
|
|
|
39497
|
+
|
|
39476
39498
|
/* harmony default export */ var MlButtonvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
39477
39499
|
__name: 'MlButton',
|
|
39478
39500
|
props: {
|
|
@@ -39503,7 +39525,8 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39503
39525
|
};
|
|
39504
39526
|
return (_ctx, _cache) => {
|
|
39505
39527
|
const _component_vxe_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-button");
|
|
39506
|
-
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,
|
|
39507
39530
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-button", [__props.size ? `size-${__props.size}` : '']]),
|
|
39508
39531
|
type: __props.type,
|
|
39509
39532
|
status: __props.status,
|
|
@@ -39521,7 +39544,7 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39521
39544
|
name: "icon",
|
|
39522
39545
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon")]),
|
|
39523
39546
|
key: "0"
|
|
39524
|
-
} : 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);
|
|
39525
39548
|
};
|
|
39526
39549
|
}
|
|
39527
39550
|
}));
|
|
@@ -72911,6 +72934,62 @@ const MlCalendarvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
72911
72934
|
const MlCalendar_exports_ = MlCalendarvue_type_script_lang_ts_setup_true;
|
|
72912
72935
|
|
|
72913
72936
|
/* harmony default export */ var MlCalendar = (MlCalendar_exports_);
|
|
72937
|
+
;// 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-not-data/MlNotData.vue?vue&type=script&lang=ts&setup=true
|
|
72938
|
+
|
|
72939
|
+
|
|
72940
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
72941
|
+
class: "ml-not-data"
|
|
72942
|
+
};
|
|
72943
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
72944
|
+
key: 0,
|
|
72945
|
+
class: "ml-not-data-image"
|
|
72946
|
+
};
|
|
72947
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_3 = ["src"];
|
|
72948
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_4 = {
|
|
72949
|
+
key: 1,
|
|
72950
|
+
class: "ml-not-data-text"
|
|
72951
|
+
};
|
|
72952
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
72953
|
+
key: 2,
|
|
72954
|
+
class: "ml-not-data-hint"
|
|
72955
|
+
};
|
|
72956
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_6 = {
|
|
72957
|
+
class: "ml-not-data-contnet"
|
|
72958
|
+
};
|
|
72959
|
+
|
|
72960
|
+
|
|
72961
|
+
/* harmony default export */ var MlNotDatavue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
72962
|
+
__name: 'MlNotData',
|
|
72963
|
+
props: {
|
|
72964
|
+
emptyUrl: String,
|
|
72965
|
+
emptyText: String,
|
|
72966
|
+
emptyHint: String
|
|
72967
|
+
},
|
|
72968
|
+
setup(__props) {
|
|
72969
|
+
const props = __props;
|
|
72970
|
+
const emptyImgUrl = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
72971
|
+
return props.emptyUrl || config_0.notData?.emptyUrl;
|
|
72972
|
+
});
|
|
72973
|
+
const emptyContentText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
72974
|
+
return props.emptyText || config_0.notData?.emptyText;
|
|
72975
|
+
});
|
|
72976
|
+
return (_ctx, _cache) => {
|
|
72977
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyImgUrl) || _ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
72978
|
+
class: "ml-not-data-image-icon",
|
|
72979
|
+
src: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyImgUrl)
|
|
72980
|
+
}, null, 8, MlNotDatavue_type_script_lang_ts_setup_true_hoisted_3)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyContentText) || _ctx.$slots.text ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "text", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyContentText)), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.emptyHint || _ctx.$slots.hint ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "hint", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.emptyHint), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_6, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "content")])])]);
|
|
72981
|
+
};
|
|
72982
|
+
}
|
|
72983
|
+
}));
|
|
72984
|
+
;// CONCATENATED MODULE: ./components/ml-not-data/MlNotData.vue?vue&type=script&lang=ts&setup=true
|
|
72985
|
+
|
|
72986
|
+
;// CONCATENATED MODULE: ./components/ml-not-data/MlNotData.vue
|
|
72987
|
+
|
|
72988
|
+
|
|
72989
|
+
|
|
72990
|
+
const MlNotData_exports_ = MlNotDatavue_type_script_lang_ts_setup_true;
|
|
72991
|
+
|
|
72992
|
+
/* harmony default export */ var MlNotData = (MlNotData_exports_);
|
|
72914
72993
|
;// 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-image/MlImage.vue?vue&type=script&lang=ts&setup=true
|
|
72915
72994
|
|
|
72916
72995
|
|
|
@@ -73336,19 +73415,6 @@ const MaliClipboard = {
|
|
|
73336
73415
|
}
|
|
73337
73416
|
};
|
|
73338
73417
|
/* harmony default export */ var clipboard = (MaliClipboard);
|
|
73339
|
-
;// CONCATENATED MODULE: ./utils/permission.ts
|
|
73340
|
-
|
|
73341
|
-
function checkPermission(params) {
|
|
73342
|
-
if (config_0.checkPermission) {
|
|
73343
|
-
return config_0.checkPermission(params);
|
|
73344
|
-
}
|
|
73345
|
-
return true;
|
|
73346
|
-
}
|
|
73347
|
-
function checkPermissionByCode(code) {
|
|
73348
|
-
return checkPermission({
|
|
73349
|
-
code
|
|
73350
|
-
});
|
|
73351
|
-
}
|
|
73352
73418
|
;// CONCATENATED MODULE: ./table/renderer/default.tsx
|
|
73353
73419
|
|
|
73354
73420
|
|
|
@@ -73369,7 +73435,7 @@ VXETable.renderer.mixin({
|
|
|
73369
73435
|
props = {},
|
|
73370
73436
|
events
|
|
73371
73437
|
} = item;
|
|
73372
|
-
return !props.permissionCode || checkPermission({
|
|
73438
|
+
return !props.permissionCode || permission.checkPermission({
|
|
73373
73439
|
code: props.permissionCode
|
|
73374
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, {
|
|
73375
73441
|
"onClick": () => {
|
|
@@ -74181,7 +74247,7 @@ VXETable.renderer.mixin({
|
|
|
74181
74247
|
props = {},
|
|
74182
74248
|
events
|
|
74183
74249
|
} = item;
|
|
74184
|
-
return !props.permissionCode || checkPermission({
|
|
74250
|
+
return !props.permissionCode || permission.checkPermission({
|
|
74185
74251
|
code: props.permissionCode
|
|
74186
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, {
|
|
74187
74253
|
"onClick": () => {
|
|
@@ -75120,7 +75186,7 @@ VXETable.setup({
|
|
|
75120
75186
|
|
|
75121
75187
|
|
|
75122
75188
|
|
|
75123
|
-
|
|
75189
|
+
|
|
75124
75190
|
|
|
75125
75191
|
|
|
75126
75192
|
|
|
@@ -75193,7 +75259,7 @@ const index_MlTabPane = MlTabPane;
|
|
|
75193
75259
|
const index_MlCard = MlCard;
|
|
75194
75260
|
const index_MlEditor = MlEditor;
|
|
75195
75261
|
const index_MlCalendar = MlCalendar;
|
|
75196
|
-
|
|
75262
|
+
const index_MlNotData = MlNotData;
|
|
75197
75263
|
const index_MlImage = MlImage;
|
|
75198
75264
|
const index_MlCharts = MlCharts;
|
|
75199
75265
|
const index_MlCarousel = MlCarousel;
|
|
@@ -75253,7 +75319,7 @@ const componentMaps = {
|
|
|
75253
75319
|
MlCard: index_MlCard,
|
|
75254
75320
|
MlEditor: index_MlEditor,
|
|
75255
75321
|
MlCalendar: index_MlCalendar,
|
|
75256
|
-
|
|
75322
|
+
MlNotData: index_MlNotData,
|
|
75257
75323
|
MlImage: index_MlImage,
|
|
75258
75324
|
MlCharts: index_MlCharts,
|
|
75259
75325
|
MlCarousel: index_MlCarousel,
|
|
@@ -75268,7 +75334,7 @@ xe_utils_default().each(componentMaps, (component, name) => {
|
|
|
75268
75334
|
function useOther(app) {
|
|
75269
75335
|
app.use(index_esm);
|
|
75270
75336
|
app.config.globalProperties.$modal = index_esm.modal;
|
|
75271
|
-
app.config.globalProperties.$permission = checkPermissionByCode;
|
|
75337
|
+
app.config.globalProperties.$permission = permission.checkPermissionByCode;
|
|
75272
75338
|
}
|
|
75273
75339
|
function index_install(app) {
|
|
75274
75340
|
useOther(app);
|
|
@@ -75279,7 +75345,7 @@ function index_config(options) {
|
|
|
75279
75345
|
return config_0;
|
|
75280
75346
|
}
|
|
75281
75347
|
const MaliUI = {
|
|
75282
|
-
version: "1.0.
|
|
75348
|
+
version: "1.0.112",
|
|
75283
75349
|
install: index_install,
|
|
75284
75350
|
config: index_config,
|
|
75285
75351
|
renderer: index_esm.renderer,
|
|
@@ -75289,7 +75355,8 @@ const MaliUI = {
|
|
|
75289
75355
|
MaliModal: modal_modal_0,
|
|
75290
75356
|
MaliNotify: modal_notify,
|
|
75291
75357
|
MaliLoading: modal_loading,
|
|
75292
|
-
MaliStorage: storage
|
|
75358
|
+
MaliStorage: storage,
|
|
75359
|
+
MaliPermission: permission
|
|
75293
75360
|
};
|
|
75294
75361
|
|
|
75295
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, 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 = {};
|
|
@@ -39336,6 +39336,10 @@ const globalStore = {
|
|
|
39336
39336
|
// 颜色选择器
|
|
39337
39337
|
colorPicker: {
|
|
39338
39338
|
predefineColors: ['#F0F2F5', '#246BFD', '#00D35C', '#FF5064', '#FF9C00', '#9747FF', '#5e7092']
|
|
39339
|
+
},
|
|
39340
|
+
notData: {
|
|
39341
|
+
// emptyUrl: '',
|
|
39342
|
+
emptyText: '暂无记录'
|
|
39339
39343
|
}
|
|
39340
39344
|
};
|
|
39341
39345
|
/* harmony default export */ var config_0 = (globalStore);
|
|
@@ -39480,9 +39484,27 @@ const MlRow_exports_ = MlRowvue_type_script_lang_ts_setup_true;
|
|
|
39480
39484
|
const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
39481
39485
|
|
|
39482
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);
|
|
39483
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
|
|
39484
39505
|
|
|
39485
39506
|
|
|
39507
|
+
|
|
39486
39508
|
/* harmony default export */ var MlButtonvue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
39487
39509
|
__name: 'MlButton',
|
|
39488
39510
|
props: {
|
|
@@ -39513,7 +39535,8 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39513
39535
|
};
|
|
39514
39536
|
return (_ctx, _cache) => {
|
|
39515
39537
|
const _component_vxe_button = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("vxe-button");
|
|
39516
|
-
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,
|
|
39517
39540
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)(["ml-button", [__props.size ? `size-${__props.size}` : '']]),
|
|
39518
39541
|
type: __props.type,
|
|
39519
39542
|
status: __props.status,
|
|
@@ -39531,7 +39554,7 @@ const MlCol_exports_ = MlColvue_type_script_lang_ts_setup_true;
|
|
|
39531
39554
|
name: "icon",
|
|
39532
39555
|
fn: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(({}) => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon")]),
|
|
39533
39556
|
key: "0"
|
|
39534
|
-
} : 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);
|
|
39535
39558
|
};
|
|
39536
39559
|
}
|
|
39537
39560
|
}));
|
|
@@ -72921,6 +72944,62 @@ const MlCalendarvue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
|
72921
72944
|
const MlCalendar_exports_ = MlCalendarvue_type_script_lang_ts_setup_true;
|
|
72922
72945
|
|
|
72923
72946
|
/* harmony default export */ var MlCalendar = (MlCalendar_exports_);
|
|
72947
|
+
;// 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-not-data/MlNotData.vue?vue&type=script&lang=ts&setup=true
|
|
72948
|
+
|
|
72949
|
+
|
|
72950
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_1 = {
|
|
72951
|
+
class: "ml-not-data"
|
|
72952
|
+
};
|
|
72953
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_2 = {
|
|
72954
|
+
key: 0,
|
|
72955
|
+
class: "ml-not-data-image"
|
|
72956
|
+
};
|
|
72957
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_3 = ["src"];
|
|
72958
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_4 = {
|
|
72959
|
+
key: 1,
|
|
72960
|
+
class: "ml-not-data-text"
|
|
72961
|
+
};
|
|
72962
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_5 = {
|
|
72963
|
+
key: 2,
|
|
72964
|
+
class: "ml-not-data-hint"
|
|
72965
|
+
};
|
|
72966
|
+
const MlNotDatavue_type_script_lang_ts_setup_true_hoisted_6 = {
|
|
72967
|
+
class: "ml-not-data-contnet"
|
|
72968
|
+
};
|
|
72969
|
+
|
|
72970
|
+
|
|
72971
|
+
/* harmony default export */ var MlNotDatavue_type_script_lang_ts_setup_true = (/*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
72972
|
+
__name: 'MlNotData',
|
|
72973
|
+
props: {
|
|
72974
|
+
emptyUrl: String,
|
|
72975
|
+
emptyText: String,
|
|
72976
|
+
emptyHint: String
|
|
72977
|
+
},
|
|
72978
|
+
setup(__props) {
|
|
72979
|
+
const props = __props;
|
|
72980
|
+
const emptyImgUrl = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
72981
|
+
return props.emptyUrl || config_0.notData?.emptyUrl;
|
|
72982
|
+
});
|
|
72983
|
+
const emptyContentText = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
72984
|
+
return props.emptyText || config_0.notData?.emptyText;
|
|
72985
|
+
});
|
|
72986
|
+
return (_ctx, _cache) => {
|
|
72987
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyImgUrl) || _ctx.$slots.icon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("img", {
|
|
72988
|
+
class: "ml-not-data-image-icon",
|
|
72989
|
+
src: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyImgUrl)
|
|
72990
|
+
}, null, 8, MlNotDatavue_type_script_lang_ts_setup_true_hoisted_3)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyContentText) || _ctx.$slots.text ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_4, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "text", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.unref)(emptyContentText)), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), __props.emptyHint || _ctx.$slots.hint ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "hint", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(__props.emptyHint), 1)])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", MlNotDatavue_type_script_lang_ts_setup_true_hoisted_6, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "content")])])]);
|
|
72991
|
+
};
|
|
72992
|
+
}
|
|
72993
|
+
}));
|
|
72994
|
+
;// CONCATENATED MODULE: ./components/ml-not-data/MlNotData.vue?vue&type=script&lang=ts&setup=true
|
|
72995
|
+
|
|
72996
|
+
;// CONCATENATED MODULE: ./components/ml-not-data/MlNotData.vue
|
|
72997
|
+
|
|
72998
|
+
|
|
72999
|
+
|
|
73000
|
+
const MlNotData_exports_ = MlNotDatavue_type_script_lang_ts_setup_true;
|
|
73001
|
+
|
|
73002
|
+
/* harmony default export */ var MlNotData = (MlNotData_exports_);
|
|
72924
73003
|
;// 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-image/MlImage.vue?vue&type=script&lang=ts&setup=true
|
|
72925
73004
|
|
|
72926
73005
|
|
|
@@ -73346,19 +73425,6 @@ const MaliClipboard = {
|
|
|
73346
73425
|
}
|
|
73347
73426
|
};
|
|
73348
73427
|
/* harmony default export */ var clipboard = (MaliClipboard);
|
|
73349
|
-
;// CONCATENATED MODULE: ./utils/permission.ts
|
|
73350
|
-
|
|
73351
|
-
function checkPermission(params) {
|
|
73352
|
-
if (config_0.checkPermission) {
|
|
73353
|
-
return config_0.checkPermission(params);
|
|
73354
|
-
}
|
|
73355
|
-
return true;
|
|
73356
|
-
}
|
|
73357
|
-
function checkPermissionByCode(code) {
|
|
73358
|
-
return checkPermission({
|
|
73359
|
-
code
|
|
73360
|
-
});
|
|
73361
|
-
}
|
|
73362
73428
|
;// CONCATENATED MODULE: ./table/renderer/default.tsx
|
|
73363
73429
|
|
|
73364
73430
|
|
|
@@ -73379,7 +73445,7 @@ VXETable.renderer.mixin({
|
|
|
73379
73445
|
props = {},
|
|
73380
73446
|
events
|
|
73381
73447
|
} = item;
|
|
73382
|
-
return !props.permissionCode || checkPermission({
|
|
73448
|
+
return !props.permissionCode || permission.checkPermission({
|
|
73383
73449
|
code: props.permissionCode
|
|
73384
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, {
|
|
73385
73451
|
"onClick": () => {
|
|
@@ -74191,7 +74257,7 @@ VXETable.renderer.mixin({
|
|
|
74191
74257
|
props = {},
|
|
74192
74258
|
events
|
|
74193
74259
|
} = item;
|
|
74194
|
-
return !props.permissionCode || checkPermission({
|
|
74260
|
+
return !props.permissionCode || permission.checkPermission({
|
|
74195
74261
|
code: props.permissionCode
|
|
74196
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, {
|
|
74197
74263
|
"onClick": () => {
|
|
@@ -75130,7 +75196,7 @@ VXETable.setup({
|
|
|
75130
75196
|
|
|
75131
75197
|
|
|
75132
75198
|
|
|
75133
|
-
|
|
75199
|
+
|
|
75134
75200
|
|
|
75135
75201
|
|
|
75136
75202
|
|
|
@@ -75203,7 +75269,7 @@ const index_MlTabPane = MlTabPane;
|
|
|
75203
75269
|
const index_MlCard = MlCard;
|
|
75204
75270
|
const index_MlEditor = MlEditor;
|
|
75205
75271
|
const index_MlCalendar = MlCalendar;
|
|
75206
|
-
|
|
75272
|
+
const index_MlNotData = MlNotData;
|
|
75207
75273
|
const index_MlImage = MlImage;
|
|
75208
75274
|
const index_MlCharts = MlCharts;
|
|
75209
75275
|
const index_MlCarousel = MlCarousel;
|
|
@@ -75263,7 +75329,7 @@ const componentMaps = {
|
|
|
75263
75329
|
MlCard: index_MlCard,
|
|
75264
75330
|
MlEditor: index_MlEditor,
|
|
75265
75331
|
MlCalendar: index_MlCalendar,
|
|
75266
|
-
|
|
75332
|
+
MlNotData: index_MlNotData,
|
|
75267
75333
|
MlImage: index_MlImage,
|
|
75268
75334
|
MlCharts: index_MlCharts,
|
|
75269
75335
|
MlCarousel: index_MlCarousel,
|
|
@@ -75278,7 +75344,7 @@ xe_utils_default().each(componentMaps, (component, name) => {
|
|
|
75278
75344
|
function useOther(app) {
|
|
75279
75345
|
app.use(index_esm);
|
|
75280
75346
|
app.config.globalProperties.$modal = index_esm.modal;
|
|
75281
|
-
app.config.globalProperties.$permission = checkPermissionByCode;
|
|
75347
|
+
app.config.globalProperties.$permission = permission.checkPermissionByCode;
|
|
75282
75348
|
}
|
|
75283
75349
|
function index_install(app) {
|
|
75284
75350
|
useOther(app);
|
|
@@ -75289,7 +75355,7 @@ function index_config(options) {
|
|
|
75289
75355
|
return config_0;
|
|
75290
75356
|
}
|
|
75291
75357
|
const MaliUI = {
|
|
75292
|
-
version: "1.0.
|
|
75358
|
+
version: "1.0.112",
|
|
75293
75359
|
install: index_install,
|
|
75294
75360
|
config: index_config,
|
|
75295
75361
|
renderer: index_esm.renderer,
|
|
@@ -75299,7 +75365,8 @@ const MaliUI = {
|
|
|
75299
75365
|
MaliModal: modal_modal_0,
|
|
75300
75366
|
MaliNotify: modal_notify,
|
|
75301
75367
|
MaliLoading: modal_loading,
|
|
75302
|
-
MaliStorage: storage
|
|
75368
|
+
MaliStorage: storage,
|
|
75369
|
+
MaliPermission: permission
|
|
75303
75370
|
};
|
|
75304
75371
|
|
|
75305
75372
|
index_components.forEach(item => {
|