@weitutech/by-components-v3 1.1.12 → 1.1.13

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.
@@ -40944,6 +40944,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40944
40944
  if (!item.props) return {};
40945
40945
  const otherProps = { ...item.props };
40946
40946
  delete otherProps.value;
40947
+ if (item.type === ToolBarItemType.Select && item.props.onlyShowPlaceholder) {
40948
+ return otherProps;
40949
+ }
40947
40950
  return otherProps;
40948
40951
  };
40949
40952
  const getComponentStyle = (item) => {
@@ -41018,7 +41021,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41018
41021
  return openBlock(), createElementBlock("div", _hoisted_1, [
41019
41022
  createElementVNode("div", _hoisted_2, [
41020
41023
  (openBlock(true), createElementBlock(Fragment, null, renderList(leftItemsComputed.value, (item, idx) => {
41021
- var _a2;
41024
+ var _a2, _b;
41022
41025
  return openBlock(), createElementBlock(Fragment, {
41023
41026
  key: "left-" + idx
41024
41027
  }, [
@@ -41028,17 +41031,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41028
41031
  }, getComponentProps(item), {
41029
41032
  disabled: item.disabled,
41030
41033
  style: getComponentStyle(item),
41031
- "model-value": valueTracker.value.hasOwnProperty(item.name) ? valueTracker.value[item.name] : (_a2 = item.props) == null ? void 0 : _a2.value,
41034
+ "model-value": item.type === unref(ToolBarItemType).Select && ((_a2 = item.props) == null ? void 0 : _a2.onlyShowPlaceholder) ? void 0 : valueTracker.value.hasOwnProperty(item.name) ? valueTracker.value[item.name] : (_b = item.props) == null ? void 0 : _b.value,
41032
41035
  onClick: (e) => handleEvent("click", item, e),
41033
41036
  onInput: (val) => handleEvent("input", item, val),
41034
41037
  onChange: (val) => handleEvent("change", item, val),
41035
41038
  "onUpdate:modelValue": (val) => handleEvent("update:model-value", item, val)
41036
41039
  }), createSlots({
41037
41040
  default: withCtx(() => {
41038
- var _a3, _b, _c;
41041
+ var _a3, _b2, _c;
41039
41042
  return [
41040
41043
  item.type === unref(ToolBarItemType).Select || item.type === unref(ToolBarItemType).Input || item.type === unref(ToolBarItemType).RadioGroup ? (openBlock(), createElementBlock("div", _hoisted_3, "调试: " + toDisplayString(item.name) + " = " + toDisplayString((_a3 = item.props) == null ? void 0 : _a3.value), 1)) : createCommentVNode("", true),
41041
- item.type === unref(ToolBarItemType).Select || item.type === unref(ToolBarItemType).Input || item.type === unref(ToolBarItemType).RadioGroup ? (openBlock(), createElementBlock("div", _hoisted_4, "实际值: " + toDisplayString(item.name) + " model-value = " + toDisplayString((_b = item.props) == null ? void 0 : _b.value), 1)) : createCommentVNode("", true),
41044
+ item.type === unref(ToolBarItemType).Select || item.type === unref(ToolBarItemType).Input || item.type === unref(ToolBarItemType).RadioGroup ? (openBlock(), createElementBlock("div", _hoisted_4, "实际值: " + toDisplayString(item.name) + " model-value = " + toDisplayString((_b2 = item.props) == null ? void 0 : _b2.value), 1)) : createCommentVNode("", true),
41042
41045
  item.type === unref(ToolBarItemType).Button && item.label ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(item.label), 1)) : createCommentVNode("", true),
41043
41046
  item.type === unref(ToolBarItemType).Text ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.label) + toDisplayString(item.props && (item.props.children || item.props.innerHTML)), 1)) : createCommentVNode("", true),
41044
41047
  item.type === unref(ToolBarItemType).Select ? (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(item.asyncOptions || ((_c = item.props) == null ? void 0 : _c.options) || [], (opt) => {
@@ -41085,7 +41088,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41085
41088
  ]),
41086
41089
  createElementVNode("div", _hoisted_7, [
41087
41090
  (openBlock(true), createElementBlock(Fragment, null, renderList(rightItemsComputed.value, (item, idx) => {
41088
- var _a2;
41091
+ var _a2, _b;
41089
41092
  return openBlock(), createElementBlock(Fragment, {
41090
41093
  key: "right-" + idx
41091
41094
  }, [
@@ -41095,17 +41098,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41095
41098
  }, getComponentProps(item), {
41096
41099
  disabled: item.disabled,
41097
41100
  style: getComponentStyle(item),
41098
- "model-value": valueTracker.value.hasOwnProperty(item.name) ? valueTracker.value[item.name] : (_a2 = item.props) == null ? void 0 : _a2.value,
41101
+ "model-value": item.type === unref(ToolBarItemType).Select && ((_a2 = item.props) == null ? void 0 : _a2.onlyShowPlaceholder) ? void 0 : valueTracker.value.hasOwnProperty(item.name) ? valueTracker.value[item.name] : (_b = item.props) == null ? void 0 : _b.value,
41099
41102
  onClick: (e) => handleEvent("click", item, e),
41100
41103
  onInput: (val) => handleEvent("input", item, val),
41101
41104
  onChange: (val) => handleEvent("change", item, val),
41102
41105
  "onUpdate:modelValue": (val) => handleEvent("update:model-value", item, val)
41103
41106
  }), createSlots({
41104
41107
  default: withCtx(() => {
41105
- var _a3, _b, _c;
41108
+ var _a3, _b2, _c;
41106
41109
  return [
41107
41110
  item.type === unref(ToolBarItemType).Select || item.type === unref(ToolBarItemType).Input || item.type === unref(ToolBarItemType).RadioGroup ? (openBlock(), createElementBlock("div", _hoisted_8, "调试: " + toDisplayString(item.name) + " = " + toDisplayString((_a3 = item.props) == null ? void 0 : _a3.value), 1)) : createCommentVNode("", true),
41108
- item.type === unref(ToolBarItemType).Select || item.type === unref(ToolBarItemType).Input || item.type === unref(ToolBarItemType).RadioGroup ? (openBlock(), createElementBlock("div", _hoisted_9, "实际值: " + toDisplayString(item.name) + " model-value = " + toDisplayString((_b = item.props) == null ? void 0 : _b.value), 1)) : createCommentVNode("", true),
41111
+ item.type === unref(ToolBarItemType).Select || item.type === unref(ToolBarItemType).Input || item.type === unref(ToolBarItemType).RadioGroup ? (openBlock(), createElementBlock("div", _hoisted_9, "实际值: " + toDisplayString(item.name) + " model-value = " + toDisplayString((_b2 = item.props) == null ? void 0 : _b2.value), 1)) : createCommentVNode("", true),
41109
41112
  item.type === unref(ToolBarItemType).Button && item.label ? (openBlock(), createElementBlock("span", _hoisted_10, toDisplayString(item.label), 1)) : createCommentVNode("", true),
41110
41113
  item.type === unref(ToolBarItemType).Text ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(item.label) + toDisplayString(item.props && (item.props.children || item.props.innerHTML)), 1)) : createCommentVNode("", true),
41111
41114
  item.type === unref(ToolBarItemType).Select ? (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(item.asyncOptions || ((_c = item.props) == null ? void 0 : _c.options) || [], (opt) => {