@opentinyvue/vue-cascader 2.21.0 → 2.22.1

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/lib/index.js CHANGED
@@ -7,7 +7,7 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $setup, $props } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
12
  import MobileFirstTemplate from "./mobile-first.js";
13
13
  import { t } from "@opentinyvue/vue-locale";
@@ -118,6 +118,10 @@ var cascaderProps = _extends({}, $props, {
118
118
  blank: {
119
119
  type: Boolean,
120
120
  default: false
121
+ },
122
+ changeCompat: {
123
+ type: Boolean,
124
+ default: false
121
125
  }
122
126
  });
123
127
  var Cascader = defineComponent({
@@ -132,7 +136,7 @@ var Cascader = defineComponent({
132
136
  });
133
137
  }
134
138
  });
135
- var version = "2.21.0";
139
+ var version = "2.undefined";
136
140
  Cascader.model = {
137
141
  prop: "modelValue",
138
142
  event: "update:modelValue"
@@ -3,7 +3,7 @@ import Input from '@opentinyvue/vue-input';
3
3
  import { IconClose, IconChevronDown, IconChevronUp, IconYes, IconChevronRight } from '@opentinyvue/vue-icon';
4
4
  import CascaderMobile from '@opentinyvue/vue-cascader-mobile';
5
5
  import { renderless, api } from '@opentinyvue/vue-renderless/cascader/vue';
6
- import Clickoutside from '@opentinyvue/vue-renderless/common/deps/clickoutside';
6
+ import { Clickoutside } from '@opentinyvue/vue-directive';
7
7
  import Scrollbar from '@opentinyvue/vue-scrollbar';
8
8
  import CascaderPanel from '@opentinyvue/vue-cascader-panel';
9
9
  import Tooltip from '@opentinyvue/vue-tooltip';
@@ -337,7 +337,7 @@ var __vue2_script = defineComponent({
337
337
  TinyInput: Input,
338
338
  IconChevronRight: IconChevronRight()
339
339
  },
340
- emits: ["update:modelValue", "change", "visible-change", "focus", "blur", "expand-change", "active-item-change", "remove-tag", "created"],
340
+ emits: ["update:modelValue", "change", "visible-change", "focus", "blur", "expand-change", "active-item-change", "remove-tag", "created", "changeCompat"],
341
341
  setup: function setup2(props2, ctx) {
342
342
  var bp = useBreakpoint().current;
343
343
  var visible = hooks.ref(false);
package/lib/pc.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { renderless, api } from '@opentinyvue/vue-renderless/cascader/vue';
2
2
  import { defineComponent, props, directive, setup } from '@opentinyvue/vue-common';
3
- import Clickoutside from '@opentinyvue/vue-renderless/common/deps/clickoutside';
4
- import { HighlightQuery } from '@opentinyvue/vue-directive';
3
+ import { Clickoutside, HighlightQuery } from '@opentinyvue/vue-directive';
5
4
  import Input from '@opentinyvue/vue-input';
6
5
  import Tag from '@opentinyvue/vue-tag';
7
6
  import Scrollbar from '@opentinyvue/vue-scrollbar';
@@ -51,7 +50,7 @@ function _extends() {
51
50
  }, _extends.apply(null, arguments);
52
51
  }
53
52
  var __vue2_script = defineComponent({
54
- props: [].concat(props, ["modelValue", "options", "props", "size", "placeholder", "disabled", "clearable", "filterable", "filterMethod", "separator", "showAllLevels", "collapseTags", "debounce", "beforeFilter", "popperClass", "placement", "popperOptions", "visibleArrow", "offset", "boundariesPadding", "arrowOffset", "popperAppendToBody", "autoSize", "displayOnly", "shape", "label", "tip", "hoverExpand", "blank"]),
53
+ props: [].concat(props, ["modelValue", "options", "props", "size", "placeholder", "disabled", "clearable", "filterable", "filterMethod", "separator", "showAllLevels", "collapseTags", "debounce", "beforeFilter", "popperClass", "placement", "popperOptions", "visibleArrow", "offset", "boundariesPadding", "arrowOffset", "popperAppendToBody", "autoSize", "displayOnly", "shape", "label", "tip", "hoverExpand", "blank", "changeCompat"]),
55
54
  emits: ["update:modelValue", "change", "visible-change", "focus", "blur", "expand-change", "active-item-change", "remove-tag", "created"],
56
55
  directives: _extends({}, directive({
57
56
  Clickoutside
@@ -148,9 +147,9 @@ var render = function render2() {
148
147
  "is-focus": _vm.state.dropDownVisible
149
148
  },
150
149
  attrs: {
151
- "model-value": _vm.state.multiple ? _vm.state.presentText : _vm.state.inputValue,
150
+ "model-value": _vm.state.multiple && _vm.filterable ? "" : _vm.state.inputValues,
152
151
  "size": _vm.state.realSize,
153
- "placeholder": _vm.state.placeholder,
152
+ "placeholder": _vm.state.multiple && _vm.filterable ? "" : _vm.state.placeholder,
154
153
  "readonly": _vm.state.readonly,
155
154
  "disabled": _vm.state.isDisabled,
156
155
  "display-only": _vm.displayOnly,
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-cascader",
3
3
  "type": "module",
4
- "version": "2.21.0",
4
+ "version": "2.22.1",
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-cascader-mobile": "~2.21.0",
12
- "@opentinyvue/vue-cascader-panel": "~2.21.0",
13
- "@opentinyvue/vue-common": "~2.21.0",
14
- "@opentinyvue/vue-directive": "~2.21.0",
15
- "@opentinyvue/vue-filter-box": "~2.21.0",
16
- "@opentinyvue/vue-icon": "~2.21.0",
17
- "@opentinyvue/vue-input": "~2.21.0",
18
- "@opentinyvue/vue-locale": "~2.21.0",
19
- "@opentinyvue/vue-renderless": "~3.21.0",
20
- "@opentinyvue/vue-scrollbar": "~2.21.0",
21
- "@opentinyvue/vue-tag": "~2.21.0",
22
- "@opentinyvue/vue-theme": "~3.21.0",
23
- "@opentinyvue/vue-tooltip": "~2.21.0"
11
+ "@opentinyvue/vue-cascader-mobile": "~2.22.0",
12
+ "@opentinyvue/vue-cascader-panel": "~2.22.0",
13
+ "@opentinyvue/vue-common": "~2.22.0",
14
+ "@opentinyvue/vue-directive": "~2.22.0",
15
+ "@opentinyvue/vue-filter-box": "~2.22.0",
16
+ "@opentinyvue/vue-icon": "~2.22.0",
17
+ "@opentinyvue/vue-input": "~2.22.0",
18
+ "@opentinyvue/vue-locale": "~2.22.0",
19
+ "@opentinyvue/vue-renderless": "~3.22.0",
20
+ "@opentinyvue/vue-scrollbar": "~2.22.0",
21
+ "@opentinyvue/vue-tag": "~2.22.0",
22
+ "@opentinyvue/vue-theme": "~3.22.0",
23
+ "@opentinyvue/vue-tooltip": "~2.22.0"
24
24
  },
25
25
  "types": "index.d.ts",
26
26
  "scripts": {
package/src/index.d.ts CHANGED
@@ -85,6 +85,10 @@ export declare const cascaderProps: {
85
85
  type: BooleanConstructor;
86
86
  default: boolean;
87
87
  };
88
+ changeCompat: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
88
92
  tiny_mode: StringConstructor;
89
93
  tiny_mode_root: BooleanConstructor;
90
94
  tiny_template: (ObjectConstructor | FunctionConstructor)[];