@opentinyvue/vue-dialog-box 3.28.0 → 3.29.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.
Files changed (2) hide show
  1. package/lib/pc.js +17 -16
  2. package/package.json +6 -6
package/lib/pc.js CHANGED
@@ -78,16 +78,12 @@ var _sfc_main = defineComponent({
78
78
  });
79
79
  }
80
80
  });
81
- var _hoisted_1 = ["data-dialog-box-draggable"];
82
- var _hoisted_2 = {
83
- class: "tiny-dialog-box__title"
84
- };
81
+ var _hoisted_1 = ["data-dialog-box-draggable", "aria-labelledby", "aria-describedby"];
82
+ var _hoisted_2 = ["id"];
85
83
  var _hoisted_3 = {
86
84
  class: "tiny-dialog-box__btn-tools"
87
85
  };
88
- var _hoisted_4 = {
89
- class: "tiny-dialog-box__body"
90
- };
86
+ var _hoisted_4 = ["id"];
91
87
  var _hoisted_5 = {
92
88
  key: 1,
93
89
  ref: "footer",
@@ -133,7 +129,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
133
129
  style: normalizeStyle(_ctx.state.style),
134
130
  "data-tag": "tiny-dialog-box",
135
131
  "data-dialog-box-draggable": _ctx.draggable,
136
- key: _ctx.state.key
132
+ key: _ctx.state.key,
133
+ role: "dialog",
134
+ "aria-modal": true,
135
+ "aria-labelledby": _ctx.state.titleId,
136
+ "aria-describedby": _ctx.state.contentId
137
137
  }, [_ctx.showHeader ? (openBlock(), createElementBlock(
138
138
  "div",
139
139
  {
@@ -145,13 +145,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
145
145
  })
146
146
  },
147
147
  [renderSlot(_ctx.$slots, "title", {}, function() {
148
- return [createElementVNode(
149
- "span",
150
- _hoisted_2,
151
- toDisplayString(_ctx.title),
152
- 1
153
- /* TEXT */
154
- )];
148
+ return [createElementVNode("span", {
149
+ class: "tiny-dialog-box__title",
150
+ role: "heading",
151
+ id: _ctx.state.titleId
152
+ }, toDisplayString(_ctx.title), 9, _hoisted_2)];
155
153
  }), createElementVNode("div", _hoisted_3, [_ctx.resize && !_ctx.state.isFull ? (openBlock(), createElementBlock("button", {
156
154
  key: 0,
157
155
  type: "button",
@@ -185,7 +183,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
185
183
  })])) : createCommentVNode("v-if", true)])],
186
184
  544
187
185
  /* NEED_HYDRATION, NEED_PATCH */
188
- )) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")]), _ctx.slots.footer ? (openBlock(), createElementBlock(
186
+ )) : createCommentVNode("v-if", true), createElementVNode("div", {
187
+ class: "tiny-dialog-box__body",
188
+ id: _ctx.state.contentId
189
+ }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_4), _ctx.slots.footer ? (openBlock(), createElementBlock(
189
190
  "div",
190
191
  _hoisted_5,
191
192
  [renderSlot(_ctx.$slots, "footer", {
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-dialog-box",
3
- "version": "3.28.0",
3
+ "version": "3.29.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
7
7
  "sideEffects": false,
8
8
  "type": "module",
9
9
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.28.0",
11
- "@opentinyvue/vue-icon": "~3.28.0",
12
- "@opentinyvue/vue-action-sheet": "~3.28.0",
13
- "@opentinyvue/vue-renderless": "~3.28.0",
14
- "@opentinyvue/vue-theme": "~3.28.0"
10
+ "@opentinyvue/vue-common": "~3.29.0",
11
+ "@opentinyvue/vue-icon": "~3.29.0",
12
+ "@opentinyvue/vue-action-sheet": "~3.29.0",
13
+ "@opentinyvue/vue-renderless": "~3.29.0",
14
+ "@opentinyvue/vue-theme": "~3.29.0"
15
15
  },
16
16
  "license": "MIT",
17
17
  "types": "index.d.ts",