stellar-ui-plus 1.25.9 → 1.25.11

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.
@@ -1,138 +1,138 @@
1
- {
2
- "name": "ste-popup",
3
- "description": "验证码输入",
4
- "example": "<ste-popup v-model:show='show'></ste-popup>",
5
- "tutorial": "https://stellar-ui.intecloud.com.cn/?projectName=stellar-ui-plus&menu=%E7%BB%84%E4%BB%B6&active=ste-popup",
6
- "attributes": [
7
- {
8
- "name": "show",
9
- "description": "是否显示弹出层,使用v-model修饰符来双向绑定",
10
- "type": "boolean",
11
- "default": false
12
- },
13
- {
14
- "name": "backgroundColor",
15
- "description": "内容容器的背景色",
16
- "type": "string",
17
- "default": "#ffffff"
18
- },
19
- {
20
- "name": "isMaskClick",
21
- "description": "是否可以点击遮罩层关闭",
22
- "type": "boolean",
23
- "default": true
24
- },
25
- {
26
- "name": "width",
27
- "description": "内容区宽度",
28
- "type": "string | number",
29
- "default": "auto"
30
- },
31
- {
32
- "name": "height",
33
- "description": "内容区高度",
34
- "type": "string | number",
35
- "default": "auto"
36
- },
37
- {
38
- "name": "position",
39
- "description": "弹出位置",
40
- "type": "string",
41
- "values": [
42
- {
43
- "name": "center",
44
- "description": "中"
45
- },
46
- {
47
- "name": "top",
48
- "description": "上"
49
- },
50
- {
51
- "name": "bottom",
52
- "description": "下"
53
- },
54
- {
55
- "name": "left",
56
- "description": "左"
57
- },
58
- {
59
- "name": "right",
60
- "description": "右"
61
- }
62
- ],
63
- "default": "center"
64
- },
65
- {
66
- "name": "round",
67
- "description": "是否圆角",
68
- "type": "boolean",
69
- "default": false
70
- },
71
- {
72
- "name": "showClose",
73
- "description": "是否右上角显示关闭图标",
74
- "type": "boolean",
75
- "default": true
76
- },
77
- {
78
- "name": "offsetX",
79
- "description": "根据弹出位置,设置X轴偏移量,单位px 默认 0",
80
- "type": "string | number "
81
- },
82
- {
83
- "name": "offsetY",
84
- "description": "根据弹出位置,设置Y轴偏移量,单位px 默认 0",
85
- "type": "string | number"
86
- },
87
- {
88
- "name": "duration",
89
- "description": "动画持续时间,单位ms",
90
- "type": "number",
91
- "default": 200
92
- },
93
- {
94
- "name": "zIndex",
95
- "description": "弹窗层级z-index",
96
- "type": "number",
97
- "default": 998
98
- },
99
- {
100
- "name": "keepContent",
101
- "description": "隐藏后是否不销毁弹窗内容元素",
102
- "type": "boolean",
103
- "default": true
104
- },
105
- {
106
- "name": "[event]close",
107
- "description": "弹窗关闭前触发,可用于异步拦截关闭",
108
- "params": [
109
- {
110
- "name": "suspend",
111
- "description": "开启等待的回调函数"
112
- },
113
- {
114
- "name": "next",
115
- "description": "执行后续关闭操作的回调函数"
116
- },
117
- {
118
- "name": "stop",
119
- "description": "阻止后续关闭操作的回调函数"
120
- }
121
- ]
122
- },
123
- {
124
- "name": "[event]open-after",
125
- "description": "弹窗打开动画执行完毕事件",
126
- "params": []
127
- },
128
- {
129
- "name": "[event]clickMask",
130
- "description": "点击遮罩时触发",
131
- "params": []
132
- },
133
- {
134
- "name": "[slot]default",
135
- "description": "内容部分插槽"
136
- }
137
- ]
138
- }
1
+ {
2
+ "name": "ste-popup",
3
+ "description": "验证码输入",
4
+ "example": "<ste-popup v-model:show='show'></ste-popup>",
5
+ "tutorial": "https://stellar-ui.intecloud.com.cn/?projectName=stellar-ui-plus&menu=%E7%BB%84%E4%BB%B6&active=ste-popup",
6
+ "attributes": [
7
+ {
8
+ "name": "show",
9
+ "description": "是否显示弹出层,使用v-model修饰符来双向绑定",
10
+ "type": "boolean",
11
+ "default": false
12
+ },
13
+ {
14
+ "name": "backgroundColor",
15
+ "description": "内容容器的背景色",
16
+ "type": "string",
17
+ "default": "#ffffff"
18
+ },
19
+ {
20
+ "name": "isMaskClick",
21
+ "description": "是否可以点击遮罩层关闭",
22
+ "type": "boolean",
23
+ "default": true
24
+ },
25
+ {
26
+ "name": "width",
27
+ "description": "内容区宽度",
28
+ "type": "string | number",
29
+ "default": "auto"
30
+ },
31
+ {
32
+ "name": "height",
33
+ "description": "内容区高度",
34
+ "type": "string | number",
35
+ "default": "auto"
36
+ },
37
+ {
38
+ "name": "position",
39
+ "description": "弹出位置",
40
+ "type": "string",
41
+ "values": [
42
+ {
43
+ "name": "center",
44
+ "description": "中"
45
+ },
46
+ {
47
+ "name": "top",
48
+ "description": "上"
49
+ },
50
+ {
51
+ "name": "bottom",
52
+ "description": "下"
53
+ },
54
+ {
55
+ "name": "left",
56
+ "description": "左"
57
+ },
58
+ {
59
+ "name": "right",
60
+ "description": "右"
61
+ }
62
+ ],
63
+ "default": "center"
64
+ },
65
+ {
66
+ "name": "round",
67
+ "description": "是否圆角",
68
+ "type": "boolean",
69
+ "default": false
70
+ },
71
+ {
72
+ "name": "showClose",
73
+ "description": "是否右上角显示关闭图标",
74
+ "type": "boolean",
75
+ "default": true
76
+ },
77
+ {
78
+ "name": "offsetX",
79
+ "description": "根据弹出位置,设置X轴偏移量,单位px 默认 0",
80
+ "type": "string | number "
81
+ },
82
+ {
83
+ "name": "offsetY",
84
+ "description": "根据弹出位置,设置Y轴偏移量,单位px 默认 0",
85
+ "type": "string | number"
86
+ },
87
+ {
88
+ "name": "duration",
89
+ "description": "动画持续时间,单位ms",
90
+ "type": "number",
91
+ "default": 200
92
+ },
93
+ {
94
+ "name": "zIndex",
95
+ "description": "弹窗层级z-index",
96
+ "type": "number",
97
+ "default": 998
98
+ },
99
+ {
100
+ "name": "keepContent",
101
+ "description": "隐藏后是否不销毁弹窗内容元素",
102
+ "type": "boolean",
103
+ "default": true
104
+ },
105
+ {
106
+ "name": "[event]close",
107
+ "description": "弹窗关闭前触发,可用于异步拦截关闭",
108
+ "params": [
109
+ {
110
+ "name": "suspend",
111
+ "description": "开启等待的回调函数"
112
+ },
113
+ {
114
+ "name": "next",
115
+ "description": "执行后续关闭操作的回调函数"
116
+ },
117
+ {
118
+ "name": "stop",
119
+ "description": "阻止后续关闭操作的回调函数"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "name": "[event]open-after",
125
+ "description": "弹窗打开动画执行完毕事件",
126
+ "params": []
127
+ },
128
+ {
129
+ "name": "[event]clickMask",
130
+ "description": "点击遮罩时触发",
131
+ "params": []
132
+ },
133
+ {
134
+ "name": "[slot]default",
135
+ "description": "内容部分插槽"
136
+ }
137
+ ]
138
+ }
@@ -65,6 +65,13 @@ watch(
65
65
  indexs.push(i);
66
66
  });
67
67
  setSelectIndex(indexs);
68
+ // 当modelValue为空时,selectedValue也应该同步为当前日期,
69
+ // 并回传给父组件(useData的selected),否则点确定时value为undefined
70
+ if (!values.length) {
71
+ setSelectValue(indexs.map((i, index) => dataOptions.value[index][i].value));
72
+ emits('change', selectedValue.value);
73
+ emits('update:modelValue', selectedValue.value);
74
+ }
68
75
  viewloading.value = false;
69
76
  });
70
77
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellar-ui-plus",
3
- "version": "1.25.9",
3
+ "version": "1.25.11",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -11,6 +11,7 @@
11
11
  },
12
12
  "scripts": {
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "publish-vscode-plugin": "cd ../../../plugins/ste-helper & pnpm run publish"
14
+ "publish-vscode-plugin": "cd ../../../plugins/ste-helper & pnpm run publish",
15
+ "prepublishOnly": "pnpm run publish-vscode-plugin"
15
16
  }
16
- }
17
+ }