@opentinyvue/vue-form-item 2.25.0 → 2.27.0

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.
@@ -91,6 +91,10 @@ var __vue2_script = defineComponent({
91
91
  type: Boolean,
92
92
  default: true
93
93
  },
94
+ disabled: {
95
+ type: Boolean,
96
+ default: false
97
+ },
94
98
  size: String,
95
99
  tipContent: String,
96
100
  validateDisabled: Boolean,
@@ -124,7 +128,7 @@ var render = function render2() {
124
128
  "is-mobile-first": true
125
129
  }
126
130
  }, [_vm.slots.label || _vm.label ? _c("label", {
127
- class: _vm.m("py-3 sm:py-0 sm:min-h-[theme(spacing.7)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5 shrink-0", "overflow-hidden text-ellipsis", _vm.state.labelPosition === "top" ? "float-none inline-block text-left sm:text-left leading-none px-0 pt-0 pb-1.5 h-auto min-h-0 sm:py-0 sm:pb-1 sm:min-h-[theme(spacing.0)]" : "min-h-[theme(spacing.9)]", _vm.state.labelPosition === "right" ? "text-right sm:text-right" : "", _vm.state.labelPosition === "left" ? "text-left sm:text-left" : "", _vm.state.formInline && _vm.state.labelPosition === "top" ? "block" : "", _vm.state.isDisplayOnly ? "leading-none h-auto align-[inherit] pr-4" : "", _vm.tipContent ? "pr-5 sm:pr-7" : "", _vm.state.labelPosition === "top" && !_vm.state.hideRequiredAsterisk ? "overflow-visible relative before:absolute before:-left-2.5" : "", _vm.state.disabled ? "text-color-icon-placeholder sm:text-color-text-secondary" : "text-color-text-secondary", _vm.state.formItemSize !== "mini" ? "sm:text-sm" : "sm:text-xs"),
131
+ class: _vm.m("py-3 sm:py-0 sm:min-h-[theme(spacing.7)] relative align-bottom float-left text-sm pr-3 sm:pr-4 box-border leading-5 shrink-0", "overflow-hidden text-ellipsis", _vm.state.labelPosition === "top" ? "float-none inline-block text-left sm:text-left leading-none px-0 pt-0 pb-1.5 h-auto min-h-0 sm:py-0 sm:pb-1 sm:min-h-[theme(spacing.0)]" : "min-h-[theme(spacing.9)]", _vm.state.labelPosition === "right" ? "text-right sm:text-right" : "", _vm.state.labelPosition === "left" ? "text-left sm:text-left" : "", _vm.state.formInline && _vm.state.labelPosition === "top" ? "block" : "", _vm.state.isDisplayOnly ? "leading-none h-auto align-[inherit] pr-4" : "", _vm.tipContent ? "pr-5 sm:pr-7" : "", _vm.state.labelPosition === "top" && !_vm.state.hideRequiredAsterisk ? "overflow-visible relative before:absolute before:-left-2.5" : "", _vm.state.disabled ? "text-color-icon-placeholder sm:text-color-text-disabled" : "text-color-text-secondary", _vm.state.formItemSize !== "mini" ? "sm:text-sm" : "sm:text-xs"),
128
132
  style: _vm.state.labelStyle,
129
133
  attrs: {
130
134
  "data-tag": "tiny-item-label",
@@ -190,8 +194,8 @@ function __vue2_injectStyles(context) {
190
194
  this[o] = __cssModules[o];
191
195
  }
192
196
  }
193
- var mobileFirst = /* @__PURE__ */ function() {
197
+ var mobileFirst = /* @__PURE__ */ (function() {
194
198
  return __component__.exports;
195
- }();
199
+ })();
196
200
 
197
201
  export { mobileFirst as default };
package/lib/pc.js CHANGED
@@ -66,6 +66,10 @@ var __vue2_script = defineComponent({
66
66
  type: Boolean,
67
67
  default: void 0
68
68
  },
69
+ disabled: {
70
+ type: Boolean,
71
+ default: false
72
+ },
69
73
  error: String,
70
74
  for: String,
71
75
  inlineMessage: {
@@ -241,7 +245,7 @@ var __vue2_script = defineComponent({
241
245
  isMobile: state.mode === "mobile"
242
246
  }
243
247
  }, [labelSlot || label ? h("label", {
244
- class: (_class2 = {}, _class2[classPrefix + "form-item__label"] = true, _class2["is-ellipsis"] = isMobile && ellipsis, _class2),
248
+ class: (_class2 = {}, _class2[classPrefix + "form-item__label"] = true, _class2["is-ellipsis"] = isMobile && ellipsis, _class2["is-disabled"] = state.disabled, _class2),
245
249
  style: state.labelStyle,
246
250
  attrs: {
247
251
  for: state.labelFor
@@ -307,8 +311,8 @@ function __vue2_injectStyles(context) {
307
311
  this[o] = __cssModules[o];
308
312
  }
309
313
  }
310
- var pc = /* @__PURE__ */ function() {
314
+ var pc = /* @__PURE__ */ (function() {
311
315
  return __component__.exports;
312
- }();
316
+ })();
313
317
 
314
318
  export { pc as default };
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-form-item",
3
3
  "type": "module",
4
- "version": "2.25.0",
4
+ "version": "2.27.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/vue-common": "~2.25.0",
12
- "@opentinyvue/vue-icon": "~2.25.0",
13
- "@opentinyvue/vue-renderless": "~3.25.0",
14
- "@opentinyvue/vue-tooltip": "~2.25.0"
11
+ "@opentinyvue/vue-common": "~2.27.0",
12
+ "@opentinyvue/vue-icon": "~2.27.0",
13
+ "@opentinyvue/vue-renderless": "~3.27.0",
14
+ "@opentinyvue/vue-tooltip": "~2.27.0"
15
15
  },
16
16
  "types": "index.d.ts",
17
17
  "scripts": {