3h1-ui 2.14.75 → 2.14.76

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/es/index.js CHANGED
@@ -10334,7 +10334,6 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10334
10334
  emits: ["change", "delete", "preview-delete", "update:value"],
10335
10335
  setup(__props, { emit }) {
10336
10336
  const props2 = __props;
10337
- defineOptions({ name: "BasicUpload" });
10338
10337
  const attrs = useAttrs$2();
10339
10338
  const { t: t2 } = useI18n$1();
10340
10339
  const [registerUploadModal, { openModal: openUploadModal }] = useModal();
@@ -10443,7 +10442,6 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
10443
10442
  emits: ["change", "update:value", "delete"],
10444
10443
  setup(__props, { emit }) {
10445
10444
  const props2 = __props;
10446
- defineOptions({ name: "ImageUpload" });
10447
10445
  const { t: t2 } = useI18n$1();
10448
10446
  const { createMessage } = useMessage();
10449
10447
  const { accept, helpText, maxNumber, maxSize } = toRefs(props2);
@@ -24413,13 +24411,49 @@ const basicContainerProps = reactive({
24413
24411
  title: {
24414
24412
  type: String
24415
24413
  },
24414
+ isShowHeader: {
24415
+ type: Boolean,
24416
+ default: true
24417
+ },
24418
+ isShowFooter: {
24419
+ type: Boolean,
24420
+ default: true
24421
+ },
24422
+ isShowBtn: {
24423
+ type: Boolean,
24424
+ default: true
24425
+ },
24426
+ isShowSaveBtn: {
24427
+ type: Boolean,
24428
+ default: true
24429
+ },
24430
+ isShowSubmitBtn: {
24431
+ type: Boolean,
24432
+ default: true
24433
+ },
24434
+ isShowCancelBtn: {
24435
+ type: Boolean,
24436
+ default: true
24437
+ },
24438
+ saveBtnText: {
24439
+ type: String,
24440
+ default: "保存"
24441
+ },
24416
24442
  submitBtnText: {
24417
24443
  type: String,
24418
24444
  default: "提交"
24419
24445
  },
24420
24446
  cancelBtnText: {
24421
24447
  type: String,
24422
- default: "返回"
24448
+ default: "取消"
24449
+ },
24450
+ cancelAlign: {
24451
+ type: String,
24452
+ default: "left"
24453
+ },
24454
+ footerAlign: {
24455
+ type: String,
24456
+ default: "right"
24423
24457
  }
24424
24458
  });
24425
24459
  const setDefaultConfig$1 = (config) => {
@@ -24431,10 +24465,18 @@ const _sfc_main$1 = defineComponent({
24431
24465
  ArrowLeftOutlined: ArrowLeftOutlined$1
24432
24466
  },
24433
24467
  props: basicContainerProps,
24434
- emit: ["submit", "cancel"],
24468
+ emits: ["submit", "cancel", "save"],
24435
24469
  setup(props2, { emit }) {
24436
24470
  const { prefixCls: prefixCls2 } = useDesign$1("basic-container");
24471
+ const cancelAlignRef = computed(() => {
24472
+ return `${prefixCls2}-footer-cancel-${props2.cancelAlign}`;
24473
+ });
24474
+ const footerAlignRef = computed(() => {
24475
+ return `${prefixCls2}-footer-${props2.footerAlign}`;
24476
+ });
24437
24477
  return {
24478
+ cancelAlignRef,
24479
+ footerAlignRef,
24438
24480
  prefixCls: prefixCls2,
24439
24481
  emit
24440
24482
  };
@@ -24447,7 +24489,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24447
24489
  return openBlock(), createElementBlock("div", {
24448
24490
  class: normalizeClass(_ctx.prefixCls)
24449
24491
  }, [
24450
- createElementVNode("div", {
24492
+ _ctx.isShowHeader ? (openBlock(), createElementBlock("div", {
24493
+ key: 0,
24451
24494
  class: normalizeClass(`${_ctx.prefixCls}-header`)
24452
24495
  }, [
24453
24496
  createElementVNode("div", {
@@ -24457,7 +24500,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24457
24500
  class: normalizeClass(`${_ctx.prefixCls}-header-title-icon`),
24458
24501
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.emit("cancel"))
24459
24502
  }, [
24460
- createVNode(_component_ArrowLeftOutlined, { style: { fontSize: `14px` } })
24503
+ createVNode(_component_ArrowLeftOutlined, { style: { fontSize: `16px` } })
24461
24504
  ], 2),
24462
24505
  createElementVNode("div", {
24463
24506
  class: normalizeClass(`${_ctx.prefixCls}-header-title-text`)
@@ -24468,34 +24511,58 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24468
24511
  }, [
24469
24512
  renderSlot(_ctx.$slots, "extra")
24470
24513
  ], 2)
24471
- ], 2),
24514
+ ], 2)) : createCommentVNode("", true),
24472
24515
  createElementVNode("div", {
24473
24516
  class: normalizeClass(`${_ctx.prefixCls}-content`)
24474
24517
  }, [
24475
24518
  renderSlot(_ctx.$slots, "default")
24476
24519
  ], 2),
24477
- createElementVNode("div", {
24478
- class: normalizeClass(`${_ctx.prefixCls}-footer`)
24520
+ _ctx.isShowFooter ? (openBlock(), createElementBlock("div", {
24521
+ key: 1,
24522
+ class: normalizeClass(`${_ctx.prefixCls}-footer ${_ctx.footerAlignRef}`)
24479
24523
  }, [
24480
- renderSlot(_ctx.$slots, "buttons"),
24481
- createVNode(_component_Button, {
24482
- type: "primary",
24483
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.emit("submit"))
24484
- }, {
24485
- default: withCtx(() => [
24486
- createTextVNode(toDisplayString(_ctx.submitBtnText), 1)
24487
- ]),
24488
- _: 1
24489
- }),
24490
- createVNode(_component_Button, {
24491
- onClick: _cache[2] || (_cache[2] = ($event) => _ctx.emit("cancel"))
24492
- }, {
24493
- default: withCtx(() => [
24494
- createTextVNode(toDisplayString(_ctx.cancelBtnText), 1)
24495
- ]),
24496
- _: 1
24497
- })
24498
- ], 2)
24524
+ _ctx.isShowBtn ? (openBlock(), createElementBlock("div", {
24525
+ key: 0,
24526
+ class: normalizeClass(`${_ctx.prefixCls}-footer-buttons ${_ctx.cancelAlignRef}`)
24527
+ }, [
24528
+ _ctx.isShowCancelBtn ? (openBlock(), createBlock(_component_Button, {
24529
+ key: 0,
24530
+ class: normalizeClass(`${_ctx.prefixCls}-footer-cancel-button`),
24531
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.emit("cancel"))
24532
+ }, {
24533
+ default: withCtx(() => [
24534
+ createTextVNode(toDisplayString(_ctx.cancelBtnText), 1)
24535
+ ]),
24536
+ _: 1
24537
+ }, 8, ["class"])) : createCommentVNode("", true),
24538
+ createElementVNode("div", {
24539
+ class: normalizeClass(`${_ctx.prefixCls}-footer-fn-buttons`)
24540
+ }, [
24541
+ _ctx.isShowSaveBtn ? (openBlock(), createBlock(_component_Button, {
24542
+ key: 0,
24543
+ type: "primary",
24544
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.emit("save"))
24545
+ }, {
24546
+ default: withCtx(() => [
24547
+ createTextVNode(toDisplayString(_ctx.saveBtnText), 1)
24548
+ ]),
24549
+ _: 1
24550
+ })) : createCommentVNode("", true),
24551
+ _ctx.isShowSubmitBtn ? (openBlock(), createBlock(_component_Button, {
24552
+ key: 1,
24553
+ type: "primary",
24554
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.emit("submit"))
24555
+ }, {
24556
+ default: withCtx(() => [
24557
+ createTextVNode(toDisplayString(_ctx.submitBtnText), 1)
24558
+ ]),
24559
+ _: 1
24560
+ })) : createCommentVNode("", true),
24561
+ renderSlot(_ctx.$slots, "buttons")
24562
+ ], 2)
24563
+ ], 2)) : createCommentVNode("", true),
24564
+ renderSlot(_ctx.$slots, "footer")
24565
+ ], 2)) : createCommentVNode("", true)
24499
24566
  ], 2);
