xrk-components 0.5.7 → 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.css CHANGED
@@ -18581,6 +18581,9 @@
18581
18581
  ._base-dialog.hide-footer .xrk-dialog__footer {
18582
18582
  display: none !important;
18583
18583
  }
18584
+ .base-upload[data-v-75b461d5] {
18585
+ line-height: 1.4;
18586
+ }
18584
18587
  .xrk-upload__list[data-v-75b461d5] {
18585
18588
  margin-top: 6px;
18586
18589
  }
@@ -18593,6 +18596,12 @@
18593
18596
  -ms-flex-wrap: wrap;
18594
18597
  flex-wrap: wrap;
18595
18598
  }
18599
+ .xrk-upload__text--right[data-v-75b461d5] {
18600
+ display: inline-block;
18601
+ }
18602
+ .xrk-upload__text--right[data-v-75b461d5]:empty {
18603
+ display: none;
18604
+ }
18596
18605
  .xrk-upload__item[data-v-75b461d5] {
18597
18606
  display: -webkit-box;
18598
18607
  display: -webkit-flex;
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(200 + 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;
@@ -46429,10 +46441,7 @@ var _hoisted_3 = /*#__PURE__*/ _withScopeId(function () { return createElementV
46429
46441
  /*#__PURE__*/ createElementVNode("em", null, "点击上传")
46430
46442
  ], -1 /* HOISTED */); });
46431
46443
  var _hoisted_4 = /*#__PURE__*/ createTextVNode("选择文件");
46432
- var _hoisted_5 = {
46433
- class: "xrk-upload__text--right",
46434
- style: { "display": "inline-block" }
46435
- };
46444
+ var _hoisted_5 = { class: "xrk-upload__text--right" };
46436
46445
  var _hoisted_6 = { class: "xrk-upload__tip" };
46437
46446
  var _hoisted_7 = { class: "xrk-upload__item_icon" };
46438
46447
  var _hoisted_8 = { class: "xrk-upload__item_name" };
@@ -46494,7 +46503,7 @@ var script$4 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$4
46494
46503
  var accept = computed$1(function () {
46495
46504
  var _a;
46496
46505
  if (!Array.isArray(props.accept) || props.accept.length == 0)
46497
- return '*';
46506
+ return '';
46498
46507
  return ((_a = props.accept) === null || _a === void 0 ? void 0 : _a.join(',')) || '';
46499
46508
  });
46500
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(200 + 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;
@@ -46432,10 +46444,7 @@ usage: app.provide(ID_INJECTION_KEY, {
46432
46444
  /*#__PURE__*/ vue.createElementVNode("em", null, "点击上传")
46433
46445
  ], -1 /* HOISTED */); });
46434
46446
  var _hoisted_4 = /*#__PURE__*/ vue.createTextVNode("选择文件");
46435
- var _hoisted_5 = {
46436
- class: "xrk-upload__text--right",
46437
- style: { "display": "inline-block" }
46438
- };
46447
+ var _hoisted_5 = { class: "xrk-upload__text--right" };
46439
46448
  var _hoisted_6 = { class: "xrk-upload__tip" };
46440
46449
  var _hoisted_7 = { class: "xrk-upload__item_icon" };
46441
46450
  var _hoisted_8 = { class: "xrk-upload__item_name" };
@@ -46497,7 +46506,7 @@ usage: app.provide(ID_INJECTION_KEY, {
46497
46506
  var accept = vue.computed(function () {
46498
46507
  var _a;
46499
46508
  if (!Array.isArray(props.accept) || props.accept.length == 0)
46500
- return '*';
46509
+ return '';
46501
46510
  return ((_a = props.accept) === null || _a === void 0 ? void 0 : _a.join(',')) || '';
46502
46511
  });
46503
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.7",
3
+ "version": "0.5.9",
4
4
  "description": "",
5
5
  "main": "lib/index.esm.js",
6
6
  "typings": "lib/packages/index.d.ts",