@jetlinks-web/components 3.3.10 → 3.3.12

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.
@@ -84,8 +84,8 @@ const __sfc_main__ = _defineComponent({
84
84
  return _optionalChain([slot, 'optionalCall', _2 => _2(), 'access', _3 => _3.some, 'call', _4 => _4(isValidSlotNode)]) || false;
85
85
  };
86
86
  const showHeader = computed(() => {
87
- const shouldHideEmptyHeader = props.initMode === false || props.initMode === undefined;
88
- return !shouldHideEmptyHeader || hasSlotContent('headerLeftRender') || hasSlotContent('headerRightRender');
87
+ const shouldHideEmptyHeader = !props.initMode;
88
+ return shouldHideEmptyHeader || hasSlotContent('headerLeftRender') || hasSlotContent('headerRightRender');
89
89
  });
90
90
  return (_ctx, _cache) => {
91
91
  return (showHeader.value)
package/es/Search/Item.js CHANGED
@@ -69,13 +69,15 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
69
69
  "handleTermsModelValue": "setup-const"
70
70
  } */
71
71
  import { defineComponent as _defineComponent } from 'vue';
72
- import { unref as _unref, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createVNode as _createVNode, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
72
+ import { unref as _unref, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createVNode as _createVNode, createElementVNode as _createElementVNode, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, normalizeClass as _normalizeClass } from "vue";
73
73
  const _hoisted_1 = {
74
74
  key: 0,
75
75
  class: "JSearch-item--type"
76
76
  };
77
77
  const _hoisted_2 = { key: 1 };
78
- const _hoisted_3 = { class: "JSearch-item--value" };
78
+ const _hoisted_3 = { class: "JSearch-item--column" };
79
+ const _hoisted_4 = { class: "JSearch-item--termType" };
80
+ const _hoisted_5 = { class: "JSearch-item--value" };
79
81
  import { computed, ref, reactive, watch, isRef } from 'vue';
80
82
  import { Select, DatePicker, RangePicker } from 'ant-design-vue';
81
83
  import { componentProps, componentType, typeOptions } from "./setting";
@@ -306,24 +308,28 @@ const __sfc_main__ = _defineComponent({
306
308
  : (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(__props.index === 1 ? _unref(contextLocale).item.firstGroup : _unref(contextLocale).item.secondGroup), 1 /* TEXT */))
307
309
  ]))
308
310
  : _createCommentVNode("v-if", true),
309
- _createVNode(_unref(Select), {
310
- value: termsModel.column,
311
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => ((termsModel.column) = $event)),
312
- placeholder: _unref(contextLocale).item.placeholder,
313
- class: "JSearch-item--column",
314
- options: columnOptions.value,
315
- onChange: onColumnChange
316
- }, null, 8 /* PROPS */, ["value", "placeholder", "options"]),
317
- _createVNode(_unref(Select), {
318
- value: termsModel.termType,
319
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => ((termsModel.termType) = $event)),
320
- placeholder: _unref(contextLocale).item.placeholder,
321
- class: "JSearch-item--termType",
322
- options: termTypeOptions.value,
323
- onChange: onTermTypeChange
324
- }, null, 8 /* PROPS */, ["value", "placeholder", "options"])
311
+ _createElementVNode("div", _hoisted_3, [
312
+ _createVNode(_unref(Select), {
313
+ value: termsModel.column,
314
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => ((termsModel.column) = $event)),
315
+ placeholder: _unref(contextLocale).item.placeholder,
316
+ options: columnOptions.value,
317
+ style: { "width": "100%" },
318
+ onChange: onColumnChange
319
+ }, null, 8 /* PROPS */, ["value", "placeholder", "options"])
320
+ ]),
321
+ _createElementVNode("div", _hoisted_4, [
322
+ _createVNode(_unref(Select), {
323
+ value: termsModel.termType,
324
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => ((termsModel.termType) = $event)),
325
+ placeholder: _unref(contextLocale).item.placeholder,
326
+ options: termTypeOptions.value,
327
+ style: { "width": "100%" },
328
+ onChange: onTermTypeChange
329
+ }, null, 8 /* PROPS */, ["value", "placeholder", "options"])
330
+ ])
325
331
  ], 64 /* STABLE_FRAGMENT */)),
