n20-common-lib 2.4.49 → 2.4.51

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/src/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import './utils/storagePro.js' // 扩展Storage
2
2
  /** 提供组件给外部使用的入口 */
3
- import AnchorItem from './components/Anchor/AnchorItem.vue'
4
3
  import Anchor from './components/Anchor/index.vue'
4
+ import AnchorItem from './components/Anchor/AnchorItem.vue'
5
+
5
6
  import ApprovalButtons from './components/ApprovalButtons/index.vue'
6
7
  import ApproveCard from './components/ApprovalCard/ApproveCard.vue'
7
8
  import ApprovalCard from './components/ApprovalCard/index.vue'
@@ -203,7 +204,7 @@ const components = [
203
204
  const install = function (Vue, opts = { prefix: 'Cl', i18nConfig: {} }) {
204
205
  components.forEach((component) => {
205
206
  let name = component.name
206
- if (!name) return console.error('Component name is required:', component)
207
+ if (!name) return console.error('必须设置组件名称:', component)
207
208
 
208
209
  name = opts.prefix + name.replace(name[0], name[0].toUpperCase())
209
210
  Vue.component(name, component)