@cmstops/pro-compo 0.3.74 → 0.3.75

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.
@@ -92,8 +92,9 @@ const _sfc_main = defineComponent({
92
92
  "model-value": unref(activeKey),
93
93
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeKey) ? activeKey.value = $event : null),
94
94
  tabList: unref(tabKeyList),
95
+ wrap: _ctx.wrap,
95
96
  onClose: unref(close)
96
- }, null, 8, ["model-value", "tabList", "onClose"]),
97
+ }, null, 8, ["model-value", "tabList", "wrap", "onClose"]),
97
98
  createCommentVNode(" \u5217\u8868\u5206\u53D1\u5668 "),
98
99
  _ctx.visible || isDiv ? (openBlock(), createBlock(resolveDynamicComponent(unref(activeComponent)), {
99
100
  key: 0,
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, createBlock } from "vue";
1
+ import { defineComponent, computed, openBlock, createElementBlock, createVNode, unref, withCtx, createBlock, createCommentVNode, Fragment, renderList } from "vue";
2
2
  import { IconClose } from "@arco-design/web-vue/es/icon";
3
3
  import { Tabs, Button, TabPane } from "@arco-design/web-vue";
4
4
  const _hoisted_1 = { class: "resource-select-header" };
@@ -6,7 +6,8 @@ const _sfc_main = defineComponent({
6
6
  __name: "index",
7
7
  props: {
8
8
  modelValue: {},
9
- tabList: {}
9
+ tabList: {},
10
+ wrap: {}
10
11
  },
11
12
  emits: ["update:model-value", "change", "close"],
12
13
  setup(__props, { emit: __emit }) {
@@ -16,6 +17,7 @@ const _sfc_main = defineComponent({
16
17
  get: () => props.modelValue,
17
18
  set: (value) => emits("update:model-value", value)
18
19
  });
20
+ const isDiv = props.wrap === "div";
19
21
  return (_ctx, _cache) => {
20
22
  return openBlock(), createElementBlock("div", _hoisted_1, [
21
23
  createVNode(unref(Tabs), {
@@ -24,7 +26,8 @@ const _sfc_main = defineComponent({
24
26
  onChange: _cache[2] || (_cache[2] = (e) => emits("change", e))
25
27
  }, {
26
28
  extra: withCtx(() => [
27
- createVNode(unref(Button), {
29
+ !isDiv ? (openBlock(), createBlock(unref(Button), {
30
+ key: 0,
28
31
  type: "text",
29
32
  shape: "round",
30
33
  style: { "color": "black", "transform": "translateX(-8px)" },
@@ -34,7 +37,7 @@ const _sfc_main = defineComponent({
34
37
  createVNode(unref(IconClose))
35
38
  ]),
36
39
  _: 1
37
- })
40
+ })) : createCommentVNode("v-if", true)
38
41
  ]),
39
42
  default: withCtx(() => [
40
43
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.tabList, (tab) => {
@@ -93,8 +93,9 @@ const _sfc_main = vue.defineComponent({
93
93
  "model-value": vue.unref(activeKey),
94
94
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(activeKey) ? activeKey.value = $event : null),
95
95
  tabList: vue.unref(tabKeyList),
96
+ wrap: _ctx.wrap,
96
97
  onClose: vue.unref(close)
97
- }, null, 8, ["model-value", "tabList", "onClose"]),
98
+ }, null, 8, ["model-value", "tabList", "wrap", "onClose"]),
98
99
  vue.createCommentVNode(" \u5217\u8868\u5206\u53D1\u5668 "),
99
100
  _ctx.visible || isDiv ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(activeComponent)), {
100
101
  key: 0,
@@ -7,7 +7,8 @@ const _sfc_main = vue.defineComponent({
7
7
  __name: "index",
8
8
  props: {
9
9
  modelValue: {},
10
- tabList: {}
10
+ tabList: {},
11
+ wrap: {}
11
12
  },
12
13
  emits: ["update:model-value", "change", "close"],
13
14
  setup(__props, { emit: __emit }) {
@@ -17,6 +18,7 @@ const _sfc_main = vue.defineComponent({
17
18
  get: () => props.modelValue,
18
19
  set: (value) => emits("update:model-value", value)
19
20
  });
21
+ const isDiv = props.wrap === "div";
20
22
  return (_ctx, _cache) => {
21
23
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
22
24
  vue.createVNode(vue.unref(webVue.Tabs), {
@@ -25,7 +27,8 @@ const _sfc_main = vue.defineComponent({
25
27
  onChange: _cache[2] || (_cache[2] = (e) => emits("change", e))
26
28
  }, {
27
29
  extra: vue.withCtx(() => [
28
- vue.createVNode(vue.unref(webVue.Button), {
30
+ !isDiv ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
31
+ key: 0,
29
32
  type: "text",
30
33
  shape: "round",
31
34
  style: { "color": "black", "transform": "translateX(-8px)" },
@@ -35,7 +38,7 @@ const _sfc_main = vue.defineComponent({
35
38
  vue.createVNode(vue.unref(icon.IconClose))
36
39
  ]),
37
40
  _: 1
38
- })
41
+ })) : vue.createCommentVNode("v-if", true)
39
42
  ]),
40
43
  default: vue.withCtx(() => [
41
44
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabList, (tab) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.74",
3
+ "version": "0.3.75",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",