resolver-egretimp-plus 0.0.278 → 0.0.279

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resolver-egretimp-plus",
3
- "version": "0.0.278",
3
+ "version": "0.0.279",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -11,11 +11,6 @@
11
11
  "./const": "./dist/const/index.js",
12
12
  "./*": "./*"
13
13
  },
14
- "scripts": {
15
- "build:package": "webpack --config scripts/webpack.config.js",
16
- "build:theme": "gulp -f scripts/gulpfile.mjs",
17
- "build": "npm run build:package && npm run build:theme"
18
- },
19
14
  "author": "caowb",
20
15
  "license": "ISC",
21
16
  "devDependencies": {
@@ -54,5 +49,10 @@
54
49
  "vue3-sfc-loader": "^0.9.5",
55
50
  "webpack": "^5.90.0",
56
51
  "webpack-cli": "^5.1.4"
52
+ },
53
+ "scripts": {
54
+ "build:package": "webpack --config scripts/webpack.config.js",
55
+ "build:theme": "gulp -f scripts/gulpfile.mjs",
56
+ "build": "npm run build:package && npm run build:theme"
57
57
  }
58
- }
58
+ }
@@ -135,21 +135,27 @@ export default {
135
135
  modelValue.value = ''
136
136
  }
137
137
 
138
+ const getRenderSlots = function () {
139
+ return {
140
+ ...slots,
141
+ default: () => options.value?.map(option => {
142
+ return (
143
+ <ElOption
144
+ key={option.columnValue}
145
+ label={lang?.value?.indexOf('zh') > -1 ? option.columnDesc_zh : option.columnDesc}
146
+ value={option.columnValue}
147
+ disabled={option.columnStatus == '0' || option.columnStatus == '2'}
148
+ />
149
+ )
150
+ })
151
+ }
152
+ }
153
+
138
154
  return () => {
139
155
  return (
140
156
  <ElSelect class="custom-self-select" { ...{...attrs, ...selectProps.value }} v-model={value.value} onClear={clear}>
141
157
  {
142
- {
143
- default: () => options.value?.map(option => (
144
- <ElOption
145
- key={option.columnValue}
146
- label={lang?.value?.indexOf('zh') > -1 ? option.columnDesc_zh : option.columnDesc}
147
- value={option.columnValue}
148
- disabled={option.columnStatus == '0' || option.columnStatus == '2'}
149
- />
150
- )),
151
- ...slots
152
- }
158
+ getRenderSlots()
153
159
  }
154
160
  </ElSelect>
155
161
  )