326
- _createElementVNode("div", _hoisted_3, [
332
+ _createElementVNode("div", _hoisted_5, [
327
333
  (_openBlock(), _createBlock(_resolveDynamicComponent(targetComponents.value.name), _mergeProps({
328
334
  "allow-clear": "",
329
335
  style: { "width": "100%", "min-width": "80px" }
@@ -84,8 +84,8 @@ const __sfc_main__ = _defineComponent({
84
84
  return _optionalChain([slot, 'optionalCall', _2 => _2(), 'access', _3 => _3.some, 'call', _4 => _4(isValidSlotNode)]) || false;
85
85
  };
86
86
  const showHeader = computed(() => {
87
- const shouldHideEmptyHeader = props.initMode === false || props.initMode === undefined;
88
- return !shouldHideEmptyHeader || hasSlotContent('headerLeftRender') || hasSlotContent('headerRightRender');
87
+ const shouldHideEmptyHeader = !props.initMode;
88
+ return shouldHideEmptyHeader || hasSlotContent('headerLeftRender') || hasSlotContent('headerRightRender');
89
89
  });
90
90
  return (_ctx, _cache) => {
91
91
  return (showHeader.value)
@@ -69,13 +69,15 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
69
69
  "handleTermsModelValue": "setup-const"
70
70
  } */
71
71
  import { defineComponent as _defineComponent } from 'vue';
72
- import { unref as _unref, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createVNode as _createVNode, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
72
+ import { unref as _unref, toDisplayString as _toDisplayString, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createVNode as _createVNode, createElementVNode as _createElementVNode, Fragment as _Fragment, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, normalizeClass as _normalizeClass } from "vue";
73
73
  const _hoisted_1 = {
74
74
  key: 0,
75
75
  class: "JSearch-item--type"
76
76
  };
77
77
  const _hoisted_2 = { key: 1 };
78
- const _hoisted_3 = { class: "JSearch-item--value" };
78
+ const _hoisted_3 = { class: "JSearch-item--column" };
79
+ const _hoisted_4 = { class: "JSearch-item--termType" };
80
+ const _hoisted_5 = { class: "JSearch-item--value" };
79
81
  import { computed, ref, reactive, watch, isRef } from 'vue';
80
82
  import { Select, DatePicker, RangePicker } from 'ant-design-vue';
81
83
  import { componentProps, componentType, typeOptions } from "./setting";
@@ -306,24 +308,28 @@ const __sfc_main__ = _defineComponent({
306
308
  : (_openBlock(), _createElementBlock("span", _hoisted_2, _toDisplayString(__props.index === 1 ? _unref(contextLocale).item.firstGroup : _unref(contextLocale).item.secondGroup), 1 /* TEXT */))
307
309
  ]))
308
310
  : _createCommentVNode("v-if", true),
309
- _createVNode(_unref(Select), {
310
- value: termsModel.column,
311
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => ((termsModel.column) = $event)),
312
- placeholder: _unref(contextLocale).item.placeholder,
313
- class: "JSearch-item--column",
314
- options: columnOptions.value,
315
- onChange: onColumnChange
316
- }, null, 8 /* PROPS */, ["value", "placeholder", "options"]),
317
- _createVNode(_unref(Select), {
318
- value: termsModel.termType,
319
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => ((termsModel.termType) = $event)),
320
- placeholder: _unref(contextLocale).item.placeholder,
321
- class: "JSearch-item--termType",
322
- options: termTypeOptions.value,
323
- onChange: onTermTypeChange
324
- }, null, 8 /* PROPS */, ["value", "placeholder", "options"])
311
+ _createElementVNode("div", _hoisted_3, [
312
+ _createVNode(_unref(Select), {
313
+ value: termsModel.column,
314
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => ((termsModel.column) = $event)),
315
+ placeholder: _unref(contextLocale).item.placeholder,
316
+ options: columnOptions.value,
317
+ style: { "width": "100%" },
318
+ onChange: onColumnChange
319
+ }, null, 8 /* PROPS */, ["value", "placeholder", "options"])
320
+ ]),
321
+ _createElementVNode("div", _hoisted_4, [
322
+ _createVNode(_unref(Select), {
323
+ value: termsModel.termType,
324
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => ((termsModel.termType) = $event)),
325
+ placeholder: _unref(contextLocale).item.placeholder,
326
+ options: termTypeOptions.value,
327
+ style: { "width": "100%" },
328
+ onChange: onTermTypeChange
329
+ }, null, 8 /* PROPS */, ["value", "placeholder", "options"])
330
+ ])
325
331
  ], 64 /* STABLE_FRAGMENT */)),
326
- _createElementVNode("div", _hoisted_3, [
332
+ _createElementVNode("div", _hoisted_5, [
327
333
  (_openBlock(), _createBlock(_resolveDynamicComponent(targetComponents.value.name), _mergeProps({
328
334
  "allow-clear": "",
329
335
  style: { "width": "100%", "min-width": "80px" }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "3.3.10",
3
+ "version": "3.3.12",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -154,9 +154,9 @@
154
154
  "webpack-dev-server": "^4.0.0",
155
155
  "webpack-merge": "^5.0.0",
156
156
  "webpackbar": "^5.0.2",
157
+ "@jetlinks-web/utils": "^1.3.6",
157
158
  "@jetlinks-web/hooks": "^1.1.2",
158
- "@jetlinks-web/constants": "^1.0.9",
159
- "@jetlinks-web/utils": "^1.3.4"
159
+ "@jetlinks-web/constants": "^1.0.9"
160
160
  },
161
161
  "publishConfig": {
162
162
  "registry": "https://registry.npmjs.org/",