xrk-components 0.5.8 → 0.5.9

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/index.esm.js CHANGED
@@ -45996,14 +45996,25 @@ var script$6 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$6
45996
45996
 
45997
45997
  script$6.__file = "packages/base/dialog/dialog.vue";
45998
45998
 
45999
+ /*
46000
+ * @Description:
46001
+ * @Date: 2023-04-27 14:17:50
46002
+ */
46003
+ var customIndexClassName = '_xrk_custom_modal_z_index';
46004
+ var baseIndex = 200;
46005
+ var setZIndex = function (container) {
46006
+ var customDialogCount = document.querySelectorAll(".".concat(customIndexClassName)).length;
46007
+ container.classList.add(customIndexClassName);
46008
+ container.style.position = 'relative';
46009
+ container.style.zIndex = "".concat(baseIndex + customDialogCount);
46010
+ };
46011
+
45999
46012
  var BaseDialog = script$6;
46000
46013
  var createDialog = function (config) {
46001
46014
  var _a;
46002
46015
  var container = document.createElement('div');
46003
- var customDialogCount = document.querySelectorAll('._xrk_create_dialog').length;
46004
46016
  container.classList.add('_xrk_create_dialog');
46005
- container.style.position = 'relative';
46006
- container.style.zIndex = "".concat(3000 + customDialogCount);
46017
+ setZIndex(container);
46007
46018
  var _instance = null;
46008
46019
  var close = function () { return __awaiter(void 0, void 0, void 0, function () {
46009
46020
  var _a, _b;
@@ -46378,6 +46389,7 @@ var useCreateModal = function (component, options, app) {
46378
46389
  console.log('useCreateModal app:', app);
46379
46390
  var _instance = null;
46380
46391
  var container = document.createElement('div');
46392
+ setZIndex(container);
46381
46393
  var remove = function () {
46382
46394
  container.remove();
46383
46395
  _instance = null;
@@ -46491,7 +46503,7 @@ var script$4 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$4
46491
46503
  var accept = computed$1(function () {
46492
46504
  var _a;
46493
46505
  if (!Array.isArray(props.accept) || props.accept.length == 0)
46494
- return '*';
46506
+ return '';
46495
46507
  return ((_a = props.accept) === null || _a === void 0 ? void 0 : _a.join(',')) || '';
46496
46508
  });
46497
46509
  watch(function () { return props.fileList; }, function (newV) {
package/lib/index.umd.js CHANGED
@@ -45999,14 +45999,25 @@ usage: app.provide(ID_INJECTION_KEY, {
45999
45999
 
46000
46000
  script$6.__file = "packages/base/dialog/dialog.vue";
46001
46001
 
46002
+ /*
46003
+ * @Description:
46004
+ * @Date: 2023-04-27 14:17:50
46005
+ */
46006
+ var customIndexClassName = '_xrk_custom_modal_z_index';
46007
+ var baseIndex = 200;
46008
+ var setZIndex = function (container) {
46009
+ var customDialogCount = document.querySelectorAll(".".concat(customIndexClassName)).length;
46010
+ container.classList.add(customIndexClassName);
46011
+ container.style.position = 'relative';
46012
+ container.style.zIndex = "".concat(baseIndex + customDialogCount);
46013
+ };
46014
+
46002
46015
  var BaseDialog = script$6;
46003
46016
  var createDialog = function (config) {
46004
46017
  var _a;
46005
46018
  var container = document.createElement('div');
46006
- var customDialogCount = document.querySelectorAll('._xrk_create_dialog').length;
46007
46019
  container.classList.add('_xrk_create_dialog');
46008
- container.style.position = 'relative';
46009
- container.style.zIndex = "".concat(3000 + customDialogCount);
46020
+ setZIndex(container);
46010
46021
  var _instance = null;
46011
46022
  var close = function () { return __awaiter(void 0, void 0, void 0, function () {
46012
46023
  var _a, _b;
@@ -46381,6 +46392,7 @@ usage: app.provide(ID_INJECTION_KEY, {
46381
46392
  console.log('useCreateModal app:', app);
46382
46393
  var _instance = null;
46383
46394
  var container = document.createElement('div');
46395
+ setZIndex(container);
46384
46396
  var remove = function () {
46385
46397
  container.remove();
46386
46398
  _instance = null;
@@ -46494,7 +46506,7 @@ usage: app.provide(ID_INJECTION_KEY, {
46494
46506
  var accept = vue.computed(function () {
46495
46507
  var _a;
46496
46508
  if (!Array.isArray(props.accept) || props.accept.length == 0)
46497
- return '*';
46509
+ return '';
46498
46510
  return ((_a = props.accept) === null || _a === void 0 ? void 0 : _a.join(',')) || '';
46499
46511
  });
46500
46512
  vue.watch(function () { return props.fileList; }, function (newV) {
@@ -0,0 +1 @@
1
+ export declare const setZIndex: (container: HTMLDivElement) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xrk-components",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",