create-dwy 0.18.2 → 0.18.3
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/searchable-select.js +9 -1
- package/src/sync-scene.js +1 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/searchable-select.js
CHANGED
|
@@ -263,7 +263,15 @@ export function searchableMultiselect(opts) {
|
|
|
263
263
|
? styleText('green', S_CHECKBOX_SELECTED)
|
|
264
264
|
: styleText('dim', S_CHECKBOX_INACTIVE)
|
|
265
265
|
if (opt.disabled) {
|
|
266
|
-
|
|
266
|
+
// 包内子条目:随父包勾选显示已勾,禁止点选,不要删除线
|
|
267
|
+
const packOn = opt.packId && this.selectedValues.includes(opt.packId)
|
|
268
|
+
if (packOn) {
|
|
269
|
+
const previewBox = styleText('green', S_CHECKBOX_SELECTED)
|
|
270
|
+
return active
|
|
271
|
+
? `${previewBox} ${label}`
|
|
272
|
+
: `${previewBox} ${styleText('dim', label)}`
|
|
273
|
+
}
|
|
274
|
+
return `${styleText('dim', S_CHECKBOX_INACTIVE)} ${styleText('dim', label)}`
|
|
267
275
|
}
|
|
268
276
|
// 聚焦也不拼 hint,描述只在底部公共区
|
|
269
277
|
if (active) {
|