@opentinyvue/vue-dropdown 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.
package/lib/index.js CHANGED
@@ -106,6 +106,10 @@ var dropdownProps = _extends({}, $props, {
106
106
  var Dropdown = defineComponent({
107
107
  name: $prefix + "Dropdown",
108
108
  componentName: "TinyDropdown",
109
+ model: {
110
+ prop: "visible",
111
+ event: "update:visible"
112
+ },
109
113
  props: dropdownProps,
110
114
  setup: function setup(props, context) {
111
115
  return $setup({
@@ -155,9 +155,9 @@ var __vue2_script = defineComponent({
155
155
  }
156
156
  var defaultIcon = h2("span", {
157
157
  "class": "block text-[0]"
158
- }, [h2("icon-chevron-down", {
158
+ }, [state.current !== "default" ? h2("icon-chevron-down", {
159
159
  "class": "sm:block hidden will-change-transform"
160
- }), h2("icon-arrow-bottom", {
160
+ }) : h2("icon-arrow-bottom", {
161
161
  "class": "sm:hidden block will-change-transform"
162
162
  })]);
163
163
  var suffixInner = state.showIcon && h2("span", {
@@ -189,7 +189,7 @@ var __vue2_script = defineComponent({
189
189
  }
190
190
  var menuElm = disabled ? null : slots.dropdown && slots.dropdown();
191
191
  return h2("div", {
192
- "class": ["relative inline-block [&>span:nth-of-type(1)]:text-color-brand-focus [&>span:nth-of-type(1)]:text-sm sm:[&>span:nth-of-type(1)]:text-xs", disabled && "[&>span:nth-of-type(1)]:text-color-brand-focus", state.showSelfIcon && "leading-4 h-4 [&_svg]:align-top [&_svg]:rotate-0"],
192
+ "class": ["relative inline-block [&>span:nth-of-type(1)]:text-color-brand-focus [&>span:nth-of-type(1)]:text-sm sm:[&>span:nth-of-type(1)]:text-sm", disabled && "[&>span:nth-of-type(1)]:text-color-brand-focus", state.showSelfIcon && "leading-4 h-4 [&_svg]:align-top [&_svg]:rotate-0"],
193
193
  "directives": [{
194
194
  name: "clickoutside",
195
195
  value: clickOutside
@@ -209,8 +209,8 @@ function __vue2_injectStyles(context) {
209
209
  this[o] = __cssModules[o];
210
210
  }
211
211
  }
212
- var mobileFirst = /* @__PURE__ */ function() {
212
+ var mobileFirst = /* @__PURE__ */ (function() {
213
213
  return __component__.exports;
214
- }();
214
+ })();
215
215
 
216
216
  export { mobileFirst as default };
package/lib/pc.js CHANGED
@@ -48,6 +48,10 @@ function _extends() {
48
48
  var __vue2_script = defineComponent({
49
49
  name: $prefix + "Dropdown",
50
50
  componentName: "TinyDropdown",
51
+ model: {
52
+ prop: "visible",
53
+ event: "update:visible"
54
+ },
51
55
  components: {
52
56
  TinyButton: Button,
53
57
  TinyButtonGroup: ButtonGroup,
@@ -241,8 +245,8 @@ function __vue2_injectStyles(context) {
241
245
  this[o] = __cssModules[o];
242
246
  }
243
247
  }
244
- var pc = /* @__PURE__ */ function() {
248
+ var pc = /* @__PURE__ */ (function() {
245
249
  return __component__.exports;
246
- }();
250
+ })();
247
251
 
248
252
  export { pc as default };
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dropdown",
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-button": "~2.25.0",
12
- "@opentinyvue/vue-button-group": "~2.25.0",
13
- "@opentinyvue/vue-common": "~2.25.0",
14
- "@opentinyvue/vue-directive": "~2.25.0",
15
- "@opentinyvue/vue-dropdown-menu": "~2.25.0",
16
- "@opentinyvue/vue-icon": "~2.25.0",
17
- "@opentinyvue/vue-renderless": "~3.25.0",
18
- "@opentinyvue/vue-theme": "~3.25.0"
11
+ "@opentinyvue/vue-button": "~2.27.0",
12
+ "@opentinyvue/vue-button-group": "~2.27.0",
13
+ "@opentinyvue/vue-common": "~2.27.0",
14
+ "@opentinyvue/vue-directive": "~2.27.0",
15
+ "@opentinyvue/vue-dropdown-menu": "~2.27.0",
16
+ "@opentinyvue/vue-icon": "~2.27.0",
17
+ "@opentinyvue/vue-renderless": "~3.27.0",
18
+ "@opentinyvue/vue-theme": "~3.27.0"
19
19
  },
20
20
  "types": "index.d.ts",
21
21
  "scripts": {