3h1-ui 1.2.4 → 1.2.6

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
@@ -9607,71 +9607,72 @@ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-c8
9607
9607
  const _hoisted_1$b = { class: "api-modal-select" };
9608
9608
  const _sfc_main$r = /* @__PURE__ */ defineComponent({
9609
9609
  __name: "ApiModalSelect",
9610
+ props: {
9611
+ value: {
9612
+ default: ""
9613
+ },
9614
+ title: {
9615
+ default: "title"
9616
+ },
9617
+ tableComponentProps: {
9618
+ type: Object,
9619
+ default: () => ({
9620
+ api: () => new Promise((resolve) => {
9621
+ resolve([
9622
+ { a: 1, b: 2, c: 3, d: 4, id: "1" },
9623
+ { a: 1, b: 2, c: 3, d: 4, id: "2" },
9624
+ { a: 1, b: 2, c: 3, d: 4, id: "3" },
9625
+ { a: 1, b: 2, c: 3, d: 4, id: "4" },
9626
+ { a: 1, b: 2, c: 3, d: 4, id: "5" },
9627
+ { a: 1, b: 2, c: 3, d: 4, id: "6" },
9628
+ { a: 1, b: 2, c: 3, d: 4, id: "7" },
9629
+ { a: 1, b: 2, c: 3, d: 4, id: "8" },
9630
+ { a: 1, b: 2, c: 3, d: 4, id: "9" },
9631
+ { a: 1, b: 2, c: 3, d: 4, id: "10" }
9632
+ ]);
9633
+ }),
9634
+ columns: [
9635
+ { title: "a", dataIndex: "a" },
9636
+ { title: "b", dataIndex: "b" },
9637
+ { title: "c", dataIndex: "c" },
9638
+ { title: "d", dataIndex: "d" }
9639
+ ]
9640
+ })
9641
+ },
9642
+ tree: {
9643
+ default: () => ({
9644
+ fieldNames: { label: "a", value: "id" },
9645
+ api: () => new Promise((resolve) => {
9646
+ resolve([
9647
+ {
9648
+ title: "father",
9649
+ key: "1",
9650
+ children: [{ title: "1-son", key: "1-1" }]
9651
+ },
9652
+ {
9653
+ title: "father2",
9654
+ key: "2",
9655
+ children: [{ title: "2-son", key: "2-1" }]
9656
+ }
9657
+ ]);
9658
+ })
9659
+ })
9660
+ },
9661
+ selectMode: {
9662
+ default: "single",
9663
+ type: String
9664
+ },
9665
+ fieldNames: {
9666
+ default: { label: "name", value: "id" }
9667
+ },
9668
+ readonly: {
9669
+ default: false,
9670
+ type: Boolean
9671
+ }
9672
+ },
9610
9673
  emits: ["update:value", "change", "modal-confirm"],
9611
9674
  setup(__props, { expose, emit }) {
9612
- const props2 = defineProps({
9613
- value: {
9614
- default: ""
9615
- },
9616
- title: {
9617
- default: "title"
9618
- },
9619
- tableComponentProps: {
9620
- type: Object,
9621
- default: () => ({
9622
- api: () => new Promise((resolve) => {
9623
- resolve([
9624
- { a: 1, b: 2, c: 3, d: 4, id: "1" },
9625
- { a: 1, b: 2, c: 3, d: 4, id: "2" },
9626
- { a: 1, b: 2, c: 3, d: 4, id: "3" },
9627
- { a: 1, b: 2, c: 3, d: 4, id: "4" },
9628
- { a: 1, b: 2, c: 3, d: 4, id: "5" },
9629
- { a: 1, b: 2, c: 3, d: 4, id: "6" },
9630
- { a: 1, b: 2, c: 3, d: 4, id: "7" },
9631
- { a: 1, b: 2, c: 3, d: 4, id: "8" },
9632
- { a: 1, b: 2, c: 3, d: 4, id: "9" },
9633
- { a: 1, b: 2, c: 3, d: 4, id: "10" }
9634
- ]);
9635
- }),
9636
- columns: [
9637
- { title: "a", dataIndex: "a" },
9638
- { title: "b", dataIndex: "b" },
9639
- { title: "c", dataIndex: "c" },
9640
- { title: "d", dataIndex: "d" }
9641
- ]
9642
- })
9643
- },
9644
- tree: {
9645
- default: () => ({
9646
- fieldNames: { label: "a", value: "id" },
9647
- api: () => new Promise((resolve) => {
9648
- resolve([
9649
- {
9650
- title: "father",
9651
- key: "1",
9652
- children: [{ title: "1-son", key: "1-1" }]
9653
- },
9654
- {
9655
- title: "father2",
9656
- key: "2",
9657
- children: [{ title: "2-son", key: "2-1" }]
9658
- }
9659
- ]);
9660
- })
9661
- })
9662
- },
9663
- selectMode: {
9664
- default: "single",
9665
- type: String
9666
- },
9667
- fieldNames: {
9668
- default: { label: "name", value: "id" }
9669
- },
9670
- readonly: {
9671
- default: false,
9672
- type: Boolean
9673
- }
9674
- });
9675
+ const props2 = __props;
9675
9676
  const [register, { openModal }] = useModal();
9676
9677
  const emitData = ref([]);
9677
9678
  const label = ref("");
@@ -9721,7 +9722,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
9721
9722
  createVNode(unref(Input), {
9722
9723
  value: unref(state),
9723
9724
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(state) ? state.value = $event : null),
9724
- readonly: unref(props2).readonly,
9725
+ readonly: props2.readonly,
9725
9726
  onChange: handleChange
9726
9727
  }, {
9727
9728
  addonAfter: withCtx(() => [
@@ -9737,7 +9738,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
9737
9738
  createVNode(unref(FormItemRest), null, {
9738
9739
  default: withCtx(() => [
9739
9740
  createVNode(Modal, {
9740
- title: _ctx.title,
9741
+ title: __props.title,
9741
9742
  onRegister: unref(register),
9742
9743
  onConfirm: handleConfirm
9743
9744
  }, null, 8, ["title", "onRegister"])
@@ -9748,8 +9749,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
9748
9749
  };
9749
9750
  }
9750
9751
  });
9751
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_dc00479e_lang = "";
9752
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-dc00479e"]]);
9752
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_ae47630a_lang = "";
9753
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ae47630a"]]);
9753
9754
  function useComponentRegister(compName, comp) {
9754
9755
  add(compName, comp);
9755
9756
  tryOnUnmounted(() => {
@@ -13182,7 +13183,8 @@ const _sfc_main$c = defineComponent({
13182
13183
  Divider,
13183
13184
  Dropdown: _sfc_main$d,
13184
13185
  MoreOutlined: MoreOutlined$1,
13185
- Tooltip
13186
+ Tooltip,
13187
+ Button
13186
13188
  },
13187
13189
  props: {
13188
13190
  actions: {
@@ -13296,7 +13298,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
13296
13298
  const _component_Tooltip = resolveComponent("Tooltip");
13297
13299
  const _component_Divider = resolveComponent("Divider");
13298
13300
  const _component_MoreOutlined = resolveComponent("MoreOutlined");
13299
- const _component_a_button = resolveComponent("a-button");
13301
+ const _component_Button = resolveComponent("Button");
13300
13302
  const _component_Dropdown = resolveComponent("Dropdown");
13301
13303
  return openBlock(), createElementBlock("div", {
13302
13304
  class: normalizeClass([_ctx.prefixCls, _ctx.getAlign]),
@@ -13351,7 +13353,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
13351
13353
  }, {
13352
13354
  default: withCtx(() => [
13353
13355
  renderSlot(_ctx.$slots, "more"),
13354
- !_ctx.$slots.more ? (openBlock(), createBlock(_component_a_button, {
13356
+ !_ctx.$slots.more ? (openBlock(), createBlock(_component_Button, {
13355
13357
  key: 0,
13356
13358
  type: "link",
13357
13359
  size: "small"
package/es/style.css CHANGED
@@ -640,10 +640,10 @@ span.iconify {
640
640
  /* stylelint-disable no-duplicate-selectors */
641
641
  /* stylelint-disable */
642
642
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
643
- [data-v-dc00479e] .ant-input-group-addon {
643
+ [data-v-ae47630a] .ant-input-group-addon {
644
644
  padding: 0;
645
645
  }
646
- .btn-wrapper[data-v-dc00479e] {
646
+ .btn-wrapper[data-v-ae47630a] {
647
647
  padding: 0 5px;
648
648
  display: flex;
649
649
  align-items: center;
@@ -167,7 +167,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
167
167
  'aria-expanded'?: boolean | "true" | "false";
168
168
  'aria-flowto'?: string;
169
169
  'aria-grabbed'?: boolean | "true" | "false";
170
- 'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "grid" | "listbox" | "tree";
170
+ 'aria-haspopup'?: "dialog" | "menu" | (boolean | "true" | "false") | "tree" | "grid" | "listbox";
171
171
  'aria-hidden'?: boolean | "true" | "false";
172
172
  'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling";
173
173
  'aria-keyshortcuts'?: string;
@@ -0,0 +1,2 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
2
+ export default _sfc_main;
package/lib/index.js CHANGED
@@ -9612,71 +9612,72 @@ const Modal = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-c8
9612
9612
  const _hoisted_1$b = { class: "api-modal-select" };
9613
9613
  const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
9614
9614
  __name: "ApiModalSelect",
9615
+ props: {
9616
+ value: {
9617
+ default: ""
9618
+ },
9619
+ title: {
9620
+ default: "title"
9621
+ },
9622
+ tableComponentProps: {
9623
+ type: Object,
9624
+ default: () => ({
9625
+ api: () => new Promise((resolve) => {
9626
+ resolve([
9627
+ { a: 1, b: 2, c: 3, d: 4, id: "1" },
9628
+ { a: 1, b: 2, c: 3, d: 4, id: "2" },
9629
+ { a: 1, b: 2, c: 3, d: 4, id: "3" },
9630
+ { a: 1, b: 2, c: 3, d: 4, id: "4" },
9631
+ { a: 1, b: 2, c: 3, d: 4, id: "5" },
9632
+ { a: 1, b: 2, c: 3, d: 4, id: "6" },
9633
+ { a: 1, b: 2, c: 3, d: 4, id: "7" },
9634
+ { a: 1, b: 2, c: 3, d: 4, id: "8" },
9635
+ { a: 1, b: 2, c: 3, d: 4, id: "9" },
9636
+ { a: 1, b: 2, c: 3, d: 4, id: "10" }
9637
+ ]);
9638
+ }),
9639
+ columns: [
9640
+ { title: "a", dataIndex: "a" },
9641
+ { title: "b", dataIndex: "b" },
9642
+ { title: "c", dataIndex: "c" },
9643
+ { title: "d", dataIndex: "d" }
9644
+ ]
9645
+ })
9646
+ },
9647
+ tree: {
9648
+ default: () => ({
9649
+ fieldNames: { label: "a", value: "id" },
9650
+ api: () => new Promise((resolve) => {
9651
+ resolve([
9652
+ {
9653
+ title: "father",
9654
+ key: "1",
9655
+ children: [{ title: "1-son", key: "1-1" }]
9656
+ },
9657
+ {
9658
+ title: "father2",
9659
+ key: "2",
9660
+ children: [{ title: "2-son", key: "2-1" }]
9661
+ }
9662
+ ]);
9663
+ })
9664
+ })
9665
+ },
9666
+ selectMode: {
9667
+ default: "single",
9668
+ type: String
9669
+ },
9670
+ fieldNames: {
9671
+ default: { label: "name", value: "id" }
9672
+ },
9673
+ readonly: {
9674
+ default: false,
9675
+ type: Boolean
9676
+ }
9677
+ },
9615
9678
  emits: ["update:value", "change", "modal-confirm"],
9616
9679
  setup(__props, { expose, emit }) {
9617
- const props2 = defineProps({
9618
- value: {
9619
- default: ""
9620
- },
9621
- title: {
9622
- default: "title"
9623
- },
9624
- tableComponentProps: {
9625
- type: Object,
9626
- default: () => ({
9627
- api: () => new Promise((resolve) => {
9628
- resolve([
9629
- { a: 1, b: 2, c: 3, d: 4, id: "1" },
9630
- { a: 1, b: 2, c: 3, d: 4, id: "2" },
9631
- { a: 1, b: 2, c: 3, d: 4, id: "3" },
9632
- { a: 1, b: 2, c: 3, d: 4, id: "4" },
9633
- { a: 1, b: 2, c: 3, d: 4, id: "5" },
9634
- { a: 1, b: 2, c: 3, d: 4, id: "6" },
9635
- { a: 1, b: 2, c: 3, d: 4, id: "7" },
9636
- { a: 1, b: 2, c: 3, d: 4, id: "8" },
9637
- { a: 1, b: 2, c: 3, d: 4, id: "9" },
9638
- { a: 1, b: 2, c: 3, d: 4, id: "10" }
9639
- ]);
9640
- }),
9641
- columns: [
9642
- { title: "a", dataIndex: "a" },
9643
- { title: "b", dataIndex: "b" },
9644
- { title: "c", dataIndex: "c" },
9645
- { title: "d", dataIndex: "d" }
9646
- ]
9647
- })
9648
- },
9649
- tree: {
9650
- default: () => ({
9651
- fieldNames: { label: "a", value: "id" },
9652
- api: () => new Promise((resolve) => {
9653
- resolve([
9654
- {
9655
- title: "father",
9656
- key: "1",
9657
- children: [{ title: "1-son", key: "1-1" }]
9658
- },
9659
- {
9660
- title: "father2",
9661
- key: "2",
9662
- children: [{ title: "2-son", key: "2-1" }]
9663
- }
9664
- ]);
9665
- })
9666
- })
9667
- },
9668
- selectMode: {
9669
- default: "single",
9670
- type: String
9671
- },
9672
- fieldNames: {
9673
- default: { label: "name", value: "id" }
9674
- },
9675
- readonly: {
9676
- default: false,
9677
- type: Boolean
9678
- }
9679
- });
9680
+ const props2 = __props;
9680
9681
  const [register, { openModal }] = useModal();
9681
9682
  const emitData = vue.ref([]);
9682
9683
  const label = vue.ref("");
@@ -9726,7 +9727,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
9726
9727
  vue.createVNode(vue.unref(antDesignVue.Input), {
9727
9728
  value: vue.unref(state),
9728
9729
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => vue.isRef(state) ? state.value = $event : null),
9729
- readonly: vue.unref(props2).readonly,
9730
+ readonly: props2.readonly,
9730
9731
  onChange: handleChange
9731
9732
  }, {
9732
9733
  addonAfter: vue.withCtx(() => [
@@ -9742,7 +9743,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
9742
9743
  vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
9743
9744
  default: vue.withCtx(() => [
9744
9745
  vue.createVNode(Modal, {
9745
- title: _ctx.title,
9746
+ title: __props.title,
9746
9747
  onRegister: vue.unref(register),
9747
9748
  onConfirm: handleConfirm
9748
9749
  }, null, 8, ["title", "onRegister"])
@@ -9753,8 +9754,8 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
9753
9754
  };
9754
9755
  }
9755
9756
  });
9756
- const ApiModalSelect_vue_vue_type_style_index_0_scoped_dc00479e_lang = "";
9757
- const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-dc00479e"]]);
9757
+ const ApiModalSelect_vue_vue_type_style_index_0_scoped_ae47630a_lang = "";
9758
+ const ApiModalSelect = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ae47630a"]]);
9758
9759
  function useComponentRegister(compName, comp) {
9759
9760
  add(compName, comp);
9760
9761
  tryOnUnmounted(() => {
@@ -13187,7 +13188,8 @@ const _sfc_main$c = vue.defineComponent({
13187
13188
  Divider: antDesignVue.Divider,
13188
13189
  Dropdown: _sfc_main$d,
13189
13190
  MoreOutlined: MoreOutlined$1,
13190
- Tooltip: antDesignVue.Tooltip
13191
+ Tooltip: antDesignVue.Tooltip,
13192
+ Button: antDesignVue.Button
13191
13193
  },
13192
13194
  props: {
13193
13195
  actions: {
@@ -13301,7 +13303,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
13301
13303
  const _component_Tooltip = vue.resolveComponent("Tooltip");
13302
13304
  const _component_Divider = vue.resolveComponent("Divider");
13303
13305
  const _component_MoreOutlined = vue.resolveComponent("MoreOutlined");
13304
- const _component_a_button = vue.resolveComponent("a-button");
13306
+ const _component_Button = vue.resolveComponent("Button");
13305
13307
  const _component_Dropdown = vue.resolveComponent("Dropdown");
13306
13308
  return vue.openBlock(), vue.createElementBlock("div", {
13307
13309
  class: vue.normalizeClass([_ctx.prefixCls, _ctx.getAlign]),
@@ -13356,7 +13358,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
13356
13358
  }, {
13357
13359
  default: vue.withCtx(() => [
13358
13360
  vue.renderSlot(_ctx.$slots, "more"),
13359
- !_ctx.$slots.more ? (vue.openBlock(), vue.createBlock(_component_a_button, {
13361
+ !_ctx.$slots.more ? (vue.openBlock(), vue.createBlock(_component_Button, {
13360
13362
  key: 0,
13361
13363
  type: "link",
13362
13364
  size: "small"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "3h1-ui",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",