24500
24567
  }
24501
24568
  const BasicContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
package/es/style.css CHANGED
@@ -31766,8 +31766,7 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
31766
31766
  height: 100%;
31767
31767
  display: flex;
31768
31768
  flex-direction: column;
31769
- padding: 16px 0;
31770
- overflow: auto;
31769
+ overflow: hidden;
31771
31770
  background: #fff;
31772
31771
  }
31773
31772
  .shy-basic-container-header {
@@ -31775,14 +31774,16 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
31775
31774
  width: 100%;
31776
31775
  height: fit-content;
31777
31776
  align-items: center;
31778
- padding: 0 16px;
31777
+ padding: 10px;
31778
+ border-bottom: 1px solid #eaeaea;
31779
+ gap: 8px;
31779
31780
  }
31780
31781
  .shy-basic-container-header-title {
31781
31782
  display: flex;
31782
31783
  align-items: center;
31784
+ gap: 16px;
31783
31785
  }
31784
31786
  .shy-basic-container-header-title-icon {
31785
- margin-right: 14px;
31786
31787
  cursor: pointer;
31787
31788
  }
31788
31789
  .shy-basic-container-header-title-text {
@@ -31793,13 +31794,40 @@ html[data-theme='dark'] .full-loading[data-v-33b23b82]:not(.light) {
31793
31794
  display: flex;
31794
31795
  flex-direction: column;
31795
31796
  flex: 1;
31797
+ overflow: auto;
31796
31798
  }
31797
31799
  .shy-basic-container-footer {
31800
+ padding: 10px;
31798
31801
  display: flex;
31799
31802
  justify-content: flex-end;
31800
31803
  align-items: center;
31801
- gap: 16px;
31802
- padding: 0 16px;
31804
+ gap: 8px;
31805
+ border-top: 1px solid #eaeaea;
31806
+ }
31807
+ .shy-basic-container-footer-buttons {
31808
+ display: flex;
31809
+ align-items: center;
31810
+ gap: 8px;
31811
+ }
31812
+ .shy-basic-container-footer-fn-buttons {
31813
+ display: flex;
31814
+ align-items: center;
31815
+ gap: 8px;
31816
+ }
31817
+ .shy-basic-container-footer-left {
31818
+ justify-content: flex-start;
31819
+ }
31820
+ .shy-basic-container-footer-center {
31821
+ justify-content: center;
31822
+ }
31823
+ .shy-basic-container-footer-right {
31824
+ justify-content: flex-end;
31825
+ }
31826
+ .shy-basic-container-footer-cancel-left {
31827
+ flex-direction: row;
31828
+ }
31829
+ .shy-basic-container-footer-cancel-right {
31830
+ flex-direction: row-reverse;
31803
31831
  }[data-v-b1ced086] .ant-descriptions-item-content {
31804
31832
  padding: 0 !important;
31805
31833
  flex: 1;
package/lib/index.js CHANGED
@@ -10336,7 +10336,6 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
10336
10336
  emits: ["change", "delete", "preview-delete", "update:value"],
10337
10337
  setup(__props, { emit }) {
10338
10338
  const props2 = __props;
10339
- defineOptions({ name: "BasicUpload" });
10340
10339
  const attrs = vue.useAttrs();
10341
10340
  const { t: t2 } = use.useI18n();
10342
10341
  const [registerUploadModal, { openModal: openUploadModal }] = useModal();
@@ -10445,7 +10444,6 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
10445
10444
  emits: ["change", "update:value", "delete"],
10446
10445
  setup(__props, { emit }) {
10447
10446
  const props2 = __props;
10448
- defineOptions({ name: "ImageUpload" });
10449
10447
  const { t: t2 } = use.useI18n();
10450
10448
  const { createMessage } = use.useMessage();
10451
10449
  const { accept, helpText, maxNumber, maxSize } = vue.toRefs(props2);
@@ -24415,13 +24413,49 @@ const basicContainerProps = vue.reactive({
24415
24413
  title: {
24416
24414
  type: String
24417
24415
  },
24416
+ isShowHeader: {
24417
+ type: Boolean,
24418
+ default: true
24419
+ },
24420
+ isShowFooter: {
24421
+ type: Boolean,
24422
+ default: true
24423
+ },
24424
+ isShowBtn: {
24425
+ type: Boolean,
24426
+ default: true
24427
+ },
24428
+ isShowSaveBtn: {
24429
+ type: Boolean,
24430
+ default: true
24431
+ },
24432
+ isShowSubmitBtn: {
24433
+ type: Boolean,
24434
+ default: true
24435
+ },
24436
+ isShowCancelBtn: {
24437
+ type: Boolean,
24438
+ default: true
24439
+ },
24440
+ saveBtnText: {
24441
+ type: String,
24442
+ default: "保存"
24443
+ },
24418
24444
  submitBtnText: {
24419
24445
  type: String,
24420
24446
  default: "提交"
24421
24447
  },
24422
24448
  cancelBtnText: {
24423
24449
  type: String,
24424
- default: "返回"
24450
+ default: "取消"
24451
+ },
24452
+ cancelAlign: {
24453
+ type: String,
24454
+ default: "left"
24455
+ },
24456
+ footerAlign: {
24457
+ type: String,
24458
+ default: "right"
24425
24459
  }
24426
24460
  });
24427
24461
  const setDefaultConfig$1 = (config) => {
@@ -24433,10 +24467,18 @@ const _sfc_main$1 = vue.defineComponent({
24433
24467
  ArrowLeftOutlined: ArrowLeftOutlined$1
24434
24468
  },
24435
24469
  props: basicContainerProps,
24436
- emit: ["submit", "cancel"],
24470
+ emits: ["submit", "cancel", "save"],
24437
24471
  setup(props2, { emit }) {
24438
24472
  const { prefixCls: prefixCls2 } = use.useDesign("basic-container");
24473
+ const cancelAlignRef = vue.computed(() => {
24474
+ return `${prefixCls2}-footer-cancel-${props2.cancelAlign}`;
24475
+ });
24476
+ const footerAlignRef = vue.computed(() => {
24477
+ return `${prefixCls2}-footer-${props2.footerAlign}`;
24478
+ });
24439
24479
  return {
24480
+ cancelAlignRef,
24481
+ footerAlignRef,
24440
24482
  prefixCls: prefixCls2,
24441
24483
  emit
24442
24484
  };
@@ -24449,7 +24491,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24449
24491
  return vue.openBlock(), vue.createElementBlock("div", {
24450
24492
  class: vue.normalizeClass(_ctx.prefixCls)
24451
24493
  }, [
24452
- vue.createElementVNode("div", {
24494
+ _ctx.isShowHeader ? (vue.openBlock(), vue.createElementBlock("div", {
24495
+ key: 0,
24453
24496
  class: vue.normalizeClass(`${_ctx.prefixCls}-header`)
24454
24497
  }, [
24455
24498
  vue.createElementVNode("div", {
@@ -24459,7 +24502,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24459
24502
  class: vue.normalizeClass(`${_ctx.prefixCls}-header-title-icon`),
24460
24503
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.emit("cancel"))
24461
24504
  }, [
24462
- vue.createVNode(_component_ArrowLeftOutlined, { style: { fontSize: `14px` } })
24505
+ vue.createVNode(_component_ArrowLeftOutlined, { style: { fontSize: `16px` } })
24463
24506
  ], 2),
24464
24507
  vue.createElementVNode("div", {
24465
24508
  class: vue.normalizeClass(`${_ctx.prefixCls}-header-title-text`)
@@ -24470,34 +24513,58 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
24470
24513
  }, [
24471
24514
  vue.renderSlot(_ctx.$slots, "extra")
24472
24515
  ], 2)
24473
- ], 2),
24516
+ ], 2)) : vue.createCommentVNode("", true),
24474
24517
  vue.createElementVNode("div", {
24475
24518
  class: vue.normalizeClass(`${_ctx.prefixCls}-content`)
24476
24519
  }, [
24477
24520
  vue.renderSlot(_ctx.$slots, "default")
24478
24521
  ], 2),
24479
- vue.createElementVNode("div", {
24480
- class: vue.normalizeClass(`${_ctx.prefixCls}-footer`)
24522
+ _ctx.isShowFooter ? (vue.openBlock(), vue.createElementBlock("div", {
24523
+ key: 1,
24524
+ class: vue.normalizeClass(`${_ctx.prefixCls}-footer ${_ctx.footerAlignRef}`)
24481
24525
  }, [
24482
- vue.renderSlot(_ctx.$slots, "buttons"),
24483
- vue.createVNode(_component_Button, {
24484
- type: "primary",
24485
- onClick: _cache[1] || (_cache[1] = ($event) => _ctx.emit("submit"))
24486
- }, {
24487
- default: vue.withCtx(() => [
24488
- vue.createTextVNode(vue.toDisplayString(_ctx.submitBtnText), 1)
24489
- ]),
24490
- _: 1
24491
- }),
24492
- vue.createVNode(_component_Button, {
24493
- onClick: _cache[2] || (_cache[2] = ($event) => _ctx.emit("cancel"))
24494
- }, {
24495
- default: vue.withCtx(() => [
24496
- vue.createTextVNode(vue.toDisplayString(_ctx.cancelBtnText), 1)
24497
- ]),
24498
- _: 1
24499
- })
24500
- ], 2)
24526
+ _ctx.isShowBtn ? (vue.openBlock(), vue.createElementBlock("div", {
24527
+ key: 0,
24528
+ class: vue.normalizeClass(`${_ctx.prefixCls}-footer-buttons ${_ctx.cancelAlignRef}`)
24529
+ }, [
24530
+ _ctx.isShowCancelBtn ? (vue.openBlock(), vue.createBlock(_component_Button, {
24531
+ key: 0,
24532
+ class: vue.normalizeClass(`${_ctx.prefixCls}-footer-cancel-button`),
24533
+ onClick: _cache[1] || (_cache[1] = ($event) => _ctx.emit("cancel"))
24534
+ }, {
24535
+ default: vue.withCtx(() => [
24536
+ vue.createTextVNode(vue.toDisplayString(_ctx.cancelBtnText), 1)
24537
+ ]),
24538
+ _: 1
24539
+ }, 8, ["class"])) : vue.createCommentVNode("", true),
24540
+ vue.createElementVNode("div", {
24541
+ class: vue.normalizeClass(`${_ctx.prefixCls}-footer-fn-buttons`)
24542
+ }, [
24543
+ _ctx.isShowSaveBtn ? (vue.openBlock(), vue.createBlock(_component_Button, {
24544
+ key: 0,
24545
+ type: "primary",
24546
+ onClick: _cache[2] || (_cache[2] = ($event) => _ctx.emit("save"))
24547
+ }, {
24548
+ default: vue.withCtx(() => [
24549
+ vue.createTextVNode(vue.toDisplayString(_ctx.saveBtnText), 1)
24550
+ ]),
24551
+ _: 1
24552
+ })) : vue.createCommentVNode("", true),
24553
+ _ctx.isShowSubmitBtn ? (vue.openBlock(), vue.createBlock(_component_Button, {
24554
+ key: 1,
24555
+ type: "primary",
24556
+ onClick: _cache[3] || (_cache[3] = ($event) => _ctx.emit("submit"))
24557
+ }, {
24558
+ default: vue.withCtx(() => [
24559
+ vue.createTextVNode(vue.toDisplayString(_ctx.submitBtnText), 1)
24560
+ ]),
24561
+ _: 1
24562
+ })) : vue.createCommentVNode("", true),
24563
+ vue.renderSlot(_ctx.$slots, "buttons")
24564
+ ], 2)
24565
+ ], 2)) : vue.createCommentVNode("", true),
24566
+ vue.renderSlot(_ctx.$slots, "footer")
24567
+ ], 2)) : vue.createCommentVNode("", true)
24501
24568
  ], 2);
24502
24569
  }
24503
24570
  const BasicContainer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "2.14.75",
3
+ "version": "2.14.76",
4
4
  "description": "",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",